/* ---------------------------------------------------------------------------
   sidebar-queue-playlists.css — Sidebar shell + resize handle, tabs, queue
   toolbar, and queue/playlist item rows.
   --------------------------------------------------------------------------- */

.sidebar-resize-handle {
  width: 6px;
  flex-shrink: 0;
  cursor: col-resize;
  position: relative;
  background: #17171a;
}
.sidebar-resize-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: transparent;
  transform: translateX(-50%);
}
.sidebar-resize-handle:hover::after,
.sidebar-resize-handle.resizing::after {
  background: var(--accent-color);
  width: 2px;
}

.sidebar {
  width: var(--sidebar-w, 300px);
  background: #17171a;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-tabs { display: flex; border-bottom: 1px solid #2a2a2e; align-items: stretch; }
.queue-toolbar {
  display: flex; gap: 8px; padding: 8px; border-bottom: 1px solid #2a2a2e;
}
.queue-toolbar button {
  flex: 1; background: #2a2a2e; border: none; color: #e8e8ea; padding: 6px 8px;
  border-radius: 6px; cursor: pointer; font-size: 12px;
}
@media (hover: hover) { .queue-toolbar button:hover { background: #35353a; } }
.queue-toolbar button.active-state {
  background: var(--accent-color);
  color: #12121e;
  font-weight: 700;
}
@media (hover: hover) { .queue-toolbar button.active-state:hover { background: #85b6ff; } }
.tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: #a8a8ae;
  cursor: pointer;
  font-size: 13px;
}
.tab-btn.active { color: #fff; border-bottom: 2px solid var(--accent-color); }
.tab-panel { flex: 1; overflow-y: auto; padding: 8px; }
.tab-panel.hidden { display: none; }

/* ---- Queue / playlist track rows ----
   Modeled on the "Up next" preview row in the full player (see
   .fp-upcoming-track in responsive.css): a small square art/icon thumbnail,
   a stacked title+subtitle text column, and icon-button controls at the
   trailing edge — instead of the old single-line text-only row. */
.queue-item, .playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
@media (hover: hover) { .queue-item:hover, .playlist-item:hover { background: #1e1e22; } }
.queue-item.playing { background: color-mix(in srgb, var(--accent-color) 22%, #1a1a1d); }
.playlist-item.playing { background: color-mix(in srgb, var(--accent-color) 22%, #1a1a1d); }
.queue-item.dragging, .playlist-item.dragging { opacity: 0.4; }
.queue-item.drag-over, .playlist-item.drag-over { border-top: 2px solid var(--accent-color); }

.queue-item .drag-handle, .playlist-item .drag-handle {
  flex-shrink: 0;
  opacity: 0.35;
  cursor: grab;
  padding: 0 2px;
  font-size: 13px;
  touch-action: none;
}
@media (hover: hover) { .queue-item:hover .drag-handle, .playlist-item:hover .drag-handle { opacity: 0.7; } }
@media (hover: none), (pointer: coarse) {
  .queue-item .drag-handle, .playlist-item .drag-handle { opacity: 0.6; padding: 0 6px; }
}

.row-art, .row-art-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
}
.row-art { object-fit: cover; background: #2a2a2e; }
.row-art.hidden { display: none; }
.row-art-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2e;
  color: var(--accent-color);
  opacity: 0.85;
}
.row-art-icon.hidden { display: none; }
.row-art-icon svg { width: 15px; height: 15px; }

.row-text { flex: 1; min-width: 0; overflow: hidden; }
.row-title {
  font-size: 13px;
  font-weight: 600;
  color: #e8e8ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-subtitle {
  font-size: 11px;
  color: #a8a8ae;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.queue-item.playing .row-title { color: var(--accent-color); }
.playlist-item.playing .row-title { color: var(--accent-color); }

.queue-item .remove-btn, .playlist-item .remove-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  background: none;
  border: none;
  color: #e8e8ea;
  opacity: 0.5;
}
.queue-item .remove-btn svg, .playlist-item .remove-btn svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .queue-item .remove-btn:hover, .playlist-item .remove-btn:hover { opacity: 1; background: #2a2a2e; }
}

.playlist-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
}
@media (hover: hover) { .playlist-header:hover { background: #1e1e22; } }
.playlist-header.playing { background: color-mix(in srgb, var(--accent-color) 22%, #1a1a1d); }
.playlist-header.playing .playlist-name { color: var(--accent-color); }
.playlist-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2e;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  padding: 0;
}
.playlist-icon svg { width: 15px; height: 15px; }
@media (hover: hover) { .playlist-icon:hover { background: #35353a; } }
.playlist-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #e8e8ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
@media (hover: hover) { .playlist-name:hover { text-decoration: underline; } }
.playlist-count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #a8a8ae;
  background: #2a2a2e;
  border-radius: 10px;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.playlist-tracks { padding-left: 10px; }
.new-playlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: #2a2a2e;
  border: none;
  color: #e8e8ea;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  font-size: 13px;
}
@media (hover: hover) { .new-playlist-btn:hover { background: #35353a; } }
.new-playlist-btn svg { width: 14px; height: 14px; }

/* ---- Lyrics box ---- */