@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================================================
   1. CORE DESIGN SYSTEM (Bingeboom Ultra v4.0)
   ========================================================================== */
:root {
  /* Colors - Obsidian & Champagne Palette (Improved Contrast) */
  --bingeboom-obsidian: #000000;
  --bingeboom-charcoal: #0a0a0a;
  --bingeboom-charcoal-light: #121212;
  --bingeboom-gold-deep: #1e8449;
  --bingeboom-gold: #27ae60;
  --bingeboom-gold-bright: #2ecc71;
  --bingeboom-gold-gradient: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  --bingeboom-text-primary: #FFFFFF;
  --bingeboom-text-secondary: rgba(255, 255, 255, 0.7);
  --bingeboom-text-muted: rgba(255, 255, 255, 0.5);

  /* Alpha Variants for Glassmorphism */
  --bingeboom-gold-10: rgba(39, 174, 96, 0.1);
  --bingeboom-gold-20: rgba(39, 174, 96, 0.2);
  --bingeboom-gold-30: rgba(39, 174, 96, 0.3);
  --bingeboom-white-05: rgba(255, 255, 255, 0.05);
  --bingeboom-white-10: rgba(255, 255, 255, 0.1);
  --bingeboom-white-20: rgba(255, 255, 255, 0.2);

  /* Backgrounds */
  --bingeboom-bg-primary: #000000;
  --bingeboom-bg-secondary: #0a0a0a;
  --bingeboom-bg-card: rgba(20, 20, 20, 0.4);
  --bingeboom-bg-glass: rgba(0, 0, 0, 0.95);

  /* Glass Effects */
  --bingeboom-glass-blur: blur(25px);
  --bingeboom-glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --bingeboom-glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

  /* Spacing System (Apple-like 8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-8: 80px;
  --space-10: 120px;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Animations */
  --transition-apple: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bingeboom-bg-primary);
  color: #FAFAFA;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button,
input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
.h1,
.h2,
.h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  color: #FFFFFF;
}

.text-gradient {
  background: var(--bingeboom-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  opacity: 1;
}

.text-muted {
  color: var(--bingeboom-text-secondary);
}

/* ==========================================================================
   4. LAYOUT & CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section-padding {
  padding: var(--space-10) 0;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.p-relative {
  position: relative;
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  border: 1px solid transparent;
  /* Ensure border box sizing consistency */
}

.btn-primary {
  background: var(--bingeboom-gold-gradient);
  color: #000;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--bingeboom-glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: none;
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--bingeboom-gold);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.btn-outline:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

/* --- Cards --- */
.card-ultra {
  background: var(--bingeboom-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: var(--bingeboom-glass-blur);
  transition: var(--transition-smooth);
}

.card-ultra:hover {
  transform: translateY(-10px);
  border-color: var(--bingeboom-gold-30);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--bingeboom-glass-shadow);
}

.card-img-responsive {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #000;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   6. NAVIGATION (Slide-out Drawer)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: var(--bingeboom-glass-blur);
  border-bottom: 1px solid var(--bingeboom-white-05);
  padding: 0.5rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header__logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.header__nav {
  flex: 2;
  display: flex;
  justify-content: center;
}

.header__actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.header__logo img {
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  /* Removed drop-shadow to fix contrast issues on dark bg */
  transition: var(--transition-fast);
}

.header.scrolled .header__logo img {
  max-height: 40px;
}

.header__nav ul {
  display: flex;
  gap: 3rem;
}

.header__nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--bingeboom-gold);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bingeboom-gold-gradient);
  transition: var(--transition-smooth);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__mobile-toggle {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 3000;
}

.header__mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bingeboom-gold);
  position: absolute;
  left: 0;
  transition: var(--transition-smooth);
}

.header__mobile-toggle span:nth-child(1) {
  top: 0;
}

.header__mobile-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.header__mobile-toggle span:nth-child(3) {
  bottom: 0;
}

.header__mobile-toggle.active span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}

.header__mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__mobile-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: rotate(-45deg) translateY(50%);
}

/* Mobile Menu Overlay */
@media (max-width: 1024px) {
  .header__mobile-toggle {
    display: block;
  }

  .header__nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bingeboom-obsidian);
    border-left: 1px solid var(--bingeboom-gold-20);
    padding: 8rem 2rem;
    transition: var(--transition-smooth);
    visibility: hidden;
  }

  .header__nav.active {
    right: 0;
    visibility: visible;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
  }

  .header__nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  .header__nav a {
    font-size: 1.5rem;
    width: 100%;
    display: block;
  }

  .header__actions {
    display: none !important;
  }

  .mobile-only-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Increased gap */
    margin-top: 3rem;
    /* Increased top margin */
    width: 100%;
    align-items: flex-start;
    position: relative;
    /* Ensure stacking context */
    z-index: 10;
  }

  .mobile-only-actions .btn {
    width: auto;
    min-width: 140px;
    padding: 10px 24px;
    font-size: 0.85rem;
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .mobile-only-actions {
    display: none !important;
  }
}

/* ==========================================================================
   7. HERO & CAROUSEL
   ========================================================================== */
.hero-ultra {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, var(--bingeboom-gold-10) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.carousel-ultra {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--bingeboom-gold-20);
  background: var(--bingeboom-bg-secondary);
  position: relative;
}

