: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;
}

.song-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%3Crect x='3' y='10' width='2' height='8' fill='%23f1f1f1'/%3E%3Crect x='7' y='6' width='2' height='12' fill='%23f1f1f1'/%3E%3Crect x='11' y='8' width='2' height='10' fill='%23f1f1f1'/%3E%3Crect x='15' y='4' width='2' height='16' fill='%23f1f1f1'/%3E%3Crect x='19' y='7' width='2' height='11' fill='%23f1f1f1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 60px;
    background-position: center;
    opacity: 1;
    background-blend-mode: multiply;
}

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

.song-container .section--padding {
    padding: 60px 0;
}

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

.song-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;
}

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

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

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

.song-container .btn--round {
    border-radius: 25px;
}

/* Songs Grid - Optimisé pour 4 colonnes */
.songs-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;
}

.song-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%);
}

.song-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;
}

.song-card:hover::before {
    opacity: 0.1;
}

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

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

.song-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: 6px;
    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-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-artist {
    color: var(--primary-color);
    font-size: 0.85rem; /* Taille réduite */
    font-weight: 500;
    text-align: center;
    margin-bottom: 4px;
    /* Limitation du nombre de lignes */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-collaborators {
    color: var(--text-light);
    font-size: 0.75rem; /* Taille réduite */
    text-align: center;
    margin-bottom: 4px;
    font-style: italic;
    /* Limitation du nombre de lignes */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-collaborators .feat {
    color: #ff6b35;
    font-weight: 500;
}

.card-date {
    color: var(--text-light);
    font-size: 0.7rem; /* Taille réduite */
    text-align: center;
    margin-bottom: 0;
}

.card-date i {
    margin-right: 4px;
    color: var(--primary-color);
}

.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;
}

.song-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;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.no-songs {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 40px;
}

/* Responsive - 3 colonnes sur tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .songs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .song-card {
        max-width: 280px;
        min-height: 290px;
    }
    
    .song-card img {
        height: 190px;
    }
}

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

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

    .song-card img {
        height: 160px;
    }

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

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

    .card-artist {
        font-size: 0.8rem;
    }

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

    .card-date {
        font-size: 0.65rem;
    }

    .card-content {
        padding: 10px 12px;
    }
    
    .play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

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

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

    .song-card img {
        height: 140px;
    }

    .card-content {
        padding: 8px 10px;
    }
    
    .card-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .card-artist {
        font-size: 0.75rem;
    }
    
    .card-collaborators {
        font-size: 0.65rem;
    }
    
    .card-date {
        font-size: 0.6rem;
    }
    
    .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) {
    .songs-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
    
    .song-card {
        max-width: 280px;
    }
}