:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(245, 158, 11, 0.2);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --gold: #f59e0b;
  --gold-soft: #fbbf24;
  --rose: #fb7185;
  --cyan: #22d3ee;
  --green: #34d399;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  color: #cbd5e1;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-soft);
}

.nav-dropdown {
  position: relative;
}

.dropdown-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.dropdown-panel {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 160px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.dropdown-panel a:hover {
  color: var(--gold-soft);
  background: rgba(245, 158, 11, 0.1);
}

.top-search {
  width: min(280px, 26vw);
}

.top-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  outline: none;
}

.top-search input {
  padding: 10px 14px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
}

.top-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(245, 158, 11, 0.14);
  padding: 12px 16px 18px;
  background: rgba(2, 6, 23, 0.96);
}

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

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(15, 23, 42, 0.88) 34%, rgba(15, 23, 42, 0.45) 64%, #020617 100%),
    radial-gradient(circle at 72% 24%, rgba(245, 158, 11, 0.28), transparent 28rem);
  z-index: 1;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) brightness(0.72);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  padding: 76px 0 58px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(245, 158, 11, 0.08);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  width: min(680px, 100%);
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.85;
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: #0f172a;
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.24);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.88);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-card {
  align-self: end;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-card-body {
  padding: 18px;
}

.hero-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

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

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

.hero-dot.active {
  background: var(--gold);
}

.section {
  padding: 68px 0;
}

.section.alt {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.15));
}

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

.section-kicker {
  color: var(--gold-soft);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h1,
.section h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.035em;
}

.section-head p,
.page-title p,
.category-panel p,
.card-body p,
.horizontal-body p,
.detail-intro,
.detail-block p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card,
.horizontal-card,
.category-panel,
.detail-panel,
.filter-bar,
.player-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 24px 50px rgba(245, 158, 11, 0.12);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.cover-link::after,
.horizontal-cover::after,
.panel-covers::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 6, 23, 0.88));
}

.cover-link img,
.horizontal-cover img,
.panel-covers img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .cover-link img,
.horizontal-card:hover .horizontal-cover img,
.category-panel:hover .panel-covers img,
.detail-cover:hover img {
  transform: scale(1.055);
}

.year-badge,
.rank-badge,
.list-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: var(--gold);
  color: #0f172a;
  font-size: 0.82rem;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fb7185;
  color: #fff;
}

.card-body {
  padding: 18px;
}

.card-body h2,
.horizontal-body h2,
.category-panel h2 {
  margin: 8px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h2 a:hover,
.horizontal-body h2 a:hover,
.category-panel h2 a:hover,
.text-link:hover {
  color: var(--gold-soft);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span,
.detail-tags a,
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.88);
  color: #cbd5e1;
  font-size: 0.82rem;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.horizontal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.36);
}

.horizontal-cover {
  position: relative;
  min-height: 146px;
  overflow: hidden;
}

.list-rank {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #052e16;
}

.horizontal-body {
  padding: 18px 20px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-soft);
  font-weight: 800;
}

.category-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 190px;
  border-radius: 24px;
  overflow: hidden;
}

.panel-covers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #0f172a;
  overflow: hidden;
}

.panel-covers a {
  min-height: 95px;
  overflow: hidden;
}

.panel-body {
  padding: 24px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 170px 170px 170px;
  gap: 14px;
  margin: 26px 0 28px;
  padding: 18px;
  border-radius: 20px;
}

.page-hero {
  padding: 62px 0 18px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.player-card,
.detail-panel {
  border-radius: 24px;
  overflow: hidden;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(0, 0, 0, 0.55));
  color: #fff;
  cursor: pointer;
}

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

.play-ring {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: #0f172a;
  font-size: 2rem;
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.32);
}

.player-info {
  padding: 24px;
}

.detail-panel {
  padding: 24px;
}

.detail-panel + .detail-panel {
  margin-top: 22px;
}

.detail-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
}

.detail-info-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted);
}

.detail-info-list strong {
  color: var(--text);
}

.detail-block {
  padding: 28px 0 0;
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

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

.empty-state {
  display: none;
  padding: 36px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-card {
    display: none;
  }

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

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    display: block;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-body p,
  .card-meta span:nth-child(3) {
    display: none;
  }

  .horizontal-card,
  .category-panel {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .horizontal-cover {
    min-height: 138px;
  }

  .panel-body,
  .horizontal-body {
    padding: 14px;
  }

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

  .panel-covers a:nth-child(n+2) {
    display: none;
  }

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

  .player-info,
  .detail-panel {
    padding: 18px;
  }
}
