:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #f97316;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.18), transparent 36rem),
    radial-gradient(circle at 86% 10%, rgba(14, 165, 233, 0.13), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.72));
  backdrop-filter: blur(18px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-wrap {
  width: min(1200px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.45);
}

.brand-text {
  display: grid;
  gap: 1px;
}

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

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #e5e7eb;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

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

main {
  padding-top: 76px;
}

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

.hero {
  position: relative;
  min-height: 690px;
  padding: 74px 0 54px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.92)),
    radial-gradient(circle at 70% 35%, rgba(245, 158, 11, 0.22), transparent 28rem);
  pointer-events: none;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.10);
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 span,
.page-hero h1 span,
.detail-hero h1 span {
  background: linear-gradient(90deg, #fff7ed, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 24px 0 0;
  max-width: 620px;
  color: #d1d5db;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.13);
}

.hero-art {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.07) contrast(1.04);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.78));
}

.hero-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.hero-card-caption strong {
  display: block;
  font-size: 22px;
}

.hero-card-caption span {
  color: #cbd5e1;
  font-size: 14px;
}

.hero-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-dot {
  width: 36px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--amber-light), var(--orange));
}

.floating-panel {
  position: absolute;
  right: -10px;
  top: 16%;
  z-index: 3;
  width: min(240px, 54vw);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.floating-panel b {
  display: block;
  color: #fcd34d;
  margin-bottom: 6px;
}

.floating-panel small {
  display: block;
  color: var(--muted);
}

.section {
  padding: 56px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 38px);
  letter-spacing: -0.03em;
}

.section-kicker {
  margin: 0 0 8px;
  color: #fbbf24;
  font-weight: 700;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--muted);
}

.search-panel {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-box input,
.search-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(2, 6, 23, 0.68);
  padding: 0 16px;
}

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

.category-pill {
  min-height: 126px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.64));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.78));
}

.category-pill strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.category-pill span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(15, 23, 42, 0.86);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.76));
  opacity: 0.85;
}

.duration {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #e5e7eb;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
  box-shadow: 0 0 38px rgba(245, 158, 11, 0.52);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fcd34d;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #fbbf24;
}

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

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

.tag-row span,
.detail-tag {
  padding: 5px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.42);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #111827;
  background: linear-gradient(135deg, #fcd34d, #fb923c);
  font-weight: 900;
}

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

.rank-item strong {
  display: block;
  margin-bottom: 5px;
}

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

.page-hero,
.detail-hero {
  padding: 72px 0 42px;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0));
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  color: var(--soft);
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 38px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: var(--shadow);
}

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

.detail-info-panel {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

.player-shell {
  padding: 32px 0 58px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  z-index: 2;
}

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

.player-button-core {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.player-button-core i {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fcd34d, #fb923c);
  box-shadow: 0 0 42px rgba(245, 158, 11, 0.48);
  font-style: normal;
  font-size: 28px;
}

.content-card {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.62);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.content-card p {
  color: #d1d5db;
  font-size: 17px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.42);
}

.compact-card img {
  width: 104px;
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card strong {
  display: block;
  margin-bottom: 4px;
}

.compact-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.98));
}

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

.footer-brand {
  margin-bottom: 10px;
  color: #fcd34d;
  font-size: 24px;
  font-weight: 900;
}

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

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

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

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

.hidden-card {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero-slide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 580px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

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

  .floating-panel {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .category-grid,
  .rank-list,
  .related-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 82px 1fr;
    gap: 12px;
  }

  .rank-item img {
    width: 82px;
    height: 54px;
  }

  .detail-info-panel,
  .content-card {
    padding: 22px;
  }
}
