/* ── sidebar.css — persistent left panel: brand, search, nav, playlists ──── */
/* Floating rounded panel. The tint is kept very light so the ambient
   gradient runs seamlessly through it; the edge ring is the separator. */
#sidebar { width: 236px; flex: none; display: flex; flex-direction: column; gap: 2px;
  margin: 12px 0 12px 12px; padding: 18px 12px 16px;
  border-radius: var(--r-panel);
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-ring); }

.side-brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 14px; cursor: pointer; user-select: none; }
.side-brand-mark { width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo));
  box-shadow: 0 0 18px rgba(var(--accent-rgb),.55); color: #001428;
  display: flex; align-items: center; justify-content: center;
  transition: background .5s, box-shadow .5s; }
.side-brand-word { font-family: 'Geist', 'Inter', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.side-brand-ver { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: rgba(242,245,250,.45);
  padding: 1px 6px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-pill); }

.side-search { display: flex; align-items: center; gap: 8px; margin: 0 4px 14px; padding: 7px 11px;
  background: rgba(0,0,0,.28); border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.side-search svg { flex-shrink: 0; color: rgba(242,245,250,.45); }
.side-search input { flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font: inherit; font-size: 12.5px; }
.side-search input::placeholder { color: rgba(242,245,250,.4); }

.side-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: none; border: none; text-align: left; width: 100%;
  border-radius: 10px; font: inherit; font-size: 13px; font-weight: 500;
  color: rgba(242,245,250,.68); cursor: pointer; transition: background .18s, color .18s; }
.side-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.side-item:hover { background: rgba(255,255,255,.06); }
.side-item.active { color: #fff;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.35), rgba(var(--accent-rgb),.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(var(--accent-rgb),.25); }

.side-pl-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 12px 8px; }
.side-pl-add { display: flex; background: none; border: none; cursor: pointer; padding: 2px;
  border-radius: 5px; color: rgba(242,245,250,.5); }
.side-pl-add:hover { background: rgba(255,255,255,.08); }

#sidebar-playlists { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; min-height: 0; }
.side-pl-row { display: flex; align-items: center; gap: 9px; padding: 6px 12px;
  background: none; border: none; text-align: left; width: 100%;
  border-radius: 8px; font: inherit; font-size: 12.5px; color: rgba(242,245,250,.75);
  cursor: pointer; transition: background .18s; }
.side-pl-row:hover { background: rgba(255,255,255,.06); }
.side-pl-row.active { background: rgba(255,255,255,.08); color: #fff; }
/* Dragging a clip: hint which rows accept it, then highlight the one under
   the cursor. Children are ignored so dragleave does not flicker. */
.pl-drop-active .side-pl-row[ondrop] { outline: 1px dashed rgba(255,255,255,.22); outline-offset: -2px; }
.side-pl-row.drop-over { background: rgba(255,255,255,.14); color: #fff;
  outline: 1px solid var(--accent); outline-offset: -2px; }
.side-pl-row * { pointer-events: none; }
.side-pl-tile { width: 18px; height: 18px; flex: none; border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 10px; }
.side-pl-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-pl-count { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(242,245,250,.35); }

.side-buffer { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  background: var(--card-sheen), rgba(255,255,255,.03); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.05); }
.side-buffer-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok); animation: vgPulse 1.8s infinite; flex-shrink: 0; }
.side-buffer-copy { flex: 1; min-width: 0; }
.side-buffer-title { font-size: 11.5px; font-weight: 500; }
.side-buffer-readout { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: rgba(242,245,250,.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
