:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-solid: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --orange: #f97316;
  --cyan: #22d3ee;
  --green: #22c55e;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

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

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.32);
}

.brand-name,
.footer-brand {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--soft);
  font-size: 0.96rem;
}

.nav-link {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(30, 41, 59, 0.7);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.15rem;
}

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

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
}

.mobile-link:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-viewport {
  position: relative;
  min-height: 640px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(245, 158, 11, 0.28), transparent 26rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617 96%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 92px;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero p,
.page-hero p {
  max-width: 720px;
  color: var(--soft);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  margin: 0 0 24px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.24);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.10);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.82rem;
}

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

.primary-button,
.secondary-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.32);
}

.secondary-button,
.text-button,
.section-link {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
  color: var(--soft);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.section-link:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.55);
}

.hero-poster {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: rgba(15, 23, 42, 0.9);
}

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

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 136px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  gap: 10px;
}

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

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

.hero-search-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.hero-search-panel label,
.filter-bar label {
  display: block;
  color: #fbbf24;
  font-weight: 900;
  margin-bottom: 10px;
}

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

input[type="search"] {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
  outline: none;
  padding: 14px 16px;
  font-size: 1rem;
}

input[type="search"]:focus {
  border-color: rgba(251, 191, 36, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.search-line a {
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.quick-category {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-category a {
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.55);
}

.main-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.content-section {
  margin-bottom: 66px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.34);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-width: 58px;
  height: 32px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  color: white;
  font-size: 0.88rem;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.25);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-meta span,
.detail-meta span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.24);
  border-radius: 999px;
  padding: 3px 9px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.22rem;
  line-height: 1.32;
}

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

.card-body p {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 0.95rem;
}

.movie-card-compact .card-body h3 {
  font-size: 1.05rem;
}

.movie-card-compact .card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile,
.category-panel,
.filter-bar,
.detail-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
}

.category-tile,
.category-panel {
  padding: 24px;
}

.category-title {
  display: inline-flex;
  margin-bottom: 10px;
  color: #fbbf24;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile p,
.category-panel p {
  margin: 0 0 16px;
  color: var(--soft);
}

.category-samples,
.category-panel ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.category-samples a,
.category-panel a:not(.category-title):not(.text-button) {
  color: var(--muted);
}

.category-samples a:hover,
.category-panel a:hover {
  color: #fbbf24;
}

.page-hero {
  min-height: 380px;
  display: grid;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.22), transparent 28rem),
    radial-gradient(circle at 78% 10%, rgba(34, 211, 238, 0.14), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.95));
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.small-hero,
.category-hero,
.ranking-hero {
  min-height: 330px;
}

.filter-bar {
  margin-bottom: 28px;
  padding: 20px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.7);
  color: var(--soft);
  padding: 7px 13px;
  cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
  border-color: rgba(251, 191, 36, 0.52);
  color: #fbbf24;
}

.detail-wrap {
  padding-top: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 26px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.08);
}

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

.big-play {
  position: absolute;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  font-size: 2.2rem;
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  color: white;
  font-size: 1.35rem;
}

.detail-card p {
  color: var(--soft);
}

.lead-text {
  font-size: 1.12rem;
  color: #e2e8f0;
}

.detail-tags {
  margin: 18px 0 8px;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 18px;
}

.poster-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 14px;
}

.full-button {
  width: 100%;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  padding-bottom: 10px;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: var(--soft);
}

.related-section {
  margin-top: 54px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.9);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 42px 0 30px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--muted);
}

.site-footer a:hover {
  color: #fbbf24;
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.9rem;
}

.hidden-by-filter {
  display: none;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 760px;
  }

  .hero-viewport,
  .hero-content {
    min-height: 610px;
  }

  .hero-content {
    padding-top: 46px;
  }

  .hero-controls {
    bottom: 176px;
  }

  .search-line,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .main-wrap {
    padding: 40px 0;
  }

  .detail-card,
  .category-tile,
  .category-panel {
    padding: 20px;
  }
}
