.yt-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: #000;
  overflow: hidden;
  margin: 4rem auto;

  border-radius: 0.5rem;
  overflow: hidden;

  border: 1px solid #b0a7e6;
  box-shadow: 0px 0px 12px 0px #342f4e87;

  position: relative;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
  }

  &:has(iframe)::before {
    display: none;
  }
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-play {
  position: absolute;
  inset: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.yt-play::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 300ms;
}

.yt-play::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--bs-primary);
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  transition: border-color 300ms;
}

.yt-play:hover::before {
  background: var(--bs-primary);
}

.yt-play:hover::after {
  border-color: transparent transparent transparent white;
}
