:root {
  --bg: #0d0f14;
  --bg-1: #131720;
  --bg-2: #1a1f2b;
  --bg-3: #232a38;
  --line: #262d3b;
  --fg: #e8ecf4;
  --fg-dim: #9aa4b8;
  --fg-faint: #626c80;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --accent-ink: #06231f;
  --danger: #f87171;
  --radius: 12px;
  --sidebar: 232px;
  --player-h: 84px;
  --topbar-h: 60px;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
.muted { color: var(--fg-dim); }
.tiny { font-size: 12px; }
.err { color: var(--danger); font-size: 13px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33405a; }

/* ───────────────────────── login ───────────────────────── */
.login {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 50% -10%, #1b2536, var(--bg));
  z-index: 100;
}
.login-card {
  width: min(360px, 92vw); background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px 28px; text-align: center; box-shadow: var(--shadow);
}
.login-logo {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-size: 28px;
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.login-card p { margin: 0 0 20px; font-size: 13px; }
.login-card input {
  width: 100%; padding: 11px 14px; margin-bottom: 12px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.login-card input:focus { border-color: var(--accent); }
.btn-primary {
  width: 100%; padding: 11px; border-radius: 10px; font-weight: 600;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); }

/* ───────────────────────── layout ───────────────────────── */
.app {
  display: grid; height: 100%;
  grid-template-columns: var(--sidebar) 1fr;
  /* Row 2 is the offline banner. It is `auto`, so while the banner is hidden
     the row collapses to zero and the layout is unchanged. */
  grid-template-rows: var(--topbar-h) auto 1fr var(--player-h);
  grid-template-areas: "side top" "side bar" "side view" "player player";
}
.sidebar {
  grid-area: side; background: var(--bg-1); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px; gap: 6px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; padding: 0 10px 16px; letter-spacing: -.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px;
  color: var(--fg-dim); font-size: 14px; font-weight: 500; transition: background .12s, color .12s;
}
.nav a:hover { background: var(--bg-2); color: var(--fg); }
.nav a.active { background: var(--bg-3); color: var(--fg); }
.nav a.active svg { color: var(--accent); }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.badge {
  margin-left: auto; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700;
}
.btn-ghost {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  color: var(--fg-dim); background: var(--bg-2);
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-faint); }

.topbar {
  grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 22px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); z-index: 15;
}
.search-wrap { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; }
.search-wrap svg { position: absolute; left: 12px; color: var(--fg-faint); pointer-events: none; }
.search-wrap input {
  width: 100%; padding: 9px 14px 9px 38px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.search-wrap input:focus { border-color: var(--accent); background: var(--bg-2); }
.search-wrap kbd {
  position: absolute; right: 10px; font-size: 11px; color: var(--fg-faint);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-family: inherit;
}
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--fg-dim);
}
.icon-btn:hover { background: var(--bg-2); color: var(--fg); }
.icon-btn.on { color: var(--accent); }

.view { grid-area: view; overflow-y: auto; overflow-x: hidden; padding: 26px 22px 40px; scroll-behavior: smooth; }
.view h2 { margin: 0 0 2px; font-size: 25px; letter-spacing: -.02em; }
.view h3 { margin: 28px 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-dim); }
.page-sub { margin: 0 0 22px; color: var(--fg-dim); font-size: 13.5px; }
.spinner {
  width: 26px; height: 26px; margin: 60px auto; border-radius: 50%;
  border: 2.5px solid var(--bg-3); border-top-color: var(--accent); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--fg-faint); padding: 60px 20px; }
.empty strong { display: block; color: var(--fg-dim); margin-bottom: 6px; font-size: 16px; }

/* ───────────────────────── grids & cards ───────────────────────── */
.grid {
  display: grid; gap: 18px 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.card { cursor: pointer; }
.card .art {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); margin-bottom: 9px;
}
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .art .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--fg-faint); font-size: 30px;
  background: linear-gradient(140deg, var(--bg-2), var(--bg-3)); }
.card .name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.card .sub { font-size: 12.5px; color: var(--fg-dim); }
.card .name, .card .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card:hover .art { box-shadow: var(--shadow); }
.card .play-fab {
  position: absolute; right: 9px; bottom: 9px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: .16s; box-shadow: var(--shadow);
}
.card:hover .play-fab, .card:focus-within .play-fab { opacity: 1; transform: none; }
.card.round .art { border-radius: 50%; }
.hi-res {
  position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.62); backdrop-filter: blur(4px);
  color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 5px;
}

