.x-click-to-play .wp-block-embed__wrapper::before {
  display: none !important;
}

.x-youtube-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  color: #fff;
}

.x-youtube-preview__play {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-align: center;
}

.x-youtube-preview__play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.x-youtube-preview__play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x-youtube-preview__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 50px;
  border-radius: .75rem;
  background: #c00;
  color: #fff;
}

.x-youtube-preview__icon::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 28px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid #fff;
}

.x-youtube-preview__label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .25rem .75rem;
  background: #000c;
  color: #fff;
  white-space: nowrap;
}

.x-youtube-preview__status:not([hidden]) {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: .75rem;
  background: #000;
  color: #fff;
  font-size: 1rem;
  pointer-events: none;
}

.x-youtube-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
