:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --panel: #12121f;
  --panel-2: #171728;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3ff;
  --muted: #9aa0bd;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --danger: #fb7185;
  --ok: #34d399;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ auth */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: linear-gradient(160deg, #14141f, #0b0b14);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-hero {
  position: relative;
  padding: 44px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(124, 92, 255, 0.45), transparent 65%),
    radial-gradient(500px 300px at 100% 100%, rgba(34, 211, 238, 0.3), transparent 60%),
    #0d0d18;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
}
.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 70%;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 9px);
  mask-image: linear-gradient(transparent, #000);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.16em; font-size: 13px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #06060c; font-size: 18px;
  box-shadow: 0 0 26px rgba(124, 92, 255, 0.6);
}
.auth-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 0; letter-spacing: -0.03em; }
.auth-hero h1 span { background: linear-gradient(90deg, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: var(--muted); max-width: 34ch; line-height: 1.6; margin: 0; }
.auth-bullets { display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.auth-bullets div { display: flex; gap: 10px; align-items: center; }
.auth-bullets i { color: var(--accent-2); font-style: normal; }

.auth-form { padding: 44px 38px; display: flex; flex-direction: column; gap: 16px; }
.auth-form h2 { margin: 0 0 4px; font-size: 22px; }
.auth-form p.hint { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.tabs { display: flex; gap: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); padding: 5px; border-radius: 12px; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px;
  color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14px;
}
.tabs button.active { background: linear-gradient(135deg, var(--accent), #6d4bff); color: #fff; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(124, 92, 255, 0.7); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  padding: 11px 18px; border-radius: 12px; cursor: pointer; font-weight: 600;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:hover { background: rgba(255,255,255,0.1); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #5b3bff); border-color: transparent; color: #fff; box-shadow: 0 12px 30px rgba(124, 92, 255, 0.35); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(251,113,133,.4); color: #ffb3c0; background: rgba(251,113,133,.1); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.auth-error { color: var(--danger); font-size: 13px; min-height: 18px; }
.demo-box {
  margin-top: 6px; border: 1px dashed rgba(255,255,255,0.16); border-radius: 12px;
  padding: 12px 14px; font-size: 12.5px; color: var(--muted); line-height: 1.7;
}
.demo-box b { color: var(--text); }
.demo-box button { margin-top: 8px; }

/* ------------------------------------------------------------ app shell */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 3vw, 34px);
  background: rgba(7, 7, 13, 0.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { letter-spacing: 0.18em; font-size: 12px; }
.live-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #ffb3c0;
  border: 1px solid rgba(251,113,133,.35); background: rgba(251,113,133,.1);
  padding: 5px 10px; border-radius: 999px;
}
.live-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 10px #fb7185; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.topbar .spacer { flex: 1; }
.clock { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.04);
}
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #05050b;
  font-weight: 800; font-size: 13px;
}
.user-chip .who { display: grid; line-height: 1.15; }
.user-chip .who b { font-size: 12.5px; }
.user-chip .who span { font-size: 10.5px; color: var(--muted); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); display: grid; place-items: center; cursor: pointer; font-size: 16px;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }

.layout {
  flex: 1; display: grid; grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px; width: min(1400px, 100%); margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 34px) 40px;
}