/* ───────────────────────── track list ───────────────────────── */
.tracks { display: flex; flex-direction: column; }
.trow {
  display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: 46px;
}
.trow:hover { background: var(--bg-1); }
.trow.playing { background: var(--bg-2); }
.trow.playing .t-title { color: var(--accent); }
.trow .t-num { color: var(--fg-faint); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.trow:hover .t-num { color: var(--fg); }
.trow .t-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.trow .t-art { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; background: var(--bg-3); flex: none; }
.trow .t-meta { min-width: 0; }
.t-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sub { font-size: 12.5px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .t-dur { color: var(--fg-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.trow .t-actions { display: flex; gap: 2px; opacity: 0; }
.trow:hover .t-actions, .trow:focus-within .t-actions { opacity: 1; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 13px; }
.eq i { width: 2.5px; background: var(--accent); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -.4s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -.15s; }
.eq i:nth-child(3) { height: 65%; }
@keyframes eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.eq.paused i { animation-play-state: paused; }

/* ───────────────────────── album detail ───────────────────────── */
.detail-head { display: flex; gap: 26px; margin-bottom: 26px; align-items: flex-end; }
.detail-head .art {
  width: 208px; height: 208px; border-radius: 14px; object-fit: cover; flex: none;
  background: var(--bg-2); box-shadow: var(--shadow);
}
.detail-head .ph { display: grid; place-items: center; font-size: 54px; color: var(--fg-faint); }
.detail-meta h2 { font-size: 34px; line-height: 1.1; margin-bottom: 8px; }
.detail-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 650;
}
.btn-play:hover { filter: brightness(1.08); }
.btn-line {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-dim);
}
.btn-line:hover { color: var(--fg); border-color: var(--fg-faint); }

/* ───────────────────────── player ───────────────────────── */
.player {
  grid-area: player; position: relative; display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr) minmax(180px, 1fr);
  align-items: center; gap: 16px; padding: 0 18px;
  background: var(--bg-1); border-top: 1px solid var(--line); z-index: 30;
}
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg-3); flex: none; }
.np-text { min-width: 0; }
.np-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-artist { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.controls { display: grid; gap: 5px; justify-items: center; }
.ctl-row { display: flex; align-items: center; gap: 6px; }
.play-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); transition: transform .12s;
}
.play-btn:hover { transform: scale(1.06); }
.seek-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 540px; }
.time { font-size: 11.5px; color: var(--fg-faint); font-variant-numeric: tabular-nums; min-width: 34px; }
.time:last-child { text-align: right; }
.seek { position: relative; flex: 1; height: 4px; border-radius: 3px; background: var(--bg-3); cursor: pointer; }
.seek::before { content: ""; position: absolute; inset: -8px 0; }
.seek-buf { position: absolute; inset: 0 auto 0 0; width: 0; background: #2f394d; border-radius: 3px; }
.seek-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--fg); border-radius: 3px; }
.seek:hover .seek-fill { background: var(--accent); }
.seek-knob {
  position: absolute; top: 50%; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--fg); transform: translate(-50%, -50%); opacity: 0; transition: opacity .12s;
}
.seek:hover .seek-knob { opacity: 1; }
.right-ctl { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.quality {
  font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 5px; padding: 1px 5px;
}
.vol { width: 84px; height: 4px; border-radius: 3px; background: var(--bg-3); cursor: pointer; position: relative; }
.vol::before { content: ""; position: absolute; inset: -8px 0; }
.vol-fill { height: 100%; background: var(--fg-dim); border-radius: 3px; }
.vol:hover .vol-fill { background: var(--accent); }
.mini-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bg-3); }
.mini-progress > div { height: 100%; width: 0; background: var(--accent); }

