/* Host command center — the layout follows the reference top-to-bottom,
   left-to-right, and is sized to fill a laptop display without page scroll. */

.host-grid {
  height: 100vh;
  padding: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 470px;
  grid-template-rows: auto minmax(0, 1fr) minmax(210px, auto);
  grid-template-areas:
    "hdr   hdr"
    "video side"
    "trio  side";
}

/* ------------------------------- Header ------------------------------- */
.hdr {
  grid-area: hdr;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 20px;
}

.now-singing { display: flex; align-items: center; gap: 14px; padding-left: 6px; border-left: 1px solid var(--line); }
.ns-thumb {
  width: 92px; height: 58px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, #3b1d6e, #1a2a6b 60%, #0b2a4a);
  background-size: cover; background-position: center;
  border: 1px solid rgba(168,85,247,0.4);
}
.ns-meta { min-width: 0; }
.ns-singer { font-size: 22px; font-weight: 800; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ns-song { font-size: 15px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

.hdr-mid { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.control-cluster { display: flex; flex-direction: column; gap: 6px; }
.cluster-label { padding-left: 2px; }

.segmented { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.segmented .seg {
  min-height: 34px; padding: 0 12px;
  border: none; border-radius: 7px; background: transparent;
  color: var(--ink-dim); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.segmented.small .seg { font-size: 12px; padding: 0 10px; min-height: 30px; }
.segmented .seg:hover { color: var(--ink); }
.segmented .seg.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(168,85,247,0.35), rgba(124,58,237,0.25));
  box-shadow: inset 0 0 0 1px rgba(168,85,247,0.6);
}

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-toggle .lang { min-height: 34px; padding: 0 10px; background: transparent; border: none; color: var(--ink-dim); font-weight: 700; font-size: 12px; }
.lang-toggle .lang.active { color: #05060F; background: var(--cyan); }

.hdr-right { justify-self: end; text-align: right; min-width: 280px; }
.clock { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.times { font-size: 14px; color: var(--ink-dim); margin-top: 2px; }
.times .slash { opacity: 0.5; }
.progress { margin-top: 8px; height: 9px; width: 100%; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; cursor: pointer; touch-action: none; }
.progress:hover { background: rgba(255,255,255,0.16); }
.progress-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--grad-progress); box-shadow: 0 0 12px -2px rgba(168,85,247,0.8); transition: width 0.15s linear; pointer-events: none; }
.tv-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.tv-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); }
.tv-badge.on .dot { background: var(--hype-green); box-shadow: 0 0 10px var(--hype-green); }
.tv-badge.on { color: var(--hype-green); }

/* ------------------------------- Video -------------------------------- */
.video { grid-area: video; position: relative; overflow: hidden; padding: 0; }
.player-mount, .player-mount iframe, .player-video, .yt-host, .yt-host div, .yt-host iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.player-video { object-fit: contain; background: #000; }

/* --- Synced karaoke lyrics over the host mirror (TV-less karaoke) --------- */
.host-lyrics {
  position: absolute; inset: 0; z-index: 4; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px 96px;
  background:
    radial-gradient(700px 460px at 50% 30%, rgba(124,58,237,0.16), transparent 62%),
    linear-gradient(180deg, #0a0b1c 0%, #05060f 100%);
  overflow: hidden;
}
.host-lyrics[hidden] { display: none; }
.hl-song { flex: none; font-size: 14px; font-weight: 700; color: var(--cyan); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.75; margin-bottom: 10px; text-align: center; max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-viewport { position: relative; flex: 1; width: 100%; overflow: hidden; }
.hl-lines { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.hl-line { font-size: calc(22px * var(--lyric-scale, 1)); font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-faint); opacity: 0.5; padding: 0 18px; transition: opacity 0.2s, transform 0.2s; }
.hl-line.past { opacity: 0.25; }
.hl-line.active { font-size: calc(30px * var(--lyric-scale, 1)); font-weight: 800; opacity: 1; color: #fff; text-shadow: 0 0 18px rgba(34, 211, 238, 0.5); transform: scale(1.03); }
.hl-line .kw { transition: text-shadow 0.1s ease; }
.hl-line.active .kw-sung, .hl-line.active .kw-current { color: var(--lyric-word-color, var(--cyan)); }
.hl-line.active .kw-current { text-shadow: 0 0 20px var(--lyric-word-color, #22D3EE); }
.video-idle {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(600px 380px at 50% 40%, rgba(124,58,237,0.16), transparent 70%);
}
.video-idle .idle-mic { font-size: 64px; filter: drop-shadow(0 0 24px rgba(34,211,238,0.5)); }
.video-idle .idle-text { font-size: 26px; font-weight: 800; }
.video-idle .idle-sub { font-size: 15px; color: var(--ink-dim); }
.idle-play {
  margin-top: 16px; min-height: 48px; padding: 0 28px;
  border-radius: 12px; border: 1px solid var(--violet);
  background: rgba(168,85,247,0.18); color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: var(--glow-violet);
}
.idle-play:hover { background: rgba(168,85,247,0.3); }

.pp-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-faint); font-size: 14px; padding: 20px; }

/* Host "get ready" card — the singer-profile template, scaled to the panel */
.host-introcard {
  position: absolute; inset: 0; z-index: 6; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  text-align: center; padding: 16px;
  background:
    radial-gradient(720px 480px at 50% 34%, rgba(124,58,237,0.34), transparent 70%),
    radial-gradient(560px 380px at 100% 0%, rgba(34,211,238,0.1), transparent 60%),
    rgba(5,6,15,0.97);
  animation: hicIn 0.3s ease;
}
@keyframes hicIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

.host-introcard .hic-hero { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; margin-bottom: 18px; }
.host-introcard .hic-photo {
  width: 150px; height: 150px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  border: 3px solid transparent;
  background-image: linear-gradient(rgba(13,14,26,0.95), rgba(13,14,26,0.95)), var(--grad-brand);
  background-origin: border-box; background-clip: content-box, border-box;
  box-shadow: 0 0 40px -8px rgba(168,85,247,0.7); display: grid; place-items: center;
}
.host-introcard .hic-photo .avatar { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 60px; font-weight: 800; }
.host-introcard .hic-ph { color: var(--ink-faint); font-size: 60px; }

.host-introcard .hic-wave { flex: 1 1 0; max-width: 30%; height: 96px; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.host-introcard .hic-wave.left { justify-content: flex-end; -webkit-mask-image: linear-gradient(90deg, transparent, #000 72%); mask-image: linear-gradient(90deg, transparent, #000 72%); }
.host-introcard .hic-wave.right { justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, #000 28%, transparent); mask-image: linear-gradient(90deg, #000 28%, transparent); }
.host-introcard .wbar { width: 4px; flex: 0 0 auto; border-radius: 2px; transform: scaleY(0.14); background: linear-gradient(180deg, var(--cyan), var(--violet)); animation: wbar 1s ease-in-out infinite; }
@keyframes wbar { 0%, 100% { transform: scaleY(0.14); } 50% { transform: scaleY(1); } }

.host-introcard .hic-name { font-size: 48px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; text-indent: 0.16em; line-height: 1.04; padding: 0 20px; }
.host-introcard .hic-underline { width: 64px; height: 3px; border-radius: 2px; margin: 12px 0 10px; background: var(--grad-progress); }
.host-introcard .hic-tagline { font-size: 16px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim); }
.host-introcard .hic-tagline .dot { color: var(--violet); margin: 0 3px; }
.host-introcard .hic-social { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 14px; min-height: 26px; }
.host-introcard .hic-social:empty { display: none; }
.host-introcard .hic-social .lc-soc { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: var(--ink); }
.host-introcard .hic-social .lc-soc svg { width: 26px; height: 26px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(34,211,238,0.5)); }
.host-introcard .hic-song { font-size: 17px; font-weight: 600; color: var(--ink-dim); margin-top: 10px; padding: 0 30px; max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host-introcard .hic-loadlabel { margin-top: 22px; font-size: 15px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--violet); text-shadow: 0 0 12px rgba(168,85,247,0.5); }
.host-introcard .hic-barrow { display: flex; align-items: center; gap: 16px; margin-top: 12px; width: min(440px, 62%); }
.host-introcard .hic-bar { flex: 1 1 auto; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.host-introcard .hic-bar-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #D946EF, #A855F7 55%, #3B82F6); box-shadow: 0 0 14px -2px rgba(168,85,247,0.9); transition: width 0.12s linear; }
.host-introcard .hic-pct { font-size: 18px; font-weight: 800; color: var(--ink); min-width: 52px; text-align: right; }
.host-introcard .hic-prep { margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

.transport {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  display: flex; flex-direction: column; gap: 9px;
  padding: 10px 16px 12px;
  background: linear-gradient(0deg, rgba(5,6,15,0.94), rgba(5,6,15,0.42) 62%, rgba(5,6,15,0));
}
.pc-scrub { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.20); cursor: pointer; touch-action: none; }
.pc-scrub:hover { height: 11px; }
.pc-scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 999px; background: var(--grad-progress); box-shadow: 0 0 10px -2px rgba(168,85,247,0.9); transition: width 0.15s linear; }
.pc-scrub-fill::after { content: ''; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,0.6); opacity: 0; transition: opacity 0.12s; }
.pc-scrub:hover .pc-scrub-fill::after { opacity: 1; }
.pc-row { display: flex; align-items: center; gap: 12px; }
.pc-time { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-spacer { flex: 1; }
#lyricStyleBtn { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.lyric-settings {
  position: absolute; right: 14px; bottom: 96px; z-index: 8;
  background: rgba(13,14,26,0.97); border: 1px solid rgba(124,58,237,0.6); border-radius: 12px;
  box-shadow: var(--glow-violet); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 236px;
}
.lyric-settings[hidden] { display: none; }
.ls-row { display: flex; align-items: center; gap: 10px; }
.ls-label { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); min-width: 42px; }
.lyric-settings input[type="range"] { flex: 1; accent-color: var(--violet); cursor: pointer; }
.ls-colors { display: flex; gap: 6px; }
.ls-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.ls-swatch.sel { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.5); }
.lyric-settings input[type="color"] { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.sound-hint {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 7;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--violet); background: rgba(168,85,247,0.9); color: #fff;
  font-size: 16px; font-weight: 700; box-shadow: var(--glow-violet);
  animation: soundPulse 1.6s ease-in-out infinite;
}
@keyframes soundPulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
.transport .play-btn { font-size: 16px; }
#muteBtn.on { color: var(--cyan); border-color: rgba(34,211,238,0.6); background: rgba(34,211,238,0.12); }
.transport-song { color: var(--ink-dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -------------------------------- Side -------------------------------- */
.side { grid-area: side; display: flex; flex-direction: column; gap: 12px; padding: 14px; min-height: 0; }
.side-label { margin-top: 2px; }

/* Preloaded playlist switcher */
.playlist-bar { display: flex; align-items: center; gap: 10px; }
.playlist-bar .pl-label { flex: 0 0 auto; }
.pl-select {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 600; outline: none; cursor: pointer;
}
.pl-select:focus { border-color: rgba(168,85,247,0.7); }
/* The native option list renders on a light system background, so force a dark
   background + light text or the options are white-on-white and unreadable. */
.pl-select option { background: #0f1424; color: #e5e7eb; }

/* Singer picker — who the host's next add is for */
.singer-bar { display: flex; align-items: flex-start; gap: 10px; }
.singer-bar .sb-label { flex: 0 0 auto; padding-top: 12px; }
.singer-bar .roster-btn { margin-top: 1px; }
.singer-chips { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; }
.singer-chips .chips-empty { color: var(--ink-faint); font-size: 13px; padding: 8px 4px; white-space: nowrap; }
.singer-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--ink-dim); font-size: 13px; font-weight: 600; white-space: nowrap; }
.singer-chip:hover { border-color: rgba(168,85,247,0.5); color: var(--ink); }
.singer-chip.selected { color: #fff; border-color: rgba(168,85,247,0.9); background: rgba(168,85,247,0.22); box-shadow: var(--glow-violet-soft); }
.singer-chip .avatar.chip-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.singer-menu {
  position: absolute; left: 0; right: 0; top: 46px; z-index: 30;
  background: #14162b; border: 1px solid rgba(168,85,247,0.5); border-radius: 12px;
  box-shadow: var(--glow-violet); padding: 6px; max-height: 280px; overflow-y: auto;
}
.singer-menu .sm-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.singer-menu .sm-item:hover { background: rgba(168,85,247,0.14); }
.singer-menu .sm-item .avatar.sm-av { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.singer-menu .sm-item .name { flex: 1 1 auto; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.singer-menu .sm-item.active .name { font-weight: 700; color: var(--cyan); }
.singer-menu .sm-item .rm { width: 26px; height: 26px; border: none; background: transparent; color: var(--ink-faint); border-radius: 6px; font-size: 14px; }
.singer-menu .sm-item .rm:hover { color: #FCA5A5; background: rgba(239,68,68,0.14); }
.singer-menu .sm-new { display: flex; gap: 6px; padding: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.singer-menu .sm-new input {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 10px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink); font-size: 14px; outline: none;
}
.singer-menu .sm-new input:focus { border-color: rgba(168,85,247,0.7); }
.singer-menu .sm-new button { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 8px; border: 1px solid var(--violet); background: rgba(168,85,247,0.14); color: #E9D5FF; font-size: 18px; }
.singer-menu .sm-manage { width: 100%; text-align: left; padding: 10px; margin-top: 4px; border: none; border-top: 1px solid var(--line); background: transparent; color: var(--cyan); font-size: 13px; font-weight: 600; }
.singer-menu .sm-manage:hover { background: rgba(34,211,238,0.1); }
.results { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.view-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; border-radius: var(--r-row); text-decoration: none;
  color: var(--cyan); font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(34,211,238,0.05);
}
.view-more:hover { background: rgba(34,211,238,0.12); }
.qr-card { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.qr-card .join-text { flex: 1 1 auto; }

/* -------------------------------- Trio -------------------------------- */
.trio { grid-area: trio; display: grid; grid-template-columns: minmax(0,1.0fr) minmax(0,1.4fr) minmax(0,1.7fr); gap: 14px; min-height: 0; }
.trio .panel { padding: 14px 10px; display: flex; flex-direction: column; min-height: 0; }

/* Up next + requests */
.upnext { min-height: 0; }
.requests-block { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.requests-list { max-height: 92px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.queue-list { margin-top: 8px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }

.q-row, .r-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-row);
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.04);
}
.q-row { cursor: default; }
.q-row.dragging { opacity: 0.4; }
.q-row.drop-before { box-shadow: inset 0 3px 0 var(--violet); }
.q-row.drop-after { box-shadow: inset 0 -3px 0 var(--violet); }
.q-grip { flex: 0 0 auto; color: var(--ink-faint); cursor: grab; font-size: 15px; line-height: 1; user-select: none; }
.q-grip:active { cursor: grabbing; }
.q-play { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--hype-green); font-size: 11px; }
.q-play:hover { border-color: rgba(34,197,94,0.55); background: rgba(34,197,94,0.14); }
.q-row .avatar, .r-row .avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(168,85,247,0.16); color: #E9D5FF;
}
.q-row .q-singer { font-weight: 700; font-size: 14px; color: var(--ink); }
.q-row .q-song { font-size: 14px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row .q-main { min-width: 0; flex: 1 1 auto; display: flex; gap: 8px; align-items: baseline; }
.q-row .status-chip { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 999px; }
.status-chip.downloading { color: #FDE68A; background: rgba(253,230,138,0.12); }
.status-chip.failed { color: #FCA5A5; background: rgba(239,68,68,0.14); }
/* Paid queue boost — ⚡ + amount, and a gold rail on the boosted row */
.q-row .q-boost { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #3b2600; background: linear-gradient(180deg,#FBBF24,#F59E0B); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.q-row.boosted { box-shadow: inset 3px 0 0 #F59E0B; }

.overflow { position: relative; flex: 0 0 auto; }
.overflow .dots { width: 32px; height: 32px; border-radius: 6px; border: none; background: transparent; color: var(--ink-dim); font-size: 20px; line-height: 0; }
.overflow .dots:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.menu {
  position: absolute; right: 0; top: 36px; z-index: 20; min-width: 150px;
  background: #14162b; border: 1px solid rgba(168,85,247,0.5); border-radius: 10px;
  box-shadow: var(--glow-violet); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.menu button { text-align: left; padding: 9px 10px; border-radius: 6px; border: none; background: transparent; color: var(--ink); font-size: 13px; }
.menu button:hover { background: rgba(168,85,247,0.16); }
.menu button.danger { color: #FCA5A5; }

.r-row .r-meta { flex: 1 1 auto; min-width: 0; }
.r-row .r-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-row .r-by { font-size: 12px; color: var(--ink-dim); }
.r-row .r-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.mini-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: transparent; font-size: 16px; }
.mini-btn.ok { color: var(--hype-green); border-color: rgba(34,197,94,0.5); }
.mini-btn.ok:hover { background: rgba(34,197,94,0.15); }
.mini-btn.no { color: var(--hype-red); border-color: rgba(239,68,68,0.5); }
.mini-btn.no:hover { background: rgba(239,68,68,0.15); }

/* Controls: labelled vertical sliders */
.sliders { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; align-items: stretch; }
.vslider { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.vslider .vs-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0; color: var(--ink); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vslider .vs-value { font-size: 13px; font-weight: 700; color: var(--cyan); min-height: 16px; white-space: nowrap; }
.vslider .vs-value.violet { color: var(--violet); }
.vslider .track {
  position: relative; width: 10px; flex: 1 1 auto; min-height: 70px;
  border-radius: 999px; background: rgba(255,255,255,0.08);
  margin: 4px 0; cursor: pointer; touch-action: none;
}
.vslider .fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; background: linear-gradient(0deg, var(--violet), #7C3AED); }
.vslider .thumb {
  position: absolute; left: 50%; transform: translate(-50%, 50%); bottom: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(168,85,247,0.25), 0 2px 6px rgba(0,0,0,0.5);
}
.vslider .vs-btns { display: flex; gap: 4px; }
.vs-btns button {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: var(--ink); font-size: 15px; line-height: 0;
}
.vs-btns button:hover { border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.12); }
/* Effects that can't touch a live YouTube iframe are greyed out until it caches */
.vslider.gated { opacity: 0.4; }
.vslider.gated .track, .vslider.gated .vs-btns button { pointer-events: none; }
.fx-hint { margin-top: 8px; font-size: 11px; color: var(--ink-faint); text-align: center; line-height: 1.35; }

/* Hype */
.hype .hype-buttons { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.hype-btn {
  flex: 1 1 0; min-height: var(--touch);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.hype-btn .hy-icon { font-size: 20px; }
.hype-btn:active { transform: translateY(1px); }
.hype-btn.green { background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.6); color: #86EFAC; }
.hype-btn.green:hover { background: rgba(34,197,94,0.24); box-shadow: 0 0 20px -4px rgba(34,197,94,0.6); }
.hype-btn.red { background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.6); color: #FCA5A5; }
.hype-btn.red:hover { background: rgba(239,68,68,0.24); box-shadow: 0 0 20px -4px rgba(239,68,68,0.6); }
.hype-btn.violet { background: rgba(168,85,247,0.14); border-color: rgba(168,85,247,0.6); color: #D8B4FE; }
.hype-btn.violet:hover { background: rgba(168,85,247,0.24); box-shadow: 0 0 20px -4px rgba(168,85,247,0.6); }

/* Custom soundboard: 6 SFX buttons styled like the original hype buttons */
.soundboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.sound-btn {
  position: relative; min-height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05); color: #fff; cursor: pointer;
  font-size: 8px; font-weight: 700; letter-spacing: 0; text-transform: none;
}
.sound-btn:active { transform: translateY(1px); }
.sound-btn .hy-icon { font-size: 22px; line-height: 1; }
.sound-btn .sb-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* rotating accent palette (the original green/red/violet, extended to six) */
.sound-btn.c-green  { background: rgba(34,197,94,0.14);  border-color: rgba(34,197,94,0.55);  color: #86EFAC; }
.sound-btn.c-green:hover  { background: rgba(34,197,94,0.24);  box-shadow: 0 0 20px -4px rgba(34,197,94,0.6); }
.sound-btn.c-cyan   { background: rgba(34,211,238,0.14); border-color: rgba(34,211,238,0.55); color: #67E8F9; }
.sound-btn.c-cyan:hover   { background: rgba(34,211,238,0.24); box-shadow: 0 0 20px -4px rgba(34,211,238,0.6); }
.sound-btn.c-violet { background: rgba(168,85,247,0.14); border-color: rgba(168,85,247,0.55); color: #D8B4FE; }
.sound-btn.c-violet:hover { background: rgba(168,85,247,0.24); box-shadow: 0 0 20px -4px rgba(168,85,247,0.6); }
.sound-btn.c-red    { background: rgba(239,68,68,0.14);  border-color: rgba(239,68,68,0.55);  color: #FCA5A5; }
.sound-btn.c-red:hover    { background: rgba(239,68,68,0.24);  box-shadow: 0 0 20px -4px rgba(239,68,68,0.6); }
.sound-btn.c-amber  { background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.55); color: #FCD34D; }
.sound-btn.c-amber:hover  { background: rgba(245,158,11,0.24); box-shadow: 0 0 20px -4px rgba(245,158,11,0.6); }
.sound-btn.c-pink   { background: rgba(236,72,153,0.14); border-color: rgba(236,72,153,0.55); color: #F9A8D4; }
.sound-btn.c-pink:hover   { background: rgba(236,72,153,0.24); box-shadow: 0 0 20px -4px rgba(236,72,153,0.6); }
.sound-btn.add { border-style: dashed; background: transparent; color: #9aa3b8; text-transform: none; font-weight: 600; font-size: 8px; letter-spacing: 0; }
.sound-btn.add:hover { background: rgba(255,255,255,0.05); }
.sound-del {
  position: absolute; top: -7px; right: -7px;
  width: 19px; height: 19px; line-height: 16px; text-align: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: #0b1020; color: #fca5a5; font-size: 13px; cursor: pointer;
  opacity: 0; transition: opacity .12s; text-transform: none;
}
.sound-btn:hover .sound-del { opacity: 1; }

.sf-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(5,6,15,0.72); backdrop-filter: blur(4px); }
.sf-card { width: min(92vw, 380px); background: #0f1424; border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,0.5); }
.sf-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.sf-file { width: 100%; color: #cbd5e1; font-size: 13px; margin-bottom: 12px; }
.sf-row { display: flex; gap: 8px; margin-bottom: 12px; }
.sf-in { flex: 1; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.16); background: #070b16; color: #fff; font-size: 15px; }
.sf-in:focus { outline: none; border-color: #22D3EE; }
.sf-emoji { flex: 0 0 58px; text-align: center; }
.sf-vol-label { display: flex; align-items: center; gap: 10px; color: #9aa3b8; font-size: 13px; margin-bottom: 8px; }
.sf-vol { flex: 1; }
.sf-err { min-height: 18px; color: #fb7185; font-size: 13px; margin: 4px 0 8px; }
.sf-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Profile editor modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 6, 15, 0.7); backdrop-filter: blur(4px);
}
.modal {
  width: min(440px, 92vw); max-height: 92vh; overflow-y: auto;
  background: var(--panel); border: 1px solid rgba(168, 85, 247, 0.6);
  border-radius: var(--r-panel); box-shadow: var(--glow-violet);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.modal-title { font-size: 18px; font-weight: 800; }
.pm-photo-row { display: flex; align-items: center; gap: 16px; }
.pm-photo {
  width: 88px; height: 88px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.4);
  display: grid; place-items: center; font-size: 34px; color: var(--ink-dim);
}
.pm-photo img { width: 100%; height: 100%; object-fit: cover; }
.pm-field { display: flex; flex-direction: column; gap: 5px; }
.pm-field span { font-size: var(--label-size); font-weight: 700; letter-spacing: var(--label-spacing); text-transform: uppercase; color: var(--cyan); }
.pm-field input {
  height: 44px; border-radius: 10px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--ink); font-size: 15px; outline: none;
}
.pm-field input:focus { border-color: rgba(168, 85, 247, 0.7); }
.pm-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.pm-save { border-color: var(--violet); background: rgba(168, 85, 247, 0.2); color: #fff; }
.pm-save:hover { background: rgba(168, 85, 247, 0.32); }

/* Roster manager */
.roster-btn { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); font-size: 18px; }
.roster-btn:hover { border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.12); }
.roster-modal { width: min(620px, 94vw); }
.modal-title-row { display: flex; align-items: center; justify-content: space-between; }
.modal-x { width: 34px; height: 34px; border: none; background: transparent; color: var(--ink-dim); font-size: 18px; border-radius: 8px; }
.modal-x:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.roster-subtitle { font-size: 13px; color: var(--ink-dim); margin-top: -6px; }
.start-party-btn {
  min-height: 54px; margin-top: 2px;
  border: 1px solid var(--violet); background: rgba(168,85,247,0.22); color: #fff;
  font-size: 17px; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: var(--glow-violet);
}
.start-party-btn:hover { background: rgba(168,85,247,0.34); }
.start-party-btn:active { transform: translateY(1px); }

.roster-add { display: flex; gap: 8px; }
.roster-add input { flex: 1 1 auto; height: 44px; border-radius: 10px; padding: 0 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink); font-size: 15px; outline: none; }
.roster-add input:focus { border-color: rgba(168,85,247,0.7); }
.roster-toolbar { display: flex; align-items: center; gap: 10px; }
.roster-toolbar-spacer { flex: 1 1 auto; }
.roster-count { font-size: 13px; color: var(--ink-dim); }
.mini-toggle { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--ink); font-size: 13px; font-weight: 600; }
.mini-toggle:hover { border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.12); }

/* Download-a-video panel (font size + highlight colour) */
.vdl-card { width: min(380px, 92vw); gap: 11px; }
.vdl-hint { font-size: 13px; color: var(--ink-dim); margin-top: -4px; }
.vdl-sizelabel { font-size: 15px; font-weight: 800; color: #fff; }
.vdl-size { width: 100%; accent-color: var(--cyan); height: 26px; }
.vdl-lbl { font-size: var(--label-size, 11px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cyan); margin-top: 2px; }
.vdl-card .ls-swatch { width: 32px; height: 32px; }
.vdl-card .pm-save { min-height: 50px; font-size: 16px; font-weight: 800; margin-top: 4px; }
.vdl-status { min-height: 18px; font-size: 13px; color: var(--ink-dim); text-align: center; }
.vdl-status.working { color: #8fd3ff; }
.vdl-status.done { color: #22C55E; }
.vdl-status.err { color: #fb7185; }
/* "Select your character" grid */
.roster-list { max-height: 62vh; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; padding: 2px; }
.char-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); transition: border-color 0.15s, background 0.15s; }
.char-card.active { border-color: rgba(34,197,94,0.6); background: rgba(34,197,94,0.08); }
.cc-avatar { position: relative; width: 110px; height: 110px; flex: 0 0 auto; cursor: pointer; }
.cc-avatar .avatar { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 44px; font-weight: 800; border: 2px solid var(--line); transition: filter 0.15s, opacity 0.15s; }
.char-card:not(.active) .cc-avatar .avatar { filter: grayscale(0.7); opacity: 0.5; }
.char-card.active .cc-avatar .avatar { border-color: var(--hype-green); box-shadow: 0 0 0 3px rgba(34,197,94,0.3); }
.cc-check { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--hype-green); color: #05060F; display: none; place-items: center; font-size: 16px; font-weight: 900; border: 3px solid var(--panel); }
.char-card.active .cc-check { display: grid; }
.cc-name { font-size: 15px; font-weight: 700; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-actions { display: flex; gap: 4px; }
.cc-icon { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--ink-dim); font-size: 12px; }
.cc-icon:hover { border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.12); color: var(--ink); }
.cc-icon.danger:hover { color: #FCA5A5; border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.14); }

/* an edit pencil in the singer dropdown rows */
.singer-menu .sm-item .edit { width: 26px; height: 26px; border: none; background: transparent; color: var(--ink-faint); border-radius: 6px; font-size: 13px; }
.singer-menu .sm-item .edit:hover { color: var(--cyan); background: rgba(34, 211, 238, 0.12); }

/* ------------------------------ Payments ------------------------------ */
.section-label.gold { color: #FCD34D; }

/* Header button that opens payment setup / shows the running tip total */
.pay-btn { min-height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--ink-dim); font-weight: 700; font-size: 13px; white-space: nowrap; }
.pay-btn:hover { border-color: rgba(245,197,66,0.6); color: var(--ink); background: rgba(245,197,66,0.1); }
.pay-btn.on { color: #FCD34D; border-color: rgba(245,197,66,0.5); background: rgba(245,197,66,0.12); }

/* Pending paid boosts, above the song requests */
.boosts-block { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.boosts-list { max-height: 96px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.boost-row { border-color: rgba(245,197,66,0.35); background: rgba(245,197,66,0.06); }
.boost-row .boost-amt { color: #FCD34D; font-weight: 800; }

/* Payment setup modal */
.pay-modal { width: min(520px, 94vw); }
.pay-enable { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.pay-enable input { width: 20px; height: 20px; accent-color: var(--violet); }
.pay-config { display: flex; flex-direction: column; gap: 12px; transition: opacity 0.15s; }
.pay-config.off { opacity: 0.45; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-hint { font-size: 12px; color: var(--ink-dim); line-height: 1.4; margin-top: -4px; }
.pay-tips { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pay-total { font-size: 28px; font-weight: 800; color: var(--hype-green); }
.pay-tiplist { max-height: 140px; display: flex; flex-direction: column; gap: 2px; }
.tip-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tip-row .tip-amt { color: #FCD34D; font-weight: 800; min-width: 48px; flex: 0 0 auto; }
.tip-row .tip-from { font-weight: 600; color: var(--ink); flex: 0 0 auto; }
.tip-row .tip-note { color: var(--ink-dim); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Keep it usable on smaller laptop displays */
@media (max-width: 1200px) {
  .host-grid { grid-template-columns: minmax(0,1fr) 380px; }
  .ns-singer, .ns-song { max-width: 180px; }
}
