:root {
  --bg: #0b1220;
  --panel: #131c2e;
  --panel-2: #1b2740;
  --line: #25324d;
  --text: #e8eefc;
  --muted: #8aa0c6;
  --green: #2ecc71;
  --red: #e74c3c;
  --amber: #f1c40f;
  --accent: #4f8cff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 18px; margin: 0; letter-spacing: .3px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot.live { background: var(--green); box-shadow: 0 0 8px var(--green); }
.conn { color: var(--muted); font-size: 13px; }

.members { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.members h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 12px; }
.member-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); font-size: 14px; font-weight: 600;
}
.chip .led { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.chip.on { border-color: var(--green); }
.chip.on .led { background: var(--green); box-shadow: 0 0 8px var(--green); }
.members-meta { color: var(--muted); font-size: 12px; margin-top: 10px; }

.alert {
  margin: 14px 20px; padding: 12px 16px; border-radius: 10px;
  background: rgba(241, 196, 15, .12); border: 1px solid var(--amber); color: #ffe89a;
  font-weight: 600;
}
.alert.info { background: rgba(79,140,255,.12); border-color: var(--accent); color: #cfe0ff; }
.hidden { display: none; }

.nowplaying { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.nowplaying h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 12px; }
.np-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.np-card {
  min-width: 220px; max-width: 320px; padding: 12px 14px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--green);
}
.np-card.paused { border-color: var(--amber); opacity: .85; }
.np-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.np-icon { font-size: 14px; }
.np-app { font-weight: 700; font-size: 14px; }
.np-member { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--panel); padding: 2px 8px; border-radius: 6px; }
.np-title { font-size: 14px; color: var(--text); line-height: 1.3; }
.np-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.np-empty { color: var(--muted); font-size: 14px; }

.tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 14px 18px; cursor: pointer; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

main { padding: 16px 20px 60px; }
.tabpane { display: none; }
.tabpane.active { display: block; }

table.log { width: 100%; border-collapse: collapse; font-size: 13px; }
table.log th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .6px; padding: 10px 12px; border-bottom: 1px solid var(--line);
}
table.log td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.log tr:hover td { background: var(--panel); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); font-size: 12px; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(79,140,255,.25); } to { background: transparent; } }
.empty { color: var(--muted); font-size: 14px; padding: 24px 12px; }
