/* ==========================================================================
   HB Telecom · banner "Watch" (Internet + Streaming) no carrossel do topo (PC)
   Desenho de 1600 x 534 escalado para o slide (--k, no JS). As animações
   recomeçam toda vez que o slide fica ativo (.is-active).
   Linha do tempo (o slide fica 10s): texto 0–1,8s · telinhas entram 0,4–1,3s ·
   cada telinha ganha destaque por 1,8s: Brasileirão 2,2s, Discovery 4s,
   Turbo 5,8s, Telecine 7,6s.
   ========================================================================== */
.hb-bw { position: absolute; inset: 0; overflow: hidden; background: #040000; }
.hb-bw-palco {
  position: absolute; left: 0; top: 0; width: 1600px; height: 534px;
  transform: scale(var(--k, .7375)); transform-origin: 0 0;
  font-family: Montserrat, "Inter", "Segoe UI", sans-serif; color: #fff;
  --v: #FF2A1F; --vv: #9E0000;
}
.hb-bw-palco * { box-sizing: border-box; margin: 0; padding: 0; }

/* fundo: feixes de luz vermelha e brilho atrás das telinhas */
.hb-bw-fundo { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 1270px 250px, rgba(158,0,0,.55), rgba(158,0,0,0) 70%),
    radial-gradient(900px 400px at 1500px 600px, rgba(255,42,31,.25), rgba(255,42,31,0) 70%),
    linear-gradient(90deg, #040000 0%, #0a0000 55%, #140101 100%); }
.hb-bw-fundo i { position: absolute; width: 1400px; height: 2px; left: 360px; top: 120px; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255,42,31,0), rgba(255,60,40,.9) 55%, rgba(255,200,190,.9) 62%, rgba(255,42,31,0));
  filter: blur(1px); box-shadow: 0 0 18px 2px rgba(255,42,31,.55); opacity: .55; transform: rotate(-14deg); }
.hb-bw-fundo i:nth-child(2) { top: 430px; left: 520px; transform: rotate(-26deg); opacity: .4; height: 3px; }
.hb-bw-fundo i:nth-child(3) { top: 40px; left: 760px; transform: rotate(12deg); opacity: .3; }
.hb-bw.is-active .hb-bw-fundo i { animation: hb-bw-feixe 12s ease-in-out both; }
.hb-bw.is-active .hb-bw-fundo i:nth-child(2) { animation-duration: 12s; animation-direction: reverse; }
@keyframes hb-bw-feixe { 0% { translate: -160px 0; } 100% { translate: 120px 0; } }

