.modality-video-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid #00bcd4;
  border-radius: 8px;
  background: #073142;
  color: #e9fcff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.modality-video-trigger-icon { color: #26d9ed; font-size: 15px; }
.modality-video-trigger:hover { background: #0a4053; }
.modality-video-trigger:focus-visible,
.modality-video-close:focus-visible { outline: 3px solid #32deef; outline-offset: 4px; }
.modality-video-dialog {
  box-sizing: border-box;
  width: min(390px, calc(100vw - 32px), calc((100vh - 100px) * .5625));
  width: min(390px, calc(100vw - 32px), calc((100dvh - 100px) * .5625));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3a6377;
  border-radius: 14px;
  background: #071e2b;
  color: #fff;
  box-shadow: 0 24px 90px #0009;
}
.modality-video-dialog::backdrop { background: #010c15d9; }
.modality-video-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.modality-video-dialog-header h2 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.modality-video-dialog-header form { flex: 0 0 auto; margin: 0; }
.modality-video-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #446375; border-radius: 6px; background: transparent; color: #fff; font: inherit; font-size: 23px; cursor: pointer; }
.modality-video-close:hover { background: #123746; }
.modality-video-dialog-stage { width: 100%; aspect-ratio: 9 / 16; background: #000; }
.modality-video-dialog-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.modality-video-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .modality-video-trigger { margin-top: 18px; font-size: 13px; }
}
