  /* HOST CONSOLE SHELL (simple neutral boxes for platform.hostconsole.js to populate) */
  #host-console-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .host-console-box {
    background: #050b14;
    border: 1px solid #262c3a;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-height: 40px;
  }

  @media (min-width: 1200px) {
    #host-console-shell {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  /* === PER-SEAT MUTE BUTTON (safe, isolated) === */
#video-grid .seat-mute-btn {
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #ef4444;
  color: #fef2f2;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
/* Visual muted state */
.seat.seat-muted {
  outline: 2px solid #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

/* Host-only VOTING CONSOLE above media console */
.vote-console{
  display: none;                 /* HIDDEN BY DEFAULT – JS will show for host only */
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #111827;
  background: #020617;

  /* layout tweaks (merged from the duplicate block) */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;

  /* existing layout */
  flex-direction: column;
  font-size: 12px;
}
/* Host-only: never show hot stats to players/viewers */
/* KISS: allow hot stats overlay to render for non-host when triggered */
/* body:not(.host-mode) #hot-stats-overlay { display: none !important; } */



/* NEW — when JS marks host, show it */
.vote-console.vote-visible{
  display: flex;
}


    .vote-console-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .vote-console-label {
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: 11px;
      opacity: .8;
    }

    .vote-console-pill {
      padding: 3px 9px;
      border-radius: 999px;
      border: 1px solid #374151;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .10em;
      opacity: .85;
    }

    .vote-console-pill.live {
      border-color: #22c55e;
      color: #bbf7d0;
      background: #052e16;
    }

    .vote-console-body {
      display: flex;
      gap: 12px;
      margin-top: 4px;
    }

    .vote-controls-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }

    .vote-controls-row button {
      border-radius: 999px;
      border: 1px solid #4b5563;
      background: #111827;
      color: #f9fafb;
      padding: 4px 10px;
      font-size: 11px;
      cursor: pointer;
      width: 110px;
    }

    .vote-controls-row button:hover {
      background: #1f2937;
    }

    .vote-console-right {
      flex: 1;
    }

    .vote-timer {
      font-size: 11px;
      opacity: .8;
    }

    /* Host-only media console under the arena */
    .media-console {
      margin-top: 8px;
      padding: 8px 10px;
      border-radius: 10px;
      border: 1px solid #111827;
      background: #020617;

      display: none;            /* only enabled for host-mode below */
      flex-direction: column;
      gap: 6px;
      font-size: 12px;
      padding: 12px;
      max-height: 76px;
      overflow: hidden;
      transition: max-height 0.2s ease;
      position: relative;
      z-index: 5;
    }

    .media-console.media-expanded {
      max-height: 160px;
      overflow: auto;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    }

    .media-console-header,
    .media-console-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .media-console-label {
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 11px;
      opacity: 0.7;
      white-space: nowrap;
    }

    .media-console-status {
      font-size: 11px;
      opacity: 0.8;
    }

    .media-core-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 11px;
      opacity: 0.9;
    }

    .media-rows {
      display: none;
      flex-direction: column;
      gap: 4px;
      max-height: 150px;
      overflow-y: auto;
      padding-top: 4px;
    }
    .media-btn,
.media-file-trigger {
  padding: 0 6px !important;
  font-size: 10px !important;
}

.media-seat-tag {
  padding: 0 4px !important;
  font-size: 10px !important;
}

.media-title-input {
  width: 100% !important;
  min-width: 0 !important;
}

