:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --deep: #1e293b;
  --gold: #fbbf24;
  --radius: 22px;
  --shadow: 0 28px 90px rgba(2, 8, 23, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.16), transparent 31rem),
    radial-gradient(circle at 95% 18%, rgba(59, 130, 246, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 16px 46px rgba(2, 8, 23, 0.38);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.22);
}

.brand-text strong {
  display: block;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 18px;
}

.desktop-nav {
  display: flex;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--soft);
  font-weight: 650;
  padding: 10px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: var(--cyan);
  transition: right 0.24s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 9px;
  background: #fff;
}

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

.mobile-nav.open {
  display: grid;
}

.spotlight {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.spotlight-slides {
  position: relative;
  min-height: calc(100vh - 76px);
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 420px);
  align-items: center;
  gap: 56px;
  width: 100%;
  padding: 86px max(32px, calc((100vw - 1240px) / 2)) 132px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.72s ease, transform 0.72s ease;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(2, 6, 23, 0.54) 100%),
    var(--spotlight-image) center / cover;
}

.spotlight-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.spotlight-layer {
  position: absolute;
  inset: auto 8% 8% auto;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 66%);
  filter: blur(10px);
}

.spotlight-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.page-hero span,
.slim-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spotlight h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.spotlight h2 {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 4vw, 4.4rem);
  line-height: 1.02;
}

.spotlight p,
.page-hero p,
.detail-copy .lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.18);
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.45);
}

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

.spotlight-poster {
  position: relative;
  z-index: 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.2);
}

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

.spotlight-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  width: min(920px, calc(100% - 32px));
  transform: translateX(-50%);
}

.spotlight-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(14px);
}

.spotlight-thumb.active {
  border-color: rgba(34, 211, 238, 0.66);
  background: rgba(30, 41, 59, 0.92);
}

.spotlight-thumb img {
  width: 42px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.spotlight-thumb span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  margin-top: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-panel h1,
.section-title h2,
.movie-article h2,
.category-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.intro-panel p,
.section-title p,
.category-card p,
.movie-article p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

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

.section-title a,
.text-link {
  color: var(--cyan);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.34s ease, opacity 0.34s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

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

.category-tile small {
  margin-top: 8px;
  color: var(--soft);
  line-height: 1.5;
}

.category-tile:hover img {
  opacity: 0.58;
  transform: scale(1.06);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
}

.filter-panel label,
.filter-panel .search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
  padding: 0 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

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

.dense-grid,
.rank-grid,
.category-movie-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(2, 8, 23, 0.28);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.46);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  background: #111827;
  transition: transform 0.36s ease;
}

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

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

.play-chip {
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  padding: 0 12px;
  color: white;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.22);
  backdrop-filter: blur(12px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, var(--gold));
  box-shadow: 0 14px 28px rgba(251, 191, 36, 0.2);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-line span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.75rem;
}

.movie-card h2 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.45;
}

.movie-card h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.76rem;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 250px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-color: rgba(34, 211, 238, 0.55) rgba(15, 23, 42, 0.72);
}

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

.movie-card.compact h2 {
  font-size: 1rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 82px max(32px, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78)),
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.18), transparent 26rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-top: 0;
}

.category-list {
  display: grid;
  gap: 20px;
}

.category-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
}

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

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

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

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

.detail-hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.78)),
    var(--detail-bg) center / cover;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 40%, rgba(34, 211, 238, 0.16), transparent 28rem);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  box-shadow: var(--shadow);
}

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

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

.large-tags span {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 0.86rem;
}

.scroll-play {
  margin-top: 28px;
}

.player-section {
  padding-top: 72px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: white;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.22);
}

.player-overlay strong {
  font-size: clamp(1.3rem, 3vw, 2.4rem);
}

.movie-article {
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
}

.movie-article h2 + p {
  margin-top: 12px;
}

.movie-article p + h2 {
  margin-top: 28px;
}

.site-footer {
  margin-top: 50px;
  padding: 52px max(32px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

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

.site-footer a,
.site-footer span {
  display: block;
  margin: 9px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--cyan);
}

.copyright {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.card-hidden {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .spotlight-slide {
    grid-template-columns: 1fr;
    padding-top: 62px;
  }

  .spotlight-poster {
    max-width: 310px;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-text small {
    display: none;
  }

  .spotlight,
  .spotlight-slides {
    min-height: auto;
  }

  .spotlight-slide {
    position: relative;
    display: none;
    min-height: 760px;
    padding: 44px 18px 172px;
  }

  .spotlight-slide.active {
    display: grid;
  }

  .spotlight h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(2rem, 12vw, 3.3rem);
    letter-spacing: -0.04em;
  }

  .spotlight h2 {
    font-size: clamp(1.5rem, 9vw, 2.6rem);
  }

  .spotlight-thumbs {
    grid-template-columns: repeat(2, 1fr);
    bottom: 18px;
  }

  .spotlight-thumb:nth-child(n+5) {
    display: none;
  }

  .intro-panel,
  .section-title,
  .detail-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

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

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

  .content-section {
    padding: 42px 0;
  }

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

@media (max-width: 480px) {
  .category-grid,
  .movie-grid,
  .dense-grid,
  .rank-grid,
  .category-movie-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-row {
    grid-auto-columns: minmax(190px, 82vw);
  }
}
