.video-dialog {
  width: min(92vw, 520px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.video-dialog::backdrop {
  background: rgba(22, 20, 15, 0.88);
  backdrop-filter: blur(8px);
}

.video-dialog__shell {
  display: grid;
  gap: 14px;
}

.video-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-dialog__close {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.video-dialog__frame {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}

.video-dialog__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .video-dialog {
    width: min(94vw, 430px);
  }

  .video-dialog__frame {
    max-height: 78vh;
  }
}
