/* The video: a button under the hero's actions, and the dialog it opens.
   @decision(DL-019) */
.watch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: calc(0.75 * var(--rh));
  font: 400 var(--t-sm)/1.2 var(--sans);
  color: var(--soft);
}
.watch[hidden] { display: none; }
.watch-open { gap: 9px; }
.watch-open .play { width: 10px; height: 10px; fill: currentColor; }

.video-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--raised);
  color: var(--ink);
}
.video-dialog::backdrop { background: rgb(18 20 22 / 0.72); }
/* The padding is on the inner box, so a click on the dialog element
   itself is a click on the backdrop. */
.video-inner { padding: 12px 16px 16px; }
.video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.video-head h2 { font: 600 var(--t-read)/1.3 var(--sans); text-wrap: balance; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 120px);
  margin-inline: auto;
  background: var(--sunk);
  border-radius: 3px;
  overflow: hidden;
}
.video-frame video { display: block; width: 100%; height: 100%; }
.video-frame video[hidden] { display: none; }
.video-missing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font: 400 var(--t-read)/1.45 var(--sans);
  color: var(--ink);
}
.video-missing[hidden] { display: none; }
