/*
 * Based on https://github.com/ibrahimcesar/react-lite-youtube-embed
 */
.yt-lite {
  background: var(--lyt-background);
  position: relative;
  display: block;
  contain: content;
  background-position: 50%;
  background-size: cover;
  cursor: pointer;

  border-radius: 8px;
}

.yt-lite.lyt-activated::before {
  content: "";
  box-sizing: content-box;
  display: block;
  position: absolute;
  top: 0;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==);
  background-position: top;
  background-repeat: repeat-x;
  height: 60px;
  padding-bottom: 50px;
  width: 100%;
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
}
.yt-lite::after {
  content: "";
  display: block;
  padding-bottom: var(--aspect-ratio);
}

.yt-lite:not(.lyt-activated).blur::after {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(7.5px);
}

.yt-lite > iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.yt-lite > .lty-playbtn {
  z-index: 1;
  background-color: transparent;
  padding: 0;
  border: none;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;

  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
}

.lty-playbtn svg {
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
  opacity: 0.8;
}
.lty-playbtn:hover svg {
  scale: 1.1;
  opacity: 1;
}

@media (max-width: 768px) {
  .yt-lite > .lty-playbtn {
    gap: 16px;
  }
  .lty-playbtn svg {
    height: 36px;
  }
}

.lty-playbtn-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  color: var(--ens-dark-blue);
}
.yt-lite > .lty-playbtn,
.yt-lite > .lty-playbtn::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}
.yt-lite.lyt-activated {
  cursor: unset;
  background: var(--ens-gray-2);
  overflow: hidden;
}

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