/* The split queue in the Library (D77, P65: library/splitting.ts). Rows reuse library.css's
   .lib-item, .lib-art, .lib-progress and .lib-item__sub; the actions are the rows' 26×26 icon buttons (api.css). */

.lib-queue .lib-section__head { gap: 8px; }
.lib-queue__label {
  margin: 0;
  color: var(--st-text-faint);
  font: 500 10px/normal var(--st-font-mono);
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.lib-queue__count {
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--st-accent-soft);
  color: var(--st-accent-ink);
  font: 500 10px/16px var(--st-font-mono);
  text-align: center;
}

.lib-queue__row {
  /* The phone makes the li a flex row (library.css): without these the long title's width sets the card's. */
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 8px 8px;
  border-radius: 10px;
  outline: 1px solid var(--st-line);
  outline-offset: -0.5px;
}
.lib-queue__item[data-queue='splitting'] .lib-queue__row,
.lib-queue__item[data-queue='saving'] .lib-queue__row { background: var(--st-surface); }

.lib-queue__actions { flex: none; display: flex; gap: 2px; }
.lib-queue__action {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--st-text-dim);
  cursor: pointer;
}
.lib-queue__action .lib-icon { width: 14px; height: 14px; }
.lib-queue__action:hover,
.lib-queue__action:focus-visible { background: var(--st-surface-2); color: var(--st-text); }

/* Waiting reads quieter than splitting; paused says so in the warning's colour. */
.lib-queue__status--queued { color: var(--st-text-dim); }
.lib-queue__status--paused { color: var(--st-warn); }

.lib-queue__hint { padding: 0 4px; font-size: 11px; line-height: 16px; }

/* Splitting, saving or failed: the glyph stays over the thumbnail, on a scrim. */
.lib-queue__item:is([data-queue='splitting'], [data-queue='saving'], [data-queue='failed']) .lib-art .lib-icon {
  position: relative;
  z-index: 1;
}
.lib-queue__item:is([data-queue='splitting'], [data-queue='saving'], [data-queue='failed']) .lib-art__thumb[data-loaded='true'] {
  filter: brightness(0.45);
}
@supports selector(:has(*)) {
  /* The processing fade (library.css) is for the bare gradient. */
  .lib-queue .lib-art:has(.lib-art__thumb[data-loaded='true']) { opacity: 1; }
}

/* Get chords' songs on their way (P801, chart-queue/view.ts `libraryGroup`), atop Recent: the queue's caption, plain rows. */
.cq-group { padding-bottom: 4px; }
.cq-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 6px; }
.cq-row .lib-item__meta { gap: 3px; }
