/* Lazy YouTube facade — poster shown before the native iframe loads on click.
   See youtube_controller.js. */
.yt-lazy {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.yt-lazy__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background-color: #000;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.yt-lazy__play {
  width: 68px;
  height: 48px;
}

.yt-lazy__play-shadow {
  fill: #212121;
  fill-opacity: 0.8;
  transition: fill 0.2s ease, fill-opacity 0.2s ease;
}

.yt-lazy__poster:hover .yt-lazy__play-shadow,
.yt-lazy__poster:focus-visible .yt-lazy__play-shadow {
  fill: #f00;
  fill-opacity: 1;
}

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