.carousel__poster {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: brightness(0.6);
  transition: var(--transition-smooth);
}

.carousel__slide:hover .carousel__poster {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.carousel__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 3rem;
  background: linear-gradient(transparent, rgba(5, 5, 5, 0.95));
  text-align: left;
}

/* ==========================================================================
   8. FOOTER REDESIGN (Classy & Modern)
   ========================================================================== */
.footer-ultra {
  padding: 8rem 0 4rem;
  background: var(--bingeboom-bg-primary);
  border-top: 1px solid var(--bingeboom-white-05);
  position: relative;
  overflow: hidden;
}

.footer-ultra::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bingeboom-gold-30), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer__brand p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--bingeboom-text-secondary);
  max-width: 320px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bingeboom-gold);
  margin-bottom: 2rem;
}

.footer__link {
  display: block;
  font-size: 0.95rem;
  color: var(--bingeboom-text-secondary);
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.footer__link:hover {
  color: #FFFFFF;
  transform: translateX(5px);
}

.footer__bottom {
  padding-top: 3rem;
  border-top: 1px solid var(--bingeboom-white-05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__copyright {
  font-size: 0.85rem;
  color: var(--bingeboom-text-muted);
}

.footer__legal {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__legal a {
  font-size: 0.85rem;
  color: var(--bingeboom-text-muted);
  transition: var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--bingeboom-gold);
}

/* ==========================================================================
   9. UTILITIES
   ========================================================================== */
.py-20 {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-xl {
  max-width: 600px;
}

.shadow-gold {
  box-shadow: 0 0 40px var(--bingeboom-gold-10);
}

/* --- Utility Classes --- */
.text-gold {
  color: var(--bingeboom-gold-bright) !important;
}

.text-white {
  color: #FFFFFF !important;
}

.w-full {
  width: 100% !important;
}

.text-center {
  text-align: center !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mb-6 {
  margin-bottom: 1.5rem !important;
}

.mb-8 {
  margin-bottom: 2rem !important;
}

.mb-10 {
  margin-bottom: 2.5rem !important;
}

.mb-12 {
  margin-bottom: 3rem !important;
}

.mb-16 {
  margin-bottom: 4rem !important;
}

.flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.gap-4 {
  gap: 1rem !important;
}

.gap-6 {
  gap: 1.5rem !important;
}

/* --- Badge Alignment & Styling --- */
.badge-gold {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--bingeboom-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.badge-gold:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.1);
}

/* ==========================================================================
   10. LEGAL PAGES
   ========================================================================== */
.legal-page {
  padding: 10rem 0 6rem;
}

.legal-content h1 {
  margin-bottom: 3rem;
  text-align: center;
}

.legal-section {
  margin-bottom: 3.5rem;
  background: var(--bingeboom-bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--bingeboom-white-05);
  backdrop-filter: var(--bingeboom-glass-blur);
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--bingeboom-gold);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--bingeboom-gold-10);
  padding-bottom: 0.5rem;
}

.legal-section h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 1rem;
}

.legal-section p,
.legal-section li {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1.5rem;
}

.last-updated {
  text-align: center;
  color: var(--bingeboom-gold-30);
  font-size: 0.8rem;
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .legal-section {
    padding: 1.5rem;
  }
}


/* ==========================================================================
   13. MOBILE FIXES
   ========================================================================== */
/* CTA Card default styles (Desktop) */
.cta-card-responsive {
  padding: 64px;
  gap: 64px;
}

@media (min-width: 1025px) {
  .desktop-left {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .desktop-center {
    text-align: center !important;
    align-items: center !important;
  }
}

@media (max-width: 1024px) {
  .header__inner {
    padding: 1rem;
  }

  .header__logo img {
    height: 36px;
  }

  .header.scrolled .header__logo img {
    height: 32px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-ultra {
    padding: 4rem 0 2rem;
  }

  .footer__brand p {
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  /* CTA Card Mobile */
  .cta-card-responsive {
    padding: 2rem !important;
    gap: 2rem !important;
  }

  /* Adjust grid gap for all grids on mobile */
  .grid {
    gap: 24px !important;
  }

  /* Hero Carousel Text */
  .carousel__info {
    padding: 2rem 1.5rem;
  }

  .carousel__info h2 {
    font-size: 2rem;
  }

  .carousel__poster {
    height: auto !important;
    aspect-ratio: 16/9;
  }

  .card-img-responsive {
    height: auto !important;
    aspect-ratio: 2/3;
  }
}/* ==========================================================================
   14. LIBRARY & MOVIE CARDS
   ========================================================================== */
.library-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.card-movie {
    background: var(--bingeboom-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-movie:hover {
    transform: translateY(-8px);
    border-color: var(--bingeboom-gold-30);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--bingeboom-glass-shadow);
}

.card-movie__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    /* Aspect ratio 2:3 */
    overflow: hidden;
    background: #000;
}

.card-movie__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-movie:hover .card-movie__img {
    transform: scale(1.05);
}

.card-movie__content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-movie__title {
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-movie:hover .card-movie__title {
    color: var(--bingeboom-gold-bright);
}

.card-movie__meta {
    color: var(--bingeboom-text-secondary);
    font-size: 0.85rem;
    margin-top: auto;
}
