/* CineFlex Hero Engine 2.0 */
.banner {
  isolation: isolate;
  min-height: clamp(620px, 84vh, 940px) !important;
  overflow: hidden;
  background-position: center 18% !important;
  background-size: cover !important;
}
.banner::before {
  background:
    linear-gradient(90deg, rgba(2,5,12,.98) 0%, rgba(2,5,12,.78) 34%, rgba(2,5,12,.18) 70%, rgba(2,5,12,.42) 100%),
    linear-gradient(0deg, var(--bg, #05070b) 0%, transparent 48%) !important;
  z-index: 4 !important;
}
.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg, #05070b));
}
.banner-content {
  width: min(760px, 88vw);
  padding-top: clamp(90px, 14vh, 160px) !important;
  padding-bottom: 110px !important;
  transform: translateY(14px);
  opacity: 0;
}
.banner.cf-hero-ready .banner-content {
  animation: cfHeroContentIn .62s cubic-bezier(.2,.75,.25,1) forwards;
}
@keyframes cfHeroContentIn { to { opacity: 1; transform: translateY(0); } }
.cf-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .18em;
  color: #d9f9ff;
  text-shadow: 0 0 18px rgba(0,229,255,.34);
}
.cf-hero-eyebrow .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dff98;
  box-shadow: 0 0 0 5px rgba(45,255,152,.13), 0 0 18px rgba(45,255,152,.8);
}
#banner-title {
  max-width: 760px;
  font-size: clamp(2.85rem, 7vw, 6.6rem) !important;
  line-height: .88 !important;
  letter-spacing: -.065em !important;
  margin: 0 0 18px !important;
  text-wrap: balance;
}
.cf-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin: 0 0 15px;
  color: rgba(255,255,255,.86);
  font-size: .92rem;
  font-weight: 750;
}
.cf-hero-meta .match { color: #2dff98; }
.cf-hero-meta .age {
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 4px;
}
.cf-hero-meta i { color: #ffd45c; }
#banner-desc {
  max-width: 670px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65 !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.95);
}
.hero-meta-strip { display: none !important; }
.banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 23px;
}
.banner-buttons button {
  min-height: 48px;
  padding: 0 22px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .2s ease, filter .2s ease, background .2s ease !important;
}
.banner-buttons button:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); }
.cf-hero-mylist {
  color: #fff;
  background: rgba(15,20,31,.58);
}
.cf-hero-mylist.active {
  background: rgba(45,255,152,.16);
  border-color: rgba(45,255,152,.45) !important;
  color: #b7ffdb;
}
.cf-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 1.1s ease;
}
.cf-hero-video.active { opacity: .34; }
.cf-hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,5,12,.82), transparent 75%), linear-gradient(0deg, rgba(2,5,12,.8), transparent 55%);
}
.cf-hero-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.28);
  filter: saturate(.9) contrast(1.08) brightness(.72);
}
.cf-hero-nav {
  position: absolute;
  right: clamp(18px, 4vw, 65px);
  bottom: 78px;
  z-index: 10;
  display: flex;
  gap: 9px;
}
.cf-hero-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(7,10,18,.55);
  color: #fff;
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.cf-hero-dots {
  position: absolute;
  left: 5%;
  bottom: 42px;
  z-index: 10;
  display: flex;
  gap: 7px;
}
.cf-hero-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.cf-hero-dots button.active { width: 26px; background: #fff; }
.cf-hero-progress {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 24px;
  z-index: 10;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  overflow: hidden;
}
.cf-hero-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #8f5cff, #ff4f9a);
  box-shadow: 0 0 18px rgba(0,229,255,.65);
}
@keyframes cfHeroSprintProgress { from { width: 0; } to { width: 100%; } }
@media (max-width: 760px) {
  .banner { min-height: 78vh !important; background-position: 62% center !important; }
  .banner::before { background: linear-gradient(0deg, var(--bg, #05070b) 0%, rgba(2,5,12,.7) 45%, rgba(2,5,12,.2) 100%) !important; }
  .banner-content { width: 91vw; padding-top: 30vh !important; padding-bottom: 112px !important; }
  #banner-title { font-size: clamp(2.45rem, 13vw, 4.35rem) !important; }
  #banner-desc { -webkit-line-clamp: 2; font-size: .9rem !important; }
  .cf-hero-video { display: none; }
  .cf-hero-nav { right: 16px; bottom: 66px; }
  .cf-hero-nav button { width: 38px; height: 38px; }
  .cf-hero-dots { left: 18px; bottom: 47px; }
  .cf-hero-progress { left: 18px; right: 18px; bottom: 29px; }
  .banner-buttons button { min-height: 45px; padding: 0 16px !important; font-size: .86rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-content, .cf-hero-video, .cf-hero-progress span { animation: none !important; transition: none !important; }
  .banner-content { opacity: 1; transform: none; }
}

/* =========================================================
   CINEFLEX BUILD 8.1 — CLEAN LOWER HERO DETAILS
   Keeps the artwork open while anchoring copy near the bottom.
   ========================================================= */
.banner {
  align-items: stretch !important;
  padding-bottom: 0 !important;
}

.banner-content {
  position: absolute !important;
  left: clamp(22px, 5vw, 78px) !important;
  bottom: clamp(92px, 11vh, 132px) !important;
  z-index: 8 !important;
  width: min(650px, 72vw) !important;
  max-width: 650px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Softer lower readability layer; the upper artwork remains unobstructed. */
.banner-fade {
  height: 52% !important;
  top: auto !important;
  bottom: 0 !important;
  z-index: 5 !important;
  background: linear-gradient(
    to top,
    rgba(5, 7, 11, .98) 0%,
    rgba(5, 7, 11, .78) 32%,
    rgba(5, 7, 11, .28) 68%,
    transparent 100%
  ) !important;
  pointer-events: none;
}

/* Remove the heavy full-height dark veil from the image area. */
.banner::before {
  background:
    linear-gradient(90deg, rgba(2,5,12,.76) 0%, rgba(2,5,12,.30) 38%, rgba(2,5,12,.04) 75%, rgba(2,5,12,.12) 100%),
    linear-gradient(0deg, rgba(5,7,11,.78) 0%, transparent 48%) !important;
}

.banner-content h1,
#banner-title {
  margin-bottom: 12px !important;
}

#banner-desc {
  margin-bottom: 14px !important;
  max-width: 590px !important;
  line-height: 1.48 !important;
}

.banner-buttons {
  margin-top: 15px !important;
}

@media (max-width: 760px) {
  .banner {
    min-height: 76vh !important;
    background-position: 64% 22% !important;
  }

  .banner-content {
    left: 18px !important;
    right: 18px !important;
    bottom: 98px !important;
    width: auto !important;
    max-width: none !important;
  }

  .hero-kicker {
    margin-bottom: 9px !important;
    padding: 6px 10px !important;
    font-size: .67rem !important;
  }

  #banner-title {
    font-size: clamp(2rem, 10.8vw, 3.45rem) !important;
    line-height: .92 !important;
    margin-bottom: 9px !important;
  }

  #banner-desc {
    -webkit-line-clamp: 2 !important;
    font-size: .84rem !important;
    line-height: 1.4 !important;
    margin-bottom: 9px !important;
  }

  .banner-buttons {
    margin-top: 10px !important;
    gap: 8px !important;
  }

  .banner-buttons button {
    min-height: 42px !important;
    padding: 0 14px !important;
  }

  .banner-fade {
    height: 57% !important;
  }

  .cf-hero-nav {
    bottom: 48px !important;
  }

  .cf-hero-dots {
    bottom: 31px !important;
  }

  .cf-hero-progress {
    bottom: 17px !important;
  }
}

@media (max-width: 390px) {
  .banner-content { bottom: 92px !important; }
  .hero-kicker { display: none !important; }
  #banner-desc { -webkit-line-clamp: 1 !important; }
}

/* =========================================================
   CINEFLEX BUILD 8.5 — TITLE-ONLY CLICKABLE HERO
   The artwork stays clean. Clicking/tapping the backdrop opens
   the existing CineFlex details modal.
   ========================================================= */
.cf-title-only-hero {
  cursor: pointer !important;
  min-height: clamp(600px, 86vh, 940px) !important;
}
.cf-title-only-hero:focus-visible {
  outline: 3px solid rgba(84, 224, 255, .95);
  outline-offset: -5px;
}
.cf-title-only-hero .banner-content {
  left: clamp(22px, 5vw, 78px) !important;
  bottom: clamp(102px, 12vh, 145px) !important;
  width: min(880px, 86vw) !important;
  max-width: 880px !important;
  pointer-events: none;
}
.cf-title-only-hero #banner-title {
  max-width: 880px !important;
  margin: 0 !important;
  font-size: clamp(3rem, 8vw, 7.25rem) !important;
  line-height: .9 !important;
  letter-spacing: -.055em !important;
  text-shadow: 0 5px 28px rgba(0,0,0,.98), 0 1px 2px rgba(0,0,0,1) !important;
}
.cf-title-only-hero #banner-desc,
.cf-title-only-hero .cf-hero-meta,
.cf-title-only-hero .hero-meta-strip,
.cf-title-only-hero .banner-buttons,
.cf-title-only-hero .cf-hero-eyebrow,
.cf-title-only-hero .cf-hero-video {
  display: none !important;
}
.cf-title-only-hero::before {
  background:
    linear-gradient(90deg, rgba(2,5,12,.62) 0%, rgba(2,5,12,.18) 42%, rgba(2,5,12,.02) 78%),
    linear-gradient(0deg, rgba(5,7,11,.92) 0%, rgba(5,7,11,.18) 42%, transparent 68%) !important;
}
.cf-title-only-hero .banner-fade {
  height: 38% !important;
  background: linear-gradient(to top, rgba(5,7,11,.98), rgba(5,7,11,.28) 62%, transparent) !important;
}
.cf-title-only-hero.cf-hero-opening::after {
  content: "Opening details…";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(4,7,13,.72);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.cf-title-only-hero .cf-hero-nav,
.cf-title-only-hero .cf-hero-dots,
.cf-title-only-hero .cf-hero-progress {
  pointer-events: auto;
}
@media (max-width: 760px) {
  .cf-title-only-hero {
    min-height: 80vh !important;
    background-position: center 18% !important;
  }
  .cf-title-only-hero .banner-content {
    left: 18px !important;
    right: 18px !important;
    bottom: 112px !important;
    width: auto !important;
  }
  .cf-title-only-hero #banner-title {
    max-width: 92vw !important;
    font-size: clamp(2.65rem, 14vw, 5.15rem) !important;
    line-height: .92 !important;
  }
  .cf-title-only-hero .hero-kicker {
    display: inline-flex !important;
    margin-bottom: 13px !important;
    font-size: .72rem !important;
  }
}


