:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-2: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  max-width: 1240px;
  height: 70px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.38);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft);
  font-weight: 700;
}

.desktop-nav a {
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fbbf24;
  border-color: #fbbf24;
}

.nav-search {
  margin-left: auto;
  width: min(310px, 30vw);
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  overflow: hidden;
}

.nav-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 6px 12px 18px;
  color: var(--text);
  background: transparent;
}

.nav-search button {
  border: 0;
  color: #fbbf24;
  background: transparent;
  padding: 10px 15px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 20px 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-nav form {
  display: flex;
  gap: 10px;
}

.mobile-nav input,
.mobile-nav button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-nav input {
  min-width: 0;
  flex: 1;
  color: var(--text);
  background: #020617;
}

.mobile-nav button {
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
}

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

.mobile-nav a {
  color: var(--soft);
  padding: 10px 0;
}

.hero-carousel {
  position: relative;
  min-height: clamp(590px, 78vh, 820px);
  overflow: hidden;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1) contrast(1.05);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.44) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 54%, rgba(2, 6, 23, 0.52) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: clamp(590px, 78vh, 820px);
  margin: 0 auto;
  padding: 86px 20px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(44px, 8vw, 90px);
}

.hero-copy p,
.page-hero p,
.detail-copy p,
.section-heading p,
.article-card p,
.category-overview-card p,
.spotlight-copy p {
  color: var(--soft);
  line-height: 1.78;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row,
.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags,
.detail-tags,
.genre-links {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags a,
.tag-row span,
.genre-links a {
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.09);
}

.hero-tags span,
.detail-tags a,
.genre-links a {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
  color: #facc15;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  padding: 0 24px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.32);
}

.ghost-btn,
.section-more {
  padding: 0 20px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.68);
}

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

.hero-poster {
  position: relative;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-7deg) rotateX(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 38px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
}

.quick-search-band,
.content-section,
.page-hero,
.player-section {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.quick-search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: center;
  gap: 24px;
  margin-top: -48px;
  position: relative;
  z-index: 6;
  padding-top: 24px;
  padding-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-band h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 36px);
}

.quick-search-band p {
  margin: 10px 0 0;
  color: var(--muted);
}

.quick-search-band form,
.large-search {
  display: flex;
  gap: 12px;
}

.quick-search-band input,
.large-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 15px;
  padding: 13px 14px;
  color: var(--text);
  outline: 0;
  background: rgba(2, 6, 23, 0.72);
}

.quick-search-band button,
.large-search button,
.filter-panel button {
  border: 0;
  border-radius: 15px;
  padding: 0 20px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  cursor: pointer;
}

.content-section {
  padding-top: 74px;
  padding-bottom: 8px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
}

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

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

.movie-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62));
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #fb923c);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta a {
  color: #fbbf24;
}

.card-body h2 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

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

.compact .card-body h2 {
  font-size: 16px;
}

.compact .card-body p {
  display: none;
}

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.78));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.45);
}

.category-card span {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 950;
}

.category-card strong {
  color: var(--soft);
  font-weight: 500;
  line-height: 1.72;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1fr;
  gap: 24px;
  align-items: stretch;
}

.spotlight-copy,
.article-card,
.filter-panel,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.spotlight-copy {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-copy h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.page-hero {
  padding-top: 82px;
  padding-bottom: 34px;
}

.slim-hero,
.category-page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(38px, 7vw, 76px);
}

.page-hero p {
  max-width: 800px;
  font-size: 18px;
}

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

.category-overview-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  align-items: center;
}

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

.category-cover-stack img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 28px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.52fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 24px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel button {
  min-height: 48px;
}

.search-section {
  min-height: 520px;
}

.large-search {
  max-width: 760px;
  margin-bottom: 20px;
}

.search-status {
  margin: 0 0 22px;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.detail-shell {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 34px;
}

.breadcrumb a {
  color: #fbbf24;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  font-size: clamp(38px, 7vw, 78px);
}

.detail-copy p {
  max-width: 820px;
  font-size: 18px;
}

.player-section {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.player-wrap {
  position: relative;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.38);
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-size: 34px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.38);
}

.player-overlay strong {
  font-size: 20px;
}

.detail-content {
  padding-top: 42px;
}

.article-card {
  padding: clamp(22px, 4vw, 42px);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.article-card p + h2 {
  margin-top: 30px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.meta-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.45);
}

.meta-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.meta-list dd {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 800;
}

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

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 36px;
}

.footer-brand {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 950;
}

.site-footer p,
.footer-links a {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-content,
  .spotlight-layout,
  .quick-search-band,
  .detail-layout,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 72px;
    gap: 32px;
  }

  .hero-poster {
    max-width: 320px;
    transform: none;
  }

  .quick-search-band {
    margin-top: -28px;
  }

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

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

  .filter-panel label:first-child,
  .filter-panel button {
    grid-column: 1 / -1;
  }

  .meta-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    height: 64px;
  }

  .brand-text {
    font-size: 20px;
  }

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

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

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

  .card-body {
    padding: 13px;
  }

  .card-body h2 {
    font-size: 16px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

  .category-overview-card {
    padding: 14px;
  }

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

  .filter-panel,
  .meta-list {
    grid-template-columns: 1fr;
  }

  .quick-search-band form,
  .large-search {
    flex-direction: column;
  }

  .quick-search-band button,
  .large-search button {
    min-height: 48px;
  }
}
