/* Escopo do módulo */
.hs-video-embed {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;           /* recorte do radius no iframe/thumbnail */
  background: #000;
  position: relative;
}

/* Aspect ratio moderno */
@supports (aspect-ratio: 16 / 9) {
  .hs-video-embed { aspect-ratio: 16 / 9; height: auto; }
  .hs-video-embed__iframe { width: 100%; height: 100%; border: 0; display: block; }
  .hs-video-embed__placeholder { width: 100%; height: 100%; margin: 0; position: relative; }
  .hs-video-embed__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* Fallback sem aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .hs-video-embed { height: 0; padding-top: 56.25%; }
  .hs-video-embed__iframe,
  .hs-video-embed__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hs-video-embed__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* Botão de play decorativo no placeholder */
.hs-video-embed__play {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(48px, 10vw, 84px); height: clamp(48px, 10vw, 84px);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hs-video-embed__play::before {
  content: "";
  position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-left: clamp(12px, 2.4vw, 20px) solid #fff;
  border-top: clamp(8px, 1.6vw, 14px) solid transparent;
  border-bottom: clamp(8px, 1.6vw, 14px) solid transparent;
}

/* A11y utilitário para figcaption descritivo sem visual */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
