:root {
  color-scheme: light;
  --site-amber: #f59e0b;
  --site-slate: #0f172a;
  --site-panel: #ffffff;
  --site-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8fafc;
  color: #1e293b;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.32);
  font-weight: 800;
}

.nav-link {
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #fcd34d;
  transform: translateY(-1px);
}

.mobile-panel {
  display: none;
}

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.24)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.12) 48%, rgba(2, 6, 23, 0.74));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  padding: 5rem 1rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.38);
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.hero-title {
  margin-top: 1.3rem;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-desc {
  margin-top: 1.25rem;
  max-width: 680px;
  color: #e2e8f0;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.85;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.85rem;
  padding: 0.85rem 1.35rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.24);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(245, 158, 11, 0.9);
}

.hero-control.prev {
  left: 1rem;
}

.hero-control.next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #f59e0b;
}

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

.section-eyebrow {
  color: #d97706;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.movie-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.movie-card img,
.detail-cover,
.rank-poster,
.category-poster {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.movie-card:hover h3 {
  color: #d97706;
}

.movie-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  color: #64748b;
  font-size: 0.78rem;
}

.movie-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.category-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
  border-color: #f59e0b;
}

.page-hero {
  background:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.25), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b 48%, #020617);
  color: #fff;
}

.filter-input,
.search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus,
.search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.rank-item {
  display: grid;
  grid-template-columns: auto 96px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fbbf24;
  font-weight: 900;
}

.rank-poster {
  width: 96px;
  height: 64px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 2rem;
}

.player-card {
  position: relative;
  background: #020617;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.3);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.18);
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

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

.play-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 16px 44px rgba(245, 158, 11, 0.36);
  font-size: 2rem;
  padding-left: 0.2rem;
}

.prose-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.related-list a {
  display: block;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-list a:hover {
  border-color: #f59e0b;
  transform: translateX(4px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.breadcrumbs {
  color: #64748b;
  font-size: 0.9rem;
}

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

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

@media (max-width: 900px) {
  .hero-carousel,
  .hero-content {
    min-height: 520px;
  }

  .hero-control {
    display: none;
  }

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

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

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

  .rank-item .btn-primary {
    grid-column: 1 / -1;
  }

  .rank-poster {
    width: 76px;
    height: 56px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.45rem;
  }

  .hero-copy {
    padding: 4rem 1rem 5rem;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
