/* ==========================================================================
   BABALOO STUDIOS - GLOBAL STYLES & DESIGN SYSTEM
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --color-bg-deep: hsl(160, 50%, 4%);
  /* Deep Jungle Black */
  --color-bg-panel: hsla(160, 45%, 7%, 0.7);
  /* Glassmorphic Panel BG */
  --color-bg-card: hsla(160, 35%, 10%, 0.8);
  /* Solid card dark */

  /* Vibrant Studio Accents */
  --color-primary: hsl(14, 100%, 63%);
  /* Sunset Papaya Orange */
  --color-primary-hover: hsl(14, 100%, 55%);
  --color-secondary: hsl(172, 80%, 45%);
  /* Sea Foam Teal */
  --color-accent: hsl(45, 100%, 63%);
  /* Sand Gold */
  --color-accent-glow: hsla(45, 100%, 63%, 0.3);

  /* Text and Interface */
  --color-text-main: hsl(160, 20%, 94%);
  /* Soft White-Green */
  --color-text-muted: hsl(160, 10%, 65%);
  /* Muted Sage */
  --color-border: hsla(160, 30%, 30%, 0.2);
  /* Forest border */
  --color-border-glow: hsla(172, 80%, 45%, 0.4);

  /* Shadow & Glow Effects */
  --glow-primary: 0 0 25px hsla(14, 100%, 63%, 0.35);
  --glow-secondary: 0 0 25px hsla(172, 80%, 45%, 0.3);
  --glow-accent: 0 0 30px hsla(45, 100%, 63%, 0.4);
  --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.6);

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transition durations */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: hsla(160, 30%, 25%, 0.8);
  border-radius: 10px;
  border: 2px solid var(--color-bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Ambient Backlight Glow Elements */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.18;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--color-secondary);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .ambient-glow {
    max-width: 100vw;
    left: 0 !important;
    right: 0 !important;
  }
}