.media-row-status {
  font-size: 10px;
  text-align: left;
}


    .media-console.media-expanded .media-rows {
      display: flex;
    }

    .media-row {
  display: grid;

  /* V | P2 | Add | Title | U | status */
  grid-template-columns:
    24px   /* V */
    36px   /* P2–P8 */
    88px   /* Add Files */
    180px  /* Title */
    24px   /* U */
    48px;  /* status */

  align-items: center;
  gap: 6px;
  font-size: 11px;
}


    .media-seat-tag {
      font-weight: 600;
      padding: 2px 6px;
      border-radius: 999px;
      border: 1px solid #374151;
      background: #020617;
    }

    .media-btn,
    .media-file-trigger {
      border-radius: 999px;
      border: 1px solid #4b5563;
      background: #111827;
      color: #f9fafb;
      padding: 3px 8px;
      cursor: pointer;
      white-space: nowrap;
      font-size: 11px;
    }

    .media-btn:hover,
    .media-file-trigger:hover {
      background: #1f2937;
    }

    .media-title-input {
      border-radius: 999px;
      border: 1px solid #374151;
      background: #020617;
      color: #f9fafb;
      padding: 3px 8px;
      font-size: 11px;
      min-width: 80px;
    }

    .media-row-status {
      font-size: 10px;
      opacity: 0.75;
      text-align: right;
    }

    .media-console select,
    .media-console button,
    #media-url-input {
      font-size: 12px;
    }

    .media-console select {
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid #374151;
      background: #020617;
      color: #f9fafb;
      outline: none;
      max-width: 220px;
    }

    #media-url-input {
      min-width: 220px;
      max-width: 320px;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid #374151;
      background: #020617;
      color: #f9fafb;
      outline: none;
    }

    .media-console-footer button {
      border-radius: 999px;
      border: 1px solid #4b5563;
      background: #111827;
      color: #f9fafb;
      padding: 4px 10px;
      cursor: pointer;
      white-space: nowrap;
    }

    .media-console-footer button:hover {
      background: #1f2937;
    }

    #media-toggle {
      border-radius: 999px;
      border: 1px solid #4b5563;
      background: #111827;
      color: #e5e7eb;
      padding: 3px 8px;
      font-size: 10px;
      cursor: pointer;
      white-space: nowrap;
    }

    #media-toggle:hover {
      background: #1f2937;
    }

    .media-session-list {
      display: none;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 4px;
    }

    .media-console.media-expanded .media-session-list {
      display: flex;
    }

    .media-session-item {
      border-radius: 999px;
      border: 1px solid #374151;
      background: #020617;
      color: #e5e7eb;
      padding: 3px 8px;
      font-size: 10px;
      cursor: pointer;
      white-space: nowrap;
    }

    .media-session-item:hover {
      background: #111827;
    }

    .media-session-empty {
      font-size: 11px;
      opacity: 0.7;
      padding-top: 4px;
    }

    body.host-mode .media-console {
      display: flex;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }
  
.vote-console-round {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.vc-round-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.vc-round-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

#round-length {
  background: #020617;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid #374151;
  font-size: 11px;
  padding: 2px 8px;
}

.vc-round-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vc-round-buttons-group {
  display: flex;
  gap: 6px;
}


.vote-console-winners {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.vc-winner-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.vc-winner-name {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
}
/* HOST CONTROL ROW: Player console + voting side by side */
.host-control-row {
  display: none;           /* host-only; shown when host-mode is active */
  margin-top: 8px;
  gap: 8px;
}

/* Only show host controls when host-mode is active */
body.host-mode .host-control-row {
  display: flex;
}


/* Make both consoles share the row nicely */
.host-control-row > .player-console,
.host-control-row > .vote-console {
  flex: 1;
  min-width: 0;
}

/* PLAYER CONSOLE STYLING */
.player-console {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #111827;
  background: #020617;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pc-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  opacity: 0.8;
}

.pc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.pc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.pc-seat-tag {
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
}

.pc-name-input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #f9fafb;
  padding: 3px 8px;
  font-size: 11px;
}

