/* ============================================================
   HYPERFLOW · VÍDEOS DO YOUTUBE NAS LPs (fachada + playlist)
   Usado junto com /lp/brand/hf-video.js.
   - .hf-video  : vídeo no corpo da página (capa + play; iframe só no clique)
   - .hf-vcard  : card da playlist "Tire suas dúvidas em vídeo" (abre modal)
   ============================================================ */
.hf-video-sec{padding:clamp(56px,8vw,96px) 0}
/* tudo centralizado: título, legenda, capas, cards e link */
.hf-video-sec .hf-vhead{max-width:780px;margin:0 auto clamp(28px,4vw,44px);text-align:center}
.hf-video-sec .hf-vhead .hf-eyebrow{display:flex;justify-content:center;margin-bottom:18px}
.hf-video-sec .hf-vhead .hf-h2{margin-left:auto;margin-right:auto;text-wrap:balance}
.hf-video-sec .hf-vhead .hf-lede{margin:16px auto 0}

/* grade de 1 ou 2 vídeos no corpo */
.hf-video-grid{display:grid;grid-template-columns:1fr;gap:clamp(22px,3.5vw,40px);margin:0 auto}
.hf-video-grid.is-2{max-width:1040px}
@media (min-width:900px){.hf-video-grid.is-2{grid-template-columns:1fr 1fr}}
.hf-video-grid.is-1{max-width:860px}

/* fachada do vídeo */
.hf-video{margin:0;min-width:0}
.hf-video-face{
  position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;
  background:#1A0D4A;border:0;padding:0;cursor:pointer;border-radius:0;
  box-shadow:0 18px 44px -22px rgba(26,13,74,.45);
}
.hf-video-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .5s cubic-bezier(.22,1,.36,1)}
.hf-video-face:hover img{transform:scale(1.03)}
.hf-video-face::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(26,13,74,0) 40%,rgba(26,13,74,.55) 100%)}
.hf-video-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;
  width:72px;height:72px;border-radius:50%;background:#D9F5C4;color:#24135F;
  display:flex;align-items:center;justify-content:center;font-size:24px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);transition:transform .2s ease,background .2s ease;
}
.hf-video-play svg{width:26px;height:26px;margin-left:4px;fill:currentColor}
.hf-video-face:hover .hf-video-play{transform:translate(-50%,-50%) scale(1.08);background:#fff}
.hf-video-face:focus-visible{outline:3px solid #685BC7;outline-offset:3px}
.hf-video-dur{position:absolute;right:12px;bottom:12px;z-index:2;
  font-family:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;letter-spacing:.06em;
  background:rgba(0,0,0,.72);color:#fff;padding:5px 8px}
.hf-video iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000}
.hf-video figcaption{margin:12px auto 0;font-size:14.5px;line-height:1.55;color:#3A2C58;text-align:center;max-width:60ch}
.hf-video figcaption b{color:#24135F}

/* playlist */
.hf-playlist{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2.5vw,28px)}
@media (max-width:899px){
  .hf-playlist{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
    padding:4px 4px 16px;margin:0 -4px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .hf-playlist>.hf-vcard{flex:0 0 78%;max-width:320px;scroll-snap-align:start}
}
.hf-vcard{
  display:flex;flex-direction:column;align-items:stretch;text-align:center;
  background:#fff;border:1px solid #E8E6F0;padding:0;cursor:pointer;min-width:0;
  font-family:inherit;color:#24135F;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.hf-vcard:hover{border-color:#685BC7;transform:translateY(-2px);box-shadow:0 14px 34px -18px rgba(26,13,74,.35)}
.hf-vcard:focus-visible{outline:3px solid #685BC7;outline-offset:2px}
.hf-vcard-thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#1A0D4A}
.hf-vcard-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hf-vcard-thumb .hf-video-play{width:48px;height:48px;font-size:16px}
.hf-vcard-thumb .hf-video-play svg{width:18px;height:18px;margin-left:3px}
.hf-vcard-thumb .hf-video-dur{right:8px;bottom:8px;font-size:11px;padding:4px 6px}
.hf-vcard-title{display:block;padding:14px 16px 16px;font-size:15px;font-weight:700;line-height:1.35;letter-spacing:-.015em;text-align:center}
.hf-playlist-more{margin-top:clamp(22px,3vw,30px);font-size:15px;text-align:center}
.hf-playlist-more a{color:#24135F;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hf-playlist-more a:hover{color:#685BC7}

/* modal do player */
.hf-vmodal{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;
  padding:20px;background:rgba(26,13,74,.86);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.hf-vmodal.act{display:flex}
.hf-vmodal-box{position:relative;width:min(960px,100%);background:#000;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.hf-vmodal-box iframe{display:block;width:100%;aspect-ratio:16/9;border:0}
.hf-vmodal-title{color:#fff;font-size:14px;line-height:1.4;padding:12px 14px;background:#1A0D4A;margin:0}
.hf-vmodal-close{position:absolute;top:-44px;right:0;width:38px;height:38px;border:0;border-radius:50%;
  background:#fff;color:#24135F;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.hf-vmodal-close:hover{background:#D9F5C4}
body.hf-vmodal-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){.hf-video-face img,.hf-video-play,.hf-vcard{transition:none}}
