:root {
  color-scheme: dark;
  --site-bg: #050914;
  --site-panel: rgba(15, 23, 42, 0.78);
  --site-panel-solid: #101827;
  --site-line: rgba(125, 211, 252, 0.16);
  --site-text: #f8fafc;
  --site-muted: #94a3b8;
  --site-accent: #0ea5e9;
  --site-accent-strong: #0284c7;
  --site-warm: #f59e0b;
  --site-radius: 22px;
  --site-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--site-text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
    radial-gradient(circle at 82% 6%, rgba(34, 211, 238, 0.12), transparent 28rem),
    linear-gradient(180deg, #050914 0%, #08111f 42%, #050914 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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.12);
  background: rgba(5, 9, 20, 0.84);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #0284c7 58%, #0f172a);
  box-shadow: 0 12px 34px rgba(14, 165, 233, 0.32);
}

.logo-title {
  display: block;
  font-size: 1.18rem;
  line-height: 1.1;
}

.logo-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--site-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a {
  padding: 9px 4px;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
}

.header-search {
  flex: 0 1 260px;
}

.search-input,
.filter-input,
.filter-select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  color: #ffffff;
  outline: none;
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(14, 165, 233, 0.78);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
}

.mobile-nav a {
  display: block;
  padding: 11px 4px;
  color: #e2e8f0;
}

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

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 34px;
  background: #07111f;
  box-shadow: var(--site-shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: opacity 800ms ease, transform 1000ms ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 48px));
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 0 88px 44px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  color: #cbd5e1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0284c7);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(226, 232, 240, 0.18);
  background: rgba(15, 23, 42, 0.74);
}

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

.hero-dots {
  position: absolute;
  left: 44px;
  bottom: 36px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: #38bdf8;
}

.section {
  margin-top: 52px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--site-muted);
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(15, 23, 42, 0.92);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.14), rgba(15, 23, 42, 0.92));
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

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

.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 132, 199, 0.88);
  font-size: 0.75rem;
  font-weight: 900;
}

.card-score {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(250, 204, 21, 0.92);
  font-size: 0.75rem;
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.card-line {
  margin: 10px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card,
.info-panel,
.rank-row,
.detail-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--site-radius);
  background: var(--site-panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.20);
}

.category-card {
  padding: 20px;
  min-height: 160px;
  transition: transform 180ms ease, border-color 180ms ease;
}

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

.category-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(150px, 0.4fr));
  gap: 12px;
  margin: 22px 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 76px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.rank-num {
  color: #38bdf8;
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  width: 76px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.9);
}

.rank-title {
  margin: 0;
  font-size: 1.08rem;
}

.rank-desc {
  margin: 8px 0 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.rank-heat {
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f172a;
  background: #facc15;
  font-weight: 900;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: #bae6fd;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--site-shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.detail-info {
  padding: 30px;
}

.detail-title {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.detail-one-line {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.06rem;
  line-height: 1.85;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.detail-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.54);
  font-size: 0.86rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--site-shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.24), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #0284c7);
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.34);
  font-size: 2rem;
  transform: translateX(3px);
}

.prose-box {
  padding: 28px;
}

.prose-box h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.prose-box p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.9;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #94a3b8;
}

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

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

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

  .detail-hero {
    grid-template-columns: 280px 1fr;
  }
}

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

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

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

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

  .hero-content {
    padding: 34px 0 82px 26px;
  }

  .hero-dots {
    left: 26px;
  }

  .section-head {
    display: block;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 64px 1fr;
  }

  .rank-cover {
    width: 64px;
    height: 88px;
  }

  .rank-heat {
    grid-column: 3;
    width: fit-content;
  }

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

  .detail-poster img {
    min-height: 0;
    max-height: 620px;
  }

  .footer-inner {
    display: block;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .page-main,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .hero-slider {
    border-radius: 24px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-content {
    width: calc(100% - 30px);
    padding-left: 18px;
  }

  .hero-dots {
    left: 18px;
  }
}
