/* ============================================================
   Lanzamientos Spotify — Grid Shortcode
   ============================================================ */

/* Grid base */
.ls-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Columnas explícitas (set por el shortcode) */
.ls-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ls-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ls-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ls-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ls-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
    .ls-cols-3,
    .ls-cols-4,
    .ls-cols-5,
    .ls-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ls-grid,
    .ls-cols-2,
    .ls-cols-3,
    .ls-cols-4,
    .ls-cols-5,
    .ls-cols-6 { grid-template-columns: 1fr; }
}

/* Tarjeta */
.ls-item {
    text-align: center;
}
.ls-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.ls-title {
    font-weight: 700;
    display: block;
    margin: 8px 0 2px;
    text-decoration: none;
    color: #1DB954;
    font-size: 0.9rem;
    line-height: 1.2;
}
.ls-title:hover { text-decoration: underline; }
.ls-artists {
    color: #777;
    font-size: 0.82rem;
}
.ls-date {
    color: #aaa;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* Sin resultados */
.ls-empty {
    color: #888;
    font-style: italic;
}

/* Paginación */
.ls-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.ls-page-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}
.ls-page-btn:hover { border-color: #1DB954; color: #1DB954; }
.ls-page-active {
    background: #1DB954;
    border-color: #1DB954;
    color: #fff !important;
    pointer-events: none;
}


/* ── Paginación Anterior / contador / Siguiente ── */
.ls-pagination {
    display: flex;
    flex-direction: row;
    align-items: stretch;   /* todos los hijos igualan su altura */
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    width: 100%;
    box-sizing: border-box;
}

/* Botones (a y span comparten la misma base) */
.ls-page-btn,
.ls-page-disabled {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;           /* altura fija idéntica para todos */
    padding: 0 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.88rem;
    line-height: 1;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}
a.ls-page-btn:hover  { border-color: #1DB954; color: #1DB954; }
.ls-page-disabled    { opacity: 0.32; cursor: default; pointer-events: none; }

/* Contador central */
.ls-page-counter {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;           /* misma altura que los botones */
    min-width: 72px;
    font-size: 0.88rem;
    color: #888;
    line-height: 1;
    white-space: nowrap;
}
