/* Playlist Manager – dizajn. Tmavá téma je predvolená, svetlá podľa systému. */
:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-elev: #111318;
  --surface: #161920;
  --surface-2: #1c2029;
  --surface-3: #252a35;
  --line: #242934;
  --line-strong: #323846;
  --text: #f2f4f8;
  --muted: #a0a8b8;
  --faint: #6f788a;
  --accent: #8b7bff;
  --accent-hover: #9d8fff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(139, 123, 255, 0.16);
  --ok: #4ade9b;
  --ok-soft: rgba(74, 222, 155, 0.14);
  --warn: #fbbf4b;
  --warn-soft: rgba(251, 191, 75, 0.15);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --top-h: 60px;
  --player-h: 92px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f6fa;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f1f6;
    --surface-3: #e6e8f0;
    --line: #e4e6ee;
    --line-strong: #d3d6e2;
    --text: #12141a;
    --muted: #5a6274;
    --faint: #8a91a2;
    --accent: #6c5ce7;
    --accent-hover: #5b4bd6;
    --accent-soft: rgba(108, 92, 231, 0.12);
    --ok: #12a46b;
    --ok-soft: rgba(18, 164, 107, 0.12);
    --warn: #b7791f;
    --warn-soft: rgba(183, 121, 31, 0.13);
    --danger: #d64545;
    --danger-soft: rgba(214, 69, 69, 0.1);
    --shadow: 0 18px 50px rgba(20, 24, 40, 0.16);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13.5px; }
.pad { padding: 10px 2px; }
.error-text { color: var(--danger); font-size: 14px; }

/* ikony */
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

/* tlačidlá */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 28px; font-size: 16px; }
.danger-text { color: var(--danger) !important; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.accent { background: var(--accent-soft); color: var(--accent); }
.icon-btn.accent:hover { background: var(--accent); color: var(--accent-ink); }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin .8s linear infinite; display: inline-block; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot .spinner { width: 28px; height: 28px; border-width: 3px; }

/* logo */
.logo {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff7ab6); color: #fff;
}
.logo .icon { width: 20px; height: 20px; }
.logo.big { width: 64px; height: 64px; border-radius: 20px; }
.logo.big .icon { width: 34px; height: 34px; }

