/* Page-specific: home */

/* ── HERO ── */
    .hero {
      position: relative;
      min-height: 520px;
      display: flex;
      align-items: center;
      overflow: hidden;
      max-width: 100%;
      background: linear-gradient(135deg, #000000 0%, #050505 50%, #020202 100%);
    }

.hero-bg {
      position: absolute;
      inset: 0;
      background-image: url('../../spiderman-brandnewday.jpg');
      background-size: cover;
      background-position: center top;
      opacity: 1;
    }

.hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg,
          rgba(0, 0, 0, 0.85) 0%,
          rgba(0, 0, 0, 0.75) 35%,
          rgba(0, 0, 0, 0.5) 65%,
          rgba(0, 0, 0, 0) 100%);
    }

.hero-content {
      position: relative;
      z-index: 2;
      padding: 80px 60px;
      max-width: 560px;
    }

.hero-eyebrow {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      background: rgba(232, 73, 15, 0.15);
      border: 1px solid rgba(232, 73, 15, 0.3);
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 20px;
    }

.hero h1 {
      font-family: 'Syne', sans-serif;
      font-weight: 800;
      font-size: clamp(2rem, 4vw, 3.2rem);
      line-height: 1.08;
      letter-spacing: -0.03em;
      color: var(--white);
      margin-bottom: 18px;
    }

.hero h1 span {
      color: var(--accent);
    }

.hero p {
      color: var(--muted);
      font-size: 0.95rem;
      max-width: 400px;
      margin-bottom: 32px;
    }

.hero-btns {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

.btn-primary { background: var(--accent); color: white; border: none; padding: 12px 28px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232, 73, 15, 0.4); }

.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid var(--border); padding: 12px 28px; border-radius: 8px; cursor: pointer; font-size: 0.875rem; transition: all 0.2s; text-decoration: none; }

.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; }

/* Poster shown only via .hero-bg — keep .hero-poster hidden to avoid double image */
    .hero-poster {
      display: none;
    }

/* ── TOP RATED SPOTLIGHT (3 large cards, full width) ── */
.movies-section--spotlight {
  background: var(--black);
  scroll-margin-top: 80px;
}

.movies-section--spotlight .movies-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.movies-section--spotlight .movies-grid {
  display: grid;
  width: 100%;
}

/* Mobile/tablet: 2 per row — same as movies page (must override below desktop rule) */
@media (max-width: 900px) {
  .movies-section--spotlight .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 901px) {
  .movies-section--spotlight .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
  }

  .movies-section--spotlight .card-poster img {
    object-fit: cover;
    object-position: center top;
  }

  .movies-section--spotlight .poster-overlay {
    opacity: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 55%);
    transition: opacity 0.3s;
  }

  .movies-section--spotlight .movie-card:hover .poster-overlay {
    opacity: 1;
  }

  .movies-section--spotlight .movie-card:hover .card-poster img {
    transform: scale(1.04);
  }
}

/* ── SECTION SHARED ── */
    section {
      padding: 80px 60px;
    }

/* Home spotlight: same side padding as movies.html .movies-container */
@media (max-width: 900px) {
  section {
    padding: 52px 24px;
  }

  .movies-section--spotlight {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .movies-section--spotlight {
    padding: 24px 16px;
  }
}

.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: rgba(232, 73, 15, 0.15); border: 1px solid rgba(232, 73, 15, 0.3); padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }

/* ── FEATURED ── */
    .featured {
      display: grid;
      grid-template-columns: 1fr 420px;
      gap: 60px;
      align-items: center;
      background: var(--dark);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

.featured-info {
      padding-right: 20px;
    }

.featured-info h2 {
      font-family: 'Syne', sans-serif;
      font-weight: 800;
      font-size: clamp(1.8rem, 3vw, 2.6rem);
      letter-spacing: -0.03em;
      color: var(--white);
      margin-bottom: 16px;
      line-height: 1.1;
    }

.featured-info p {
      color: var(--muted);
      font-size: 0.9rem;
      line-height: 1.75;
      margin-bottom: 28px;
      max-width: 480px;
    }

.featured-meta {
      display: flex;
      gap: 20px;
      margin-bottom: 28px;
      font-size: 0.8rem;
    }

.meta-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid var(--border);
      padding: 5px 12px;
      border-radius: 20px;
    }

