:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.62);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.18);
  --cyan-line: rgba(34, 211, 238, 0.32);
  --radius: 24px;
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.45);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(14, 165, 233, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 52%, #38bdf8);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.26);
}

.brand-name {
  font-size: 18px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--soft);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(148, 163, 184, 0.12);
}

.header-search {
  width: min(280px, 28vw);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.header-search input {
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input::placeholder {
  color: #64748b;
}

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

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

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

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.76) 25%, rgba(2, 6, 23, 0.12) 75%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 88px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker,
.detail-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h2 {
  font-size: clamp(36px, 5vw, 64px);
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #a5f3fc;
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  background: var(--cyan-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #06111f;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 48%, #38bdf8);
  box-shadow: 0 18px 32px rgba(34, 211, 238, 0.25);
}

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

.btn-ghost:hover {
  border-color: var(--cyan-line);
  background: rgba(30, 41, 59, 0.86);
}

.hero-controls {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 70px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.main-stack {
  padding: 54px 0 86px;
}

.section {
  margin-top: 54px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-head h2,
.page-title h1,
.detail-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-more {
  flex: none;
  padding: 9px 14px;
  color: #a5f3fc;
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan-line);
  background: rgba(15, 23, 42, 0.95);
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

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

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.05);
}

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

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #06111f;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  box-shadow: 0 12px 22px rgba(34, 211, 238, 0.22);
}

.movie-body {
  padding: 14px;
}

.movie-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--cyan);
}

.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: #cbd5e1;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card .tag-row {
  margin-top: 12px;
}

.movie-card .tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-tile {
  min-height: 144px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.16), transparent 50%),
    rgba(15, 23, 42, 0.76);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.22), transparent 52%),
    rgba(15, 23, 42, 0.94);
}

.category-tile strong {
  display: block;
  margin-bottom: 12px;
  font-size: 21px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.16), transparent 34rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.82));
}

.page-title p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
}

.filter-panel input {
  min-width: min(420px, 100%);
  flex: 1;
  padding: 13px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: rgba(2, 6, 23, 0.58);
}

.filter-panel input:focus {
  border-color: var(--cyan-line);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.filter-pill {
  padding: 10px 13px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 60px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-line);
}

.ranking-number {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.9);
}

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

.ranking-info h2 {
  margin: 0;
  font-size: 19px;
}

.ranking-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-hero {
  min-height: 520px;
  display: flex;
  align-items: end;
  padding-top: 110px;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.03);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 42%, rgba(2, 6, 23, 0.36) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.18) 100%);
}

.detail-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.detail-title {
  margin-bottom: 16px;
}

.detail-desc {
  max-width: 820px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #a5f3fc;
}

.breadcrumb span {
  color: var(--muted);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 26px;
  padding: 54px 0 90px;
}

.detail-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
}

.detail-panel {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.player-shell video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-shell video {
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  color: #06111f;
  border: 0;
  background: rgba(2, 6, 23, 0.18);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), rgba(2, 6, 23, 0.32));
}

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

.play-mark {
  position: relative;
  z-index: 3;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.28);
  font-size: 28px;
}

.detail-copy {
  padding: 28px;
}

.detail-copy h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-copy p {
  margin: 0 0 22px;
  color: var(--soft);
  line-height: 1.88;
}

.side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.26);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-item:hover {
  transform: translateX(3px);
  background: rgba(34, 211, 238, 0.1);
}

.side-item img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.side-item strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.side-item span {
  color: var(--muted);
  font-size: 13px;
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-weight: 900;
}

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

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

.empty-state {
  display: none;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.64);
}

.empty-state.is-visible {
  display: block;
}

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

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

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    order: 3;
    margin: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-search {
    width: 100%;
    order: 4;
    margin-left: 0;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 28px;
  }

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

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

  .detail-cover {
    width: min(210px, 60vw);
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: min(100% - 24px, 1200px);
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-content {
    padding: 104px 0 104px;
  }

  .hero h1,
  .hero h2 {
    letter-spacing: -0.04em;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .movie-body {
    padding: 12px;
  }

  .ranking-row {
    grid-template-columns: 44px 70px 1fr;
  }

  .ranking-row .btn {
    grid-column: 2 / -1;
  }

  .detail-copy {
    padding: 20px;
  }
}
