/* ===== Opportunity Builds Africa — Show Control ============================ */
:root {
  --amber: #f4b400;     /* OBA gold */
  --orange: #e8540f;    /* OBA orange */
  --brown: #3a2a1c;     /* OBA brown */
  --bg: #12161b;        /* console background (dark = kind on the eyes in a dark room) */
  --panel: #1b2028;
  --panel2: #222933;
  --line: #2c343f;
  --ink: #eef2f6;
  --muted: #93a1b0;
  --good: #35c07a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); }

/* ===== Projector / Show window =========================================== */
body.show { background: #000; overflow: hidden; cursor: none; }
.show-stage { position: fixed; inset: 0; background: #000; }
.show-stage img.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000;
}
.show-stage .videowrap { position: absolute; inset: 0; background: #000; }
.show-stage .videowrap iframe { width: 100%; height: 100%; border: 0; }
/* Branded standby (shown after videos / when the operator hits Standby) — the OBA logo on a
   deep, warm-dark background. Reads as intentional on the projector, not a dead black screen. */
.standby {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 45%, #2a2118 0%, #14100b 60%, #000 100%);
}
.standby img { width: min(52vw, 720px); height: auto; filter: drop-shadow(0 8px 40px rgba(0,0,0,0.5)); }

#unlock {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; text-align: center;
  background: #0b0e12; color: var(--ink); cursor: pointer;
}
#unlock .oba { color: var(--amber); font-weight: 900; font-size: clamp(24px, 4vw, 44px); }
#unlock .big { font-size: clamp(20px, 3vw, 30px); font-weight: 800; }
#unlock .sub { color: var(--muted); max-width: 620px; line-height: 1.5; padding: 0 20px; }
#unlock .key { color: var(--amber); font-weight: 800; }

/* ===== Operator Console ================================================== */
.console { display: grid; grid-template-columns: 360px 1fr 340px; height: 100vh; }
@media (max-width: 1100px) { .console { grid-template-columns: 1fr; height: auto; } }

.col { padding: 16px; overflow-y: auto; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.brandbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brandbar .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.brandbar .brandlogo { height: 40px; width: auto; background: var(--amber); border-radius: 8px; padding: 4px 7px; }
.brandbar b { font-size: 15px; }
.brandbar small { color: var(--muted); display: block; font-weight: 600; }

h2.sec { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
  margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; }
h2.sec .secnote { text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--muted); opacity: 0.8; font-weight: 500; }
.grow { flex: 1; }

/* filmstrip */
.film { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 8px; overflow-x: auto;
  padding: 4px 2px 10px; scroll-behavior: smooth; }
.film .thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.film .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film .thumb span { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,0.65); color: #fff;
  font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 5px; }
.film .thumb:hover { border-color: var(--amber); }
.film .thumb.on { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(232,84,15,0.4); }
.film::-webkit-scrollbar { height: 8px; }
.film::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* run-of-show cue buttons */
.cue { display: block; width: 100%; text-align: left; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 10px; cursor: pointer; transition: 0.12s; }
.cue:hover { border-color: var(--amber); }
.cue .lab { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cue .num { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; background: var(--panel2);
  align-items: center; justify-content: center; font-size: 12px; color: var(--muted); flex: none; }
.cue .hint { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.cue.active { border-color: var(--orange); background: linear-gradient(180deg, rgba(232,84,15,0.18), var(--panel)); box-shadow: 0 0 0 2px rgba(232,84,15,0.25) inset; }
.cue.active .num { background: var(--orange); color: #fff; }

.big-next { width: 100%; padding: 16px; border: 0; border-radius: 12px; background: var(--orange);
  color: #fff; font-weight: 900; font-size: 17px; cursor: pointer; margin-top: 6px; }
.big-next:hover { filter: brightness(1.08); }
.big-next small { display: block; font-weight: 700; opacity: 0.85; font-size: 12px; margin-top: 2px; }

/* preview mirror */
.preview { background: #000; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; position: relative; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.preview .pvvideo { position: absolute; inset: 0; display: none; background: #000; }
.preview .pvvideo iframe { width: 100%; height: 100%; border: 0; }
.preview .projwarn { position: absolute; left: 0; right: 0; bottom: 0; display: none; text-align: center;
  background: rgba(232,84,15,0.92); color: #fff; font-weight: 800; font-size: 12px; padding: 6px 8px; }
.preview .mutehint { position: absolute; right: 8px; top: 8px; display: none; background: rgba(0,0,0,0.6);
  color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.preview .handoff { position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #241a10, #0f0b06); padding: 18px; }
.preview .hcard { max-width: 460px; width: 100%; }
.preview .hcard .htitle { font-size: 16px; font-weight: 900; color: var(--amber); margin-bottom: 10px; }
.preview .hcard ol { margin: 0 0 14px; padding-left: 18px; color: var(--ink); }
.preview .hcard li { font-size: 13px; line-height: 1.6; margin-bottom: 4px; }
.preview .hcard b { color: #fff; }
.preview .tag { position: absolute; inset: 0; display: none; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: #fff; text-align: center; }
.preview .tag.amber { background: var(--amber); color: var(--brown); }
.preview .tag b { font-size: 22px; }
.statusline { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 2px;
  color: var(--muted); font-size: 13px; }
.statusline b { color: var(--ink); }

.transport { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; font-weight: 700; font-size: 14px; }
.btn:hover { border-color: var(--amber); }
.btn.primary { background: var(--amber); color: var(--brown); border-color: var(--amber); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.danger { border-color: #7a2b2b; color: #ffb4b4; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.mt { margin-top: 10px; }
.jump input { width: 70px; background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 8px; font-weight: 700; }
label.tiny { color: var(--muted); font-size: 12px; }

/* music panel */
.track { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 8px; background: var(--panel); }
.track .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.track .t.playing { color: var(--amber); font-weight: 800; }
.track .x { color: var(--muted); cursor: pointer; border: 0; background: none; font-size: 16px; }
.addrow { display: flex; gap: 8px; }
.addrow input { flex: 1; background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 9px; font-size: 13px; }
.vol { width: 100%; }
.hidden-player { position: fixed; width: 1px; height: 1px; left: -9999px; top: -9999px; opacity: 0; }
.note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.kbd { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  font-size: 12px; color: var(--ink); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.pill.live { background: var(--orange); color: #fff; }
.pill.off { background: var(--panel2); color: var(--muted); }
