/* Pestaña Listas y selector "Añadir a una lista" de las fichas (js/lists.js). */

/* crear lista: campo + boton en una linea */
.list-new { display: flex; gap: 8px; align-items: flex-start; }
.list-new .lib-search { margin-bottom: 0; flex: 1; min-width: 0; }
.list-new .opt-btn { padding: 11px 16px; border-radius: 12px; }

/* vista general: tarjetas de lista con mosaico de hasta 4 posters */
.lists-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
@media (min-width: 600px) { .lists-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.list-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 10px; text-align: left; color: var(--text); font-family: inherit; cursor: pointer;
}
.list-covers {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2);
}
.list-cover {
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-weight: 700; font-size: 20px; overflow: hidden;
}
.list-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-cover-empty { grid-column: 1 / -1; grid-row: 1 / -1; font-size: 30px; }
.list-card-name { font-size: 14px; font-weight: 600; margin-top: 9px; line-height: 1.3; }
.list-card-count { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* lista abierta */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-head-actions { display: flex; gap: 8px; }
.list-delete { color: var(--danger); border-color: var(--danger-line); }
.list-title { font-family: var(--font-title); font-weight: 700; font-size: 23px; letter-spacing: -.01em; margin: 16px 0 12px; }
.list-item { display: flex; flex-direction: column; }
.list-item .poster-card { flex: 1; }
.list-item-remove {
  margin-top: 6px; background: none; border: 1px solid var(--border-soft); color: var(--text-dim);
  border-radius: 8px; padding: 6px; font-size: 12px; font-family: inherit; cursor: pointer;
}

/* selector dentro de la ficha */
.list-picker { margin-bottom: 14px; }
.list-picker-toggle {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 12px; border: 1.5px solid var(--accent-line);
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.list-picker-body {
  margin-top: 8px; padding: 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-soft);
}
.list-picker-row {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px; border: none; border-radius: 8px; background: none; color: var(--text);
  font-size: 14px; font-family: inherit; cursor: pointer;
}
.list-picker-row i { color: var(--text-faint); font-size: 17px; }
.list-picker-row.active i { color: var(--accent); }
.list-picker-row:hover { background: var(--hover-soft); }
.list-picker-body .list-new { margin-top: 6px; }
.list-picker-body .form-error { margin: 8px 0 0; }
