.rt-youtube-facade {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(80, 214, 255, .24), transparent 34%),
    linear-gradient(135deg, #111b35, #080d1a 72%);
  border-radius: 14px;
}

.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper > .rt-youtube-facade {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.rt-youtube-facade__poster,
.rt-youtube-facade__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rt-youtube-facade__poster {
  z-index: -2;
  object-fit: cover;
}

.rt-youtube-facade::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 24, .08), rgba(5, 10, 24, .72));
  content: "";
  pointer-events: none;
}

.rt-youtube-facade__button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 4vw, 34px);
  gap: 15px;
  align-items: flex-end;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rt-youtube-facade__button[hidden] {
  display: none;
}

.rt-youtube-facade__button:focus-visible {
  outline: 3px solid #70e1d0;
  outline-offset: -6px;
}

.rt-youtube-facade__play {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #111827;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.rt-youtube-facade__play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.rt-youtube-facade__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-bottom: 3px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

.rt-youtube-facade__copy strong {
  font-size: clamp(16px, 2.2vw, 20px);
}

.rt-youtube-facade__copy small {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
}

.rt-youtube-facade__fallback {
  position: absolute;
  inset: auto 20px 20px;
  z-index: 2;
  margin: 0;
  padding: 12px 15px;
  background: rgba(8, 13, 26, .88);
  border-radius: 8px;
  font: 700 14px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

.rt-youtube-facade__fallback a {
  color: #fff;
}

@media (max-width: 520px) {
  .rt-youtube-facade__button {
    padding: 16px;
    gap: 11px;
  }

  .rt-youtube-facade__play {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .rt-youtube-facade__play svg {
    width: 22px;
    height: 22px;
  }
}
