.video-dialog {
  width: min(1000px, 94vw, calc((100dvh - 100px) * 16 / 9));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #141414;
  color: #fff;
  box-shadow: 0 20px 60px #0005;
}
.video-dialog::backdrop { background: #000b; }
.video-dialog .video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  gap: 12px;
}
.video-dialog h2 { font-size: 14px; font-weight: 500; margin: 0; }
.video-dialog button {
  color: inherit; background: transparent; border: 1px solid #aaa; border-radius: 50%;
  width: 32px; height: 32px; font: 22px/1 Arial,sans-serif; cursor: pointer;
}
.video-dialog button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
@media (prefers-reduced-motion: no-preference) {
  .video-dialog[open] { animation: video-enter 220ms ease-out both; }
  @keyframes video-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } }
}
