:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --orange: #fb923c;
  --danger: #ef4444;
  --shadow: 0 22px 80px rgba(2, 6, 23, 0.48);
  --radius: 22px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 158, 11, 0.15), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.14), transparent 30%),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.74));
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.28);
}

.nav-wrap {
  max-width: var(--max);
  height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  color: #111827;
  font-size: 18px;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.34);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 2px;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 15px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
}

.mobile-menu {
  display: none;
  padding: 10px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.55) 52%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 50%, rgba(2, 6, 23, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 380px;
  gap: 34px;
  align-items: end;
}

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

.hero-copy-slide {
  display: none;
}

.hero-copy-slide.active {
  display: block;
}

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

.eyebrow::before,
.section-kicker::before,
.page-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-light), var(--orange));
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 660px;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 20px);
}

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

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

.btn-primary {
  color: #111827;
  background: linear-gradient(90deg, var(--gold-light), var(--orange));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 4px 0 14px;
  font-size: 20px;
}

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

.hero-mini {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
  background: rgba(245, 158, 11, 0.15);
  transform: translateX(3px);
}

.hero-mini img {
  width: 86px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

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

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.active {
  width: 48px;
  background: var(--gold-light);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 68px 0;
}

.section.compact {
  padding-top: 36px;
}

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

.section-head h2,
.page-title h1 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.16;
}

.section-more {
  color: #fde68a;
  font-weight: 700;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.5);
  background: var(--bg-card-strong);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #334155);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.duration,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.duration {
  right: 12px;
  padding: 4px 9px;
}

.rank-badge {
  left: 12px;
  min-width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.88);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--gold-light);
}

.card-body p {
  margin: 0;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta,
.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 13px;
}

.card-meta {
  margin-top: 12px;
}

.card-meta span,
.tag-row span,
.info-line span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.78));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-card strong {
  font-size: 20px;
}

.category-card p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 14px;
}

.search-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.movie-search {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  color: #fff;
  font-size: 16px;
  outline: 0;
  padding: 0 20px;
}

.movie-search:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.page-hero {
  padding: 132px 0 54px;
  background:
    radial-gradient(circle at 12% 42%, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0));
}

.page-title {
  max-width: 820px;
}

.page-title p {
  color: #cbd5e1;
  font-size: 18px;
  margin: 16px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 210px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.88);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
}

.rank-pic {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
}

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

.rank-main h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-main p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  color: #fde68a;
  font-weight: 900;
  white-space: nowrap;
}

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

.player-card,
.content-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.24));
  z-index: 2;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.big-play {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  color: #111827;
  font-size: 34px;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.32);
  cursor: pointer;
}

.player-info,
.content-card,
.side-card {
  padding: 22px;
}

.player-info h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.14;
}

.player-info p,
.content-card p,
.side-card p {
  color: #cbd5e1;
}

.content-card {
  margin-top: 24px;
}

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

.side-card {
  margin-bottom: 18px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.side-link:hover {
  background: rgba(245, 158, 11, 0.14);
}

.side-link img {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  line-height: 1.35;
}

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

.hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), #020617);
  margin-top: 70px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 34px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.footer-grid p {
  color: var(--muted);
  max-width: 430px;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

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

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 20px 26px;
  text-align: center;
  color: var(--dim);
}

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

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

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

  .hero-panel {
    max-width: 720px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand-text em {
    display: none;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 48px;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-panel {
    padding: 14px;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-body p {
    min-height: 0;
  }

  .rank-item {
    grid-template-columns: 46px 104px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

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

  .section-head,
  .search-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .hero-mini {
    grid-template-columns: 76px 1fr;
  }

  .rank-item {
    grid-template-columns: 40px 1fr;
  }

  .rank-pic {
    display: none;
  }

  .rank-score {
    grid-column: 2;
  }
}
