/* Estilos do módulo playlists (prefixo .playlists-). */

/* Lista */
.playlists-dt .dt-h, .playlists-dt .dt-r { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr) 80px; }
.playlists-name { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.playlists-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.playlists-name:hover b { color: var(--accent-ink); }
.playlists-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); }
.playlists-form { display: flex; flex-direction: column; gap: 16px; }

/* Editor: nome editável no lugar do título */
.playlists-title.input {
  width: min(560px, 100%);
  height: auto;
  padding: 2px 8px;
  margin-left: -9px;
  border-color: transparent;
  background: transparent;
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  color: var(--text);
}
.playlists-title.input:hover { border-color: var(--line-2); }
.playlists-title.input:focus { border-color: var(--accent); background: var(--panel); }

/* Linhas: arrastar */
.dt-pl .dt-r[draggable="true"] { cursor: default; }
.dt-pl .dt-r .grip { cursor: grab; }
.dt-r.playlists-drag { opacity: 0.45; }
.dt-r.playlists-over { box-shadow: inset 0 2px 0 var(--accent); }
.playlists-empty { padding: var(--pad); }

/* Duração */
.playlists-durw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.playlists-dur.input { width: 76px; }
.playlists-durv { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* Prévia */
.playlists-pv { background: #000; }

/* Biblioteca (gaveta) */
.playlists-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.playlists-pick > .loading, .playlists-pick > .empty, .playlists-pick > .errbox { grid-column: 1 / -1; }
.playlists-pc { display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel); cursor: pointer; }
.playlists-pc .tv { border-radius: 0; }
.playlists-pc.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.playlists-pc-b { display: flex; align-items: flex-start; gap: 8px; padding: 10px; }
.playlists-pc-b input { flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.playlists-pc-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.playlists-pc-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text); }
.playlists-pc-t span { font-size: 12px; color: var(--text-3); }
