:root{
  --bg:#0b1020;
  --card:rgba(255,255,255,.08);
  --card2:rgba(255,255,255,.06);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --line:rgba(255,255,255,.14);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}
.bg{
  position:fixed; inset:-80px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(120,80,255,.35), transparent 60%),
    radial-gradient(900px 500px at 85% 30%, rgba(0,220,255,.25), transparent 55%),
    radial-gradient(800px 500px at 55% 85%, rgba(255,120,80,.18), transparent 60%);
  filter: blur(0px);
  z-index:-1;
}
.wrap{
  max-width:860px;
  margin:0 auto;
  padding:24px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.top{display:flex; gap:14px; align-items:center; justify-content:space-between; margin-bottom:18px}
.brand h1{font-size:28px; line-height:1.1; margin:0}
.brand p{margin:6px 0 0; color:var(--muted)}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight:700;
}
.admin-link{
  color:var(--text);
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  background: var(--card2);
  border:1px solid var(--line);
}
.top-actions{display:flex; gap:10px; align-items:center}

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow: var(--shadow);
}
.status{display:flex; align-items:center; gap:10px; margin-bottom:14px; color:var(--muted)}
.dot{width:10px; height:10px; border-radius:50%}
.dot.live{background:#35ff9b; box-shadow:0 0 18px rgba(53,255,155,.55)}
.dot.off{background:#ff3b3b; box-shadow:0 0 18px rgba(255,59,59,.35)}

.controls{display:flex; gap:12px; margin:12px 0 8px}
.btn{
  appearance:none; border:none;
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
}
.btn{background:rgba(255,255,255,.92); color:#0b1020}
.btn.ghost{background:transparent; color:var(--text); border:1px solid var(--line)}
.btn:disabled{opacity:.5; cursor:not-allowed}

.hint{margin-top:10px; color:var(--muted); line-height:1.4}
.small{margin-top:10px; color:var(--muted); font-size:13px}
.flash{padding:10px 12px; border-radius:14px; background:rgba(255,255,255,.12); border:1px solid var(--line); margin-bottom:12px}

.form{display:flex; flex-direction:column; gap:12px}
label{display:flex; flex-direction:column; gap:8px; color:var(--muted); font-weight:600}
input{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.check{flex-direction:row; align-items:center; gap:10px}
.check input{width:18px; height:18px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.sep{border:none; border-top:1px solid var(--line); margin:10px 0}

.foot{margin-top:14px; color:rgba(255,255,255,.5); font-size:13px; text-align:center}

@media (max-width:640px){
  .top{flex-direction:column; align-items:flex-start}
  .grid2{grid-template-columns:1fr}
  .controls{flex-direction:column}
  .admin-link{align-self:flex-start}
}

/* --- additions: volume + listeners --- */
.status { display:flex; align-items:center; gap:10px; }
.status .spacer { flex:1; }
.listeners { font-weight:700; opacity:.9; }

.vol-row{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:10px;
}
.vol-label{ opacity:.9; min-width:80px; }
.vol{ flex:1; }
.vol-val{ min-width:50px; text-align:right; opacity:.9; }

.btn-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.pill{
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
