:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: rgba(16, 23, 38, 0.76);
  --panel-solid: #111827;
  --panel-strong: #172036;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --primary: #f97316;
  --primary-light: #fb923c;
  --cyan: #22d3ee;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(34, 211, 238, 0.15), transparent 28rem),
    linear-gradient(180deg, #111827 0%, var(--bg) 32%, #05070d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

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

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

button,
input {
  font: inherit;
}

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

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--primary), #ef4444 52%, #8b5cf6);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--soft);
  border-radius: 999px;
  padding: 9px 14px;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
  color: white;
  background: rgba(249, 115, 22, 0.16);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-nav.is-open {
  display: flex;
}

.hero-carousel {
  position: relative;
  min-height: min(760px, calc(100vh - 68px));
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 44px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 76px 20px 88px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.92), rgba(8, 11, 18, 0.58), rgba(8, 11, 18, 0.95)),
    var(--hero-image) center / cover;
  filter: blur(16px) saturate(0.9);
  opacity: 0.42;
}

.hero-content {
  max-width: 760px;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h1 {
  font-size: clamp(2.9rem, 7vw, 6.8rem);
  max-width: 820px;
}

.hero-copy,
.page-hero p,
.lead-text {
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.tag-row span {
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: rgba(249, 115, 22, 0.12);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster {
  position: relative;
  display: block;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster::after,
.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

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

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

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

.section-shell,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-search-shell {
  padding-top: 0;
  padding-bottom: 28px;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.site-search {
  width: 100%;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: 0;
  border-radius: 18px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.07);
}

.site-search:focus {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  color: var(--soft);
  border: 1px solid var(--line);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 8px 13px;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: white;
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.16);
}

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

.section-heading p {
  margin: 0 0 7px;
  color: var(--primary-light);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

.section-heading a {
  color: var(--primary-light);
  font-weight: 800;
}

.compact-heading {
  display: block;
}

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

.library-grid {
  margin-top: 24px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.74));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.36);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 10%, rgba(249, 115, 22, 0.24), transparent 45%),
    linear-gradient(135deg, #1e293b, #111827);
}

.poster-glow {
  position: absolute;
  inset: 12%;
  background: rgba(249, 115, 22, 0.2);
  filter: blur(34px);
}

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  color: white;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

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

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-item h3 a:hover {
  color: var(--primary-light);
}

.card-body p {
  min-height: 3.4em;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.22), transparent 45%),
    rgba(15, 23, 42, 0.78);
  transition: 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.45);
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 28px;
  align-items: start;
}

.rank-panel,
.full-rank {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.74);
  padding: 20px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
}

.rank-item:hover {
  border-color: rgba(249, 115, 22, 0.32);
  background: rgba(249, 115, 22, 0.08);
}

.rank-item strong {
  color: var(--primary-light);
  font-size: 1.1rem;
}

.rank-thumb {
  width: 74px;
  height: 98px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #0f172a);
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.page-hero {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  margin-top: 24px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 12%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.7));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
}

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

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

.detail-main {
  padding-top: 34px;
}

.player-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.video-wrap {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 30px;
  background: black;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-player {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  background: black;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: white;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.2), transparent 32%),
    rgba(0, 0, 0, 0.52);
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.3);
}

.detail-info {
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 4.4rem);
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span,
.mini-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-copy {
  max-width: 940px;
}

.detail-copy h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.detail-copy p {
  color: var(--soft);
  line-height: 2;
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 13, 0.68);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
  gap: 28px;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

.footer-links a {
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

.footer-links a:hover {
  color: white;
  border-color: rgba(249, 115, 22, 0.5);
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 26px;
  color: var(--muted);
}

.searchable-card.is-hidden {
  display: none;
}

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

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

  .hero-slide,
  .player-section,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 920px;
  }

  .hero-poster {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .hero-slide {
    padding-top: 38px;
  }

  .hero-content,
  .page-hero,
  .detail-info {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .section-shell,
  .page-main,
  .detail-main {
    padding: 34px 14px;
  }

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

  .card-body {
    padding: 13px;
  }

  .rank-item {
    grid-template-columns: 30px 62px minmax(0, 1fr);
    padding: 9px;
  }

  .rank-thumb {
    width: 62px;
    height: 84px;
  }

  .video-wrap,
  .video-player {
    min-height: 260px;
  }
}