/* texto */
.hb-bw-txt { position: absolute; left: 118px; top: 74px; width: 880px; z-index: 2; }
.hb-bw-tag { font-size: 30px; font-weight: 400; letter-spacing: -.2px; }
.hb-bw-tag b { font-weight: 800; }
.hb-bw-tag .mais { color: var(--v); font-weight: 600; padding: 0 4px; display: inline-block; }
.hb-bw h2 { font-size: 66px; line-height: .98; font-weight: 900; letter-spacing: -1.8px; margin-top: 8px; color: #fff; }
.hb-bw h2 .p { display: inline-block; }
.hb-bw h2 em { font-style: normal; color: var(--v); text-shadow: 0 0 28px rgba(255,42,31,.45); }
.hb-bw-sub { font-size: 29px; font-weight: 500; margin-top: 12px; letter-spacing: -.3px; color: #f1e8e8; }
.hb-bw-sub b { font-weight: 800; color: #fff; }

/* caixa da oferta */
.hb-bw-oferta { position: relative; margin-top: 28px; display: inline-flex; align-items: stretch; border-radius: 14px; padding: 14px 26px 14px 22px; gap: 22px;
  border: 1px solid rgba(255,42,31,.55);
  background: linear-gradient(180deg, rgba(40,0,0,.55), rgba(10,0,0,.75)); box-shadow: 0 0 30px rgba(255,42,31,.35), inset 0 0 22px rgba(255,42,31,.12); }
.hb-bw-oferta::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--hb-bw-ang, 0deg), #FF2A1F 0deg, #FF2A1F 250deg, #ffd7d2 300deg, #fff 320deg, #FF2A1F 350deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@property --hb-bw-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hb-bw.is-active .hb-bw-oferta::before { animation: hb-bw-gira 4s linear infinite; }
@keyframes hb-bw-gira { to { --hb-bw-ang: 360deg; } }

.hb-bw .col { display: flex; flex-direction: column; justify-content: center; }
.hb-bw .mini { font-size: 11.5px; font-weight: 700; color: #fff; text-transform: uppercase; white-space: nowrap; width: max-content; line-height: 1.1; margin-bottom: 4px; }
.hb-bw .mega { width: max-content; font-size: 64px; font-weight: 900; line-height: .86; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.hb-bw .mega small { display: block; width: max-content; font-size: 33px; letter-spacing: 0; line-height: 1; margin-top: 4px; }
.hb-bw .div { width: 1px; background: rgba(255,255,255,.6); margin: 4px 0; border-radius: 2px; }
.hb-bw .watch { align-items: flex-start; gap: 6px; }
.hb-bw .plus { font-size: 48px; font-weight: 900; color: var(--v); align-self: center; margin: 0; line-height: 1; }
.hb-bw .marca { display: block; height: 66px; width: auto; filter: drop-shadow(0 0 14px rgba(255,255,255,.18)); }
.hb-bw .watch { align-items: flex-start; }
.hb-bw .watch .l { font-size: 11.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.hb-bw .preco { flex-direction: row; align-items: center; gap: 6px; position: relative; }
.hb-bw .por { color: var(--v); font-weight: 800; line-height: .95; display: flex; flex-direction: column; }
.hb-bw .por span { width: max-content; line-height: .9; font-weight: 800; font-size: 24px; }   /* o R$ é esticado no JS para a largura do POR */
.hb-bw .valor { font-size: 96px; font-weight: 900; letter-spacing: -4px; line-height: .8; padding: 4px 4px 2px 0; }
.hb-bw .cent { display: flex; flex-direction: column; line-height: .95; }
.hb-bw .cent b { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.hb-bw .cent span { font-size: 22px; font-weight: 700; color: var(--v); margin-top: 9px; margin-left: 2px; }

/* ---- mural de telinhas ---- */
.hb-bw-mural { position: absolute; left: 985px; top: 34px; width: 540px; height: 500px; perspective: 1500px; z-index: 1; }
.hb-bw-grade { position: absolute; left: 10px; top: 0; display: grid; grid-template-columns: 236px 236px; gap: 16px 18px;
  transform: rotateY(-12deg) rotateX(2deg); transform-style: preserve-3d; transform-origin: 30% 50%; }
.hb-bw-base { position: absolute; left: -10px; right: -40px; top: 446px; height: 40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,42,31,.65), rgba(255,42,31,0)); filter: blur(4px); }
.hb-bw-base::before { content: ""; position: absolute; left: 12%; right: 6%; top: 8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,42,31,0), #ff5a4a 30%, #ffd7d2 50%, #ff5a4a 70%, rgba(255,42,31,0)); box-shadow: 0 0 14px #ff2a1f; }

.hb-bw .tela { position: relative; width: 236px; height: 212px; opacity: 0; }
.hb-bw .tela-in { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #000;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,42,31,.12);
  transition: none; }
.hb-bw .tela .cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hb-bw .tela .nome { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 16px 13px;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 20%, rgba(0,0,0,0)); display: flex; align-items: baseline; gap: 8px; }
.hb-bw .tela .nome { flex-wrap: wrap; }
.hb-bw .tela .nome em { flex-basis: 100%; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #ffd7d2; text-transform: uppercase; opacity: .9; margin-bottom: 6px; }
/* logos dos canais (no lugar do nome escrito) */
.hb-bw .tela .nome .logo { display: block; width: auto; height: 32px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.hb-bw .t-futebol .nome .logo { height: 22px; }
.hb-bw .t-planeta .nome .logo, .hb-bw .t-turbo .nome .logo { filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.hb-bw .t-planeta .nome .logo { height: 36px; }
.hb-bw .t-turbo .nome .logo { height: 38px; }
.hb-bw .t-cinema .nome .logo { height: 40px; margin: -2px 0 -4px -6px; }
.hb-bw .tela .selo { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .8px; background: var(--v); box-shadow: 0 0 14px rgba(255,42,31,.7); }
.hb-bw .tela .selo i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.hb-bw.is-active .tela .selo i { animation: hb-bw-pisca 1s ease-in-out infinite; }
@keyframes hb-bw-pisca { 50% { opacity: .2; } }
.hb-bw .tela .vidro { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.22) 48%, rgba(255,255,255,0) 60%);
  background-size: 300% 100%; background-position: 120% 0; }

/* entrada: cada telinha vem do fundo, virando */
.hb-bw.is-active .tela { animation: hb-bw-entra .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.4s + var(--i) * .14s); }
@keyframes hb-bw-entra { from { opacity: 0; transform: translateZ(-260px) rotateY(55deg) translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* destaque: a telinha sai um pouco para a frente e acende a borda */
.hb-bw .tela { transform-style: preserve-3d; }
.hb-bw.is-active .tela-in { animation: hb-bw-foco 2.2s ease-in-out both; animation-delay: calc(2.2s + var(--i) * 2.3s); }
@keyframes hb-bw-foco {
  0%, 100% { transform: none; border-color: rgba(255,255,255,.16); box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,42,31,.12); }
  18%, 80% { transform: translateZ(46px) scale(1.04); border-color: rgba(255,120,100,.95); box-shadow: 0 24px 50px rgba(0,0,0,.7), 0 0 34px rgba(255,42,31,.75); }
}
.hb-bw.is-active .tela .vidro { animation: hb-bw-vidro 1.1s ease-in-out both; animation-delay: calc(2.4s + var(--i) * 2.3s); }
@keyframes hb-bw-vidro { from { background-position: 120% 0; } to { background-position: -30% 0; } }

/* ---- imagens: aproximação lenta (cada uma para um lado) + um efeito de luz por canal ---- */
.hb-bw .tela .foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.hb-bw.is-active .tela .foto { animation: hb-bw-zoom 10s ease-out both; }
.hb-bw.is-active .t-planeta .foto, .hb-bw.is-active .t-cinema .foto { animation-name: hb-bw-zoom2; }
@keyframes hb-bw-zoom  { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-2%, 1%); } }
@keyframes hb-bw-zoom2 { from { transform: scale(1.16) translate(2%, 0); } to { transform: scale(1.04); } }
.hb-bw .tela-in > span[class^="fx-"] { position: absolute; inset: 0; pointer-events: none; }

/* Brasileirão: refletores do estádio piscando */
.hb-bw .fx-flash { background:
  radial-gradient(60px 40px at 8% 0%, rgba(255,255,255,.65), rgba(255,255,255,0) 70%),
  radial-gradient(60px 40px at 92% 0%, rgba(255,255,255,.65), rgba(255,255,255,0) 70%); opacity: .35; mix-blend-mode: screen; }
.hb-bw.is-active .fx-flash { animation: hb-bw-refletor 2.4s ease-in-out infinite; }
@keyframes hb-bw-refletor { 0%, 100% { opacity: .25; } 8% { opacity: 1; } 16% { opacity: .35; } 22% { opacity: .9; } 34% { opacity: .3; } }

/* Discovery (Largados e Pelados): o fogo de baixo tremula */
.hb-bw .fx-sol { background: radial-gradient(180px 110px at 35% 100%, rgba(255,150,40,.6), rgba(255,90,20,0) 70%); mix-blend-mode: screen; opacity: .6; transform-origin: 35% 100%; }
.hb-bw.is-active .fx-sol { animation: hb-bw-fogo 1.4s ease-in-out infinite; }
@keyframes hb-bw-fogo { 0%, 100% { opacity: .55; transform: scaleY(1); } 30% { opacity: 1; transform: scaleY(1.12); } 55% { opacity: .7; } 75% { opacity: .95; transform: scaleY(1.05); } }

/* Turbo: riscos de velocidade passando */
.hb-bw .fx-vento i { position: absolute; left: -40%; height: 2px; width: 38%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,90,40,0), rgba(255,150,80,.95), rgba(255,255,255,.9)); box-shadow: 0 0 8px rgba(255,80,30,.8); opacity: 0; }
.hb-bw .fx-vento i:nth-child(1) { top: 22%; } .hb-bw .fx-vento i:nth-child(2) { top: 46%; width: 28%; }
.hb-bw .fx-vento i:nth-child(3) { top: 63%; } .hb-bw .fx-vento i:nth-child(4) { top: 81%; width: 22%; }
.hb-bw.is-active .fx-vento i { animation: hb-bw-risco 1.3s cubic-bezier(.5, 0, .7, 1) infinite; }
.hb-bw.is-active .fx-vento i:nth-child(2) { animation-delay: .45s; animation-duration: 1.1s; }
.hb-bw.is-active .fx-vento i:nth-child(3) { animation-delay: .8s; }
.hb-bw.is-active .fx-vento i:nth-child(4) { animation-delay: .25s; animation-duration: .9s; }
@keyframes hb-bw-risco { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(400%); opacity: 0; } }