/* horná lišta */
.topbar {
  position: sticky; top: 0; z-index: 20; height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 20px 0; display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.top-right { display: flex; align-items: center; gap: 8px; }
.sync-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px;
}
.sync-chip .icon { width: 16px; height: 16px; }
.sync-chip.ok { color: var(--ok); }
.sync-chip.syncing .icon { animation: pulse 1s ease-in-out infinite; }
.sync-chip.error, .sync-chip.offline { color: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }
.user-btn { border: 0; background: none; padding: 2px; border-radius: 50%; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex: none; }
.avatar.ph { background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 44px; height: 44px; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 270px; padding: 8px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 30;
}
.menu-head { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-name { font-weight: 700; }
.menu-sub { color: var(--muted); font-size: 12.5px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px;
  background: none; text-align: left; font-size: 14px;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item.danger { color: var(--danger); }

/* rozloženie */
.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.sidebar {
  position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h));
  overflow-y: auto; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg-elev);
}
body.has-player .sidebar { height: calc(100vh - var(--top-h) - var(--player-h)); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; }
.side-head h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rot-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px;
  background: none; text-align: left; transition: background .15s;
}
.rot-item:hover { background: var(--surface-2); }
.rot-item.active { background: var(--accent-soft); }
.rot-text { display: grid; min-width: 0; flex: 1; }
.rot-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rot-meta { color: var(--muted); font-size: 12.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.synced { background: var(--ok); }
.dot.dirty { background: var(--warn); }
.side-empty { padding: 20px 8px; color: var(--muted); }
.side-empty p { margin: 0 0 12px; }

.main { min-width: 0; padding: 28px 36px 120px; }
body.has-player .main { padding-bottom: calc(var(--player-h) + 60px); }
.back-btn { display: none; }

/* obálka */
.cover { position: relative; overflow: hidden; flex: none; background: var(--surface-3); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.mosaic { display: grid; grid-template-columns: 1fr 1fr; }
.cover.sm { width: 48px; height: 48px; border-radius: 10px; }
.cover.lg { width: 216px; height: 216px; border-radius: 22px; box-shadow: var(--shadow); }
.cover.gen { display: grid; place-items: center; color: #fff; font-weight: 800; }
.cover.gen.sm span { font-size: 15px; }
.cover.gen.lg span { font-size: 64px; letter-spacing: -.03em; }
.hue-0 { background: linear-gradient(135deg, #8b7bff, #ff7ab6); }
.hue-1 { background: linear-gradient(135deg, #ff7a59, #ffb547); }
.hue-2 { background: linear-gradient(135deg, #2bd4a4, #3d8bff); }
.hue-3 { background: linear-gradient(135deg, #ff5f8f, #8b5cf6); }
.hue-4 { background: linear-gradient(135deg, #00b4d8, #7b2ff7); }
.hue-5 { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.hue-6 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.hue-7 { background: linear-gradient(135deg, #fa709a, #fee140); }
.hue-8 { background: linear-gradient(135deg, #667eea, #764ba2); }
.hue-9 { background: linear-gradient(135deg, #ff9a8b, #ff6a88); }
.hue-10 { background: linear-gradient(135deg, #30cfd0, #330867); }
.hue-11 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

/* hlavička rotácie */
.hero {
  display: flex; gap: 32px; align-items: flex-end; padding: 28px; margin-bottom: 18px; border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.hero-info { min-width: 0; flex: 1; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.hero h1 { margin: 6px 0 6px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.hero-artists { margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 13.5px; }
.with-icon { display: inline-flex; align-items: center; gap: 5px; }
.with-icon .icon { width: 14px; height: 14px; }
.meta-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.meta-link:hover { text-decoration: underline; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.pill.synced { background: var(--ok-soft); color: var(--ok); }
.pill.dirty { background: var(--warn-soft); color: var(--warn); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.busy-line {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--text); font-size: 14px;
}
.busy-line[hidden] { display: none; }

/* zoznam skladieb */
.tracklist { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) auto 48px 40px; gap: 14px; align-items: center;
  padding: 7px 10px; border-radius: 12px; cursor: pointer; transition: background .12s;
}
.track:hover { background: var(--surface-2); }
.track.playing { background: var(--accent-soft); }
.t-num { text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 14px; display: flex; justify-content: flex-end; }
.track.playing .t-num { color: var(--accent); }
.t-num .icon { width: 14px; height: 14px; }
.t-art { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--faint); }
.t-text { display: grid; min-width: 0; }
.t-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track.playing .t-title { color: var(--accent); }
.t-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-dur { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; }
.t-actions { display: flex; justify-content: flex-end; }
.t-actions .icon-btn { opacity: 0; }
.track:hover .t-actions .icon-btn, .track.removed .t-actions .icon-btn { opacity: 1; }
.track.removed .t-text, .track.removed .t-art, .track.removed .t-dur, .track.removed .badge { opacity: .35; }
.track.removed .t-title { text-decoration: line-through; }
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; }
.badge.live { background: var(--danger-soft); color: var(--danger); }
.empty-tracks { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* prázdny stav */
.empty-state { max-width: 520px; margin: 10vh auto 0; text-align: center; }
.empty-state h2 { margin: 18px 0 8px; font-size: 28px; letter-spacing: -.02em; }
.empty-state p { color: var(--muted); margin: 0 0 24px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* prehrávač */
.playerbar { display: none; }
body.has-player .playerbar {
  display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  height: calc(var(--player-h) + env(safe-area-inset-bottom)); padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.playerbar iframe { flex: 1; height: 80px; border: 0; border-radius: 12px; }

/* drawer s nastaveniami */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5); animation: fade .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(500px, 100vw); display: flex; flex-direction: column;
  background: var(--bg-elev); border-left: 1px solid var(--line); box-shadow: var(--shadow); animation: slide .22s ease-out;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 19px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.drawer-foot {
  display: flex; align-items: center; gap: 8px; justify-content: flex-end;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.d-err { color: var(--danger); font-size: 13.5px; margin-right: auto; }
.d-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.d-sec:last-child { border-bottom: 0; }
.d-sec h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.range-val { color: var(--text); }
.drawer input[type=text], .search-box {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.drawer input[type=text]:focus, .search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-top: 12px; }
.search-box input { flex: 1; border: 0; background: none; outline: none; height: 100%; color: var(--text); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); width: max-content; }
.seg { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg .icon { width: 15px; height: 15px; }
.seg.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

.artist-list { list-style: none; margin: 0; padding: 0; }
.artist-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.artist-row:last-child { border-bottom: 0; }
.artist-row.off .artist-name, .artist-row.off .avatar { opacity: .45; }
.artist-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-toggle {
  height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: none;
  color: var(--faint); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip-toggle.on { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.results { display: grid; gap: 2px; margin-top: 8px; }
.result {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px;
  background: none; text-align: left;
}
.result:hover:not(:disabled) { background: var(--surface-2); }
.result img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.result-name { flex: 1; font-weight: 600; }
.result-add { color: var(--accent); display: inline-flex; font-size: 12.5px; }
.result.in { cursor: default; }
.result.in .result-name, .result.in .result-add { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips-label { width: 100%; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 500;
}
.chip .icon { width: 14px; height: 14px; color: var(--accent); }
.chip:hover { border-color: var(--accent); }
.opt-list { display: grid; gap: 2px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer; }
.opt-text { flex: 1; display: grid; }
.opt-title { font-weight: 600; }
.opt-sub { color: var(--muted); font-size: 13px; }
.excl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.excl-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.excl-list li.restore span { text-decoration: line-through; color: var(--faint); }
.danger-zone { padding-top: 14px; }

/* prepínač */
.switch {
  appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; border-radius: 999px;
  background: var(--surface-3); position: relative; cursor: pointer; transition: background .15s; margin: 0;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s;
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }

/* modal a toasty */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); animation: fade .15s; }
.modal { width: min(440px, 100%); padding: 24px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 10px; font-size: 19px; }
.modal-body { color: var(--muted); }
.modal-body p { margin: 0 0 8px; }
.confirm-opt { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toasts {
  position: fixed; z-index: 70; right: 20px; bottom: 20px; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 40px));
}
body.has-player .toasts { bottom: calc(var(--player-h) + 16px); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--bg-elev);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; animation: slide .2s ease-out; transition: opacity .3s;
}
.toast .icon { color: var(--ok); margin-top: 1px; }
.toast.error .icon { color: var(--danger); }
.toast.out { opacity: 0; }

/* prihlásenie */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(80% 60% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg); }
.login-card { width: min(440px, 100%); text-align: center; padding: 40px 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card h1 { margin: 18px 0 10px; font-size: 32px; letter-spacing: -.03em; }
.login-card .lead { color: var(--muted); margin: 0 0 28px; }
.login-card .fine { color: var(--faint); font-size: 12.5px; margin: 22px 0 0; }

/* správa používateľov */
.admin { max-width: 880px; margin: 0 auto; padding: 24px 20px 80px; }
.admin h1 { margin: 12px 0 6px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; }
.admin-lead { color: var(--muted); margin: 0 0 22px; max-width: 640px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; text-decoration: none; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat-num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat.active .stat-num { color: var(--ok); }
.stat.pending .stat-num { color: var(--warn); }
.stat.blocked .stat-num { color: var(--danger); }
.admin-help { padding: 14px 16px; margin-bottom: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.admin-help summary { cursor: pointer; font-weight: 600; }
.admin-help ol { color: var(--muted); padding-left: 20px; margin: 12px 0 14px; }
.admin-help li { margin-bottom: 6px; }
.user-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.user-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.user-card.pending { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.user-card.blocked .user-main { opacity: .6; }
.user-main { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1 1 320px; }
.user-main .avatar { width: 44px; height: 44px; font-size: 14px; }
.user-text { min-width: 0; }
.user-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.user-meta { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.blocked { background: var(--danger-soft); color: var(--danger); }
.boot.small { min-height: 120px; }

/* mobil */
@media (max-width: 860px) {
  :root { --player-h: 90px; }
  .topbar { padding-left: 16px; padding-right: 12px; }
  .sync-label { display: none; }
  .sync-chip { width: 36px; padding: 0; justify-content: center; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto !important; border-right: 0; background: none; padding: 16px 10px; }
  .main { display: none; padding: 12px 14px 100px; }
  body.show-detail .sidebar { display: none; }
  body.show-detail .main { display: block; }
  .back-btn {
    display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px -6px; padding: 6px 8px; border: 0;
    background: none; color: var(--accent); font-weight: 600;
  }
  .hero { flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px; border-radius: 22px; }
  .cover.lg { width: 148px; height: 148px; border-radius: 18px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hide-sm { display: none; }
  .track { grid-template-columns: 22px 40px minmax(0, 1fr) auto 36px; gap: 10px; padding: 6px 4px; }
  .t-dur { display: none; }
  .t-art { width: 40px; height: 40px; }
  .t-actions .icon-btn { opacity: 1; }
  .toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .drawer { width: 100vw; border-left: 0; }
  .admin-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .stat { padding: 10px 12px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 11.5px; }
  .user-actions { width: 100%; }
}
