/* YouTube lite facade — poster + play, iframe on click */

.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151515;
  border-radius: var(--hv3-radius, 12px);
  border: 1px solid var(--hv3-gray-200, #e2e8f0);
  box-shadow: var(--hv3-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.yt-facade__button {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.yt-facade__button:focus-visible {
  outline: 3px solid var(--hv3-primary-light, #3b9dd9);
  outline-offset: 3px;
}

.yt-facade__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.yt-facade__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.yt-facade__play-bg {
  fill: #212121;
  fill-opacity: 0.85;
  transition: fill 0.15s ease, fill-opacity 0.15s ease;
}

.yt-facade__play-icon {
  fill: #ffffff;
}

.yt-facade__button:hover .yt-facade__play-bg,
.yt-facade__button:focus-visible .yt-facade__play-bg {
  fill: #f00;
  fill-opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .yt-facade__button:hover .yt-facade__play {
    transform: scale(1.06);
  }
}

.yt-facade.is-playing {
  border-color: transparent;
  box-shadow: none;
}

.yt-facade__iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
