/* Click-to-load YouTube facade — shared across sections, card layouts and oEmbeds. */

.bs-yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.bs-yt-facade-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.bs-yt-facade-thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bs-yt-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.bs-yt-facade-play-bg {
  fill: #212121;
  fill-opacity: 0.8;
  transition: fill 0.2s ease, fill-opacity 0.2s ease;
}

.bs-yt-facade-trigger:hover .bs-yt-facade-play-bg,
.bs-yt-facade-trigger:focus-visible .bs-yt-facade-play-bg {
  fill: #f00;
  fill-opacity: 1;
}

.bs-yt-facade-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.bs-yt-facade-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