.pc-link-btn,
.pc-clear-btn {
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #111827;
  color: #f9fafb;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}

.pc-clear-btn {
  padding-inline: 6px;
}

.pc-link-btn:hover,
.pc-clear-btn:hover {
  background: #1f2937;
}

.pc-code-label {
  font-size: 10px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.pc-hint {
  font-size: 10px;
  opacity: 0.7;
}


.vote-console-winners {
  min-width: 140px;
}
/* =========================================================
   DEMO LOCK — ABSOLUTE ADMIN HIDE FOR NON-HOST
   (P2–P8 + viewers can NEVER see admin UI)
========================================================= */

/* Seat-level admin buttons */
body:not(.host-mode) .seat-controls,
body:not(.host-mode) .seat-mute-btn {
  display: none !important;
}

/* Host consoles (player, voting, media) */
body:not(.host-mode) .host-control-row,
body:not(.host-mode) .player-console,
body:not(.host-mode) .vote-console,
body:not(.host-mode) .media-console {
  display: none !important;
}
/* FORCE media console expansion (override any inline styles) */
.media-console.media-expanded {
  max-height: 260px !important;
  overflow: visible !important;
}

/* =========================================================
   HOST DOCK COMPACT OVERRIDES (LOCKED 2026-01-07)
   Goal: eliminate wasted vertical space under arena WITHOUT
   changing markup or JS behavior. Host CSS is source of truth.
========================================================= */

/* Kill the legacy floating VP1 panel overlay (not part of dock) */
#vp1MediaPanel{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* Host row (Player + Voting) */
body.host-mode .host-control-row{
  display:flex;
  gap:8px;
  margin-top:6px;
  align-items:stretch;
}

/* Consoles: tighter padding + fixed, scrollable height */
body.host-mode .player-console,
body.host-mode .vote-console{
  padding:6px 8px !important;
  border-radius:10px;
  font-size:11px !important;
  line-height:1.2;
  max-height:190px;
  overflow:auto;
}

/* Media console: compact wrapper */
body.host-mode .media-console{
  margin-top:6px !important;
  padding:8px !important;
  font-size:11px !important;
  line-height:1.2;
}

/* When collapsed, keep it short (header only). When expanded, cap height + scroll list */
body.host-mode .media-console:not(.media-expanded){
  max-height:54px;
  overflow:hidden;
}
body.host-mode .media-console.media-expanded{
  max-height:230px;
  overflow:hidden;
}
body.host-mode .media-console.media-expanded .media-rows{
  max-height:150px;
  overflow:auto;
  padding-right:4px;
}

/* Tighten row layout */
body.host-mode .media-console .media-row{
  gap:4px !important;
  grid-template-columns: auto auto auto minmax(90px, 1fr) auto auto !important;
}

/* Normalize control sizes */
body.host-mode .media-console button,
body.host-mode .media-console input,
body.host-mode .media-console select,
body.host-mode .player-console button,
body.host-mode .player-console input,
body.host-mode .vote-console button,
body.host-mode .vote-console input,
body.host-mode .vote-console select{
  height:26px !important;
  padding:0 8px !important;
  font-size:11px !important;
}

/* Reduce big header/spacing */
body.host-mode .pc-header,
body.host-mode .vote-header,
body.host-mode .media-header{
  margin-bottom:6px !important;
  gap:6px !important;
}

/* Buttons: tighter */
body.host-mode .media-btn,
body.host-mode .media-file-trigger{
  height:26px !important;
  padding:0 10px !important;
}

/* Seat tag: tighter */
body.host-mode .media-seat-tag{
  padding:1px 6px !important;
  font-size:11px !important;
}
/* =========================================================
   SAFE MEDIA ROW COMPRESSION (NO GRID REWRITE)
   Goal: stop the title inputs from consuming the full width.
   This does NOT touch the first columns (V / seat / Add Files),
   so it won’t cause the stacked-card button overlap.
========================================================= */

/* Make the title column a fixed compact width instead of 1fr */
body.host-mode .media-console .media-row{
  grid-template-columns: auto auto auto 240px auto auto !important;
}

/* Hard-cap the title input so it cannot stretch */
body.host-mode .media-console .media-title-input{
  width: 240px !important;
  max-width: 240px !important;
  min-width: 140px !important;
  justify-self: start !important;
}

/* Prevent any child from forcing row-wide expansion */
body.host-mode .media-console .media-row > *{
  min-width: 0 !important;
}
/* =========================================================
   FINAL OVERRIDE — MEDIA ROWS NARROW + CONSOLE NOT FULL-WIDTH
   (Put at very bottom so it beats earlier !important rules)
========================================================= */

body.host-mode .media-console{
  align-self: flex-start !important;     /* stop stretch */
  width: fit-content !important;         /* shrink-wrap */
  max-width: 520px !important;           /* ~1/4 screen */
}

/* Force the micro-columns you want */
body.host-mode .media-console .media-row{
  grid-template-columns: 24px 36px 88px 180px 24px 48px !important;
}

/* Title should fill its 180px column, not grow the row */
body.host-mode .media-console .media-title-input{
  width: 100% !important;
  min-width: 0 !important;
}
/* =========================================================
   HOST UI SAFETY — FORCE HOST CONSOLES VISIBLE
   (Paste at VERY BOTTOM of stage8-host.css)
   Goal: If host-mode is true, host MUST see consoles.
========================================================= */

body.host-mode .host-control-row{
  display:flex !important;
}

body.host-mode .player-console{
  display:flex !important;
}

body.host-mode .vote-console{
  display:flex !important;   /* stop relying on .vote-visible */
}

body.host-mode .media-console{
  display:flex !important;
}

/* Keep non-host admin lock */
body:not(.host-mode) .host-control-row,
body:not(.host-mode) .player-console,
body:not(.host-mode) .vote-console,
body:not(.host-mode) .media-console{
  display:none !important;
}
/* =========================================================
   HOST DOCK v1 — Layout-only decoupling
   Goal: Voting ALWAYS beside Media. Player Seats = drawer.
   IDs stay the same => JS keeps working.
========================================================= */

body.host-mode .host-dock{
  display:block;
  margin-top: 6px;
}

/* Main dock: 2 columns (Media | Voting) */
body.host-mode .dock-main{
  display:grid;
  grid-template-columns: minmax(380px, 1fr) minmax(380px, 1fr);
  gap: 8px;
  align-items:start;
}

/* Keep consoles compact and scroll internally if needed */
body.host-mode #media-console,
body.host-mode #vote-console{
  display:flex !important;
  margin-top: 0 !important;
  max-height: 210px;
  overflow: auto;
}

/* Media collapsed stays tiny; expanded scrolls */
body.host-mode #media-console:not(.media-expanded){
  max-height: 56px;
  overflow: hidden;
}
body.host-mode #media-console.media-expanded{
  max-height: 240px;
  overflow: hidden;
}
body.host-mode #media-console.media-expanded .media-rows{
  max-height: 150px;
  overflow: auto;
}

