/* Matrik Hero Immersion. Only the existing home carousels are affected. */
.hero-slider:not(.adult-mode){
  --hero-gutter:clamp(24px,5.8vw,112px);
  --hero-overlap:clamp(90px,13vh,150px);
  position:relative;display:grid;grid-template-columns:minmax(0,1fr);
  min-height:clamp(590px,88vh,1050px);padding:0;
  background:#07070a;
}
.hero-slider:not(.adult-mode):before{display:none}
.hero-slider:not(.adult-mode) .hero-slide{
  grid-area:1/1;position:relative;inset:auto;min-width:0;
  padding:clamp(100px,14vh,180px) var(--hero-gutter) calc(var(--hero-overlap) + 74px);
  align-items:flex-end;visibility:hidden;
  transition:opacity .75s ease,visibility 0s linear .75s;
}
.hero-slider:not(.adult-mode) .hero-slide.active{visibility:visible;transition-delay:0s}
.hero-slider:not(.adult-mode) .hero-bg{opacity:1;transform:none;filter:saturate(1.14) contrast(1.03);background-position:center 38%}
.hero-slider:not(.adult-mode) .hero-slide:before{
  background:linear-gradient(90deg,rgba(7,7,10,.83) 0%,rgba(7,7,10,.52) 30%,rgba(7,7,10,.10) 70%,rgba(7,7,10,.06) 100%),
    linear-gradient(0deg,#07070a 0%,rgba(7,7,10,.92) 8%,rgba(7,7,10,.50) 25%,transparent 66%),
    linear-gradient(180deg,rgba(7,7,10,.25),transparent 23%);
}
.hero-slider:not(.adult-mode) .hero-content{max-width:min(800px,72%);min-width:0;text-shadow:0 2px 18px #0008}
.hero-slider:not(.adult-mode) h1{font-size:clamp(42px,5.6vw,96px);line-height:.99;letter-spacing:-.045em;overflow-wrap:anywhere}
.hero-slider:not(.adult-mode) .hero-immersion-overview{max-width:630px;font-size:clamp(15px,1.2vw,19px);line-height:1.5;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hero-slider:not(.adult-mode) .hero-actions .btn{border-radius:5px;min-height:44px;text-shadow:none}
.hero-slider:not(.adult-mode) .hero-actions .btn:first-child{background:var(--brand,#e50914)}
.hero-slider:not(.adult-mode) .hero-dots{bottom:calc(var(--hero-overlap) + 28px);left:var(--hero-gutter);max-width:calc(100% - 2 * var(--hero-gutter));flex-wrap:wrap}
/* First actual section, even if stylesheet/script nodes occur between it and the hero. */
.hero-slider:not(.adult-mode):has(~ .section){margin-bottom:calc(-1 * var(--hero-overlap))}
.hero-slider:not(.adult-mode) ~ .section:not(.hero-slider ~ .section ~ .section){position:relative;z-index:3;padding-top:0;background:transparent}
.hero-slider:not(.adult-mode) ~ .section:not(.hero-slider ~ .section ~ .section) .section-title{text-shadow:0 2px 12px #000}
/* Personalised start page: same cinematic palette, retaining its own navigation and actions. */
.today-page .today-hero{overflow:visible;--today-overlap:clamp(70px,10vh,115px);margin-inline:calc(-1 * clamp(16px,3vw,42px));max-width:none;position:relative}
.today-page .today-hero-stage{display:grid;grid-template-columns:minmax(0,1fr);min-height:clamp(570px,80vh,940px)}
.today-page .today-hero-slide{grid-area:1/1;position:relative;inset:auto;min-height:100%;border:0;border-radius:0;box-shadow:none;transform:none}
.today-page .today-main-bg{transform:none;filter:saturate(1.14) contrast(1.03)}
.today-page .today-main-bg img{object-position:center 38%}
.today-page .today-main-shade{background:linear-gradient(90deg,rgba(7,7,10,.83),rgba(7,7,10,.48) 36%,rgba(7,7,10,.06) 76%),linear-gradient(0deg,#07070a 0%,rgba(7,7,10,.87) 12%,rgba(7,7,10,.48) 30%,transparent 68%)}
.today-page .today-main-content{max-width:min(860px,82%);padding:clamp(32px,5vw,76px) clamp(24px,5.8vw,112px) calc(var(--today-overlap) + 68px);text-shadow:0 2px 18px #0008}
.today-page .today-main-content h2{font-size:clamp(38px,5.2vw,88px);line-height:1;letter-spacing:-.04em}
.today-page .today-hero-nav{position:relative;z-index:4;margin-top:-54px;padding:0 12px 12px;min-height:54px}
.today-page .today-hero:has(+ .today-section:not([hidden])) .today-hero-nav{margin-top:calc(-1 * var(--today-overlap) - 54px)}
.today-page .today-hero:has(+ .today-section:not([hidden])){margin-bottom:0}
.today-page .today-hero + .today-section:not([hidden]){position:relative;z-index:3;padding-top:12px}
.today-page .today-hero-empty:not([hidden]){position:relative;z-index:5;background:#111118}
@media(max-width:760px){
  .hero-slider:not(.adult-mode){--hero-gutter:18px;--hero-overlap:65px;min-height:clamp(570px,84svh,820px)}
  .hero-slider:not(.adult-mode) .hero-slide{padding:100px var(--hero-gutter) calc(var(--hero-overlap) + 62px)}
  .hero-slider:not(.adult-mode) .hero-content{max-width:100%}
  .hero-slider:not(.adult-mode) h1{font-size:clamp(34px,8vw,60px)}
  .hero-slider:not(.adult-mode) .hero-slide:before{background:linear-gradient(0deg,#07070a 0%,rgba(7,7,10,.94) 15%,rgba(7,7,10,.66) 38%,rgba(7,7,10,.12) 78%,rgba(7,7,10,.20) 100%)}
  .today-page .today-hero{--today-overlap:55px;margin-inline:0}
  .today-page .today-hero-stage{min-height:clamp(570px,82svh,820px)}
  .today-page .today-main-content{max-width:100%;padding:32px 20px calc(var(--today-overlap) + 68px)}
  .today-page .today-main-content h2{font-size:clamp(32px,7.5vw,56px)}
  .today-page .today-main-shade{background:linear-gradient(0deg,#07070a,rgba(7,7,10,.94) 18%,rgba(7,7,10,.69) 45%,rgba(7,7,10,.12) 85%)}
}
@media(prefers-reduced-motion:reduce){.hero-slider:not(.adult-mode) .hero-slide{transition:none}}

/* 1.0.1: the old flex alignment must not shrink the grid's slide area. */
.hero-slider:not(.adult-mode){align-items:stretch;justify-items:stretch;grid-template-rows:minmax(0,1fr);margin-top:0}
.hero-slider:not(.adult-mode) .hero-slide{align-self:stretch;justify-self:stretch;width:100%;margin:0}
.hero-slider:not(.adult-mode) .today-classic-switch{position:absolute;top:24px;right:clamp(18px,4vw,60px);left:auto;z-index:12;margin:0;width:max-content;max-width:calc(100% - 36px);background:rgba(12,12,16,.78);backdrop-filter:blur(12px)}
/* Personalised hero: the greeting and switch are in normal flow inside the
   hero, while the active slide's backdrop extends behind them. No fixed
   header height or JS measurement is needed, even for wrapped names. */
.today-page:has(>.today-hero){max-width:none;--today-page-gutter:clamp(16px,3vw,42px);padding-inline:var(--today-page-gutter)}
.today-page>.today-hero{isolation:isolate;display:flex;flex-direction:column;min-height:clamp(570px,80vh,940px);margin-inline:calc(-1 * var(--today-page-gutter));background:#07070a}
.today-page>.today-hero>.today-head{position:relative;z-index:6;flex:none;padding:clamp(22px,3vw,44px) clamp(24px,5.8vw,112px) 12px;margin:0;text-shadow:0 2px 14px #000c}
.today-page>.today-hero>.today-head .today-view-switch{background:rgba(12,12,16,.78);backdrop-filter:blur(12px);text-shadow:none}
.today-page>.today-hero>.today-hero-stage{position:static;flex:1 0 auto;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch}
.today-page>.today-hero>.today-hero-stage[hidden]{display:none!important}
.today-page>.today-hero .today-hero-slide{position:static;min-height:0;align-self:stretch;overflow:visible;z-index:1}
.today-page>.today-hero .today-hero-slide.is-active{z-index:2}
.today-page>.today-hero .today-main-bg,.today-page>.today-hero .today-main-shade{position:absolute;inset:0}
.today-page>.today-hero .today-main-shade{background:linear-gradient(180deg,rgba(7,7,10,.75),transparent 38%),linear-gradient(90deg,rgba(7,7,10,.83),rgba(7,7,10,.48) 36%,rgba(7,7,10,.06) 76%),linear-gradient(0deg,#07070a 0%,rgba(7,7,10,.87) 12%,rgba(7,7,10,.48) 30%,transparent 68%)}
.today-page>.today-hero:has(>.today-hero-stage[hidden]){min-height:0}
@media(max-width:760px){
 .hero-slider:not(.adult-mode) .today-classic-switch{top:12px;left:14px;right:14px;width:auto;max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
 .hero-slider:not(.adult-mode) .today-classic-switch :is(a,span){padding:9px 3px;font-size:clamp(10px,2.8vw,13px);overflow-wrap:anywhere}
 .hero-slider:not(.adult-mode) .hero-slide{padding-top:clamp(82px,15vw,110px)}
 .today-page:has(>.today-hero){--today-page-gutter:max(10px,env(safe-area-inset-left),env(safe-area-inset-right))}
 .today-page>.today-hero{min-height:clamp(570px,82svh,820px)}
 .today-page>.today-hero>.today-head{padding:20px 16px 8px;gap:12px}
 .today-page>.today-hero>.today-head .today-view-switch{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
 .today-page>.today-hero>.today-head .today-view-switch :is(a,span){padding:9px 3px;font-size:clamp(10px,2.8vw,13px);overflow-wrap:anywhere}
 .today-page>.today-hero>.today-head .today-head-tools{width:100%;min-width:0}
 .today-page>.today-hero .today-main-shade{background:linear-gradient(180deg,rgba(7,7,10,.70),transparent 45%),linear-gradient(0deg,#07070a,rgba(7,7,10,.94) 18%,rgba(7,7,10,.69) 45%,rgba(7,7,10,.12) 85%)}
}
