/* The Ask PV reveal's review page: the film fills the screen on black; the controls sit bottom-left (where the council
   show's arrows moved so they never cover the Ask PV launcher), show while the pointer moves, and hide after a moment
   at rest so the audience sees only the film. Until the film has really started, the poster (an <img> over the video)
   and a "Loading..." pill stay up; a stall shows the pill again. Brand tokens: navy #00173f, gold #ffe066.
   Stacking, bottom to top: the video, the poster, the centre (status + big Play), the toast, the bar, the no-script
   fallback. The poster and the centre never take a tap (pointer-events: none), so they can never swallow one. */
:root {
  --bg: #000000;
  --navy: #00173f;
  --gold: #ffe066;
  --ink: #ffffff;
}
[hidden] {
  display: none !important;
}
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
#stage {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg);
}
#film, .cover, .nojs {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#film {
  z-index: 0;
  background: var(--bg);
}
.cover {
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.cover.off {
  opacity: 0;
}
.center {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  padding: 16px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: rgba(0, 23, 63, 0.86);
  border: 1px solid rgba(255, 224, 102, 0.7);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 224, 102, 0.3);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
  flex: none;
}
.status.paused .spin {
  animation: none;
  border-color: var(--gold);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.bar {
  position: absolute;
  z-index: 4;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.bar.on {
  opacity: 1;
  pointer-events: auto;
}
.seg {
  display: inline-flex;
  gap: 0;
}
.bar button, .big {
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  background: rgba(0, 23, 63, 0.82);
  border: 1px solid rgba(255, 224, 102, 0.55);
  border-radius: 10px;
  padding: 12px 18px;
  min-height: 48px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.08s ease, background-color 0.12s ease, color 0.12s ease;
}
.seg button {
  border-radius: 0;
  padding: 12px 14px;
}
.seg button:first-child {
  border-radius: 10px 0 0 10px;
}
.seg button:last-child {
  border-radius: 0 10px 10px 0;
  border-left-width: 0;
}
.seg button[aria-pressed="true"] {
  color: var(--gold);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.bar button:hover, .bar button:focus-visible, .big:hover, .big:focus-visible {
  border-color: var(--gold);
  outline: none;
}
/* the pressed state: shown on the press itself (:active) and held briefly by reveal.js (.pressed), so every press is
   visibly acknowledged at once, even while the film is still loading */
.bar button:active, .big:active, .bar button.pressed, .big.pressed {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: scale(0.95);
}
.big {
  pointer-events: auto;
  font-size: 32px;
  padding: 20px 34px;
  border-width: 2px;
  border-color: var(--gold);
}
.toast {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: max(24px, env(safe-area-inset-top));
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  background: rgba(0, 23, 63, 0.9);
  border: 1px solid rgba(255, 224, 102, 0.7);
  border-radius: 12px;
  padding: 10px 18px;
  pointer-events: none;
}
.nojs {
  z-index: 5;
  background: var(--bg);
}
body.idle, body.idle #stage {
  cursor: none;
}
@media (max-width: 480px) {
  .bar { gap: 8px; }
  .bar button { font-size: 16px; padding: 10px 12px; min-height: 44px; }
  .seg button { padding: 10px 11px; }
  .status { font-size: 20px; padding: 10px 18px; }
  .big { font-size: 26px; padding: 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .spin { animation-duration: 2.4s; }
  .cover, .bar, .bar button, .big { transition: none; }
}
