:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --card: rgba(255, 255, 255, 0.88);
  --brand: #0f766e;
  --brand-strong: #0891b2;
  --brand-deep: #2563eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #eef9ff 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.96), rgba(8, 145, 178, 0.96), rgba(37, 99, 235, 0.96));
  box-shadow: 0 16px 45px rgba(15, 118, 110, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-box input {
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  min-width: 230px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.mobile-search button {
  border: 0;
  color: var(--brand);
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  color: #ffffff;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.18);
  transform: scale(1.08);
  opacity: 0.5;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(8, 145, 178, 0.28));
}

.hero-content {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
  padding: 70px 0 92px;
  color: #ffffff;
}

.hero-text {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero .eyebrow {
  color: #a7f3d0;
  background: rgba(255, 255, 255, 0.13);
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  margin: 22px 0;
  letter-spacing: -0.06em;
}

.hero p {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e, #0891b2, #2563eb);
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
  min-height: 520px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  border-radius: 999px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 25px;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  font-size: 0;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.active {
  width: 28px;
  background: #ffffff;
}

.section-wrap,
.page-hero,
.breadcrumb,
.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-wrap {
  padding: 56px 0;
}

.search-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 10px;
}

.search-panel h2,
.section-heading h2,
.rank-panel-head h2,
.page-hero h1,
.detail-info h1,
.story-card h2,
.category-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.search-panel p,
.page-hero p,
.category-card p,
.story-card p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.8;
}

.filter-box input {
  color: var(--ink);
  min-width: 280px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-box input::placeholder {
  color: #94a3b8;
}

.filter-box.wide input {
  width: min(680px, 100%);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.rank-panel-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 10px;
}

.section-heading > a {
  color: var(--brand);
  font-weight: 900;
}

.featured-grid,
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-grid.all-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.05);
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.7));
}

.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.duration-pill {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  margin: 0 0 14px;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.category-band {
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.9), rgba(239, 246, 255, 0.9));
  width: min(1280px, calc(100% - 32px));
  border-radius: 34px;
  padding-left: 30px;
  padding-right: 30px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background: #0f172a;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  line-height: 1.6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  border-radius: 30px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(3px);
  background: #ecfeff;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.ranking-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-main {
  min-width: 0;
}

.ranking-main strong,
.ranking-main em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-main strong {
  font-size: 15px;
}

.ranking-main em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ranking-views {
  color: var(--brand);
  font-weight: 900;
  font-size: 13px;
}

.page-main {
  padding-bottom: 50px;
}

.page-hero {
  margin-top: 36px;
  margin-bottom: 10px;
  border-radius: 36px;
  padding: 58px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(37, 99, 235, 0.14)), #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  max-width: 780px;
  font-size: 17px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-cover {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  background: #e2e8f0;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  color: var(--brand);
  background: rgba(20, 184, 166, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.ranking-page .ranking-row {
  grid-template-columns: 46px 72px minmax(0, 1fr) 110px;
  padding: 14px;
}

.ranking-page .ranking-row img {
  width: 72px;
  height: 96px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 28px 0 18px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 38px;
  background: radial-gradient(circle at 20% 10%, rgba(20, 184, 166, 0.2), transparent 30%), linear-gradient(135deg, #ffffff, #f0fdfa);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  background: #e2e8f0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin-top: 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

.detail-one-line {
  font-size: 19px;
  max-width: 820px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 34px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.26);
}

.movie-player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.2), rgba(2, 6, 23, 0.56));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 8px;
  font-size: 42px;
  background: linear-gradient(135deg, #0f766e, #0891b2, #2563eb);
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.38);
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.story-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.story-card p {
  font-size: 16px;
  margin: 0;
}

.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.86);
  background: #020617;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2fr;
  gap: 28px;
}

.footer-inner strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-content,
  .split-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 380px;
    min-height: auto;
  }

  .featured-grid,
  .movie-grid,
  .movie-grid.all-list,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-text {
    font-size: 17px;
  }

  .mobile-search {
    align-items: stretch;
  }

  .mobile-search input {
    min-width: 0;
    flex: 1;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 42px;
    gap: 28px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-poster img {
    height: 420px;
  }

  .search-panel,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-box,
  .filter-box input {
    width: 100%;
    min-width: 0;
  }

  .featured-grid,
  .movie-grid,
  .movie-grid.all-list,
  .related-grid,
  .category-list,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }

  .category-cover {
    border-radius: 18px;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 28px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row,
  .ranking-page .ranking-row {
    grid-template-columns: 34px 52px minmax(0, 1fr);
  }

  .ranking-views {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
