.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.yt-embed-facade {
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
}

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

.yt-embed-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.yt-embed-facade:hover .yt-embed-poster,
.yt-embed-facade:focus-visible .yt-embed-poster {
  transform: scale(1.03);
}

.yt-embed-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(17, 71, 52, 0.92);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.4);
  transition: background-color 160ms ease;
}

.yt-embed-facade:hover .yt-embed-play {
  background: #114734;
}

.yt-embed-play svg {
  width: 40px;
  height: 40px;
}

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

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(2, 6, 23, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: video-lightbox-in 180ms ease-out;
}

.video-lightbox-dialog {
  position: relative;
  width: min(1080px, 100%);
}

.video-lightbox-close {
  position: absolute;
  right: 0;
  top: -46px;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0;
  line-height: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.video-lightbox-close svg {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.video-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.video-lightbox-close:focus-visible {
  outline: 3px solid #CDAD71;
  outline-offset: 2px;
}

@keyframes video-lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-lightbox {
    animation: none;
  }

  .yt-embed-poster,
  .yt-embed-play,
  .video-lightbox-close {
    transition: none;
  }
}


