:root{
  --bg:#020410;
  --bg2:#050b1e;
  --panel:rgba(3,7,20,.72);
  --cyan:#22d3ee;
  --cyan-bright:#67e8f9;
  --cyan-dim:#0e7490;
  --violet:#a78bfa;
  --violet-bright:#c4b5fd;
  --magenta:#f0abfc;
  --text:#cbd5e1;
  --muted:#64748b;
  --muted2:#334155;
  --rose:#fb7185;
  --line:#0c2233;
  --metal1:#2a2f3a;
  --metal2:#12141b;
  --bass:0; /* driven by JS: 0..1 bass level */
}
*{box-sizing:border-box; margin:0; padding:0;}
html,body{ height:100%; background:var(--bg); color:var(--text); font-family:'Share Tech Mono', monospace; }
body{ cursor:none; overflow-x:hidden; }
@media (pointer:coarse){ body{ cursor:auto; } #cursor{ display:none !important; } }
button{ font-family:inherit; }
.hidden{ display:none !important; }
b{ color:var(--cyan-bright); font-weight:normal; }

/* ============ cursor ============ */
#cursor{ position:fixed; top:0; left:0; width:18px; height:18px; pointer-events:none; z-index:9999; transform:translate(-50%,-50%); mix-blend-mode:screen; }
#cursor::before,#cursor::after{ content:''; position:absolute; background:var(--cyan); }
#cursor::before{ top:50%; left:0; width:100%; height:1px; transform:translateY(-50%); box-shadow:0 0 6px var(--cyan); }
#cursor::after{ left:50%; top:0; height:100%; width:1px; transform:translateX(-50%); box-shadow:0 0 6px var(--cyan); }
#cursor .dot{ position:absolute; top:50%; left:50%; width:4px; height:4px; background:var(--magenta); box-shadow:0 0 8px 1px var(--magenta); transform:translate(-50%,-50%); }

/* ============ intro / boot ============ */
#intro{ position:fixed; inset:0; background:#000; z-index:500; transition:opacity .8s ease; overflow:hidden; }
#constellation{ display:block; width:100%; height:100%; }
.bootLog{ position:absolute; top:24px; left:24px; right:24px; font-size:12px; line-height:1.8; color:#2dd4bf; text-shadow:0 0 8px rgba(45,212,191,.4); pointer-events:none; white-space:pre-wrap; }
.bootLog .ok{ color:var(--cyan-bright); }
.bootLog .warn{ color:var(--rose); }
.introHint{ position:absolute; top:50%; left:0; right:0; text-align:center; transform:translateY(50px); font-size:12px; letter-spacing:.35em; color:var(--cyan); text-transform:uppercase; animation:blink 1.8s ease-in-out infinite; text-shadow:0 0 12px rgba(34,211,238,.6); }
#introFoot{ position:absolute; bottom:18px; left:0; right:0; text-align:center; font-size:9px; letter-spacing:.35em; color:#1e293b; text-transform:uppercase; }
#introFoot span{ border-bottom:1px solid #1e293b; padding-bottom:2px; }
@keyframes blink{ 0%,100%{opacity:.25} 50%{opacity:1} }
.scanline-overlay{ position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(to bottom, rgba(45,212,191,.03) 0, rgba(45,212,191,.03) 1px, transparent 1px, transparent 3px); }

/* ============ animated background: nebula + embers ============ */
.nebula{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; filter:blur(50px) saturate(180%); opacity:.95; }
.nebula span{ position:absolute; border-radius:50%; opacity:.8; will-change:transform; }
.nebula span:nth-child(1){ width:44vw; height:44vw; left:-10vw; top:-8vw; background:radial-gradient(circle,#9333ea 0%,#5b21b6 38%,#3b0764 62%,transparent 75%); animation:driftA 26s ease-in-out infinite; }
.nebula span:nth-child(2){ width:36vw; height:36vw; right:-8vw; top:6vw; background:radial-gradient(circle,#22d3ee 0%,#0e7490 38%,#083344 62%,transparent 75%); animation:driftB 32s ease-in-out infinite; }
.nebula span:nth-child(3){ width:40vw; height:40vw; left:18vw; bottom:-12vw; background:radial-gradient(circle,#e11d8f 0%,#9d174d 38%,#4c0519 62%,transparent 75%); animation:driftC 38s ease-in-out infinite; }
.nebula span:nth-child(4){ width:30vw; height:30vw; right:8vw; bottom:-2vw; background:radial-gradient(circle,#4f46e5 0%,#312e81 38%,#1e1b4b 62%,transparent 75%); animation:driftA 22s ease-in-out infinite reverse; }
@keyframes driftA{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(6vw,8vw) scale(1.15);} }
@keyframes driftB{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-8vw,6vw) scale(1.1);} }
@keyframes driftC{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(5vw,-7vw) scale(1.2);} }

.embers{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.ember{ position:absolute; bottom:-10px; width:4px; height:4px; border-radius:50%; background:var(--cyan-bright); box-shadow:0 0 10px 2px var(--cyan-bright); opacity:0; animation:emberRise linear infinite; }
.ember.violet{ background:var(--violet-bright); box-shadow:0 0 10px 2px var(--violet-bright); }
@keyframes emberRise{
  0%{ transform:translateY(0) translateX(0); opacity:0; }
  10%{ opacity:1; }
  90%{ opacity:.55; }
  100%{ transform:translateY(-105vh) translateX(var(--drift,20px)); opacity:0; }
}

/* ============ main ============ */
#main{ position:relative; min-height:100vh; opacity:0; transition:opacity 1s ease; padding:24px 14px 60px; }
#main.show{ opacity:1; }
/* no solid fill here - this sits above .nebula/.embers in paint order
   (same z-index, later in source) and would otherwise blank them out */
.grid-bg{ position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    linear-gradient(rgba(34,211,238,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.07) 1px, transparent 1px);
  background-size:42px 42px, 42px 42px;
  animation:gridDrift 40s linear infinite;
}
@keyframes gridDrift{ from{background-position:0 0,0 0;} to{background-position:0 840px,840px 0;} }
#main::after{ content:''; position:fixed; inset:0; z-index:1; pointer-events:none; background:radial-gradient(ellipse at center, transparent 55%, rgba(2,4,16,.55) 100%, #000 160%); }
.wrap{ position:relative; z-index:2; max-width:580px; margin:0 auto; }

/* chassis bar, same beveled-metal language as the player header */
.topbar{
  display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap;
  padding:9px 14px; margin-bottom:20px;
  background:linear-gradient(180deg,#3d4557,#1b2029 55%,#12151c);
  border:1px solid #000; border-radius:8px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15), inset 0 -1px 0 rgba(0,0,0,.6), 0 0 40px -22px rgba(34,211,238,.4);
  font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:#dbe6ee;
}
.topbar-right{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.topbar-status{ display:flex; align-items:center; gap:6px; color:var(--cyan-bright); text-shadow:0 0 8px rgba(34,211,238,.5); }
.topbar-status .dot{ width:6px; height:6px; border-radius:50%; background:var(--cyan-bright); box-shadow:0 0 6px var(--cyan-bright); flex:0 0 auto; }
.linklike{ background:none; border:none; color:inherit; cursor:pointer; font-size:inherit; letter-spacing:inherit; text-transform:inherit; font-family:inherit; transition:color .2s, text-shadow .2s; }
.linklike:hover{ color:var(--cyan-bright); text-shadow:0 0 8px rgba(34,211,238,.5); }
.linklike.accent{ color:var(--cyan-dim); }

/* ============ HUD panel framing ============ */
.panel{ position:relative; border:1px solid var(--line); border-radius:12px; background:var(--panel); backdrop-filter:blur(6px) saturate(140%); box-shadow:0 0 50px -20px rgba(34,211,238,.4), inset 0 0 40px -30px rgba(167,139,250,.5); margin-bottom:22px; transition:box-shadow .08s linear; }
.hud .hud-b{ position:absolute; width:14px; height:14px; border:1px solid var(--cyan); pointer-events:none; opacity:.8; transition:opacity .08s linear, border-color .08s linear; }
.hud .hud-b.tl{ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.hud .hud-b.tr{ top:-1px; right:-1px; border-left:0; border-bottom:0; }
.hud .hud-b.bl{ bottom:-1px; left:-1px; border-right:0; border-top:0; }
.hud .hud-b.br{ bottom:-1px; right:-1px; border-left:0; border-top:0; }

/* ============ wordmark ============ */
.wordmarkPanel{ text-align:center; padding:44px 20px 30px; }
.wordmark-wrap{ position:relative; display:inline-block; }
.wordmark{
  position:relative;
  font-family:'Orbitron', 'Rajdhani', sans-serif;
  font-weight:900; text-transform:uppercase;
  font-size:clamp(1.9rem, 7.5vw, 3.6rem);
  line-height:.95; letter-spacing:.02em;
  background:linear-gradient(100deg,#a5f3fc 0%,#fff 40%,#c4b5fd 75%,#f0abfc 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 0 20px rgba(167,139,250,.35));
}
.wordmark::before,.wordmark::after{
  content:attr(data-text); position:absolute; top:0; left:0; width:100%;
  -webkit-background-clip:text; background-clip:text; color:transparent; mix-blend-mode:screen;
}
.wordmark::before{ background:linear-gradient(100deg,#22d3ee,#22d3ee); animation:glx1 5s infinite steps(1); }
.wordmark::after{ background:linear-gradient(100deg,#f0abfc,#f0abfc); animation:glx2 5s infinite steps(1); }
@keyframes glx1{ 0%,90%,100%{transform:translate(0,0);opacity:0;} 92%{transform:translate(-2px,1px);opacity:.55;} 94%{transform:translate(2px,-1px);opacity:0;} 96%{transform:translate(-1px,-1px);opacity:.5;} }
@keyframes glx2{ 0%,90%,100%{transform:translate(0,0);opacity:0;} 93%{transform:translate(2px,-1px);opacity:.5;} 95%{transform:translate(-2px,1px);opacity:0;} 97%{transform:translate(1px,1px);opacity:.45;} }
.tagline{ margin-top:14px; font-size:10px; letter-spacing:.25em; color:var(--muted); text-transform:uppercase; }
.insta{ display:inline-flex; align-items:center; gap:8px; margin-top:12px; font-size:11px; letter-spacing:.15em; color:var(--muted); text-decoration:none; transition:color .2s,text-shadow .2s; }
.insta:hover{ color:var(--cyan-bright); text-shadow:0 0 8px rgba(34,211,238,.5); }
.ig-dot{ width:9px; height:9px; border:1px solid currentColor; border-radius:3px; display:inline-block; }

/* ============ player: oldschool winamp chassis ============ */
.player{ overflow:hidden; border:1px solid #3a4150; background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, #14161d, #0a0b10);
}
.player-bar{
  display:flex; justify-content:space-between; align-items:center; padding:7px 10px;
  background:linear-gradient(180deg,#3d4557,#1b2029 55%,#12151c);
  border-bottom:1px solid #000; box-shadow:inset 0 1px 0 rgba(255,255,255,.15), inset 0 -1px 0 rgba(0,0,0,.6);
  font-size:10px; letter-spacing:.2em; color:#dbe6ee;
}
.pb-title{ text-shadow:0 1px 0 #000; }
.pb-status{ color:var(--muted); font-family:'Share Tech Mono',monospace; }
.pb-status.live{ color:var(--cyan-bright); text-shadow:0 0 8px rgba(34,211,238,.7); }

.deck{ display:flex; gap:12px; padding:12px 12px 4px; align-items:center; }
.disc{ position:relative; width:56px; height:56px; flex:0 0 56px; border-radius:50%;
  background:
    repeating-conic-gradient(from 0deg, #111 0deg 6deg, #1c1c1c 6deg 12deg),
    radial-gradient(circle at 50% 50%, #333 0 8%, transparent 9%);
  box-shadow:0 0 18px -4px rgba(34,211,238,.6), inset 0 0 0 3px #000, inset 0 0 10px rgba(0,0,0,.8);
  animation:spin 5s linear infinite; animation-play-state:paused;
  border:1px solid #000;
}
.disc.playing{ animation-play-state:running; }
.disc-core{ position:absolute; top:50%; left:50%; width:16px; height:16px; border-radius:50%; background:linear-gradient(135deg,#555,#111); border:1px solid #000; transform:translate(-50%,-50%); box-shadow:0 0 4px rgba(34,211,238,.6); }
@keyframes spin{ to{ transform:rotate(360deg); } }
.deck-info{ flex:1; min-width:0; }

.lcd-top{ display:flex; justify-content:space-between; font-size:9px; color:var(--cyan-dim); letter-spacing:.1em; }
#lcdState{ color:var(--cyan-bright); text-shadow:0 0 6px rgba(34,211,238,.55); }
.lcd-main{ display:flex; align-items:baseline; gap:10px; margin:3px 0 4px; background:#010409; border:1px solid #062035; border-radius:2px; padding:5px 8px; box-shadow:inset 0 0 10px rgba(0,0,0,.9); }
.lcd-main #curTime{ color:var(--cyan-bright); font-size:1.05rem; text-shadow:0 0 8px rgba(34,211,238,.75); flex:0 0 auto; font-family:'Orbitron',monospace; }
.marquee{ overflow:hidden; flex:1; white-space:nowrap; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.marquee span{ display:inline-block; color:var(--cyan-bright); text-shadow:0 0 6px rgba(34,211,238,.6); font-size:.8rem; padding-left:100%; animation:scrollTxt 12s linear infinite; }
.marquee span.still{ animation:none; padding-left:0; }
@keyframes scrollTxt{ to{ transform:translateX(-100%); } }
.viz{ display:block; width:100%; height:46px; background:#010409; border:1px solid #062035; border-radius:2px; margin-top:4px; box-shadow:inset 0 0 10px rgba(0,0,0,.9); }

.audioErr{ padding:0 14px 6px; font-size:10px; color:var(--rose); }

.seekrow{ padding:6px 16px 2px; }
.timerow{ display:flex; justify-content:space-between; padding:0 16px 4px; font-size:9px; color:var(--muted); }
input[type=range]{ -webkit-appearance:none; appearance:none; width:100%; height:4px; background:#000; border:1px solid #062035; border-radius:2px; outline:none; box-shadow:inset 0 1px 2px rgba(0,0,0,.8); }
input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:12px; height:12px; background:linear-gradient(180deg,#a5f3fc,var(--cyan)); box-shadow:0 0 8px var(--cyan), inset 0 1px 0 rgba(255,255,255,.6); border:1px solid #04303d; border-radius:2px; cursor:pointer; margin-top:-4.5px; }
input[type=range]::-moz-range-thumb{ width:12px; height:12px; border:1px solid #04303d; background:var(--cyan); box-shadow:0 0 8px var(--cyan); border-radius:2px; cursor:pointer; }

.controls{ display:flex; justify-content:center; align-items:center; gap:8px; padding:10px 14px 12px; }
.controls button{
  background:linear-gradient(180deg,#4a5266,#22262f 45%,#15171d);
  border:1px solid #05060a; border-top-color:#6b7386; border-left-color:#5a6172;
  color:#dbe6ee; border-radius:4px; cursor:pointer; transition:.12s;
  box-shadow:0 2px 0 #000, inset 0 1px 0 rgba(255,255,255,.1);
}
.ctl-sm{ width:34px; height:28px; font-size:12px; }
.ctl-play{ width:48px; height:32px; font-size:13px; }
.controls button:hover{ color:var(--cyan-bright); text-shadow:0 0 6px rgba(34,211,238,.7); }
.controls button.on{ background:linear-gradient(180deg,#0b3a44,#081921); color:var(--cyan-bright); box-shadow:0 0 10px -2px var(--cyan), inset 0 1px 0 rgba(255,255,255,.1); }
.controls button:active{ transform:translateY(1px); box-shadow:0 1px 0 #000; }

.volrow{ display:flex; align-items:center; gap:10px; padding:0 16px 14px; font-size:9px; color:var(--muted); letter-spacing:.15em; }
#volPct{ width:22px; text-align:right; color:var(--cyan-bright); }

.libHead{ display:flex; justify-content:space-between; align-items:center; padding:9px 16px; border-top:1px solid #000; border-bottom:1px solid #2b3040; background:linear-gradient(180deg,#22262f,#191b21); font-size:10px; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); }

.trackList{ max-height:300px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--cyan-dim) transparent; background:#0b0c10; }
.trackList::-webkit-scrollbar{ width:6px; }
.trackList::-webkit-scrollbar-thumb{ background:var(--cyan-dim); border-radius:3px; }
.trackRow{ display:flex; align-items:center; gap:10px; padding:9px 16px; font-size:12px; border-bottom:1px solid #050609; color:var(--muted); cursor:pointer; transition:background .15s; }
.trackRow:hover{ background:rgba(34,211,238,.06); }
.trackRow.active{ background:linear-gradient(90deg,rgba(34,211,238,.14),transparent); color:var(--cyan-bright); box-shadow:inset 2px 0 0 var(--cyan); }
.trackRow .idx{ width:20px; color:var(--muted2); font-size:10px; }
.trackRow.active .idx{ color:var(--cyan-bright); }
.trackRow .ttl{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.trackRow .art{ color:var(--muted2); }
.trackRow .eq{ display:none; gap:2px; align-items:flex-end; height:12px; width:14px; }
.trackRow.active .eq{ display:flex; }
.trackRow .eq i{ width:3px; background:var(--cyan-bright); animation:eqbar .8s ease-in-out infinite; }
.trackRow .eq i:nth-child(2){ animation-delay:.2s; } .trackRow .eq i:nth-child(3){ animation-delay:.4s; }
@keyframes eqbar{ 0%,100%{height:20%;} 50%{height:100%;} }
.trackRow button{ background:none; border:none; cursor:pointer; color:var(--muted2); font-size:13px; transition:color .15s,transform .1s; }
.trackRow button.fav.active{ color:var(--rose); text-shadow:0 0 8px rgba(251,113,133,.6); }
.trackRow button:hover{ color:var(--cyan-bright); transform:scale(1.2); }
.trackRow button.del:hover{ color:var(--rose); }
.trackRow button.share{ font-size:11px; }
.trackRow button.share.copied{ color:var(--violet-bright); }
.trackRow.queued{ box-shadow:inset 2px 0 0 var(--violet-bright); }
.trackRow.queued:not(.active) .idx{ color:var(--violet-bright); }
.emptyLib{ padding:26px; text-align:center; font-size:11px; color:var(--muted2); }

.note{ padding:10px 16px 14px; font-size:9px; color:#334155; border-top:1px solid var(--line); line-height:1.5; background:#0b0c10; }

/* ============ up-next queue ============ */
.queueBox{ padding:10px 16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#0b0c10; }
.queueLabel{ font-size:9px; text-transform:uppercase; letter-spacing:.15em; color:var(--muted2); margin-bottom:8px; }
.queueChip{ display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text); padding:5px 0; }
.queueChip + .queueChip{ border-top:1px solid #14161d; }
.queueChipN{ color:var(--violet-bright); font-size:10px; flex:0 0 auto; width:14px; }
.queueChipTtl{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.queueChipRm{ background:none; border:none; cursor:pointer; color:var(--muted2); font-size:12px; padding:2px 4px; transition:color .15s; }
.queueChipRm:hover{ color:var(--rose); }

.footStats{ text-align:center; font-size:9px; letter-spacing:.3em; color:var(--muted2); text-transform:uppercase; }
.footStats .sep{ margin:0 8px; }

/* ============ modal ============ */
.modalOverlay{ position:fixed; inset:0; background:rgba(0,2,8,.78); z-index:600; display:flex; align-items:center; justify-content:center; padding:16px; backdrop-filter:blur(6px); }
.modalBox{ position:relative; width:100%; max-width:380px; background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:20px; box-shadow:0 0 60px -15px rgba(34,211,238,.5); }
.modalHead{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--cyan-bright); }
#modalBody input, #modalBody textarea, #modalBody select{ width:100%; background:#010208; border:1px solid var(--line); border-radius:6px; padding:9px 10px; font-size:13px; color:var(--text); font-family:inherit; outline:none; margin-bottom:10px; transition:border-color .2s,box-shadow .2s; }
#modalBody input:focus, #modalBody textarea:focus, #modalBody select:focus{ border-color:var(--cyan); box-shadow:0 0 12px -4px var(--cyan); }
#modalBody textarea{ resize:vertical; min-height:64px; }
#modalBody select{ cursor:pointer; }
#modalBody button.primary{ width:100%; background:linear-gradient(90deg,#083344,#3b0764); border:1px solid var(--cyan-dim); color:var(--cyan-bright); border-radius:6px; padding:10px; font-size:11px; letter-spacing:.2em; text-transform:uppercase; cursor:pointer; transition:.2s; }
#modalBody button.primary:hover{ box-shadow:0 0 16px -4px var(--cyan); }
#modalBody button.primary:disabled{ opacity:.5; cursor:default; box-shadow:none; }
.formErr{ font-size:11px; color:var(--rose); margin-bottom:10px; min-height:14px; }
.formHint{ font-size:10px; color:var(--muted); margin-bottom:10px; line-height:1.5; }

.rosterGrid{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; max-height:340px; overflow-y:auto; padding-right:2px; }
.rosterCell{ position:relative; font-size:9px; border-radius:5px; padding:6px 2px 5px; border:1px solid var(--line); background:#020410; color:var(--muted2); text-align:center; overflow:hidden; }
.rosterCell .ruid{ display:block; font-size:8px; color:var(--muted2); margin-bottom:2px; }
.rosterCell.filled{ color:var(--cyan); cursor:pointer; }
.rosterCell.filled .ruid{ color:var(--cyan-dim); }
.rosterCell.filled:hover{ border-color:var(--cyan); box-shadow:0 0 12px -4px var(--cyan); }
.rosterCell .rname{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.profileCard{ display:flex; gap:14px; align-items:center; margin-bottom:14px; }
.avatar{ width:56px; height:56px; flex:0 0 56px; border:1px solid var(--line); border-radius:8px; image-rendering:pixelated; }
.profileUid{ color:var(--cyan-bright); font-size:14px; }
.profileMeta{ font-size:10px; color:var(--muted); margin-top:3px; letter-spacing:.05em; }
.profileBio{ font-size:12px; color:var(--muted); min-height:2rem; margin-bottom:10px; line-height:1.5; white-space:pre-wrap; }
.profileLabel{ font-size:10px; text-transform:uppercase; letter-spacing:.15em; color:var(--muted2); border-top:1px solid var(--line); padding-top:10px; margin-bottom:6px; }
.profileFav{ font-size:12px; color:var(--violet-bright); }

@media (max-width:640px){
  .wrap{ padding-top:2px; }
  .player{ margin-top:8px; }
  .rosterGrid{ grid-template-columns:repeat(4,1fr); }
  .nebula{ filter:blur(40px) saturate(130%); }
}

@media (prefers-reduced-motion: reduce){
  .nebula span, .ember, .grid-bg, .disc, .wordmark::before, .wordmark::after, .marquee span{ animation:none !important; }
}

/* ============ admin console + invites ============ */
.libBtns{ display:flex; gap:14px; }
.fileInput{ font-size:11px; color:var(--muted); }
.fileInput::file-selector-button{
  font-family:inherit; font-size:10px; letter-spacing:.15em; text-transform:uppercase;
  background:linear-gradient(90deg,#083344,#3b0764); border:1px solid var(--cyan-dim); color:var(--cyan-bright);
  border-radius:6px; padding:7px 12px; margin-right:10px; cursor:pointer;
}
.adminRow{ display:flex; gap:10px; margin-bottom:10px; }
.adminRow .primary{ flex:1; }
.adminMsg{ color:var(--cyan-bright); }
.inviteList{ max-height:240px; overflow-y:auto; display:flex; flex-direction:column; gap:5px; }
.inviteRow{
  display:flex; align-items:center; gap:10px; font-size:11px;
  border:1px solid var(--line); border-radius:6px; padding:7px 10px; background:#020410;
}
.inviteRow.used{ opacity:.45; }
.inviteCode{
  font-family:'Share Tech Mono', monospace; letter-spacing:.12em; color:var(--cyan-bright); cursor:pointer;
  transition:color .2s, text-shadow .2s;
}
.inviteCode:hover{ text-shadow:0 0 8px rgba(34,211,238,.6); }
.inviteCode.copied{ color:var(--violet-bright); }
.inviteWho{ color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }
.inviteState{ margin-left:auto; color:var(--muted2); font-size:10px; text-transform:uppercase; letter-spacing:.1em; white-space:nowrap; }
.inviteRow:not(.used) .inviteState{ color:var(--violet-bright); }

.playlistList{ max-height:220px; overflow-y:auto; display:flex; flex-direction:column; gap:5px; margin-bottom:12px; }
.playlistRow{
  display:flex; align-items:center; gap:10px; font-size:11px;
  border:1px solid var(--line); border-radius:6px; padding:7px 10px; background:#020410;
}
.playlistRow.live{ border-color:var(--cyan-dim); box-shadow:0 0 12px -6px var(--cyan); }
.playlistName{ flex:1; min-width:0; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.playlistRow.live .playlistName{ color:var(--cyan-bright); }
.playlistCount{ color:var(--muted2); font-size:10px; white-space:nowrap; }
.playlistActions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.playlistActions .linklike{ font-size:10px; text-transform:uppercase; letter-spacing:.08em; white-space:nowrap; }
.playlistLiveBadge{ color:var(--cyan-bright); font-size:9px; text-transform:uppercase; letter-spacing:.12em; text-shadow:0 0 8px rgba(34,211,238,.5); }
.plCreateRow{ display:flex; gap:10px; margin-bottom:16px; }
.plCreateRow input{ flex:1; min-width:0; margin-bottom:0; }
#modalBody .plCreateRow button.primary{ flex:0 0 auto; width:auto; white-space:nowrap; }