/* Telecine: luz de projetor tremulando por cima do filme */
.hb-bw .fx-projetor { background: linear-gradient(200deg, rgba(255,240,210,.35) 0%, rgba(255,240,210,0) 45%); mix-blend-mode: screen; }
.hb-bw.is-active .fx-projetor { animation: hb-bw-projetor .16s steps(2) infinite; }
@keyframes hb-bw-projetor { 50% { opacity: .6; } }

/* ---- entrada do texto ---- */
.hb-bw [data-e] { opacity: 0; }
.hb-bw.is-active [data-e] { animation: hb-bw-sobe .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }
.hb-bw.is-active [data-e="esq"] { animation-name: hb-bw-esq; }
.hb-bw.is-active [data-e="pop"] { animation-name: hb-bw-pop; animation-duration: .7s; }
.hb-bw.is-active [data-e="caixa"] { animation-name: hb-bw-caixa; animation-duration: .9s; }
@keyframes hb-bw-sobe { from { opacity: 0; transform: translateY(46px) rotate(2deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hb-bw-esq  { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hb-bw-pop  { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hb-bw-caixa { from { opacity: 0; transform: translateY(30px) scale(.94); clip-path: inset(0 100% 0 0 round 14px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); } }
.hb-bw.is-active h2 em { animation: hb-bw-sobe .8s cubic-bezier(.2, .8, .2, 1) both, hb-bw-neon 2.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms + 900ms); }
@keyframes hb-bw-neon { 0%, 100% { text-shadow: 0 0 18px rgba(255,42,31,.35); } 50% { text-shadow: 0 0 34px rgba(255,42,31,.9), 0 0 8px rgba(255,140,120,.6); } }

@media (prefers-reduced-motion: reduce) {
  .hb-bw [data-e], .hb-bw .tela { opacity: 1; }
  .hb-bw *, .hb-bw *::before, .hb-bw *::after { animation: none !important; }
}

/* pausado (botão do carrossel): a sequência de destaque das telinhas espera junto com o tempo do banner */
.hb-ban-pausado .hb-bw.is-active .tela-in,
.hb-ban-pausado .hb-bw.is-active .tela .vidro { animation-play-state: paused; }