/* Utility drawer toggle button */
body.host-mode .dock-util-toggle{
  margin-top: 8px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  width: fit-content;
}

/* Drawer hidden by default */
body.host-mode .dock-util-drawer{
  display:none;
  margin-top: 8px;
}

/* Drawer open state */
body.host-mode .dock-util-drawer.open{
  display:block;
}

/* Player console gets a tighter height when shown */
body.host-mode #player-console{
  max-height: 200px;
  overflow: auto;
}

/* Mobile safety: stack columns if narrow */
@media (max-width: 980px){
  body.host-mode .dock-main{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   HOST UTILITY POPUP — Player Seats / Invite Links
========================================================= */
body.host-mode .host-utility-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 999999;
}
body.host-mode .host-utility-overlay.open{
  display: flex;
  align-items: center;
  justify-content: center;
}
body.host-mode .host-utility-panel{
  width: 440px;
  max-width: calc(100vw - 24px);
  max-height: 80vh;
  background: rgba(10,10,12,.96);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.host-mode .utility-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.12);
  font-weight:700;
  letter-spacing:.2px;
}
body.host-mode .utility-close{
  cursor:pointer;
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
  border-radius:10px;
  padding:6px 10px;
}
body.host-mode .utility-body{
  padding: 12px;
  overflow: auto;
}
/* =========================================================
   PODIUM RESULTS OVERLAY — DO NOT BLOCK HOST DOCK CLICKS
   Fix: the podium graphic (round-results) was sitting over the
   host dock, blocking Podium Controls buttons.
   Single-file override: raise it into the arena area and make
   it click-through.
   ========================================================= */
#round-results{
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  /* ✅ Move up so it lives inside the arena area (above the dock) */
  bottom: 280px !important;

  z-index: 9998 !important;

  /* ✅ Never steal clicks from host controls */
  pointer-events: none !important;
}

/* Safety: if any child had pointer-events restored elsewhere, kill it */
#round-results *{
  pointer-events: none !important;
}
/* STAGE8 LOCK: chat names must always display */
.chat-user{
  display:inline !important;
  visibility:visible !important;
  opacity:1 !important;
}
