/* hub.css · página de links do PipocaTech. AZUL do canal (o do mascote, mestre 02/12) sobre escuro azulado (nunca
   preto chapado), roxo do anel do mascote de apoio, textura hexagonal, título largo espaçado com a palavra em caixa
   azul. Azul de fundo de botão = #0b6fd8 (branco passa AA); o claro #2e9bff só em brilho e detalhe. Nada inline (CSP). */
@font-face { font-family: 'avenir-heavy'; src: url(fontes/avenir-heavy.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'pipoca-cond'; src: url(fontes/pipoca-cond.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'proxima'; src: url(fontes/proxima.woff2) format('woff2'); font-weight: 400; font-display: swap; }
:root {
  --azul: #0b6fd8; --azul-2: #2e9bff; --roxo: #5a2cf0; --tinta: #060a13;
  --escuro: #0b101c; --escuro-2: #101828; --escuro-3: #172238; --linha: #263452;
  --branco: #f3f6fb; --branco-2: #b9c3d6;
  --f-largo: 'avenir-heavy', 'Arial Black', sans-serif; --f-cond: 'pipoca-cond', 'Arial Narrow', sans-serif; --f-corpo: 'proxima', Arial, sans-serif;
  --raio: 4px; --cx: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--escuro); color: var(--branco); font: 17px/1.6 var(--f-corpo); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.cx { width: 100%; max-width: var(--cx); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--azul-2); outline-offset: 3px; }

/* topo: o mascote no meio, como no site antigo */
.topo { display: flex; justify-content: center; padding: 10px 0; background: var(--tinta); border-bottom: 2px solid var(--azul-2); }
.topo-logo img { width: auto; height: 56px; }

/* herói: escuro azulado com o brilho azul e a textura hexagonal */
.heroi { position: relative; overflow: hidden; isolation: isolate; color: var(--branco);
  background: radial-gradient(ellipse 70% 90% at 78% 55%, rgba(46, 155, 255, .85), rgba(90, 44, 240, .22) 55%, transparent 75%), linear-gradient(180deg, #0f1626, #080c16); }
.heroi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(padrao.webp) center / 520px auto repeat; opacity: .07; }
.heroi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--azul-2); box-shadow: 0 0 22px var(--azul-2); }
.heroi-cx { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.sobre { font: 800 14px/1 var(--f-largo); letter-spacing: .3em; text-transform: uppercase; color: var(--azul-2); margin-bottom: 18px; }
.heroi h1 { font: 800 clamp(36px, 5.6vw, 66px)/1.14 var(--f-largo); letter-spacing: .12em; text-transform: uppercase; animation: sobe .7s .1s ease-out both; }
.heroi h1 mark { background: var(--azul); color: #ffffff; padding: 0 .22em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { max-width: 560px; color: var(--branco-2); font-size: 18px; animation: sobe .7s .25s ease-out both; }
.heroi .bts { animation: sobe .7s .4s ease-out both; }
.heroi-arte { display: flex; justify-content: center; }
.mascote { width: min(100%, 400px); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); animation: flutua 5s ease-in-out infinite; }
@keyframes flutua { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* botões */
.bts { display: flex; flex-wrap: wrap; gap: 12px; }
.bt { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--raio); background: var(--azul); color: #ffffff; border: 2px solid var(--azul);
  font: 800 14px/1 var(--f-largo); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: transform .15s, background .15s; }
.bt svg { width: 20px; height: 20px; flex: none; }
.bt:hover { background: #1580f0; border-color: #1580f0; transform: translateY(-2px); }
.bt-vazado { background: transparent; color: var(--branco); border-color: var(--branco); }
.bt-vazado:hover { background: var(--branco); color: var(--tinta); }
.bt-escuro { background: var(--tinta); color: #ffffff; border-color: var(--tinta); }
.bt-escuro:hover { background: #000; color: #ffffff; border-color: #ffffff; }

/* faixa azul que corre */
.corre { position: relative; display: flex; align-items: center; overflow: hidden; background: var(--azul); color: #ffffff; }
.corre-janela { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.corre-trilho { display: flex; flex: none; margin: 0; padding: 0; list-style: none; animation: corre 40s linear infinite; }
.corre-trilho li { flex: none; padding: 16px 26px; font: 700 26px/1 var(--f-cond); text-transform: uppercase; white-space: nowrap; }
.corre-trilho li::after { content: "·"; margin-left: 26px; opacity: .5; }
.corre.parado .corre-trilho { animation-play-state: paused; }
.corre-pausa { flex: none; margin: 0 12px; background: var(--tinta); color: #ffffff; border: 0; border-radius: var(--raio); font: 800 12px/1 var(--f-largo); letter-spacing: .08em; padding: 10px 12px; cursor: pointer; }
@keyframes corre { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* vídeo do canal: player com os envios (o mais novo primeiro) */
.video { background: var(--escuro-2); }
.video-cx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px 48px; align-items: center; }
.video-txt p { color: var(--branco-2); font-size: 18px; margin-bottom: 22px; }
.video-quadro { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--tinta); border: 1px solid var(--linha); box-shadow: 0 20px 60px rgba(11, 111, 216, .25); }
.video-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* recentes [PIPOCA-GALERIA 04/12]: trilhos que rolam de lado (shorts 9:16, vídeos 16:9), capas alinhadas pelo topo e
   título com 2 linhas reservadas (§6.32). O trilho rola dentro da caixa: a página nunca ganha rolagem lateral. */
.recentes { background: radial-gradient(ellipse 60% 70% at 12% 0%, rgba(46, 155, 255, .16), transparent 70%), var(--escuro); border-bottom: 1px solid var(--linha); }
.rec-topo p { color: var(--branco-2); font-size: 18px; margin: 0; }
.gal { margin-top: 32px; min-width: 0; }
.gal-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gal-cab h3 { margin: 0; font: 700 26px/1 var(--f-cond); text-transform: uppercase; color: var(--azul-2); }
.gal-setas { display: flex; gap: 8px; }
.gal-seta { display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 3px; border-radius: 50%; background: var(--escuro-3); color: var(--branco);
  border: 1px solid var(--linha); font: 400 28px/1 var(--f-corpo); cursor: pointer; transition: border-color .2s, background .2s; }
.gal-seta:hover:not(:disabled) { border-color: var(--azul-2); background: #1c2943; }
.gal-seta:disabled { opacity: .35; cursor: default; }
.gal-trilho { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 4px 2px 14px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--linha) transparent; }
.gal-trilho li { flex: none; scroll-snap-align: start; }
.gal-vertical li { width: 190px; }
.gal-largo li { width: 320px; }
.gal-card { display: flex; flex-direction: column; width: 100%; padding: 0; margin: 0; background: none; border: 0; color: var(--branco); font: inherit; text-align: left; cursor: pointer; }
.gal-capa { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--tinta); border: 1px solid var(--linha); transition: border-color .2s; }
.gal-vertical .gal-capa { aspect-ratio: 9 / 16; }
.gal-largo .gal-capa { aspect-ratio: 16 / 9; }
.gal-capa img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease-out; }
.gal-card:hover .gal-capa { border-color: var(--azul-2); }
.gal-card:hover .gal-capa img { transform: scale(1.04); }
.gal-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(11, 111, 216, .92);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45); transition: transform .2s; }
.gal-play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 17px solid #ffffff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.gal-card:hover .gal-play { transform: scale(1.1); }
.gal-tit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin-top: 10px; font-size: 15px; line-height: 1.35; }
.gal-data { margin-top: 4px; color: var(--branco-2); font-size: 13px; }

/* vídeo grande na mesma página, com X (§6.29) */
html.gal-aberto { overflow: hidden; }
.gal-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 64px 16px 16px; background: rgba(4, 7, 14, .94); }
.gal-modal[hidden] { display: none; }
.gal-modal-quadro { position: relative; overflow: hidden; border-radius: 8px; background: #000000; box-shadow: 0 20px 70px rgba(11, 111, 216, .3); }
.gal-q-largo { width: min(100%, 1120px, calc((100vh - 96px) * 16 / 9)); aspect-ratio: 16 / 9; }
.gal-q-vertical { height: min(calc(100vh - 96px), calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; }
.gal-modal-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gal-fecha { position: fixed; top: 12px; right: 14px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0 0 4px; border: 0; border-radius: 50%;
  background: var(--branco); color: var(--tinta); font: 400 34px/1 var(--f-corpo); cursor: pointer; }
.gal-fecha:hover { background: #ffffff; }

/* redes */
.faixa { padding: 72px 0; }
.redes { background: var(--escuro); }
.faixa h2 { font: 700 clamp(34px, 4.4vw, 52px)/1.05 var(--f-cond); text-transform: uppercase; }
.grade-redes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; align-items: start; }
.rede { display: flex; align-items: center; gap: 16px; padding: 18px; min-height: 92px; border-radius: var(--raio); background: var(--escuro-3); border: 1px solid var(--linha);
  text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.rede:hover { border-color: var(--azul-2); transform: translateY(-3px); background: #1c2943; }
.rede-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--rede, var(--azul)); color: #fff; }
.rede-ic svg { width: 28px; height: 28px; }
.rede-txt { display: flex; flex-direction: column; min-width: 0; }
.rede-nome { font: 800 15px/1.2 var(--f-largo); letter-spacing: .1em; text-transform: uppercase; }
.rede-linha { color: var(--branco-2); font-size: 15px; overflow-wrap: anywhere; }
.rede-seta { margin-left: auto; color: var(--azul-2); font-size: 22px; transition: transform .2s; }
.rede:hover .rede-seta { transform: translateX(4px); }
.rede-yt { --rede: #ff0000; }
.rede-zap { --rede: #1a9e4b; }
.rede-tg { --rede: #1d8ccc; }
.rede-dc { --rede: #5865f2; }
.rede-ig { --rede: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.rede-tt { --rede: #000; }
.rede-fb { --rede: #1877f2; }

/* no seu celular: faixa azul (do azul pro roxo do anel do mascote) com os dois botões */
.celular { background: linear-gradient(110deg, var(--azul) 30%, var(--roxo)); color: #ffffff; position: relative; isolation: isolate; overflow: hidden; }
.celular::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(padrao.webp) center / 520px auto repeat; opacity: .06; }
.celular-cx { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.celular p { margin: 0; font-size: 18px; }

/* rodapé */
.rodape { background: var(--tinta); border-top: 1px solid var(--linha); padding: 28px 0; color: var(--branco-2); font-size: 14px; }
.rodape-cx img { width: auto; height: 44px; }
.rodape-cx { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rodape-cx p { margin: 0 0 0 auto; }
.rodape-redes { display: flex; gap: 10px; flex-wrap: wrap; }
.rodape-redes a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--escuro-3); color: var(--branco); transition: background .2s, color .2s; }
.rodape-redes a:hover { background: var(--azul); color: #ffffff; }
.rodape-redes svg { width: 18px; height: 18px; }

/* surge ao rolar (vitrine.js marca; sem JS tudo aparece) */
.js .surge { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .surge.visto { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .heroi { background: radial-gradient(ellipse 90% 34% at 50% 20%, rgba(46, 155, 255, .8), rgba(90, 44, 240, .16) 70%, transparent 100%), linear-gradient(180deg, #0f1626, #080c16); }
  .heroi-cx { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
  .grade-redes { grid-template-columns: minmax(0, 1fr); }
  .heroi-arte { order: -1; }
  .mascote { width: min(62vw, 260px); }
  .celular-cx, .video-cx { grid-template-columns: minmax(0, 1fr); }
  .rodape-cx p { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .heroi h1 { letter-spacing: .06em; }
  .bt { width: 100%; justify-content: center; }
  .faixa { padding: 52px 0; }
  .gal-vertical li { width: 150px; }
  .gal-largo li { width: 262px; }
  .gal-trilho { gap: 12px; }
  .gal-tit { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .corre-janela { mask-image: none; }
  .corre-trilho { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; }
  .corre-trilho[aria-hidden="true"], .corre-pausa { display: none; }
  .js .surge { opacity: 1; transform: none; }
}
