:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.76);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --yellow: #facc15;
  --danger: #f87171;
  --radius: 22px;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(34, 211, 238, 0.15), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(59, 130, 246, 0.16), transparent 25rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}

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

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--cyan);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 22px 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 14px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 72vh;
  padding: 72px 22px 42px;
  display: flex;
  align-items: center;
}

.hero-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.75) 38%, rgba(2, 6, 23, 0.25) 72%, rgba(2, 6, 23, 0.9) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(2, 6, 23, 0.1) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 36px;
  align-items: end;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 680px;
  color: #d1d5db;
  line-height: 1.8;
  font-size: 17px;
}

.hero-actions,
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn,
.section-more,
.play-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  font-weight: 760;
  color: #ecfeff;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary,
.play-now {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent;
}

.btn:hover,
.section-more:hover,
.play-now:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.hero-panel {
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 0;
}

.hero-panel-head strong {
  font-size: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--cyan);
}

.hero-mini-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-mini:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(14, 165, 233, 0.12);
}

.hero-mini img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini span {
  color: var(--muted);
  font-size: 12px;
}

.hero-mini strong {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px 82px;
}

.page-hero {
  padding: 52px 0 30px;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  color: #cbd5e1;
  line-height: 1.8;
}

.section {
  padding: 42px 0;
}

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

.section-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 3.8vw, 42px);
  letter-spacing: -0.055em;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  margin: 20px 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.filter-title {
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--cyan);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 150px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.74);
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--cyan);
}

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

.category-tile {
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.18), transparent 10rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
}

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(15, 23, 42, 0.92);
}

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

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  color: #001018;
  background: var(--cyan);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  background: var(--yellow);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

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

.movie-card h3 a:hover {
  color: var(--cyan);
}

.movie-card p {
  margin: 0;
  min-height: 56px;
  color: #aeb9c8;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
  font-size: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
}

.rank-row img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-number {
  color: var(--yellow);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-score {
  min-width: 76px;
  text-align: center;
  color: var(--yellow);
  font-size: 22px;
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
  gap: 28px;
  align-items: start;
}

.player-box {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.7)),
    radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 18rem);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 55px rgba(34, 211, 238, 0.35);
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
}

.detail-card,
.text-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.detail-card {
  padding: 22px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.text-card {
  margin-top: 18px;
  padding: 24px;
}

.text-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-card p {
  margin: 0 0 18px;
  color: #d1d5db;
  line-height: 1.88;
}

.side-card {
  padding: 18px;
}

.side-poster {
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 16px;
}

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sitemap-list {
  columns: 4 220px;
  column-gap: 22px;
  line-height: 1.9;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  color: #cbd5e1;
}

.sitemap-list a:hover {
  color: var(--cyan);
}

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 12px;
}

.footer-links {
  display: grid;
  gap: 9px;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-panel {
    display: none;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .rank-row {
    grid-template-columns: 42px 74px 1fr;
  }

  .rank-row img {
    width: 74px;
    height: 98px;
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .page-shell,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-grid,
  .movie-grid,
  .related-grid {
    gap: 12px;
  }

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

  .movie-card p,
  .card-tags {
    display: none;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-number {
    text-align: left;
  }

  .rank-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
