:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.18);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(6, 182, 212, 0.20), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(14, 165, 233, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 36px rgba(6, 182, 212, 0.30);
}

.brand-text {
  font-size: 1.18rem;
  letter-spacing: 0.08em;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.13);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(320px, 34vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  overflow: hidden;
}

.nav-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: white;
  background: transparent;
  outline: none;
}

.nav-search input {
  padding: 10px 14px;
}

.nav-search button,
.hero-search button {
  padding: 10px 16px;
  background: var(--accent);
  color: #00111a;
  font-weight: 900;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--line);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 3px 0;
  display: block;
  background: white;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-shell {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  transform: scale(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.88)),
    linear-gradient(0deg, #020617, transparent 45%, rgba(2, 6, 23, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 430px);
  align-items: center;
  gap: 52px;
  padding: 86px 0 110px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 6vw, 6.8rem);
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.9;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: #bae6fd;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
}

.tag-row span {
  padding: 6px 10px;
}

.hero-actions,
.detail-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn,
.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
}

.primary-btn {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  color: #00111a;
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.30);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: white;
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.hero-poster img,
.movie-cover img,
.rank-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 68px;
  background: #67e8f9;
}

.hero-search {
  display: flex;
  width: min(440px, 46vw);
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(14px);
}

.hero-search input {
  padding: 14px 18px;
}

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

.content-section {
  padding: 58px 0;
}

.section-heading,
.aside-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.aside-heading h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
}

.aside-heading a,
.text-link {
  color: #67e8f9;
}

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

.category-tile,
.category-overview-card,
.filter-panel,
.movie-card,
.rank-item,
.detail-card,
.aside-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.70));
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.28);
}

.category-tile {
  min-height: 148px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -38px;
  bottom: -46px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.13);
}

.category-tile span {
  color: #67e8f9;
  font-weight: 900;
}

.category-tile strong {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 1.15rem;
  line-height: 1.35;
}

.category-tile em {
  position: relative;
  z-index: 1;
  color: #94a3b8;
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.5;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 26px 70px rgba(6, 182, 212, 0.15);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  color: #00111a;
  font-size: 0.82rem;
  font-weight: 950;
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 0.84rem;
}

.category-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  font-weight: 900;
}

.movie-card h3,
.rank-copy h3,
.category-overview-card h2 {
  margin: 0;
  color: white;
  font-weight: 950;
  line-height: 1.35;
}

.movie-card h3 {
  font-size: 1.06rem;
}

.movie-card h3 a:hover,
.rank-copy h3 a:hover,
.category-overview-card h2 a:hover {
  color: #67e8f9;
}

.movie-card p,
.rank-copy p,
.category-overview-card p,
.detail-card p,
.page-hero p,
.aside-box dd {
  color: #cbd5e1;
  line-height: 1.75;
}

.movie-card p {
  min-height: 4.8em;
  margin: 10px 0 14px;
  color: #94a3b8;
  font-size: 0.93rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.ranking-aside {
  position: sticky;
  top: 94px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 50px 90px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
}

.compact-rank .rank-item {
  grid-template-columns: 42px minmax(0, 1fr);
}

.compact-rank .rank-thumb {
  display: none;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  font-weight: 950;
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.rank-copy h3 {
  font-size: 1.08rem;
}

.rank-copy p {
  margin: 8px 0 10px;
  color: #94a3b8;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 34px;
}

.small-hero {
  padding-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.12rem;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  min-height: 220px;
  padding: 18px;
  border-radius: 30px;
}

.category-overview-cover {
  border-radius: 24px;
  background-size: cover;
  background-position: center;
}

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

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #cbd5e1;
  font-size: 0.86rem;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 28px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0f172a;
}

.detail-shell {
  padding: 36px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #94a3b8;
  margin-bottom: 22px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: black;
  box-shadow: var(--shadow);
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  color: #00111a;
  font-size: 2rem;
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.35);
}

.detail-card,
.aside-box {
  margin-top: 22px;
  padding: 24px;
  border-radius: 30px;
}

.detail-card h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.lead-text {
  font-size: 1.15rem;
}

.detail-card h2,
.aside-box h2 {
  margin: 28px 0 10px;
  color: white;
  font-size: 1.35rem;
  font-weight: 950;
}

.detail-tags {
  margin-top: 18px;
}

.detail-nav-links a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

.detail-nav-links a:hover {
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.35);
}

.detail-aside {
  position: sticky;
  top: 94px;
}

.detail-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.info-list dt {
  color: #67e8f9;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #94a3b8;
}

.footer-inner strong {
  color: white;
  font-size: 1.12rem;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #67e8f9;
}

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

@media (max-width: 1080px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .ranking-aside,
  .detail-aside {
    position: static;
  }

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

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

  .site-nav {
    min-height: 64px;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 56px 0 130px;
  }

  .hero-poster {
    width: min(72vw, 280px);
  }

  .hero-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-overview-cover {
    min-height: 220px;
  }

  .rank-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-thumb {
    display: none;
  }
}

@media (max-width: 560px) {
  .content-section,
  .detail-shell,
  .page-hero,
  .footer-inner,
  .site-nav,
  .mobile-nav,
  .hero-content,
  .hero-controls {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 14vw, 4.4rem);
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
