/* Poster + play button standing in for the YouTube iframe (yt-facade.js).
   Fills the same positioned 16:9 / 1:1 box the iframe used to fill. */
.yt-facade,
.yt-facade-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-facade {
  display: block;
  padding: 0;
  margin: 0;
  background: #0b0b14;
  cursor: pointer;
  overflow: hidden;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.2, .75, .25, 1), filter .3s ease;
}

.yt-facade-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  background: rgba(255, 0, 0, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease, background-color .2s ease;
}

.yt-facade-play svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  margin-left: 3px;
}

.yt-facade:hover img { transform: scale(1.02); filter: brightness(1.06); }
.yt-facade:hover .yt-facade-play { transform: translate(-50%, -50%) scale(1.06); background: #ff0000; }

.yt-facade:focus-visible {
  outline: 3px solid #6e5bf0;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .yt-facade img,
  .yt-facade-play { transition: none; }
}
