/*
 * lite-youtube-embed styles
 *
 * Minimal CSS to render the .yt-lite, .yt-lite__play, .yt-lite__label
 * markup used in hosting.html's video-demo section.
 *
 * Source: https://github.com/paulirish/lite-youtube-embed (MIT, Paul Irish).
 * Self-hosted here rather than CDN'd to keep the page's CSS budget under
 * our control + avoid third-party blocking. Restored 2026-05-08 — was
 * referenced from hosting.html but the file had never been added.
 */

.yt-lite {
  background-color: #000;
  position: relative;
  display: block;
  contain: content;
  background-position: center center;
  background-size: cover;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.yt-lite::after {
  content: "";
  display: block;
  padding-bottom: calc(100% / (16 / 9));
}

.yt-lite > iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
}

.yt-lite > .yt-lite__play {
  font-size: 10px;
  padding: 0;
  width: 68px;
  height: 48px;
  background: no-repeat center/68px 48px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="%23f00"/><path d="M45 24 27 14v20" fill="%23fff"/></svg>');
  position: absolute;
  cursor: pointer;
  transform: translate3d(-50%, -50%, 0);
  top: 50%;
  left: 50%;
  z-index: 1;
  border: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.yt-lite:hover > .yt-lite__play {
  opacity: 1;
}

.yt-lite.lyt-activated {
  cursor: unset;
}

.yt-lite.lyt-activated::before,
.yt-lite.lyt-activated > .yt-lite__play,
.yt-lite.lyt-activated > .yt-lite__label {
  opacity: 0;
  pointer-events: none;
}

.yt-lite__label {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 12px;
  border-radius: 4px;
  margin: 8px;
  pointer-events: none;
  font-family: var(--font-sans, system-ui, sans-serif);
}