/* CINEFLEX BUILD 8.2 — STRICT TITLE + WATCH ONLY HERO */
.hero-kicker,
.cf-hero-eyebrow,
.cf-hero-meta,
#banner-desc,
.hero-meta-strip,
.hero-more-btn,
.cf-hero-mylist,
.cf-hero-nav,
.cf-hero-dots,
.cf-hero-progress,
.cf-hero-video {
  display: none !important;
}

.banner-content {
  width: min(720px, calc(100vw - 40px)) !important;
  max-width: 720px !important;
}

#banner-title {
  margin: 0 0 18px !important;
  max-width: 720px !important;
}

.banner-buttons {
  margin: 0 !important;
}

.banner-buttons .play-btn {
  min-width: 150px;
}

@media (max-width: 760px) {
  .banner-content {
    bottom: 72px !important;
  }
  #banner-title {
    margin-bottom: 14px !important;
  }
}

/* CINEFLEX BUILD 8.6 — CINEMATIC REFERENCE HERO */
.banner {
  position: relative !important;
  min-height: clamp(560px, 78vh, 820px) !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 24% !important;
  isolation: isolate;
}

.banner::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(2,6,13,.92) 0%, rgba(2,6,13,.58) 34%, rgba(2,6,13,.12) 68%, rgba(2,6,13,.04) 100%),
    linear-gradient(0deg, var(--bg, #05070b) 0%, rgba(5,7,11,.78) 10%, rgba(5,7,11,.10) 46%, rgba(5,7,11,.08) 100%) !important;
}

.banner::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  height: 105px !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(0deg, var(--bg, #05070b), transparent) !important;
}

.banner-content {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 3 !important;
  width: min(650px, calc(100vw - 64px)) !important;
  max-width: 650px !important;
  padding: 0 0 clamp(92px, 12vh, 132px) clamp(28px, 4.5vw, 68px) !important;
  transform: none !important;
  opacity: 1 !important;
}

#banner-title {
  max-width: 620px !important;
  margin: 0 0 22px !important;
  color: #fff !important;
  font-size: clamp(3rem, 6.8vw, 6.5rem) !important;
  line-height: .9 !important;
  letter-spacing: -.055em !important;
  font-weight: 950 !important;
  text-wrap: balance !important;
  text-shadow: 0 5px 30px rgba(0,0,0,.85) !important;
}

.cf-hero-metrics {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 22px !important;
}

.cf-hero-metric {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,.94) !important;
  background: rgba(14,22,34,.60) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  font-size: .92rem !important;
}

