/*
  Presenter mode chrome. Loaded in every deck but inert until the body
  carries .pm-presenter (laptop) or .pm-stage (connected display).
  Palette tokens come from reveal-console.css / the per-site accent.
*/

:root {
  --pm-panel-w: 340px;
}

/* ------------------------------ stage ------------------------------ */

.pm-stage {
  cursor: none;
}
.pm-stage .reveal .controls,
.pm-stage .reveal .progress,
.pm-stage .reveal .slide-number {
  display: none !important;
}

/* Fullscreened media: strip the deck theme's iframe border/margin. */
.pm-stage .reveal section iframe:fullscreen,
.pm-stage .reveal section video:fullscreen {
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  background: #000;
}

/* Visual mirror for audio-link playback (sound comes from the presenter). */
.pm-audio-overlay {
  position: fixed;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  min-width: 420px;
  max-width: 70vw;
  padding: 18px 24px;
  background: var(--panel, #101210);
  border: 1px solid var(--rule-panel, #232720);
  border-radius: 6px;
  font-family: var(--mono, monospace);
  color: var(--fg, #d8e0d6);
  z-index: 60;
}
.pm-audio-overlay[hidden] { display: none; }
.pm-ao-badge {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--a, #b6ff5c);
}
.pm-ao-title {
  margin: 6px 0 10px;
  font-family: var(--sans, sans-serif);
  font-size: 22px;
  color: var(--fg-bright, #e4ebe1);
}
.pm-ao-bar {
  height: 4px;
  background: var(--rule, #1e211d);
  border-radius: 2px;
  overflow: hidden;
}
.pm-ao-fill {
  height: 100%;
  width: 0;
  background: var(--a, #b6ff5c);
  transition: width 0.4s linear;
}
.pm-ao-time {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-mute, #6d786a);
}
.pm-ao-paused .pm-ao-fill { opacity: 0.4; }

/* ---------------------------- presenter ---------------------------- */

.pm-presenter .reveal {
  width: calc(100% - var(--pm-panel-w)) !important;
}

.pm-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--pm-panel-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 14px 16px;
  background: var(--panel, #101210);
  border-left: 1px solid var(--rule-panel, #232720);
  font-family: var(--mono, monospace);
  color: var(--fg, #d8e0d6);
  z-index: 80;
}

.pm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule, #1e211d);
}
.pm-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fg-mute, #6d786a);
  flex: none;
}
.pm-light.pm-live {
  background: var(--a, #b6ff5c);
  box-shadow: 0 0 6px var(--a, #b6ff5c);
}
.pm-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-label, #5d6a5a);
  flex: 1;
}
.pm-clock {
  font-size: 15px;
  color: var(--fg-mute, #6d786a);
}
.pm-timer {
  font: 600 15px var(--mono, monospace);
  color: var(--fg-bright, #e4ebe1);
  background: none;
  border: 1px solid var(--rule-panel, #232720);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
}
.pm-timer:hover { border-color: var(--a, #b6ff5c); }

.pm-transport {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule, #1e211d);
}
.pm-tr-title {
  font-size: 13px;
  color: var(--a, #b6ff5c);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-tr-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-tr-toggle,
.pm-tr-fs,
.pm-tr-stop {
  font-size: 14px;
  line-height: 1;
  color: var(--fg-bright, #e4ebe1);
  background: none;
  border: 1px solid var(--rule-panel, #232720);
  border-radius: 4px;
  width: 34px;
  height: 30px;
  cursor: pointer;
  flex: none;
}
.pm-tr-toggle:hover,
.pm-tr-fs:hover,
.pm-tr-stop:hover { border-color: var(--a, #b6ff5c); }
.pm-tr-seek {
  flex: 1;
  accent-color: var(--a, #b6ff5c);
}
.pm-tr-time {
  margin-top: 6px;
  font-size: 12px;
  color: var(--fg-mute, #6d786a);
}

.pm-stage-row { padding: 12px 0 0; }
.pm-popup-row { padding: 12px 0; }
.pm-stage-fs,
.pm-popup-close {
  width: 100%;
  font: 12px var(--mono, monospace);
  color: var(--fg, #d8e0d6);
  background: none;
  border: 1px solid var(--rule-panel, #232720);
  border-radius: 4px;
  padding: 7px 0;
  cursor: pointer;
}
.pm-stage-fs:hover,
.pm-popup-close:hover { border-color: var(--a, #b6ff5c); }

.pm-hint {
  margin: 10px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bg, #0b0c0b);
  background: var(--a, #b6ff5c);
  border-radius: 4px;
}

.pm-notes-label {
  margin: 14px 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-label, #5d6a5a);
}
.pm-notes {
  flex: 1;
  overflow-y: auto;
  font-family: var(--sans, sans-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg, #d8e0d6);
  padding-right: 6px;
}
.pm-notes ul { padding-left: 1.2em; margin: 0.4em 0; }
.pm-notes li { margin: 0.35em 0; }
.pm-notes p { margin: 0.5em 0; }
.pm-notes strong { color: var(--fg-bright, #e4ebe1); }
.pm-no-notes { color: var(--fg-mute, #6d786a); }

/* --------------------------- click-shields -------------------------- */

.pm-shield {
  position: fixed;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(11, 12, 11, 0.35);
  border: 1px solid var(--a, #b6ff5c);
  border-radius: 4px;
  cursor: pointer;
  z-index: 70;
}
.pm-shield:hover { background: rgba(11, 12, 11, 0.15); }
.pm-shield-label {
  margin-bottom: 8px;
  padding: 4px 10px;
  font: 12px var(--mono, monospace);
  color: var(--bg, #0b0c0b);
  background: var(--a, #b6ff5c);
  border-radius: 3px;
  white-space: nowrap;
}
.pm-shield-playing { border-style: dashed; }
