:root {
  --site-amber: #d97706;
  --site-orange: #f97316;
  --site-dark: #111827;
  --site-muted: #6b7280;
  --site-cream: #fffbeb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #111827;
}

.site-header {
  backdrop-filter: blur(12px);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 30px rgb(217 119 6 / 0.25);
}

.hero-carousel {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fff7ed 42%, #fde68a);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
  transform: scale(1.02);
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgb(251 191 36 / 0.38), transparent 32%),
    linear-gradient(90deg, rgb(255 251 235 / 0.98) 0%, rgb(255 251 235 / 0.86) 45%, rgb(255 251 235 / 0.28) 100%);
}

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

.hero-poster-stack {
  position: absolute;
  right: 8%;
  bottom: 8%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(42vw, 520px);
  z-index: 2;
}

.hero-mini-card {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgb(15 23 42 / 0.22);
  border: 1px solid rgb(255 255 255 / 0.55);
  transform: translateY(var(--offset, 0));
  background: #fffbeb;
}

.hero-mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d97706;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.movie-card {
  height: 100%;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.movie-card:hover {
  transform: translateY(-0.35rem);
}

.cover-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.cover-frame.cover-fallback::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #92400e;
  font-weight: 800;
  line-height: 1.35;
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
}

.ranking-number {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 800;
  box-shadow: 0 12px 30px rgb(217 119 6 / 0.25);
}

.player-shell {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 25px 80px rgb(2 6 23 / 0.35);
}

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

.player-start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: rgb(245 158 11 / 0.92);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 80px rgb(245 158 11 / 0.45);
  transition: transform 180ms ease, background 180ms ease;
}

.player-start:hover {
  transform: scale(1.06);
  background: rgb(234 88 12 / 0.95);
}

.player-start.is-hidden {
  display: none;
}

.player-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  border-radius: 0.9rem;
  background: rgb(15 23 42 / 0.72);
  color: #fef3c7;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  backdrop-filter: blur(8px);
}

.search-panel {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgb(217 119 6 / 0.12);
}

.search-input,
.filter-select {
  width: 100%;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  outline: none;
  background: #fffbeb;
  color: #111827;
}

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

.breadcrumb a {
  color: #d97706;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #78350f);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(17 24 39 / 0.95), rgb(17 24 39 / 0.62), rgb(120 53 15 / 0.7));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.mobile-menu[hidden] {
  display: none;
}

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

  .hero-poster-stack {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    padding: 0 1rem 2rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .player-start {
    width: 6.5rem;
    height: 6.5rem;
  }
}

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

  .hero-poster-stack {
    gap: 0.65rem;
  }

  .site-header .brand-text {
    font-size: 1.1rem;
  }
}