.meta-pill .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }

.featured-poster {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    }

.featured-poster img {
      width: 100%;
      display: block;
      aspect-ratio: 2/3;
      object-fit: cover;
    }

.featured-poster::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }


/* ── CTA BANNER ── */
    .cta-banner {
      margin: 0 60px 80px;
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      min-height: 260px;
      display: flex;
      align-items: center;
      background: linear-gradient(135deg, #1a2535 0%, #2a1540 40%, #3d1a10 100%);
    }

.cta-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 70% 50%, rgba(232, 73, 15, 0.25) 0%, transparent 65%),
        radial-gradient(ellipse at 30% 80%, rgba(100, 50, 200, 0.2) 0%, transparent 60%);
    }

.cta-content {
      position: relative;
      z-index: 1;
      padding: 52px 60px;
      max-width: 520px;
    }

.cta-content h2 {
      font-family: 'Syne', sans-serif;
      font-weight: 800;
      font-size: clamp(1.8rem, 3vw, 2.6rem);
      letter-spacing: -0.03em;
      line-height: 1.08;
      color: var(--white);
      margin-bottom: 12px;
    }

.cta-content p {
      color: rgba(232, 232, 240, 0.7);
      font-size: 0.9rem;
      margin-bottom: 30px;
    }

.cta-btns {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

.cta-visual {
      position: absolute;
      right: 60px;
      top: 50%;
      transform: translateY(-50%);
      width: 220px;
      height: 220px;
      pointer-events: none;
    }

/* Decorative 3D-ish blob */
    .blob {
      width: 220px;
      height: 220px;
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
      background: linear-gradient(135deg, #7c5cbf 0%, #e8490f 50%, #f5a623 100%);
      opacity: 0.8;
      animation: morph 8s ease-in-out infinite;
      filter: blur(0px);
    }

.blob-inner {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 140px;
      height: 140px;
      border-radius: 50% 40% 60% 30% / 50% 60% 40% 50%;
      background: linear-gradient(135deg, #4fc3f7 0%, #9c27b0 100%);
      opacity: 0.7;
      animation: morph 6s ease-in-out infinite reverse;
    }

@keyframes morph {

      0%,
      100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
      }

      33% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
      }

      66% {
        border-radius: 40% 60% 30% 60% / 30% 40% 70% 50%;
      }
    }

/* Home page — extra space above global footer */
body:has(.hero) #site-footer,
body:has(.hero) > footer {
  margin-top: 80px;
}

/* ── ANIMATIONS ── */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(24px);
      }

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

.hero-content>* {
      animation: fadeUp 0.6s ease both;
    }

.hero-content>*:nth-child(1) {
      animation-delay: 0.1s;
    }

.hero-content>*:nth-child(2) {
      animation-delay: 0.2s;
    }

.hero-content>*:nth-child(3) {
      animation-delay: 0.3s;
    }

.hero-content>*:nth-child(4) {
      animation-delay: 0.4s;
    }

.hero-content>*:nth-child(5) {
      animation-delay: 0.5s;
    }

@media (max-width: 900px) {
  .hero {
    min-height: 460px;
    align-items: flex-end;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.75) 45%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }

  .hero-content {
    padding: 48px 24px 56px;
    max-width: 100%;
  }

  .featured {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 24px;
  }

  .featured-info {
    padding-right: 0;
  }

  .featured-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .cta-banner {
    margin: 0 24px 52px;
    min-height: auto;
  }

  .cta-content {
    padding: 40px 28px;
    max-width: 100%;
  }

  .cta-visual {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 36px 16px 48px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .hero p {
    font-size: 0.875rem;
    margin-bottom: 24px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .featured {
    padding: 40px 16px;
  }

  .featured-info h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .cta-banner {
    margin: 0 16px 40px;
    border-radius: 16px;
  }

  .cta-content {
    padding: 32px 20px;
  }

  .cta-btns {
    flex-direction: column;
    width: 100%;
  }

  .cta-btns .btn-primary,
  .cta-btns .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .featured-poster {
    max-width: 200px;
    margin: 0 auto;
  }

  body:has(.hero) #site-footer,
  body:has(.hero) > footer {
    margin-top: 48px;
  }
}

