/* ============================================================================
 * Meter overlay (js/live/meter-hud.js) — loudness readouts and level bars over
 * the stage, top-right under the header so it never meets the play bar.
 * ========================================================================== */
.mh {
  position: fixed; z-index: 25; top: 72px; /* over the play bar (20), under the drawer (30) and header (40) */ right: max(16px, env(safe-area-inset-right)); width: 360px;
  padding: 12px 14px 10px; border-radius: 12px; pointer-events: auto;
  background: rgba(8, 8, 10, .72); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono, ui-monospace, Menlo, monospace); color: #f1ede6;
}
.mh[hidden] { display: none; }
.mh-top { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 8px; }
.mh-big small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 237, 230, .5); margin-bottom: 2px; }
.mh-big b { display: block; font-size: 26px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mh-big b[data-c="ok"] { color: #7affb6; }
.mh-big b[data-c="hot"] { color: #ff3c78; }
.mh-big b[data-c="low"] { color: #f1ede6; }
.mh-reset {
  align-self: start; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14);
  background: transparent; color: rgba(241, 237, 230, .7); font: inherit; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.mh-reset:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.mh-row, .mh-target { margin-top: 6px; font-size: 10px; color: rgba(241, 237, 230, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-target { color: rgba(241, 237, 230, .85); }
.mh-bars { display: block; width: 100%; height: 56px; margin-top: 8px; }
#meterPanel .action-btn { margin-top: var(--space-2); }

@media (max-width: 767px) {
  .mh { top: 64px; left: 12px; right: 12px; width: auto; padding: 10px 12px 8px; }
  .mh-big b { font-size: 21px; }
}

/* ---------- Meter mode (js/live/meter-mode.js) -------------------------------------- */
.mb {
  position: fixed; z-index: 26; top: 64px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px;
  background: rgba(10, 10, 12, .86); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 500 12px var(--font-ui, system-ui, sans-serif); color: #f1ede6; overflow-x: auto; scrollbar-width: none;
}
.mb::-webkit-scrollbar { display: none; }
.mb[hidden] { display: none; }
.mb-views { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.mb-view { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: rgba(241, 237, 230, .7); font: inherit; cursor: pointer; white-space: nowrap; }
.mb-view.on { background: #f1ede6; color: #0a0a0a; }
.mb-field { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 10px; border-radius: 9px; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.mb-field[hidden] { display: none; }
.mb-field span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(241, 237, 230, .5); }
.mb-field select { background: transparent; border: 0; color: #f1ede6; font: inherit; height: 30px; }
.mb-field select option { background: #111; }
.mb-btn { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .16); background: none; color: #f1ede6; font: inherit; cursor: pointer; white-space: nowrap; }
.mb-btn:hover { border-color: rgba(255, 255, 255, .4); }
/* Nothing over the meters: the overlays, logo, lyrics, backdrop video and flashes stay hidden. */
body.meter-mode #lyrics, body.meter-mode #lyricsCanvas, body.meter-mode #brandCanvas, body.meter-mode #video,
body.meter-mode #linkFlash, body.meter-mode #lookTint, body.meter-mode #sceneName, body.meter-mode #beatGrid,
body.meter-mode .bg-toggle, body.meter-mode #prevSceneBtn, body.meter-mode #nextSceneBtn { display: none !important; }
body.meter-mode .mh { top: 116px; }
@media (max-width: 767px) {
  .mb { top: 58px; left: 12px; right: 12px; transform: none; max-width: none; }
  body.meter-mode .mh { top: 108px; }
}
