:root {
  color-scheme: dark;
  --site-bg: #020617;
  --site-panel: #0f172a;
  --site-panel-soft: #111827;
  --site-border: #1e293b;
  --site-text: #f8fafc;
  --site-muted: #94a3b8;
  --site-dim: #64748b;
  --site-accent: #f59e0b;
  --site-accent-soft: rgba(245, 158, 11, 0.16);
  --site-danger: #ef4444;
  --site-radius: 1rem;
  --site-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.10), transparent 28rem),
    var(--site-bg);
  color: var(--site-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

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

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.22);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  color: var(--site-text);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo-subtitle {
  color: var(--site-muted);
  font-size: 0.72rem;
  margin-top: 0.12rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: var(--site-accent);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--site-accent);
  background: rgba(30, 41, 59, 0.55);
}

.mobile-nav {
  display: none;
  padding: 0 0 1rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.35rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: clamp(34rem, 72vh, 48rem);
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
  background: #020617;
}

.hero-track {
  position: relative;
  min-height: clamp(34rem, 72vh, 48rem);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
  transition: opacity 700ms ease, transform 900ms ease;
}

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

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.46);
  transform: scale(1.04);
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.46) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.14) 42%, rgba(2, 6, 23, 0.65) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 26rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: 6.5rem 0 5.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
  max-width: 12ch;
}

.hero-desc {
  color: #cbd5e1;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.85;
  max-width: 44rem;
  margin: 1.35rem 0 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.35rem 0 0;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.83rem;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.72rem 1.15rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.46);
  color: #fde68a;
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: transparent;
}

.btn-primary:hover {
  color: #111827;
  filter: brightness(1.05);
}

.hero-card {
  position: relative;
  border-radius: 1.45rem;
  padding: 0.75rem;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(245, 158, 11, 0.26);
  box-shadow: var(--site-shadow);
  transform: rotate(1.4deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.95);
}

.hero-card-caption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 1rem;
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-card-caption strong {
  display: block;
  font-size: 1.05rem;
}

.hero-card-caption span {
  display: block;
  margin-top: 0.25rem;
  color: #cbd5e1;
  font-size: 0.86rem;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 5;
  width: min(100% - 2rem, 80rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: inline-flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  font-size: 1.4rem;
}

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

.hero-dot.is-active {
  width: 2.2rem;
  background: var(--site-accent);
  border-color: transparent;
}

.hero-search {
  width: min(100% - 2rem, 80rem);
  margin: -2rem auto 3rem;
  position: relative;
  z-index: 8;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.25rem;
  box-shadow: var(--site-shadow);
  padding: 0.9rem;
  backdrop-filter: blur(16px);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.search-form input,
.filter-select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.78);
  color: #f8fafc;
  padding: 0 1rem;
  outline: none;
}

.search-form input:focus,
.filter-select:focus {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-kicker {
  color: var(--site-accent);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

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

.section-desc,
.page-desc {
  color: var(--site-muted);
  line-height: 1.75;
  margin: 0.55rem 0 0;
  max-width: 48rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
}

.movie-card,
.category-card,
.rank-panel,
.info-panel {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--site-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.movie-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.25);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

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

.card-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  font-size: 0.75rem;
  font-weight: 900;
}

.card-body {
  padding: 0.95rem;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 850;
}

.card-title a:hover {
  color: #fbbf24;
}

.card-meta {
  margin-top: 0.45rem;
  color: var(--site-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem 0.5rem;
}

.card-desc {
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0.65rem 0 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.75rem;
}

.card-tags .tag {
  min-height: 1.55rem;
  padding: 0.12rem 0.48rem;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12rem, 15.5rem);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x proximity;
}

.scroller .movie-card {
  scroll-snap-align: start;
}

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

.category-card {
  padding: 1.25rem;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% 25%;
  height: 9rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  filter: blur(30px);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  position: relative;
  font-size: 1.25rem;
}

.category-card p {
  color: var(--site-muted);
  margin: 0.65rem 0 0;
  line-height: 1.65;
  position: relative;
}

.category-card span {
  position: relative;
  color: #fbbf24;
  font-weight: 800;
  margin-top: 1rem;
}

.rank-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1rem;
}

.rank-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 4rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.09);
}

.rank-number {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-weight: 900;
}

.rank-thumb img {
  width: 4rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.55rem;
  background: #0f172a;
}

.rank-title {
  font-weight: 800;
}

.rank-title:hover {
  color: #fbbf24;
}

.rank-meta {
  color: var(--site-muted);
  font-size: 0.82rem;
  margin-top: 0.28rem;
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.45), transparent),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.12), transparent 28rem);
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--site-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.breadcrumbs a:hover {
  color: #fbbf24;
}

.filter-bar {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: transparent;
}

.movie-listing {
  padding: 2.5rem 0 4rem;
}

.no-results {
  display: none;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  padding: 3rem 0 2rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 41, 59, 0.72);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.08) brightness(0.35);
  transform: scale(1.08);
}

.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), #020617 92%);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 2rem;
  align-items: start;
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-summary {
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 56rem;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1.2rem;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--site-shadow);
}

.player-section {
  padding: 2.5rem 0 1rem;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--site-shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72)),
    rgba(2, 6, 23, 0.25);
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-button {
  width: clamp(4rem, 9vw, 6.5rem);
  height: clamp(4rem, 9vw, 6.5rem);
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 24px 64px rgba(245, 158, 11, 0.34);
  cursor: pointer;
}

.play-button svg {
  margin-left: 0.3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1.5rem;
  padding: 1.5rem 0 4rem;
}

.info-panel {
  padding: 1.4rem;
}

.info-panel h2,
.info-panel h3 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
}

.info-panel p {
  color: #cbd5e1;
  line-height: 1.85;
  margin: 0 0 1rem;
}

.meta-table {
  display: grid;
  gap: 0.7rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.7rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  padding-bottom: 0.65rem;
}

.meta-row span:first-child {
  color: var(--site-muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer {
  margin-top: auto;
  background: #020617;
  border-top: 1px solid var(--site-border);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer p {
  color: var(--site-muted);
  line-height: 1.75;
  margin: 0.8rem 0 0;
}

.footer h2,
.footer h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  color: var(--site-muted);
}

.footer-links a:hover {
  color: #fbbf24;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--site-dim);
  font-size: 0.9rem;
  text-align: center;
}

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-card {
    max-width: 18rem;
    margin-inline: auto;
  }

  .detail-poster {
    max-width: 18rem;
  }

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

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 1rem, 80rem);
  }

  .hero-carousel,
  .hero-track {
    min-height: 42rem;
  }

  .hero-grid {
    padding: 5rem 0 4.5rem;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 14vw, 3.7rem);
  }

  .hero-search {
    margin-top: -1.2rem;
  }

  .search-form,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-thumb img {
    width: 5.4rem;
  }

  .card-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .card-body {
    padding: 0.8rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .card-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
