/* =====================================================================
   DOJOSTREAMS · Black Friday Home
   Loaded only on the Home page while the Black Friday switch is on.
   Everything is scoped to body.dj-bf (added by the switch), so turning
   the switch off restores the current site exactly.
   Breakpoints (owner 2026-11-18, matched to the owner's reference hero): stacked layout < 768px, two columns >= 768px,
   picture and text column sizes fixed per range (768 / 992 / 1200px; see the layout section); text steps at 768, 990 and
   1200px (headline 30 / 36 / 40 / 48px, line and badge 20 / 22px).
   ===================================================================== */

/* ---------- 1 · Alert bar: charcoal, a step lighter than the nav ---------- */
body.dj-bf .annc{background:#141414;border-bottom:1px solid rgba(255,255,255,.06)}
body.dj-bf .annc .wrap{color:#E6E6EA}
body.dj-bf .annc a,body.dj-bf .annc a:hover{color:#fff}

/* ---------- 2 · Desktop nav (.dhd): black ---------- */
body.dj-bf .dhd{background:#000;border-bottom:1px solid rgba(255,255,255,.08)}
body.dj-bf .dlogo,body.dj-bf .dlogo:hover{color:#fff}
body.dj-bf .nav a,body.dj-bf .dlive{color:#D5D7E3;transition:color .25s}
body.dj-bf .nav a:hover,body.dj-bf .dlive:hover{color:#fff}
body.dj-bf .nav a[aria-current]{color:#fff;box-shadow:inset 0 -2px 0 #8B6CFF}
body.dj-bf .dhd a:focus-visible,body.dj-bf .hdr .ib:focus-visible{outline-color:#8FA8FF}

/* light logo: white circle, dark torii (overrides the inline SVG colours) */
body.dj-bf .dlogo svg circle,body.dj-bf .hdr .logo svg circle{fill:#fff}
body.dj-bf .dlogo svg g,body.dj-bf .hdr .logo svg g{stroke:#111}

/* ---------- 3 · Mobile header (.hdr): black, dark glass on scroll ---------- */
body.dj-bf .hdr{background:#000}
body.dj-bf .hdr::before{background:rgba(0,0,0,.72)}
body.dj-bf .hdr::after{box-shadow:inset 0 -1px 0 rgba(255,255,255,.08),0 10px 26px -18px rgba(0,0,0,.6)}
body.dj-bf .hdr .logo,body.dj-bf .hdr .logo:hover{color:#fff}
body.dj-bf .hdr .ib{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);color:#fff;box-shadow:none}

/* ---------- 4 · Hero (replaces section.hero while the switch is on) ---------- */
.bfh{position:relative;overflow:hidden;background:#000;color:#fff;font-family:"DM Sans",dj-dmsans-fb,sans-serif}
.bfh *{box-sizing:border-box}
.bfh h1,.bfh p,.bfh ul{margin:0;padding:0}
.bfh ul{list-style:none}
.bfh a:focus-visible{outline:3px solid #8FA8FF;outline-offset:3px}
.bfh::before{content:"";position:absolute;right:-6%;bottom:-18%;width:70%;height:90%;border-radius:50%;background:radial-gradient(closest-side,rgba(38,84,255,.16),rgba(38,84,255,0));pointer-events:none}

.bfh-in{position:relative;z-index:0}
.bfh-copy{position:relative;z-index:1;display:flex;flex-direction:column}
.bfh-h1{font-family:Lexend,dj-lexend-fb,sans-serif;font-weight:600;letter-spacing:-.03em;color:#fff}
.bfh-h1 .glass{color:#fff} /* owner 2026-11-18: headline all white (was a light-to-blue gradient) */
.bfh-p{color:#fff;font-family:"DM Sans",dj-dmsans-fb,sans-serif}

.bfh-cta{display:flex}
.bfh-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:54px;padding:0 28px;border-radius:999px;background:linear-gradient(#7350F0,#673DE6);color:#fff;font:600 16px Lexend,dj-lexend-fb,sans-serif;text-decoration:none;box-shadow:0 10px 30px -10px rgba(103,61,230,.8);transition:transform .4s cubic-bezier(.16,1,.3,1)}
.bfh a.bfh-btn,.bfh a.bfh-btn:hover,.bfh a.bfh-btn:visited{color:#fff}
.bfh-btn:hover{transform:translateY(-2px)}
.bfh-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bfh-plat{display:inline-flex;align-items:center;justify-content:center;height:52px;padding:0 24px;border-radius:999px;font:600 15px Lexend,dj-lexend-fb,sans-serif;text-decoration:none;color:#1C1E26;border:1.5px solid transparent;background:linear-gradient(118deg,#F7F8FA 0%,#CDD1D9 24%,#F1F3F6 44%,#A7ADB8 66%,#E6E9EE 84%,#C3C8D1 100%) padding-box,linear-gradient(135deg,#fff,#B9BFCA 30%,#F4F6F9 55%,#8E95A2 80%,#E9ECF1) border-box;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 10px 26px -12px rgba(200,206,220,.45);transition:transform .4s cubic-bezier(.16,1,.3,1),box-shadow .4s}
.bfh a.bfh-plat,.bfh a.bfh-plat:hover,.bfh a.bfh-plat:visited{color:#1C1E26}
.bfh-plat:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 14px 30px -12px rgba(200,206,220,.6)}

.bfh-nocc{display:none;align-items:center;gap:8px;font:600 13px Lexend,dj-lexend-fb,sans-serif;letter-spacing:.06em;color:#fff}
.bfh-nocc i{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;flex:none}
.bfh-nocc svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}

/* the picture: wide box = soft glow on both sides + the picture in the middle */
.bf-vis{position:absolute;aspect-ratio:2220/1289;animation:bfVis 1.2s cubic-bezier(.16,1,.3,1) .1s both}
.bf-img{position:absolute;inset:0;background:url(../img/sales/bf/hero-bf-ext.webp) center/100% 100% no-repeat;-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 72%,transparent 100%)}
.bf-stage{position:absolute;left:22.523%;width:54.955%;top:0;height:100%}
.bf-light{position:absolute;mix-blend-mode:plus-lighter;pointer-events:none}
.bf-light img{display:block;width:100%;height:100%}
.bf-logo{left:14.590%;top:77.114%;width:12.295%;height:10.706%}
.bf-eye-l{left:36.885%;top:67.339%;width:9.836%;height:7.448%}
.bf-eye-r{left:46.721%;top:66.874%;width:11.967%;height:7.913%}
.bf-sheen{position:absolute;left:12.295%;top:17.455%;width:82.459%;height:36.385%;overflow:hidden;pointer-events:none;mix-blend-mode:plus-lighter;-webkit-mask-image:url(../img/sales/bf/hero-bf-sheen-mask.png);mask-image:url(../img/sales/bf/hero-bf-sheen-mask.png);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.bf-sheen i{position:absolute;left:0;top:0;width:300%;height:100%;transform:translateX(-55%);background:linear-gradient(105deg,rgba(255,255,255,0) 40%,rgba(225,236,255,.10) 44%,rgba(240,246,255,.28) 46.6%,rgba(255,255,255,.85) 48%,#fff 48.5%,rgba(255,255,255,.85) 49%,rgba(240,246,255,.28) 50.4%,rgba(225,236,255,.10) 52%,rgba(200,220,255,0) 53%,rgba(200,220,255,.5) 53.8%,rgba(200,220,255,0) 54.8%,rgba(255,255,255,0) 60%);animation:bfSheen 1.4s cubic-bezier(.45,.05,.25,1) 1s both}
.bf-logo{animation:bfEyeFlicker 5s linear 6s infinite} /* owner 2026-11-18: the laptop logo flickers with the eyes (was a slow breathe) */
.bf-logo img{opacity:0;animation:bfOn 1.5s linear 1s forwards}
.bf-eye{animation:bfEyeFlicker 5s linear 6s infinite}
.bf-eye img{opacity:0;animation:bfOn 1.5s linear 1s forwards}
/* owner 2026-11-18: more light behind the gate, like the reference: a soft blue glow around the bottom of the gate and up its
   lower outer edges (after two brighter tries: one lit the gate's face, the next was far too bright). The middle (the gate's face
   and eyes) is left alone. Screen blend, so dark areas light up and bright ones stay as they are. */
.bf-img::after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;background:radial-gradient(30% 19% at 49% 91%,rgba(140,190,255,.55),rgba(60,120,255,.26) 50%,rgba(40,90,255,0) 100%),radial-gradient(8% 20% at 31% 80%,rgba(110,165,255,.38),rgba(40,90,255,0) 100%),radial-gradient(8% 20% at 67% 80%,rgba(110,165,255,.38),rgba(40,90,255,0) 100%)}
.bf-pill{position:absolute;left:0;right:0;display:flex;justify-content:center;pointer-events:none}
.bf-pill span{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid rgba(255,255,255,.34);background:linear-gradient(180deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,.04) 100%),rgba(6,10,36,.38);-webkit-backdrop-filter:blur(12px) saturate(160%);backdrop-filter:blur(12px) saturate(160%);box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(255,255,255,.08),0 8px 22px rgba(0,0,0,.35);font-family:"DM Sans",dj-dmsans-fb,sans-serif;font-weight:500;line-height:1;letter-spacing:-.01em;color:#fff;white-space:nowrap}

/* channel slider on black */
.bfh-sl{position:relative;border-top:1px solid rgba(255,255,255,.07)}
.bfh-sl .sp{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent 100%)}
.bfh-sl .row{overflow:hidden}
.bfh-sl ul{display:flex;align-items:center;width:max-content;animation:bfMq 40s linear infinite}
.bfh-sl li{flex:none;display:flex;align-items:center;justify-content:center;padding:0 26px}
.bfh-sl img{display:block;height:20px;width:auto;filter:brightness(0) invert(1);opacity:.5}

.bfh-rise{animation:bfRise .8s cubic-bezier(.16,1,.3,1) both}
.bfh-rise.d1{animation-delay:.08s}.bfh-rise.d2{animation-delay:.16s}.bfh-rise.d3{animation-delay:.24s}

/* ----- Layout matched to the owner's reference hero (owner 2026-11-18) -----
   Measured on the reference at 375-2560 px: its picture is a fixed size in each width range, centred on the screen (on
   phones anchored under the buttons), and its text column is a fixed width (container 736 / 960 / 1168 px, 32 px gap).
   Ours does the same. Our picture's artwork (numbers, gate and laptop) fills 24.9-74.1% of hero-bf-ext.webp across and starts
   18.1% down, so each picture size below puts our artwork exactly where the reference's artwork is:
     phones (< 768):  artwork 285 px wide, centred, top 52 px below the buttons;
     768-991:         artwork top 119 px into the hero; hero at least 542 px;
     992-1199:        artwork top  66 px; hero at least 583 px;
     1200 and up:     artwork top  77 px; hero at least 720 px (reference 683; a little taller so the label stays inside).
   Taller version (owner 2026-11-18, to try): from 768 px the picture is as large as fits, like the reference's figure, which
   reaches the foot of the hero: the "4" starts 8 px right of the text column and the "%" stays on screen at the smallest
   width of each range; the gate's base ends 39 / 18 / 38 px above the foot of the hero (picture 910 / 1180 / 1430 px wide,
   artwork 448 / 581 / 704 px). The first version (artwork exactly the reference's width, 356 / 458 / 688 px) is commit 7a1f14c. */

/* ----- stacked (phones) ----- */
.bfh{--pw:318px} /* artwork 285 px wide at every phone width, as on the reference */
.bfh-copy{max-width:640px;margin:0 auto;padding:40px 16px 0;gap:24px}
.bfh-h1{font-size:30px;line-height:1.2}
.bfh-h1+.bfh-p{margin-top:-8px} /* headline to line 16 px, the rest 24 px apart */
/* Below 1200 px (owner 2026-11-18, like the reference): the shorter headline, "The most trusted IPTV service just got better!".
   "Dojostreams – " stays in the headline for screen readers and search engines (visually hidden, not removed); " out there"
   is left out. From 1200 px the full headline. */
@media (max-width:1199px){
  .bfh-brand{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .bfh-long{display:none}
}
@media (max-width:767px){.bf-vis{pointer-events:none}}
@media (min-width:400px) and (max-width:767px){.bfh-grad{white-space:nowrap}}
.bfh-p{font-size:16px;line-height:1.55}
.bfh-cta{flex-direction:column;gap:10px}
.bfh-cta .bfh-btn,.bfh-cta .bfh-plat{display:flex;width:100%}
.bfh-vcol{position:relative;height:calc(var(--pw) * 1.0566);margin:-9px 0 12px} /* pulled up over the empty glow at the top of the picture */
.bf-vis{left:50%;bottom:0;width:calc(var(--pw) * 1.8197);transform:translateX(-50%)}
.bf-pill{bottom:18px}
.bf-pill span{height:30px;padding:0 15px;font-size:12px}
.bfh-sl .sp{padding:14px 0}

/* ----- two columns, from 768 px ----- */
@media (min-width:768px){
  .bfh-in{max-width:736px;margin:0 auto;padding:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;min-height:542px}
  .bfh-copy{max-width:none;margin:0;padding:64px 0}
  .bfh-h1{font-size:36px;max-width:560px}
  .bfh-p{max-width:570px}
  .bfh-cta{flex-direction:row;flex-wrap:wrap;gap:12px}
  .bfh-cta .bfh-btn,.bfh-cta .bfh-plat{display:inline-flex;width:auto}
  .bfh-nocc{display:inline-flex}
  /* the picture layer: as tall as the hero, centred on the screen, behind the text */
  .bfh-vcol{position:absolute;top:0;bottom:0;left:-9999px;right:-9999px;height:auto;margin:0;overflow:hidden;pointer-events:none;z-index:0}
  /* 768-991 (owner 2026-11-18): the laptop starts about 20 px right of the Subscribe button; the picture is 910 px wide from
     about 820 px, a little smaller below that (863 px at 768) so the "%" stays on screen */
  .bf-vis{--tx:0px;--mdw:clamp(863px,calc(863px + (100vw - 768px) * .9),910px);transform:none;right:auto;bottom:auto;left:calc(50% - 38px - var(--mdw) * .27);top:calc(119px - var(--mdw) * .1051);width:var(--mdw)}
  .bf-pill{bottom:auto;top:84%} /* on the gate's base, inside the hero at every size */
  .bf-pill span{height:44px;padding:0 24px;font-size:17px}
  .bfh-sl .sp{padding:20px 0}
  .bfh-sl ul{animation-duration:60s}
  .bfh-sl li{padding:0 42px}
  .bfh-sl img{height:24px}
  .bfh-sl .sp:hover ul{animation-play-state:paused}
}
@media (min-width:992px){
  .bfh-in{max-width:960px;min-height:583px}
  .bf-vis{left:calc(50% - 397px);top:-58px;width:1180px}
}
@media (min-width:1200px){
  .bfh-in{max-width:1168px;min-height:720px}
  .bf-vis{left:calc(50% - 480px);top:-73px;width:1430px}
}

@keyframes bfOn{0%{opacity:0}3%{opacity:.8}6%{opacity:.04}11%{opacity:.55}14%{opacity:0}20%{opacity:.9}23%{opacity:.22}30%{opacity:1}33%{opacity:.6;animation-timing-function:cubic-bezier(.22,1,.36,1)}100%{opacity:1}}
@keyframes bfEyeFlicker{0%{opacity:1}1%{opacity:.15}2.5%{opacity:.85}4%{opacity:.05}5.5%{opacity:.95}7%{opacity:.3}9%{opacity:1;animation-timing-function:cubic-bezier(.22,1,.36,1)}100%{opacity:1}}
@keyframes bfSheen{from{transform:translateX(-55%)}to{transform:translateX(-8%)}}
@keyframes bfVis{from{opacity:0;transform:translateX(var(--tx,-50%)) translateY(24px) scale(.98)}to{opacity:1;transform:translateX(var(--tx,-50%))}}
@keyframes bfRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes bfMq{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* Text sizes like the reference (owner 2026-11-18): headline 40 px from 990, 48 px from 1200. */
@media (min-width:990px){.bfh-h1{font-size:40px}}
@media (min-width:1200px){.bfh-h1{font-size:48px}}
/* Desktop (from 1100 px, where the desktop nav shows: top bar 40 px + 1 px border, nav 84 px + 1 px border = 126 px):
   the hero fills the rest of the screen, so the channel slider sits at the bottom of the first screen and no white shows
   until the visitor scrolls (owner 2026-11-18). The extra height goes between the picture and the slider, capped at 240 px
   for very tall screens. Screens shorter than the hero are unchanged. */
@media (min-width:1100px){
  .bfh{display:flex;flex-direction:column;min-height:calc(100vh - 126px);min-height:min(calc(100svh - 126px),888px)}
  .bfh-in{width:100%}
  .bfh-sl{margin-top:auto}
}
@media (min-width:1200px){.bfh{min-height:min(calc(100vh - 126px),1025px);min-height:min(calc(100svh - 126px),1025px)}}

/* Owner 2026-11-18: the line under the headline a step bigger and bolder, "premium IPTV experience for less." in a gradient from
   a bright sky blue to the "Try for free" purple, and a deal badge (holographic % icon + "Black Friday: Get up to 40% off"). */
.bfh-p{font-weight:600;letter-spacing:-.01em}
.bfh-grad{background:linear-gradient(90deg,#3EC5FF 0%,#4F8DFF 28%,#6A5CF5 62%,#7350F0 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.bfh-deal{display:flex;align-items:center;gap:16px}
.bfh-deal-ic{flex:none;width:60px;height:60px;filter:drop-shadow(0 4px 14px rgba(190,170,255,.35))}
.bfh-deal-t{margin:0;font:600 20px/1.4 Lexend,dj-lexend-fb,sans-serif;letter-spacing:-.01em;color:#fff;text-wrap:pretty}
/* line and badge text 20 px, 22 px from 990 px; icon 60 px at every size (as the reference) */
.bfh-p{font-size:20px;line-height:1.5}
@media (min-width:768px){
  .bfh-grad{white-space:nowrap} /* two columns: the gradient phrase on its own line, no lone "less." */
}
@media (min-width:990px){
  .bfh-p{font-size:22px;line-height:1.4}
  .bfh-deal-t{font-size:22px}
}

@media (prefers-reduced-motion:reduce){
  .bfh *,.bfh::before{animation:none!important;transition:none!important}
  .bf-logo img,.bf-eye img{opacity:1}
  .bf-sheen{display:none}
}

/* Added on install (not in the hand-off): home.css pauses every animation in a Home section that is not `.hero` until
   home.js marks it `.is-in`. The Black Friday hero is the first thing on the page, so it must not wait for a script:
   without this, its headline and buttons (which fade in) would stay invisible if home.js were slow or failed. The
   selector must outweigh home.css's `.dj-js .djhm>section:not(.hero):not(.is-in) *` (both !important). */
body.dj-bf .djhm>section.bfh:not(.is-in) *{animation-play-state:running!important}
