
:root {
  --bg: #08101f;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --brand: #22d3ee;
  --brand-2: #3b82f6;
  --brand-3: #8b5cf6;
  --shadow: 0 20px 70px rgba(2, 8, 23, 0.5);
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #091424 40%, #050913 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button, input, select {
  font: inherit;
}

.page-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 28px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 16, 31, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.28);
  color: white;
  font-weight: 800;
}

.site-brand__text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.site-brand__text span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: white;
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  color: white;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 10px 8px 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.56)),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 25%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.2), transparent 22%);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero__head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.hero__copy h1 {
  margin: 12px 0 12px;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__copy p {
  color: var(--soft);
  max-width: 62ch;
  font-size: 1.03rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.11);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #bff7ff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.25);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.65);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero__feature {
  display: grid;
  gap: 16px;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.66);
}

.hero-slide {
  display: none;
  gap: 18px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 360px;
  padding: 20px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.45s ease;
}

.hero-slide__copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: 0.88rem;
}

.hero-meta span,
.chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-slide__copy p {
  color: var(--soft);
  margin-top: 16px;
}

.hero-slide__art,
.detail-poster {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.24), transparent 18%),
    radial-gradient(circle at 80% 28%, rgba(255,255,255,0.16), transparent 15%),
    linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.hero-slide__art::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.46)),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.14), transparent 25%);
}

.hero-art__label,
.hero-art__year,
.detail-poster__kicker,
.detail-poster__year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
}

.hero-slide__art strong,
.detail-poster__title {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  font-weight: 800;
  text-shadow: 0 12px 34px rgba(2, 6, 23, 0.35);
}

.hero-slide__art span:last-child,
.detail-poster__meta {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255,255,255,0.88);
  margin-top: 14px;
}

.detail-poster__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.section {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 16, 31, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.section__head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.section__more {
  color: #c6f7ff;
  font-size: 0.92rem;
}

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

.chip--soft {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  color: var(--soft);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.26);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.32);
}

.movie-card__art {
  position: relative;
  display: block;
  min-height: 240px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.22), transparent 14%),
    linear-gradient(135deg, var(--g1), var(--g2) 58%, var(--g3));
}

.movie-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.08), rgba(2,6,23,0.52));
}

.movie-card__badge,
.movie-card__year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
}

.movie-card__year {
  float: right;
  margin-right: 0;
}

.movie-card__title,
.movie-card__meta {
  position: relative;
  z-index: 1;
}

.movie-card__title {
  margin-top: 56px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 8px 26px rgba(2, 6, 23, 0.3);
}

.movie-card__meta {
  margin-top: 10px;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
}

.movie-card__shine {
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
}

.movie-card__body {
  padding: 14px 16px 16px;
}

.movie-card__summary {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-bar {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.7fr));
  margin-bottom: 16px;
}

.search-box,
.select-box {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.42);
  color: var(--text);
  padding: 0 14px;
}

.search-box::placeholder {
  color: #7c8aa5;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--soft);
}

.tab.is-active {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.22);
  color: white;
}

.detail-top {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 20px;
}

.detail-panel {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 31, 0.72);
  box-shadow: var(--shadow);
}

.detail-panel h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-summary {
  color: var(--soft);
}

.player-wrap {
  display: grid;
  gap: 14px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #020617;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-actions .btn {
  min-height: 42px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.breadcrumb a {
  color: #c6f7ff;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
}

.story-card h3 {
  margin: 0 0 10px;
}

.story-card p {
  margin: 0;
  color: var(--soft);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 800;
}

.rank-main strong {
  display: block;
  margin-bottom: 3px;
}

.rank-main span {
  color: var(--muted);
  font-size: 0.88rem;
}

.rank-score {
  color: #c6f7ff;
  font-weight: 700;
}

.search-panel {
  display: grid;
  gap: 14px;
}

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

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 22px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--soft);
}

.pagination a.is-active {
  background: rgba(34, 211, 238, 0.12);
  color: white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 20px 6px 8px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 16, 31, 0.82);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.note {
  color: var(--muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero__head,
  .hero-slide,
  .detail-top,
  .story-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .section,
  .detail-panel {
    padding: 18px;
    border-radius: 22px;
  }

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

  .site-footer {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-score {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(var(--max), calc(100% - 20px));
  }

  .movie-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

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

  .hero-slide__art,
  .detail-poster {
    min-height: 260px;
  }

  .detail-poster__title,
  .hero-slide__art strong {
    font-size: 2rem;
  }
}
