#demo-modal {
  box-sizing: border-box;
  width: min(94vw, 1600px);
  max-width: 94vw;
  max-height: 94dvh;
  margin: auto;
  padding: 52px 12px 12px;
  border: 1px solid #3a3f45;
  border-radius: 14px;
  background: #0b0f13;
  color: white;
  box-shadow: 0 28px 100px #000b;
  overflow: auto;
}
#demo-modal::backdrop { background: rgba(0, 0, 0, .88); }
.demo-close {
  position: absolute;
  top: 6px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}
.demo-close:hover { background: #ffffff18; }
.demo-close:focus-visible { outline: 2px solid #88c4ff; outline-offset: -3px; }
#demo-video {
  display: block;
  width: 100%;
  max-height: calc(94dvh - 78px);
  aspect-ratio: 1604 / 1006;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}
.demo-playback-notice { margin: 12px 8px 0; font: 14px/1.5 -apple-system, sans-serif; color: #afb5bd; }
.demo-playback-notice[hidden] { display: none; }
@media (max-width: 600px) {
  #demo-modal { width: 96vw; max-width: 96vw; padding: 52px 6px 6px; border-radius: 10px; }
}
