:root {
  color-scheme: dark;
  --site-bg: #020617;
  --site-card: #0f172a;
  --site-card-soft: #1e293b;
  --site-orange: #f97316;
  --site-orange-soft: #fb923c;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--site-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
}

.logo-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

.hero-slider {
  background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.2), transparent 30%), #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  transition: background 200ms ease, transform 200ms ease;
}

.hero-arrow:hover {
  background: rgba(249, 115, 22, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 200ms ease, background 200ms ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--site-orange);
}

.poster-frame {
  background: linear-gradient(135deg, rgba(15, 23, 42, 1), rgba(249, 115, 22, 0.16));
  overflow: hidden;
}

.poster-frame.is-missing-cover::before {
  content: attr(data-fallback-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 1), rgba(124, 45, 18, 0.78));
}

.movie-card {
  will-change: transform;
}

.movie-card.is-filtered-out {
  display: none;
}

.play-glyph {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.9);
  font-size: 1.25rem;
}

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

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #dc2626);
  color: #fff;
  padding: 1rem 1.75rem;
  font-weight: 800;
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.45);
}

.player-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.player-button-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-number {
  display: flex;
  width: 3rem;
  flex: 0 0 3rem;
  align-items: center;
  justify-content: center;
  color: var(--site-orange-soft);
  font-size: 1.75rem;
  font-weight: 900;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.back-to-top.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .hero-slider {
    height: 76vh;
  }

  .hero-slide h1 {
    font-size: 2.25rem;
  }

  .hero-meta {
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
  }

  .hero-arrow {
    display: none;
  }

  .ranking-row {
    flex-direction: column;
  }

  .ranking-row .rank-number {
    width: auto;
    justify-content: flex-start;
  }

  .ranking-row .w-48 {
    width: 100%;
  }
}

/* Additional utility classes used by the generated static pages. */
.bg-slate-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1));
}

.bg-opacity-10 {
  --tw-bg-opacity: 0.1;
}

.hover\:bg-opacity-20:hover {
  --tw-bg-opacity: 0.2;
}

.border-b {
  border-bottom-width: 1px;
}

.border-slate-800 {
  --tw-border-opacity: 1;
  border-color: rgb(30 41 59 / var(--tw-border-opacity, 1));
}

.items-end {
  align-items: flex-end;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
