html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f8fbff 100%);
  color: #0f172a;
}

body[data-page="index"] main {
  padding-top: 5rem;
}

.container-wide {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.16), transparent 18%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.12), transparent 16%),
    radial-gradient(circle at 60% 85%, rgba(255,255,255,0.12), transparent 22%);
  pointer-events: none;
}

.stars-background {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.4) 0 1px, transparent 2px);
  animation: drift 28s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-22px); }
}

.poster-tile {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  aspect-ratio: 2 / 3;
  isolation: isolate;
}

.poster-lg {
  min-height: 20rem;
}

.poster-sm {
  min-height: 13rem;
}

.poster-xs {
  min-height: 11rem;
}

.poster-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(15,23,42,0.08) 100%),
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 30%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.poster-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}

.poster-tile .poster-copy {
  position: relative;
  z-index: 1;
}

.movie-card,
.catalog-card {
  transform: translateY(0);
}

.movie-card:hover,
.catalog-card:hover {
  transform: translateY(-4px);
}

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

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

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

.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-shadow {
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.player-shell {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #312e81 55%, #7c3aed);
  box-shadow: 0 18px 45px rgba(15,23,42,0.18);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  color: white;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 42%),
    linear-gradient(180deg, rgba(15,23,42,0.1), rgba(15,23,42,0.55));
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.play-button {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: #7c3aed;
  font-size: 1.75rem;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  cursor: pointer;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.header-gradient {
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
}

.header-logo {
  background: linear-gradient(90deg, #fef08a 0%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
