:root {
  --bg: #020617;
  --bg-2: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-2: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #94a3b8;
  --accent: #10b981;
  --accent-2: #f97316;
  --accent-3: #c084fc;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28%),
    linear-gradient(180deg, #020617 0%, #050816 30%, #0b1020 100%);
  color: var(--text);
  font-family: Inter, PingFang SC, Hiragino Sans GB, Microsoft YaHei, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select {
  font: inherit;
}
.container {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.68);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand__mark {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand__sub {
  font-size: 0.76rem;
  color: var(--muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(148, 163, 184, 0.12);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  background: rgba(15, 23, 42, 0.8);
}
.hero {
  position: relative;
  padding: 30px 0 24px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 640px;
  background:
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.18), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(192, 132, 252, 0.15), transparent 24%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}
.hero-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-copy {
  padding: 34px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
}
.hero-title {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero-title span {
  display: block;
  color: #a7f3d0;
}
.hero-desc {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.search-bar input {
  flex: 1;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  color: white;
  outline: none;
}
.search-bar input::placeholder {
  color: #64748b;
}
.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;
  cursor: pointer;
  transition: 0.22s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #032018;
  background: linear-gradient(135deg, #86efac, #34d399);
}
.btn-secondary {
  color: white;
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.18);
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.stat strong {
  display: block;
  font-size: 1.28rem;
}
.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-carousel {
  position: relative;
  min-height: 520px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(12px);
}
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}
.hero-slide__inner {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-slide__visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.hero-slide__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.82));
}
.hero-slide__overlay h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}
.hero-slide__overlay p {
  margin: 0 0 14px;
  color: #cbd5e1;
}
.hero-slide__bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(2, 6, 23, 0.9);
}
.hero-slide__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.8rem;
}
.section {
  padding: 10px 0 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 0 0 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  min-width: 0;
}
.movie-card__link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 10px 35px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.movie-card__link:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(17, 24, 39, 0.96);
}
.movie-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(249,115,22,.12));
}
.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.movie-card__badge,
.detail-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.76rem;
  backdrop-filter: blur(14px);
}
.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(16,185,129,.22), transparent 20%),
    radial-gradient(circle at 80% 0%, rgba(249,115,22,.18), transparent 20%),
    linear-gradient(160deg, #0f172a, #020617);
}
.poster-fallback__year {
  font-size: 0.85rem;
  color: #a7f3d0;
}
.poster-fallback__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.poster-fallback--small {
  font-size: 0.9rem;
}
.movie-card__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.movie-card__meta,
.detail-meta,
.rank-row__meta,
.detail-info__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}
.movie-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.movie-card__text,
.rank-row__content p,
.detail-summary,
.detail-review {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.category-card h3 {
  margin: 0 0 8px;
}
.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
}
.category-card .count {
  color: #a7f3d0;
  font-size: 0.9rem;
}
.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin: 0 0 18px;
}
.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  color: white;
  outline: none;
}

input[data-page-filter] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  color: white;
  outline: none;
}

.results-info {
  margin: 0 0 16px;
  color: var(--muted);
}
.ranking-list {
  display: grid;
  gap: 12px;
}
.rank-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.rank-num {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(249,115,22,.16));
  color: #fff;
  font-weight: 800;
}
.rank-row__link {
  flex: 1;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  min-width: 0;
}
.rank-row__poster {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: rgba(255,255,255,0.04);
}
.rank-row__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-row__content h3 {
  margin: 0 0 8px;
}
.detail-top {
  padding: 26px 0 14px;
}
.detail-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}
.detail-poster,
.detail-main {
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow);
}
.detail-poster {
  overflow: hidden;
}
.detail-poster__img {
  position: relative;
  aspect-ratio: 2 / 3;
}
.detail-poster__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-poster__info {
  padding: 18px;
}
.detail-main {
  padding: 26px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.detail-title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.08;
}
.detail-subtitle {
  margin: 0 0 18px;
  color: #cbd5e1;
}
.detail-summary,
.detail-review {
  white-space: pre-line;
}
.detail-sections {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.detail-block {
  padding: 18px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.detail-block h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.player {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.player video {
  width: 100%;
  max-height: 72vh;
  background: #000;
}
.player-ui {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(2,6,23,0), rgba(2,6,23,0.88));
}
.player-ui__note {
  color: #e2e8f0;
  font-size: 0.88rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.related-card {
  min-width: 0;
}
.related-card a {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.related-card .movie-card__poster {
  aspect-ratio: 2 / 3;
}
.related-card .movie-card__body {
  padding: 12px;
}
.page-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 1200px) {
  .card-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-shell,
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .hero-carousel {
    min-height: auto;
  }
  .detail-poster {
    max-width: 520px;
  }
}
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: var(--shadow);
  }
  .site-nav.open {
    display: flex;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero-stats,
  .filter-bar,
  .card-grid,
  .related-grid,
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .rank-row__link {
    grid-template-columns: 86px 1fr;
  }
  .page-controls,
  .footer-inner,
  .section-head {
    flex-direction: column;
    align-items: start;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1380px);
  }
  .card-grid,
  .overview-grid,
  .related-grid,
  .hero-stats,
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .rank-row,
  .rank-row__link {
    grid-template-columns: 1fr;
  }
  .rank-num {
    width: 38px;
    height: 38px;
  }
  .detail-main,
  .detail-poster__info,
  .hero-copy,
  .hero-slide__overlay,
  .hero-slide__bottom {
    padding-left: 16px;
    padding-right: 16px;
  }
}
