.sn-yt-lite {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.sn-yt-lite img,
.sn-yt-lite .sn-yt-lite-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .25s ease;
}
.sn-yt-lite:hover img { filter: brightness(0.7); }

.sn-yt-lite .sn-yt-lite-placeholder {
  background: #000 center/cover no-repeat;
}

.sn-yt-lite-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  appearance: none;
  outline: none;
}
.sn-yt-lite-play:focus-visible .sn-yt-lite-icon {
  box-shadow: 0 0 0 3px #005fcc;
}

.sn-yt-lite-icon {
  --sn-pad-safe: min(var(--sn-pad, 12px), calc(var(--sn-btn-size, 80px) / 2 - 2px));
  width: var(--sn-btn-size, 80px);
  height: var(--sn-btn-size, 80px);
  border-radius: var(--sn-btn-radius, 50%);
  background: var(--sn-btn-bg, rgba(0,0,0,.55));
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease;
  padding: var(--sn-pad-safe);
  color: var(--sn-icon, #fff);
}
.sn-yt-lite-icon::before {
  content: '';
  width: calc(100% - (2 * var(--sn-pad-safe)));
  height: calc(100% - (2 * var(--sn-pad-safe)));
  background: currentColor;
  clip-path: polygon(28% 15%, 28% 85%, 80% 50%);
}

.sn-yt-lite-play:hover .sn-yt-lite-icon {
  background: var(--sn-btn-bg-hover, rgba(0,0,0,.7));
  color: var(--sn-icon-hover, #fff);
}

@media (prefers-reduced-motion: no-preference) {
  .sn-yt-lite[data-pulse="true"] .sn-yt-lite-play:hover .sn-yt-lite-icon {
    animation: sn-yt-pulse 1.2s infinite;
  }
}
@keyframes sn-yt-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.4); }
  70%  { box-shadow: 0 0 0 25px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.sn-yt-lite-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.sn-yt-lite-iframe > iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  pointer-events: auto !important;
}

.sn-yt-lite.is-playing > img,
.sn-yt-lite.is-playing > .sn-yt-lite-placeholder {
  opacity: 0;
  pointer-events: none;
}
