:root {
  color-scheme: dark;
  --deep-950: #020617;
  --deep-900: #0f172a;
  --deep-850: #121d32;
  --deep-800: #1e293b;
  --deep-700: #334155;
  --cloud-500: #0ea5e9;
  --cloud-400: #38bdf8;
  --cyber-600: #2563eb;
  --gold: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --line: rgba(56, 189, 248, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.18), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.22), transparent 30%),
    var(--deep-950);
  color: var(--text-main);
}

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

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cloud-400), var(--cyber-600));
  color: #00111d;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--cloud-400), #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-links a,
.footer-links a,
.quick-links a,
.year-links a,
.chip {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  transition: 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active,
.mobile-links a:hover,
.quick-links a:hover,
.year-links a:hover,
.chip:hover,
.chip.active {
  color: var(--cloud-400);
  border-color: var(--line);
  background: rgba(14, 165, 233, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.mobile-search input,
.filter-row input,
.filter-row select {
  border: 1px solid var(--line);
  outline: none;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-main);
}

.header-search input {
  width: 250px;
  padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 750;
  transition: 0.22s ease;
}

.header-search button,
.mobile-search button,
.primary-btn {
  color: #021320;
  background: linear-gradient(135deg, var(--cloud-400), #60a5fa);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.24);
}

.header-search button,
.mobile-search button {
  padding: 10px 14px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-main);
  background: rgba(30, 41, 59, 0.9);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(2, 6, 23, 0.92);
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 12px;
}

.mobile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mobile-links a {
  padding: 8px 12px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

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

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

.hero-backdrop {
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) blur(1px);
  transform: scale(1.04);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.73) 42%, rgba(2, 6, 23, 0.34)),
    linear-gradient(0deg, var(--deep-950), transparent 38%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 60px;
  min-height: 72vh;
  padding: 56px 0 78px;
}

.eyebrow,
.section-kicker {
  color: var(--cloud-400);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 740px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.58);
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 18px;
}

.ghost-btn,
.section-more {
  border: 1px solid var(--line);
  color: var(--cloud-400);
  background: rgba(15, 23, 42, 0.72);
}

.primary-btn:hover,
.header-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.34);
}

.ghost-btn:hover,
.section-more:hover {
  background: rgba(14, 165, 233, 0.13);
}

.hero-poster {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span,
.play-dot,
.player-cover span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #021320;
  background: var(--cloud-400);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 1px solid var(--line);
  color: var(--text-main);
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.active {
  width: 28px;
  background: var(--cloud-400);
}

.section {
  padding: 54px 0;
}

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

.section-head h2,
.content-block h2,
.player-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
}

.section-more {
  padding: 10px 14px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 12px;
}

.quick-links a,
.year-links a,
.chip {
  padding: 11px 14px;
  text-align: center;
  background: rgba(15, 23, 42, 0.62);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.42);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--deep-800);
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: 0.28s ease;
}

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  opacity: 0.94;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #231303;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, var(--gold));
}

.movie-card-body {
  padding: 14px;
}

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card,
.category-overview-card a {
  display: block;
  min-height: 155px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(37, 99, 235, 0.08)), rgba(15, 23, 42, 0.72);
  transition: 0.22s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
}

.category-card span,
.category-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cloud-400);
  font-weight: 900;
}

.category-card strong,
.category-overview-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.crumbs a {
  color: var(--cloud-400);
}

.chip-row,
.year-links {
  margin-top: 20px;
}

.filter-panel {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
}

.filter-row input,
.filter-row select {
  padding: 13px 14px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  background-size: cover;
  background-position: center;
  filter: blur(5px) saturate(1.1);
  transform: scale(1.05);
}

.detail-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.3)),
    linear-gradient(0deg, var(--deep-950), transparent 46%);
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: end;
  gap: 42px;
  min-height: 560px;
  padding: 60px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(15, 23, 42, 0.72);
}

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

.player-card,
.content-block {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.player-card {
  overflow: hidden;
}

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

.player-frame video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-frame video {
  z-index: 1;
  object-fit: contain;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

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

.player-cover img {
  object-fit: cover;
  opacity: 0.64;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  font-size: 30px;
  box-shadow: 0 16px 50px rgba(14, 165, 233, 0.45);
}

.player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 0;
}

.player-card p {
  margin: 0;
  padding: 16px 24px 24px;
  color: var(--text-muted);
  line-height: 1.85;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-block {
  padding: 26px;
}

.content-block p {
  color: var(--text-muted);
  line-height: 1.9;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 38px 0;
}

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

.site-footer p {
  color: var(--text-soft);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 11px;
  background: rgba(15, 23, 42, 0.66);
}

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

@media (max-width: 1080px) {
  .movie-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-content {
    gap: 24px;
    padding-top: 36px;
  }

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

  .detail-layout {
    align-items: center;
  }

  .detail-poster {
    max-width: 230px;
  }

  .quick-links,
  .movie-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-links {
    justify-content: start;
  }
}

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

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

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .quick-links,
  .movie-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .player-title-row {
    align-items: start;
    flex-direction: column;
  }
}