/* ───────────────────────── queue ───────────────────────── */
.queue-panel {
  position: fixed; right: 0; top: 0; bottom: var(--player-h); width: 340px; max-width: 88vw;
  background: var(--bg-1); border-left: 1px solid var(--line); z-index: 40;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.queue-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.queue-head > div { display: flex; align-items: center; gap: 6px; }
.queue-list { overflow-y: auto; padding: 8px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }

/* ───────────────────────── offline / downloads ───────────────────────── */
.offline-bar {
  grid-area: bar; z-index: 12;
  display: flex; align-items: center; gap: 9px; justify-content: center;
  padding: 9px 16px; font-size: 13px; font-weight: 500;
  background: #3a2c12; color: #fbbf24; border-bottom: 1px solid #55401a;
}
.offline-bar svg { flex: none; }

.pin-btn.busy { color: var(--accent); border-color: var(--accent); }
.pin-btn.done { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pin-btn span { white-space: nowrap; }

.dl-meter {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; display: grid; gap: 12px;
}
.dl-meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.dl-bar { height: 6px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.dl-bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width .3s ease; }
.dl-bar.thin { height: 4px; margin-top: 7px; max-width: 260px; }
.dl-quality { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.dl-quality label { color: var(--fg-dim); }
.dl-quality select {
  background: var(--bg-2); color: var(--fg); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; outline: none;
}
.dl-quality select:focus { border-color: var(--accent); }
.dl-quality #dl-clear { margin-left: auto; }

.dl-list { display: grid; gap: 8px; }
.dl-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 13px 15px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px;
}
.dl-icon {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bg-3); color: var(--fg-dim);
}
.dl-icon.ok { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.dl-meta { min-width: 0; }
.dl-name { font-weight: 600; font-size: 14.5px; display: block; }
.dl-name:hover { color: var(--accent); }
.dl-actions { display: flex; gap: 4px; }

.note-inline {
  background: var(--bg-1); border: 1px solid var(--line); border-left: 3px solid #fbbf24;
  border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--fg-dim); max-width: 62ch;
}
.note-inline strong { display: block; color: var(--fg); margin-bottom: 4px; }

/* ───────────────────────── import / buy list ───────────────────────── */
.drop {
  border: 2px dashed var(--line); border-radius: 14px; padding: 40px 24px; text-align: center;
  background: var(--bg-1); transition: .15s; cursor: pointer;
}
.drop.over { border-color: var(--accent); background: var(--bg-2); }
.drop .big { font-size: 34px; margin-bottom: 10px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; max-width: 420px; }
.field label { font-size: 12.5px; color: var(--fg-dim); }
.field input, .field textarea {
  padding: 10px 12px; background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 9px; outline: none; font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 20px 0; }
.stat {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.stat .n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: .06em; }
.stat.good .n { color: var(--accent); }
.stat.warn .n { color: #fbbf24; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--fg-faint); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600;
}
table.list td { padding: 9px 10px; border-bottom: 1px solid var(--bg-1); }
table.list tr:hover td { background: var(--bg-1); }
.shop { display: flex; gap: 6px; flex-wrap: wrap; }
.shop a {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-dim);
}
.shop a:hover { color: var(--accent); border-color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 18px); transform: translateX(-50%);
  background: var(--bg-3); border: 1px solid var(--line); color: var(--fg);
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; z-index: 200; box-shadow: var(--shadow);
  animation: rise .2s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

.only-mobile { display: none !important; }

/* ───────────────────────── mobile ───────────────────────── */
@media (max-width: 860px) {
  :root { --player-h: 62px; --topbar-h: 56px; }
  .only-mobile { display: grid !important; }
  .only-desktop { display: none !important; }
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-h) auto 1fr var(--player-h);
    grid-template-areas: "top" "bar" "view" "player";
  }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 50;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .sidebar.open { transform: none; }
  .view { padding: 18px 14px 30px; }
  .view h2 { font-size: 22px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px 12px; }
  .player { grid-template-columns: 1fr auto; padding: 0 12px; gap: 8px; }
  .controls { justify-items: end; }
  .np img { width: 44px; height: 44px; }
  .detail-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .detail-head .art { width: 160px; height: 160px; }
  .detail-meta h2 { font-size: 25px; }
  .trow { grid-template-columns: 1fr auto auto; gap: 8px; }
  .trow .t-num { display: none; }
  .trow .t-actions { opacity: 1; }
  .queue-panel { top: auto; height: 65vh; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .toast { bottom: calc(var(--player-h) + 12px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ───────────────────────── buy list: segmented toggle + pills ───────────────────────── */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 16px; background: var(--bg-1); }
.seg a { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--fg-dim); }
.seg a.on { background: var(--bg-3); color: var(--fg); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg-3); color: var(--fg-dim); white-space: nowrap; }
.pill.hot { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }

/* ───────────────────────── trash ───────────────────────── */
.trash-btn:hover { color: var(--danger); }
.badge.dim { background: var(--bg-3); color: var(--fg-dim); }
.toast { display: flex; align-items: center; gap: 14px; }
.toast-act {
  color: var(--accent); font-weight: 600; font-size: 13px; padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px;
}
.toast-act:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.t-actions .trash-row:hover { color: var(--danger); }
.trash-list { display: grid; gap: 6px; }
.trash-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 11px 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px;
}
.trash-item .tiny { color: var(--fg-faint); }
.trash-actions { display: flex; gap: 4px; }
@media (max-width: 860px) { .toast { max-width: 92vw; } }

/* ───────────────────────── rename dialog ───────────────────────── */
.dialog {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); color: var(--fg);
  padding: 22px 24px; width: min(440px, 92vw); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgba(0,0,0,.55); }
.dialog h3 { margin: 0 0 4px; font-size: 17px; }
.dialog .field { margin: 12px 0 0; max-width: none; }
.dialog .field span { font-size: 12.5px; color: var(--fg-dim); }
.dialog p { margin: 4px 0 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.btn-play:disabled, .btn-line:disabled { opacity: .55; cursor: default; }

/* Family (listener) role: no curation controls. Enforced server-side too. */
html.listener [data-act="rename"], html.listener [data-act="trash"],
html.listener #btn-edit, html.listener #btn-trash,
html.listener [data-nav="trash"], html.listener [data-nav="import"] { display: none !important; }

html.listener #btn-scan { display: none !important; }