.cf-hero-metric i {
  color: #fff !important;
  font-size: .88rem !important;
}

.banner-buttons {
  display: flex !important;
  margin: 0 !important;
}

.banner-buttons .play-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-width: 190px !important;
  min-height: 60px !important;
  padding: 0 25px !important;
  border: 0 !important;
  border-radius: 13px !important;
  color: #080b10 !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.38) !important;
  font-size: 1.07rem !important;
  font-weight: 850 !important;
}

.banner-buttons .play-btn:hover {
  transform: translateY(-2px) scale(1.015) !important;
  background: rgba(255,255,255,.88) !important;
}

.banner-fade { display: none !important; }

@media (max-width: 760px) {
  .banner {
    min-height: min(74vh, 700px) !important;
    background-position: 64% center !important;
  }

  .banner::before {
    background:
      linear-gradient(90deg, rgba(2,6,13,.88) 0%, rgba(2,6,13,.52) 46%, rgba(2,6,13,.08) 84%),
      linear-gradient(0deg, var(--bg, #05070b) 0%, rgba(5,7,11,.74) 16%, rgba(5,7,11,.07) 58%) !important;
  }

  .banner-content {
    width: calc(100vw - 36px) !important;
    padding: 0 0 76px 18px !important;
  }

  #banner-title {
    max-width: 82vw !important;
    margin-bottom: 16px !important;
    font-size: clamp(2.45rem, 12.6vw, 4.6rem) !important;
    line-height: .92 !important;
  }

  .cf-hero-metrics {
    gap: 7px !important;
    margin-bottom: 17px !important;
  }

  .cf-hero-metric {
    min-height: 34px !important;
    padding: 0 11px !important;
    font-size: .76rem !important;
  }

  .banner-buttons .play-btn {
    min-width: 158px !important;
    min-height: 50px !important;
    padding: 0 19px !important;
    border-radius: 11px !important;
    font-size: .94rem !important;
  }
}

/* =========================================================
   CINEFLEX BUILD 8.7 — FULL-SCREEN RESPONSIVE HERO
   Full viewport artwork on Android, iOS and desktop.
   ========================================================= */
.banner,
.cf-title-only-hero {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  height: 100vh !important;
  height: 100svh !important;
  max-height: 1080px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background-size: cover !important;
  background-position: center 24% !important;
}

.banner-content,
.cf-title-only-hero .banner-content {
  padding-bottom: clamp(88px, 11svh, 138px) !important;
}

@media (min-width: 1200px) {
  .banner,
  .cf-title-only-hero {
    min-height: min(100svh, 980px) !important;
    height: min(100svh, 980px) !important;
    background-position: center 22% !important;
  }
}

@media (max-width: 760px) {
  .banner,
  .cf-title-only-hero {
    min-height: 100vh !important;
    min-height: 100svh !important;
    height: 100vh !important;
    height: 100svh !important;
    max-height: none !important;
    background-position: 62% center !important;
  }

  .banner-content,
  .cf-title-only-hero .banner-content {
    width: calc(100% - 36px) !important;
    max-width: none !important;
    padding: 0 0 calc(84px + env(safe-area-inset-bottom)) 18px !important;
  }

  #banner-title {
    max-width: min(88vw, 610px) !important;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .banner,
  .cf-title-only-hero {
    background-position: 66% center !important;
  }

  .cf-hero-metric:nth-child(3) {
    display: none !important;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .banner,
  .cf-title-only-hero {
    min-height: 100svh !important;
    height: 100svh !important;
    background-position: center 28% !important;
  }

  .banner-content,
  .cf-title-only-hero .banner-content {
    padding-bottom: calc(34px + env(safe-area-inset-bottom)) !important;
  }

  #banner-title {
    font-size: clamp(2.1rem, 7vw, 4.4rem) !important;
    margin-bottom: 12px !important;
  }

  .cf-hero-metrics {
    margin-bottom: 12px !important;
  }
}