.glow-3 {
  width: 450px;
  height: 450px;
  background: var(--color-accent);
  bottom: 0;
  right: -100px;
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   BUTTONS SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  gap: 0.5rem;
  box-shadow: var(--shadow-premium);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: hsl(160, 50%, 2%);
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px hsla(14, 100%, 63%, 0.5), var(--glow-accent);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary-glow {
  background: hsla(172, 80%, 45%, 0.15);
  border: 1px solid var(--color-secondary);
  color: var(--color-text-main);
}

.btn-primary-glow:hover {
  background: var(--color-secondary);
  color: hsl(160, 50%, 2%);
  box-shadow: var(--glow-secondary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-secondary), hsl(172, 70%, 35%));
  color: hsl(160, 50%, 2%);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px hsla(172, 80%, 45%, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid hsla(160, 20%, 94%, 0.25);
  color: var(--color-text-main);
}

.btn-outline:hover {
  background: hsla(160, 20%, 94%, 0.08);
  border-color: var(--color-text-main);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: hsla(160, 50%, 3%, 0.75);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--color-text-main);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.logo-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.brand-logo .highlight {
  color: var(--color-secondary);
  font-weight: 400;
}

.babaloo-logo {
  font-family: 'Noto Serif', serif;
  font-stretch: extra-condensed;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
  font-size: 1.5rem;
}

.babaloo-logo .logo-red {
  color: #d5d5d5;
  font-weight: 150;
}

.babaloo-logo .logo-yellow {
  color: rgb(255, 255, 255);
  font-weight: 100;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION (Featured Movie)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem 5rem 2rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

/* Background overlay simulating cinematic dusk */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 40%, hsla(160, 40%, 12%, 0.15) 0%, var(--color-bg-deep) 75%);
  z-index: -1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-details {
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.hero-details.transitioning {
  transform: translateY(20px);
  opacity: 0;
}

.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: hsla(45, 100%, 63%, 0.12);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.8rem;
  background: linear-gradient(to right, #ffffff, hsl(160, 20%, 94%), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta i {
  color: var(--color-accent);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2.8rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero-cta-group .price-tag {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  font-size: 0.85rem;
}

/* Poster Card Styling */
.hero-poster-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.hero-poster-wrapper.transitioning {
  transform: scale(0.95) rotateY(10deg);
  opacity: 0;
}

/* Hero Carousel Controls & Dots Styling */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(2, 14, 10, 0.45);
  border: 1px solid rgba(38, 166, 154, 0.2);
  color: var(--color-text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-nav-btn:hover {
  background: rgba(38, 166, 154, 0.25);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(38, 166, 154, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-btn.prev {
  left: 2.5rem;
}

.hero-nav-btn.next {
  right: 2.5rem;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  background: var(--color-secondary);
  box-shadow: 0 0 12px rgba(38, 166, 154, 0.4);
  transform: scale(1.2);
  width: 26px;
  /* Pill-shaped indicator */
  border-radius: 6px;
}

@media (max-width: 768px) {
  .hero-nav-btn {
    display: none;
    /* Hide arrow navigation on small mobile viewports */
  }
}

.poster-card-premium {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 2/3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(38, 166, 154, 0.15);
  border: 1px solid hsla(160, 30%, 40%, 0.2);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.poster-card-premium:hover {
  transform: rotateY(-8deg) rotateX(4deg) scale(1.03);
}

.poster-img-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.5);
  display: block;
}

/* Gloss reflection effect */
.poster-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

/* ==========================================================================
   CATALOGUE SECTION
   ========================================================================== */
.catalogue-section {
  padding: 6rem 2rem;
  background-color: hsla(160, 50%, 2%, 0.95);
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 2;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  background: linear-gradient(to right, #ffffff, hsl(160, 20%, 80%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Film Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

/* Responsive: single column on small screens */
@media (max-width: 640px) {
  .movies-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Catalogue Pagination Controls */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pagination-controls .btn {
  min-width: 90px;
}

.page-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}


.movie-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(38, 166, 154, 0.1);
}

.movie-poster-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: hsl(160, 50%, 2%);
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.movie-card:hover .movie-poster {
  transform: scale(1.08);
}

/* Play button overlay on card */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 14, 10, 0.45);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.movie-poster-container:hover .card-overlay {
  opacity: 1;
}

.play-overlay-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: none;
  color: hsl(160, 50%, 2%);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: var(--transition-smooth);
}

.play-overlay-btn:hover {
  transform: scale(1.15);
  background-color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.badge-genre {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: hsla(160, 50%, 3%, 0.85);
  backdrop-filter: blur(5px);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.movie-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.movie-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.movie-card-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.movie-card-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-accent);
}

.movie-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.movie-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.movie-card-excerpt {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* ==========================================================================
   STUDIO MANIFESTO SECTION
   ========================================================================== */
.studio-section {
  padding: 8rem 2rem;
  background: linear-gradient(180deg, hsla(160, 50%, 2%, 0.95) 0%, hsla(160, 50%, 4%, 1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.studio-container {
  max-width: 1000px;
  width: 100%;
}

.studio-content-card {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 4rem 3.5rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-premium), 0 0 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.studio-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
}

.studio-subtitle {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.studio-title {
  font-size: 2.5rem;
  margin-bottom: 1.8rem;
  background: linear-gradient(to right, #ffffff, var(--color-text-main));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.studio-text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.manifesto-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3.5rem;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  min-width: 120px;
}

.badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: hsla(172, 80%, 45%, 0.12);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(38, 166, 154, 0.15);
  transition: var(--transition-smooth);
}

.badge-item:hover .badge-icon {
  transform: rotate(360deg) scale(1.1);
  background-color: var(--color-secondary);
  color: hsl(160, 50%, 2%);
  box-shadow: var(--glow-secondary);
}

.badge-item span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: hsl(160, 60%, 2%);
  border-top: 1px solid var(--color-border);
  padding: 5rem 2rem 2.5rem 2rem;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 1.5rem 0;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsla(160, 20%, 94%, 0.05);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid var(--color-border);
}

.social-link:hover {
  background-color: var(--color-primary);
  color: hsl(160, 50%, 2%);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   NATIVE DIALOG / OVERLAYS & MODALS
   ========================================================================== */
.modal-dialog {
  border: none;
  background: transparent;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  outline: none;
}

/* Stylized Modern Modal Box */
.modal-wrapper {
  background: hsla(160, 45%, 6%, 0.95);
  border: 1px solid hsla(160, 30%, 40%, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(38, 166, 154, 0.1);
  overflow: hidden;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Styling native dialog open state backdrop */
dialog::backdrop {
  background-color: rgba(3, 14, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background-color: hsla(160, 20%, 94%, 0.08);
  color: var(--color-primary);
}

/* VIDEO PLAYER DIALOG CUSTOMS */
.video-modal {
  width: 900px;
}

.video-container-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

/* Ambient glow reflecting behind the screen */
.video-ambient-backlight {
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--color-secondary);
  filter: blur(80px);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.modal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--color-border);
  background-color: rgba(0, 0, 0, 0.2);
}

.video-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ==========================================================================
   CHECKOUT DIALOG CUSTOMS (Stripe Simulation)
   ========================================================================== */
.checkout-modal {
  width: 500px;
}

.checkout-body {
  padding: 2.2rem;
}

.purchase-summary-card {
  background-color: hsla(160, 30%, 40%, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.summary-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-movie-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.2rem 0;
}

.summary-specs {
  display: flex;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.purchase-price-badge {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.purchase-price-badge .currency {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.purchase-price-badge .price-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

/* Form Styles */
.stripe-mock-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.input-wrapper input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  background-color: hsla(160, 45%, 3%, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition-fast);
  outline: none;
}

.input-wrapper input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(38, 166, 154, 0.2);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 0.6rem;
}

.secure-checkout-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  justify-content: center;
  margin: 0.5rem 0;
}

.secure-checkout-notice i {
  color: var(--color-secondary);
}

.btn-payment {
  position: relative;
}

.spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Success State Styles */
.checkout-success-body {
  padding: 3rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-animation {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: hsla(172, 80%, 45%, 0.12);
  color: var(--color-secondary);
  font-size: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--glow-secondary);
  animation: popScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popScale {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 360px;
}

/* Ticket Artifact */
.ticket-premium {
  width: 100%;
  background: linear-gradient(135deg, hsla(160, 40%, 15%, 0.95) 0%, hsla(160, 30%, 10%, 0.95) 100%);
  border: 1.5px dashed var(--color-secondary);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.ticket-stub-left {
  border-right: 1px dashed hsla(160, 20%, 94%, 0.15);
  padding-right: 1rem;
}

.ticket-logo {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

.ticket-movie-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.3rem 0;
  color: #fff;
}

.ticket-history-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Fix Plyr Fullscreen Fallback */
.plyr--fullscreen-fallback {
  z-index: 99999 !important;
  background: #000 !important;
}

body.plyr-fullscreen-active .main-header {
  display: none !important;
}

.ticket-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.ticket-stub-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 1rem;
}

.ticket-code {
  font-size: 2.2rem;
  color: var(--color-accent);
}

.ticket-access {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
  text-align: center;
}

.success-action-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
}

/* Hidden Utility */
.hidden {
  display: none !important;
}

/* ==========================================================================
   USER AUTHENTICATION MODAL CUSTOMS
   ========================================================================== */
.user-auth-modal {
  width: 460px;
}

.auth-prompt-notice {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: hsla(45, 100%, 63%, 0.12);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-border);
}

.auth-prompt-notice i {
  font-size: 1.2rem;
}

.auth-toggle-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.auth-toggle-link a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.auth-toggle-link a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.user-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-right: 1.2rem;
  background: hsla(45, 100%, 63%, 0.06);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  border: 1px solid hsla(45, 100%, 63%, 0.15);
}

.user-welcome-badge i {
  color: var(--color-secondary);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-details {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-poster-wrapper {
    order: -1;
    /* Place poster on top on mobile */
  }

  .poster-card-premium {
    max-width: 320px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand .footer-desc {
    margin: 1.5rem auto;
  }

  .social-links {
    justify-content: center;
  }
}

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

  .hero-tagline {
    font-size: 1.1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-cta-group {
    width: 100%;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .studio-content-card {
    padding: 3rem 1.5rem;
  }

  .manifesto-badges {
    gap: 1.8rem;
  }

  .purchase-summary-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .purchase-price-badge {
    align-items: center;
  }

  .ticket-premium {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .ticket-stub-left {
    border-right: none;
    border-bottom: 1px dashed hsla(160, 20%, 94%, 0.15);
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .ticket-stub-right {
    padding-left: 0;
  }
}

/* ==========================================================================
   MIS COMPRAS MODAL STYLES
   ========================================================================== */

.purchases-modal .modal-wrapper {
  min-height: 320px;
}

/* Loading spinner state */
.purchases-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.purchases-loading i {
  font-size: 2rem;
  color: var(--color-secondary);
}

/* Empty state */
.purchases-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.purchases-empty i {
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.6;
}

.purchases-empty h4 {
  font-size: 1.2rem;
  color: var(--color-text-main);
  font-family: var(--font-display);
}

.purchases-empty p {
  font-size: 0.9rem;
  max-width: 28ch;
  line-height: 1.6;
}

/* Purchases list */
.purchases-list {
  padding: 0 0.5rem 0.5rem;
}

.purchases-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  padding: 0 0.5rem;
}

.purchases-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Individual purchase item card */
.purchase-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  background: hsla(160, 30%, 10%, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  transition: var(--transition-fast);
}

.purchase-item:hover {
  border-color: var(--color-border-glow);
  background: hsla(160, 30%, 12%, 0.7);
}

.purchase-item-poster {
  grid-row: 1 / 3;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: hsla(14, 100%, 63%, 0.15);
  border: 1px solid hsla(14, 100%, 63%, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.3rem;
}

.purchase-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.purchase-item-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.purchase-item-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.purchase-item-price {
  grid-row: 1 / 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-accent);
  text-align: right;
}

.purchase-item-badge {
  grid-column: 2 / 4;
  font-size: 0.72rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

/* btn-secondary style (used for Mis Compras button in header) */
.btn-secondary {
  background: hsla(172, 80%, 45%, 0.15);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 0 12px hsla(172, 80%, 45%, 0.15);
}

.btn-secondary:hover {
  background: hsla(172, 80%, 45%, 0.25);
  box-shadow: var(--glow-secondary);
  transform: translateY(-1px);
}

/* ==========================================================================
   PLYR VIDEO PLAYER CUSTOM OVERRIDES (Babaloo Studios premium theme)
   ========================================================================== */
:root {
  --plyr-color-main: var(--color-secondary);
  /* Babaloo Studios Teal (#26a69a) */
  --plyr-video-background: #000000;
  --plyr-video-control-background-hover: hsla(172, 80%, 45%, 0.2);
  --plyr-control-radius: 8px;
  --plyr-tooltip-background: hsla(160, 45%, 6%, 0.95);
  --plyr-tooltip-color: #ffffff;
  --plyr-font-family: 'Inter', sans-serif;
}

.plyr {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-premium), 0 0 40px rgba(38, 166, 154, 0.15);
  border: 1px solid hsla(172, 80%, 45%, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
}

.plyr:hover {
  box-shadow: var(--shadow-premium), 0 0 50px rgba(38, 166, 154, 0.25);
}

/* Make sure the player controls look elegant on dark backgrounds */
.plyr__control--overlaid {
  background: rgba(38, 166, 154, 0.9) !important;
  color: #030e0a !important;
}

.plyr__control--overlaid:hover {
  background: rgba(13, 252, 159, 1) !important;
  box-shadow: var(--glow-accent) !important;
}

.plyr__controls {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85)) !important;
  padding: 1.5rem 1rem 1rem 1rem !important;
}

/* ==========================================================================
   ADVERTISEMENT & SPONSOR SLOTS (Premium Glassmorphic Layouts)
   ========================================================================== */
.ad-banner-section {
  padding: 2.5rem 2rem 0 2rem;
  background: linear-gradient(180deg, hsla(160, 50%, 3%, 0.75) 0%, hsla(160, 50%, 2%, 0.95) 100%);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ad-banner-container {
  max-width: 1200px;
  width: 100%;
}

.ad-banner-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(38, 166, 154, 0.15);
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  gap: 2rem;
}

.ad-banner-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(38, 166, 154, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.ad-banner-glass:hover::before {
  transform: translateX(100%);
}

.ad-banner-glass:hover {
  border-color: rgba(38, 166, 154, 0.4);
  box-shadow: 0 12px 50px rgba(38, 166, 154, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.ad-badge {
  position: absolute;
  top: 0;
  left: 30px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: hsl(160, 50%, 2%);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(38, 166, 154, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ad-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-grow: 1;
}

.ad-banner-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: hsla(172, 80%, 45%, 0.1);
  border: 1px solid rgba(38, 166, 154, 0.2);
  color: var(--color-secondary);
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(38, 166, 154, 0.1);
}

.ad-banner-text h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.ad-banner-text p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 700px;
}

.ad-banner-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Sponsored Movie Grid Card */
.ad-card-premium {
  border: 1px solid rgba(255, 179, 0, 0.15);
  /* Gold outline */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, var(--color-bg-panel) 100%) !important;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ad-card-premium:hover {
  border-color: rgba(255, 179, 0, 0.4) !important;
  box-shadow: var(--shadow-premium), 0 0 30px rgba(255, 179, 0, 0.15) !important;
}

.ad-card-banner {
  height: 240px;
  background: linear-gradient(135deg, hsla(45, 100%, 15%, 0.4) 0%, hsla(45, 100%, 6%, 0.9) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-badge-card {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, var(--color-accent), #ffa000);
  color: #030e0a;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(255, 179, 0, 0.25);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ad-card-visual {
  font-size: 4rem;
  color: rgba(255, 179, 0, 0.25);
  filter: drop-shadow(0 0 20px rgba(255, 179, 0, 0.1));
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .ad-banner-glass {
    flex-direction: column;
    text-align: center;
    padding: 2.2rem 1.5rem 1.8rem 1.5rem;
    gap: 1.5rem;
  }

  .ad-badge {
    left: 50%;
    transform: translateX(-50%);
  }

  .ad-banner-content {
    flex-direction: column;
    gap: 1rem;
  }

  .ad-banner-text p {
    max-width: 100%;
  }

  .ad-banner-cta {
    width: 100%;
  }
}

/* Interactive Coupon Badges & Copy Animations */
.ad-banner-coupon-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.ad-banner-coupon-wrapper .coupon-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.ad-coupon-badge {
  background: hsla(45, 100%, 63%, 0.05);
  border: 1px dashed rgba(255, 179, 0, 0.4);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  color: var(--color-accent);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ad-coupon-badge:hover {
  background: hsla(45, 100%, 63%, 0.12);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(255, 179, 0, 0.2);
  transform: scale(1.03);
}

.ad-coupon-badge:active {
  transform: scale(0.97);
}

.ad-coupon-badge .copy-icon {
  font-size: 0.78rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.ad-coupon-badge:hover .copy-icon {
  opacity: 1;
}

/* Microscopic checkmark animation */
.ad-coupon-badge.copied {
  background: hsla(172, 80%, 45%, 0.1) !important;
  border-color: var(--color-secondary) !important;
  color: var(--color-secondary) !important;
  border-style: solid !important;
  box-shadow: 0 0 15px rgba(38, 166, 154, 0.3) !important;
}

/* Grid card specific coupon code styling */
.ad-card-coupon-box {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ad-card-coupon-box .coupon-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ad-card-coupon-box .ad-coupon-badge {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   CLICKABLE DISPLAY AD PLACEMENTS (Leaderboard & Under-Player Ads)
   ========================================================================== */
body.has-leaderboard {
  padding-top: 106px;
  /* Offsets content dynamically using padding-top for fixed elements */
}

@media (max-width: 768px) {
  body.has-leaderboard {
    padding-top: 66px;
    /* Adjusted spacing for scaled banners on mobile devices */
  }
}

/* Default state: Fixed at the very top of the screen */
.leaderboard-ad-section {
  position: fixed;
  top: 0;
  left: 0;
  height: 106px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: hsla(160, 50%, 2%, 0.85);
  border-bottom: 1px solid rgba(38, 166, 154, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  width: 100%;
  z-index: 102;
  /* Pinned above standard header */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

body.has-leaderboard .main-header {
  top: 106px;
  /* Shift fixed header below the fixed leaderboard banner */
}

@media (max-width: 768px) {
  body.has-leaderboard .main-header {
    top: 66px;
    /* Shift on mobile viewports */
  }
}

.leaderboard-ad-section a {
  display: block;
  max-width: 728px;
  width: 100%;
  aspect-ratio: 728 / 90;
  max-height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(38, 166, 154, 0.25);
  box-shadow: 0 0 15px rgba(38, 166, 154, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaderboard-ad-section.has-video-ad {
  position: relative;
  height: auto;
  max-height: 200px;
  padding: 1rem 1.5rem;
}

body.has-leaderboard.has-video-ad {
  padding-top: 0;
}

body.has-leaderboard.has-video-ad .main-header {
  top: 0;
}

.leaderboard-ad-section.has-video-ad a {
  aspect-ratio: auto;
  max-height: 200px;
  width: auto;
  height: 100%;
  display: flex;
  position: relative;
}

.leaderboard-ad-section a:hover {
  transform: scale(1.015);
  border-color: rgba(38, 166, 154, 0.6);
  box-shadow: 0 0 25px rgba(38, 166, 154, 0.4);
}

.leaderboard-ad-section img,
.leaderboard-ad-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating pinned visual state for scroll-down actions */
body.has-leaderboard.scrolled-ad {
  padding-bottom: 96px;
  /* Spacing cushion to make bottom page contents fully scrollable above ad */
}

body.has-leaderboard.scrolled-ad .main-header {
  top: 0;
  /* Header slides smoothly back to the top of viewport */
}

.leaderboard-ad-section.scrolled-ad {
  position: fixed;
  bottom: 0;
  top: auto;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1000;
  border-top: 1px solid rgba(38, 166, 154, 0.25);
  border-bottom: none;
  background: hsla(160, 50%, 2%, 0.95);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  padding: 0.4rem 1.5rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: slideUpAd 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpAd {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.theater-ad-section {
  margin: 1.2rem auto 0 auto;
  max-width: 468px;
  width: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(244, 143, 177, 0.25);
  /* Elegant hot-pink borders matching user-experience badging */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.theater-ad-section a {
  display: block;
  width: 100%;
  aspect-ratio: 468 / 60;
  max-height: 60px;
  transition: all 0.3s ease;
}

.theater-ad-section.has-video-ad a {
  aspect-ratio: auto;
  max-height: 180px;
  /* High quality viewable video under playboard without overlapping content */
}

.theater-ad-section a:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(244, 143, 177, 0.25);
}

.theater-ad-section img,
.theater-ad-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theater-ad-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.theater-ad-close:hover {
  background: #f48fb1;
  color: #000;
  border-color: #f48fb1;
}

/* ==========================================================================
   LEGAL HUB & COMPLIANCE PAGES
   ========================================================================== */
.legal-page {
  background-color: var(--color-bg-deep);
}

.legal-hero {
  padding: 8rem 2rem 4rem 2rem;
  background: linear-gradient(180deg, rgba(14, 100, 63, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
  text-align: center;
  position: relative;
  z-index: 2;
}

.legal-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.legal-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--color-text-main), var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-tagline {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.legal-layout-section {
  padding: 2rem 2rem 6rem 2rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .legal-layout-section {
    padding: 1rem 1rem 4rem 1rem;
  }
}

.legal-layout-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 991px) {
  .legal-layout-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.legal-sidebar {
  position: sticky;
  top: 100px;
}

@media (max-width: 991px) {
  .legal-sidebar {
    position: relative;
    top: 0;
  }
}

.legal-sidebar-glass {
  background: var(--color-bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-premium);
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.legal-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition-smooth);
  width: 100%;
}

.legal-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-main);
}

.legal-nav-item.active {
  background: rgba(172, 80, 45, 0.08);
  border-color: rgba(172, 80, 45, 0.2);
  color: var(--color-secondary);
  box-shadow: inset 0 0 10px rgba(172, 80, 45, 0.05);
}

.nav-item-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: var(--transition-fast);
}

.legal-nav-item.active .nav-item-icon {
  color: var(--color-secondary);
}

.legal-content-container {
  background: var(--color-bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-premium);
  min-height: 500px;
}

@media (max-width: 768px) {
  .legal-content-container {
    padding: 2rem 1.5rem;
  }
}

.legal-pane {
  display: none;
  animation: legalFadeIn 0.4s ease forwards;
}

.legal-pane.active {
  display: block;
}

@keyframes legalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane-heading {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-text-main), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pane-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pane-body {
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--color-text-main);
}

.pane-body p {
  margin-bottom: 1.5rem;
}

.pane-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.pane-body ul {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pane-body ul li strong {
  color: var(--color-secondary);
}

.pane-body blockquote {
  background: rgba(14, 100, 63, 0.05);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.warning-alert {
  color: var(--color-primary);
}

.pane-body a {
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-secondary);
  transition: var(--transition-fast);
}

.pane-body a:hover {
  color: var(--color-accent);
  border-bottom-style: solid;
}

/* ==========================================================================
   CONTACT SECTION & OUTREACH FORM
   ========================================================================== */
.contact-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(14, 100, 63, 0.08) 100%);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-glass {
  background: var(--color-bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .contact-form-glass {
    padding: 2rem 1.5rem;
  }
}

.contact-grid-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.contact-grid-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-grid-form label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.contact-grid-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.contact-grid-form .input-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.contact-grid-form input,
.contact-grid-form textarea {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3.0rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.contact-grid-form textarea {
  resize: vertical;
}

.contact-grid-form input:focus,
.contact-grid-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(172, 80, 45, 0.15);
}

.contact-grid-form input:focus+.input-icon,
.contact-grid-form textarea:focus+.input-icon {
  color: var(--color-secondary);
}

.textarea-wrapper {
  align-items: flex-start !important;
}

.textarea-wrapper .input-icon {
  top: 1.1rem;
}

/* Success Card Aesthetics */
.contact-success-card {
  text-align: center;
  padding: 2rem 1rem;
  animation: contactSuccessSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes contactSuccessSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon-wrapper {
  font-size: 4rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px hsla(172, 80, 45, 0.4));
  animation: pulseScale 2s infinite ease-in-out;
}

@keyframes pulseScale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.contact-success-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text-main), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-success-card p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

/* ==========================================================================
   MOBILE HAMBURGER MENU & FULLSCREEN DRAWER  (Senior-Friendly)
   ========================================================================== */
.menu-toggle-btn {
  display: none;
}

.menu-toggle-label {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: hsla(160, 30%, 20%, 0.25);
    border: 1px solid hsla(160, 20%, 94%, 0.15);
    border-radius: 50px;
    padding: 0.6rem 1.2rem 0.6rem 0.9rem;
    cursor: pointer;
    z-index: 200;
    transition: var(--transition-smooth);
  }

  .menu-toggle-btn:hover,
  .menu-toggle-btn:active {
    background: hsla(160, 30%, 20%, 0.45);
    border-color: var(--color-secondary);
  }

  .menu-toggle-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    position: relative;
  }

  .hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-smooth);
    border-radius: 2px;
  }

  /* Animate to X cross */
  .menu-toggle-btn.active {
    background: hsla(14, 100%, 63%, 0.15);
    border-color: var(--color-primary);
  }

  .menu-toggle-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: var(--color-primary);
  }

  .menu-toggle-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
  }

  .menu-toggle-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: var(--color-primary);
  }

  /* Fullscreen Overlay Nav Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: hsla(160, 50%, 3%, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    z-index: 150;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    border-bottom: 1px solid var(--color-border);
    padding: 2rem;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-main);
    padding: 1rem 2rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    border-radius: 14px;
    background: hsla(160, 30%, 12%, 0.25);
    border: 1px solid transparent;
    transition: var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-secondary);
    background: hsla(172, 80%, 45%, 0.08);
    border-color: hsla(172, 80%, 45%, 0.2);
  }

  .nav-link::after {
    display: none;
  }

  .header-actions {
    display: none !important;
  }

  /* Mobile session container inside the overlay menu */
  .mobile-only-session {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 340px;
  }

  .mobile-only-session .user-welcome-badge {
    font-size: 1.05rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: inline-block;
  }

  .mobile-only-session .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .mobile-only-session {
    display: none !important;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE OVERRIDES
   ========================================================================== */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .movies-grid {
    gap: 2rem;
  }

  .header-container {
    padding: 1rem 1.5rem;
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

  /* Header */
  .header-container {
    padding: 0.9rem 1.2rem;
  }

  .brand-logo {
    font-size: 1.1rem;
    white-space: normal;
    gap: 0;
  }

  .babaloo-logo {
    display: inline-block;
    text-align: left;
    line-height: 1.1;
  }

  /* Hero — stack vertically, poster below text */
  .hero-section {
    padding: 6rem 1.2rem 3rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-poster-wrapper {
    order: -1;
    /* poster on top */
    max-width: 240px;
    margin: 0 auto;
  }

  .poster-card-premium {
    max-width: 220px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .hero-meta {
    justify-content: center;
    gap: 1rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

  /* Catalogue */
  .catalogue-section {
    padding: 3.5rem 1.2rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  /* Movie cards — single column on mobile */
  .movies-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Pagination */
  .pagination-controls {
    gap: 0.7rem;
  }

  .pagination-controls .btn {
    min-width: 70px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* Movie card internals */
  .movie-card-title {
    font-size: 1rem;
  }

  .movie-card-excerpt {
    display: none;
    /* reclaim space on mobile */
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .poster-card-premium {
    max-width: 180px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .catalogue-section {
    padding: 2.5rem 1rem;
  }

  .btn {
    font-size: 0.88rem;
    padding: 0.7rem 1.3rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .badge-featured {
    font-size: 0.72rem;
    padding: 0.3rem 0.8rem;
  }

  .movie-card-meta {
    font-size: 0.78rem;
  }
}


/* Skeleton Shimmer Loaders */
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, var(--color-bg-panel) 100%) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-premium) !important;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-shimmer {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.02) 25%,
      rgba(255, 255, 255, 0.07) 50%,
      rgba(255, 255, 255, 0.02) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s infinite linear;
  border-radius: 4px;
}

.skeleton-poster {
  width: 100%;
  height: 240px;
  border-radius: 12px 12px 0 0;
}

.skeleton-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skeleton-title {
  height: 1.3rem;
  width: 75%;
}

.skeleton-meta {
  height: 0.85rem;
  width: 50%;
  margin-bottom: 0.4rem;
}

.skeleton-excerpt {
  height: 2.8rem;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.skeleton-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skeleton-btn {
  height: 38px;
  flex: 1;
  border-radius: 8px;
}

.movie-poster.hidden {
  display: none !important;
}