:root {
    --primary-color: #ff6b35;
    --secondary-color: #1a1a1a;
    --text-light: #666;
    --bg-white: #fff;
    --card-bg: #1e1e1e;
    --gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.all-list-music-container {
    background-color: var(--bg-white);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 24 24' fill='%23f1f1f1' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23f1f1f1' stroke-width='1' fill='none'/%3E%3Ccircle cx='12' cy='12' r='6' stroke='%23f1f1f1' stroke-width='1' fill='none'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23f1f1f1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 60px;
    background-position: center;
    opacity: 1;
    background-blend-mode: multiply;
}

.all-list-music-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.all-list-music-container .section--padding {
    padding: 60px 0;
}

.all-list-music-container .section-title {
    margin-bottom: 40px;
    text-align: center;
}

.all-list-music-container .section-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.highlighted {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.all-list-music-container .btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.all-list-music-container .btn--primary {
    background: var(--gradient);
    color: #fff;
}

.all-list-music-container .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    color: #fff;
}

.all-list-music-container .btn--round {
    border-radius: 25px;
}

/* All lists Grid - Optimisé pour 4 colonnes */
.all-lists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes exactement */
    gap: 20px; /* Réduit l'espace entre les cards */
    margin-top: 30px;
    justify-items: center; /* Centre les cards dans leur cellule */
    align-items: start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.all-list-card {
    background: var(--card-bg);
    border-radius: 12px; /* Bordure plus petite */
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: 260px; /* Largeur réduite pour 4 colonnes */
    min-height: 280px; /* Hauteur réduite */
    background: linear-gradient(135deg, #2c1810 0%, #5c2317 100%);
}

.all-list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.all-list-card:hover::before {
    opacity: 0.1;
}

.all-list-card:hover {
    transform: translateY(-3px); /* Mouvement plus subtil */
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.all-list-card img {
    width: 100%;
    height: 180px; /* Hauteur d'image réduite */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.all-list-card:hover img {
    transform: scale(1.03); /* Zoom plus subtil */
}

.card-content {
    padding: 12px 15px; /* Padding réduit */
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1rem; /* Taille de titre réduite */
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
    text-align: center;
    /* Limitation du nombre de lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    color: var(--text-light);
    font-size: 0.8rem; /* Taille réduite */
    text-align: center;
    margin-bottom: 0;
    /* Limitation du nombre de lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.all-list-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px; /* Bouton plus petit */
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.play-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Action buttons */
.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Responsive - 3 colonnes sur tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .all-lists-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .all-list-card {
        max-width: 280px;
        min-height: 290px;
    }

    .all-list-card img {
        height: 190px;
    }
}

/* Responsive - 2 colonnes sur mobile large */
@media (max-width: 768px) and (min-width: 481px) {
    .all-lists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .all-list-card {
        max-width: 100%;
        min-height: 260px;
    }

    .all-list-card img {
        height: 160px;
    }

    .section-title h1 {
        font-size: 2rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-description {
        font-size: 0.75rem;
    }

    .play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Responsive - 1 colonne sur mobile */
@media (max-width: 480px) {
    .all-lists-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
    }

    .all-list-card {
        max-width: 100%;
        min-height: 240px;
    }

    .all-list-card img {
        height: 140px;
    }

    .card-content {
        padding: 10px 12px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-description {
        font-size: 0.7rem;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-title h1 {
        font-size: 1.8rem;
    }
}

/* Écrans très larges - maintenir 4 colonnes avec un max-width */
@media (min-width: 1200px) {
    .all-lists-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }

    .all-list-card {
        max-width: 280px;
    }
}

/* Wrapper de pagination */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

/* Liste de pagination */
.custom-pagination {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/* Items de pagination */
.custom-pagination .page-item {
    display: inline-block;
}

/* Liens de pagination */
.custom-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    background: var(--card-bg);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

/* Effet hover sur les liens */
.custom-pagination .page-link:hover {
    background: var(--gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    color: #fff;
}

/* Page active */
.custom-pagination .page-item.active .page-link {
    background: var(--gradient);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Page désactivée */
.custom-pagination .page-item.disabled .page-link {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.custom-pagination .page-item.disabled .page-link:hover {
    background: #333;
    transform: none;
    box-shadow: none;
}

/* Informations de pagination */
.pagination-info {
    margin-top: 20px;
}

.pagination-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Responsive pour la pagination */
@media (max-width: 768px) {
    .custom-pagination .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 8px;
        font-size: 0.9rem;
    }

    .custom-pagination {
        gap: 5px;
    }

    .pagination-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .custom-pagination .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 6px;
        font-size: 0.8rem;
    }

    .custom-pagination {
        gap: 3px;
    }
}

/* Animation d'entrée pour la pagination */
.pagination-wrapper {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