/* ------------------------------------------------------------ sidebar */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.show-card {
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(124,92,255,.18), rgba(255,255,255,.02));
}
.show-card .eyebrow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.show-card h3 { margin: 6px 0 4px; font-size: 17px; }
.show-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.show-card .hours { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #c9cdf0; }
.side-block { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); overflow: hidden; }
.side-title { padding: 14px 16px 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.playlist-list { display: flex; flex-direction: column; padding: 0 8px 10px; gap: 3px; }
.playlist-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 10px; border-radius: 12px; cursor: pointer;
  color: var(--text); transition: background .15s;
}
.playlist-btn:hover { background: rgba(255,255,255,.05); }
.playlist-btn.active { background: rgba(124,92,255,.16); box-shadow: inset 0 0 0 1px rgba(124,92,255,.35); }
.playlist-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; box-shadow: 0 0 12px currentColor; }
.playlist-btn .meta { display: grid; line-height: 1.2; min-width: 0; }
.playlist-btn .meta b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-btn .meta span { font-size: 11px; color: var(--muted); }
.announce-list { display: grid; gap: 8px; padding: 0 12px 14px; }
.announce-item {
  border: 1px solid var(--line); border-left: 3px solid var(--accent-2);
  border-radius: 10px; padding: 9px 11px; background: rgba(255,255,255,.02); cursor: pointer;
}
.announce-item:hover { background: rgba(255,255,255,.05); }
.announce-item b { font-size: 12px; display: block; }
.announce-item span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.4; }
.announce-item[data-kind="spot"] { border-left-color: #f59e0b; }
.announce-item[data-kind="vinheta"] { border-left-color: #34d399; }

/* ------------------------------------------------------------ player */
.main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.player {
  display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 26px; padding: 26px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}
.cover {
  position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  background: var(--cover, linear-gradient(135deg, #7c5cff, #22d3ee));
  display: grid; place-items: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.1);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 45%),
    repeating-linear-gradient(45deg, rgba(0,0,0,.12) 0 2px, transparent 2px 14px);
  mix-blend-mode: overlay;
}
.cover .disc {
  width: 62%; height: 62%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #12121f 0 17%, #06060c 18% 22%, #181828 23% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 18px 40px rgba(0,0,0,.5);
  display: grid; place-items: center; animation: spin 14s linear infinite; animation-play-state: paused;
}
.cover.playing .disc { animation-play-state: running; }
.cover .disc i { font-style: normal; font-size: 34px; color: rgba(255,255,255,.85); text-shadow: 0 0 22px rgba(255,255,255,.6); }
@keyframes spin { to { transform: rotate(360deg); } }
.cover .badge-live {
  position: absolute; top: 14px; left: 14px; font-size: 10px; letter-spacing: .16em; font-weight: 800;
  text-transform: uppercase; padding: 5px 9px; border-radius: 999px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
}
.eq { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.eq i { width: 4px; border-radius: 2px; background: rgba(255,255,255,.85); height: 20%; transition: height .12s ease; }
.cover.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; }
.eq i:nth-child(4) { animation-delay: .45s; } .eq i:nth-child(5) { animation-delay: .6s; }
.eq i:nth-child(6) { animation-delay: .75s; } .eq i:nth-child(7) { animation-delay: .9s; }
@keyframes eq { 50% { height: 100%; } }

.player-body { display: flex; flex-direction: column; min-width: 0; }
.player-body .eyebrow { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.player-body h2 { margin: 8px 0 4px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.player-body .artist { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.chip { font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #c9cdf0; }
.chip.accent { border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.15); color: #cfc4ff; }
.visualizer-wrap { margin-top: 16px; height: 46px; }
#visualizer { width: 100%; height: 100%; display: block; opacity: .9; }

.progress-row { margin-top: 14px; display: grid; gap: 6px; }
.seek { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); cursor: pointer; overflow: hidden; }
.seek .fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.seek .fill::after { content: ""; position: absolute; right: -4px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 0 12px rgba(255,255,255,.8); opacity: 0; }
.seek:hover .fill::after { opacity: 1; }
.times { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.ctrl {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); cursor: pointer; display: grid; place-items: center; font-size: 16px;
}
.ctrl:hover { background: rgba(255,255,255,.12); }
.ctrl.play {
  width: 62px; height: 62px; border: 0; color: #fff; font-size: 22px;
  background: linear-gradient(135deg, var(--accent), #5b3bff);
  box-shadow: 0 14px 34px rgba(124,92,255,.45);
}
.ctrl.play:hover { filter: brightness(1.08); }
.volume { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); }
.volume input { width: 110px; accent-color: var(--accent); }
.listeners { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.listeners b { color: var(--text); }

/* ------------------------------------------------------------ queue + cards */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.grid-2.overview-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.panel {
  border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.025);
  overflow: hidden; display: flex; flex-direction: column; min-height: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; gap: 10px; }
.panel-head h3 { margin: 0; font-size: 14px; letter-spacing: .02em; }
.panel-head span { font-size: 12px; color: var(--muted); }
.queue { list-style: none; margin: 0; padding: 0 8px 10px; max-height: 360px; overflow-y: auto; }
.queue li {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer;
}
.queue li:hover { background: rgba(255,255,255,.05); }
.queue li.current { background: rgba(124,92,255,.16); box-shadow: inset 0 0 0 1px rgba(124,92,255,.3); }
.q-index { width: 22px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.q-cover { width: 38px; height: 38px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.q-meta { display: grid; min-width: 0; line-height: 1.25; }
.q-meta b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-meta span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-tag { margin-left: auto; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #ffd28a; border: 1px solid rgba(245,158,11,.35); padding: 3px 7px; border-radius: 999px; flex: none; }
.q-dur { margin-left: auto; font-size: 11.5px; color: var(--muted); flex: none; }
.queue li.announcement { cursor: default; }
.queue li.announcement .q-cover { display: grid; place-items: center; background: rgba(34,211,238,.15); color: var(--accent-2); font-size: 15px; }
.queue li.announcement .q-meta b { color: #9ee9f5; }

.side-col { display: flex; flex-direction: column; gap: 20px; }
.info-card { padding: 18px; display: grid; gap: 12px; }
.info-card h4 { margin: 0; font-size: 14px; }
.info-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.stat-row:last-child { border-bottom: 0; }
.stat-row span { color: var(--muted); }
.stat-row b { font-variant-numeric: tabular-nums; }

/* ticker */
.ticker {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px;
  border: 1px solid rgba(34,211,238,.25); background: rgba(34,211,238,.07); overflow: hidden;
}
.ticker .lbl { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--accent-2); flex: none; }
.ticker-track { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker-track span { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; font-size: 12.5px; color: #c9f5fb; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(4,4,10,.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  width: min(560px, 100%); max-height: 86vh; overflow: auto; border-radius: 22px;
  border: 1px solid var(--line); background: #101019; box-shadow: var(--shadow); padding: 22px;
  display: grid; gap: 14px;
}
.modal h3 { margin: 0; font-size: 18px; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.search-results { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.search-results button {
  display: flex; width: 100%; gap: 10px; align-items: center; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; cursor: pointer;
}
.search-results button:last-child { border-bottom: 0; }
.search-results button:hover, .search-results button.selected { background: rgba(124,92,255,.16); }
.search-results .q-meta { flex: 1; }
.search-results small { color: var(--muted); }

.announce-toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; width: min(380px, calc(100vw - 44px));
  border-radius: 16px; border: 1px solid rgba(34,211,238,.35); background: rgba(10,26,30,.95);
  box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 4px;
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { transform: translateY(16px); opacity: 0; } }
.announce-toast .kind { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.announce-toast b { font-size: 14px; }
.announce-toast p { margin: 0; font-size: 12.5px; color: #b8c6d0; line-height: 1.5; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: #15152a; border: 1px solid var(--line); padding: 11px 18px; border-radius: 12px;
  font-size: 13px; z-index: 80; box-shadow: var(--shadow); animation: slideIn .25s ease;
}
.toast.error { border-color: rgba(251,113,133,.5); color: #ffb3c0; }

/* ------------------------------------------------------------ admin */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-layout { flex: 1; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; width: min(1440px, 100%); margin: 0 auto; padding: 22px clamp(16px, 3vw, 34px) 40px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; align-self: start; position: sticky; top: 84px; }
.admin-nav button {
  text-align: left; border: 0; background: transparent; color: var(--muted);
  padding: 11px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 13.5px;
  display: flex; align-items: center; gap: 10px;
}
.admin-nav button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.admin-nav button.active { background: rgba(124,92,255,.16); color: #d9d1ff; box-shadow: inset 0 0 0 1px rgba(124,92,255,.3); }
.admin-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); padding: 16px; }
.kpi span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-size: 26px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 11.5px; }
.card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); padding: 18px; min-width: 0; }
.card h3 { margin: 0 0 12px; font-size: 15px; }
.card h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
table.data tr:hover td { background: rgba(255,255,255,.03); }
.badge { display: inline-block; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.ok { border-color: rgba(52,211,153,.4); color: #86efc4; background: rgba(52,211,153,.1); }
.badge.warn { border-color: rgba(245,158,11,.4); color: #fbd38d; background: rgba(245,158,11,.1); }
.badge.bad { border-color: rgba(251,113,133,.4); color: #ffb3c0; background: rgba(251,113,133,.1); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 8px; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(34,211,238,.35)); border-radius: 6px 6px 3px 3px; min-height: 3px; position: relative; }
.bars div span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.list { display: grid; gap: 6px; }
.list-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item span { font-size: 11.5px; color: var(--muted); }
.empty { color: var(--muted); font-size: 13px; padding: 14px; text-align: center; }
.import-card { border-color: rgba(124, 92, 255, .35); background: linear-gradient(160deg, rgba(124,92,255,.10), rgba(255,255,255,.02)); }
.import-progress { margin-top: 14px; display: grid; gap: 7px; }
.import-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.import-bar > div { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.import-progress span { font-size: 12px; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); }
  .grid-2, .grid-2.overview-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .main { order: 1; }
  .player { grid-template-columns: 1fr; }
  .cover { max-width: 340px; margin: 0 auto; width: 100%; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; max-width: 100%; min-width: 0; }
  .admin-nav button { white-space: nowrap; flex: none; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-hero { padding: 30px; gap: 18px; }
  .auth-hero .auth-bullets { display: none; }
  .auth-form { padding: 30px; }
  .topbar .clock { display: none; }
  .volume { margin-left: 0; }
}
@media (max-width: 700px) {
  .topbar { gap: 10px; padding: 12px 14px; }
  .topbar .live-chip { display: none; }
  .topbar .brand { font-size: 10px; letter-spacing: 0.1em; gap: 8px; }
  .topbar .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
  .topbar .btn-sm { padding: 6px 10px; font-size: 12px; }
  .user-chip { padding: 4px; }
}
@media (max-width: 560px) {
  .player { padding: 18px; gap: 18px; }
  .queue li .q-dur { display: none; }
  .user-chip .who { display: none; }
  .topbar .brand { font-size: 9px; }
  .hero-copy { display: none; }
}
