.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 65px rgba(0, 0, 0, .18);
}
.mie-youtube-embed .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.mie-youtube-embed .wp-block-embed__wrapper::before { display: none !important; }
.mie-youtube-embed .mie-youtube-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #051323;
}
.mie-youtube-embed .mie-youtube-trigger > img.mie-youtube-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  display: block;
}
.mie-youtube-play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 4px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #cf2030;
  color: #fff;
  font: 28px/1 Arial, sans-serif;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.mie-youtube-trigger:hover .mie-youtube-play { background: #ad1928; }
.mie-youtube-trigger:focus-visible { outline: 3px solid var(--mie-cyan, #00d9ff); outline-offset: -5px; }
html.mie-video-open { overflow: hidden; }
.mie-modal.mie-video-modal {
  width: min(1120px, calc(100% - 32px), calc((100dvh - 32px) * 16 / 9));
  padding: 0;
  background: #051323;
  border-radius: 24px;
}
.mie-modal.mie-video-modal .mie-modal-close { z-index: 2; }
.mie-modal.mie-video-modal iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: inherit; }
@media (max-width: 600px) {
  .wp-block-embed.is-provider-youtube .wp-block-embed__wrapper { border-radius: 16px; }
  .mie-youtube-play { width: 60px; height: 60px; font-size: 24px; }
}
