body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}
.container {
    /*max-width: 800px;*/
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    position: relative;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
}

.top-controls-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espace entre les groupes de contrôles */
    padding-top: 5px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap; /* Permet aux contrôles de passer à la ligne sur petits écrans */
}

.controls-play-original {
    display: flex;
    align-items: center;
    gap: 5px; /* Espace plus petit pour case à cocher et label */
    padding: 10px 15px; /* Conserver un padding cohérent */
    background-color: #e9ecef; /* Fond cohérent */
    border-radius: 8px; /* Radius cohérent */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Ombre cohérente */
}
.controls-play-original label {
    font-size: 0.95em;
    color: #495057;
    cursor: pointer;
    user-select: none; /* Empêcher la sélection du texte du label en cliquant */
}
.controls-play-original input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-right: 3px; /* Petit espace avant le label */
}
.controls-play-original input[type="checkbox"]:disabled + label {
    color: #aaa; /* Style pour le label quand la case est désactivée */
    cursor: not-allowed;
}

.controls-vocals, .controls-lyrics-offset { /* Styles communs aux groupes de contrôle */
    display: flex;
    align-items: center;
    gap: 10px; /* Espace interne aux éléments du groupe */
    padding: 10px 15px;
    background-color: #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.controls-vocals label, .controls-lyrics-offset label {
    font-size: 0.95em;
    color: #495057;
    white-space: nowrap; /* Empêche le label de se couper */
}
.controls-vocals input[type="range"], .controls-lyrics-offset input[type="range"] {
    width: 150px; /* Largeur fixe pour les curseurs */
    cursor: pointer;
}
#vocalsVolumeValue, #lyricsOffsetValue {
    font-weight: bold;
    color: #34495e;
    min-width: 45px;
    text-align: right;
}


ul#songList {
    list-style-type: none;
    padding: 0;
}
ul#songList li {
    margin-bottom: 12px;
}
/*ul#songList li a {
    display: block;
    padding: 14px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
*/
ul#songList li a:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.player {
    margin-top: 20px;
    border-radius: 8px;
}
audio {
    width: 100%;
    margin-bottom: 10px;
}
#musicPlayer {
    margin-bottom: 8px;
}

.lyrics-container {
    background-color: #ffffff;
    height: 500px;
    overflow-y: auto;
    text-align: center;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    padding: 15px 25px;
    border-left: none;
    border-right: none;
    border-radius: 0;
    border-bottom: 1px solid #dee2e6;
}

@media (width < 1024px) {
    h2 {
        color: #34495e;
        border-bottom: 2px solid #3498db;
        padding-bottom: 8px;
        margin-top: 10px;
        margin-bottom: 15px;
        font-size: 1em;
    }
    .lyrics-title {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
        padding: 5px 5px;
        background-color: #f0f2f5;
        text-align: center;
        font-size: 1em;
        color: #2c3e50;
        font-weight: bold;
        margin-bottom: 0;
        border-top: 1px solid #dee2e6;
        border-bottom: 1px solid #dee2e6;
    }


    .lyrics-container p {
        margin: 0.5em auto;
        padding: 5px 8px;
        border-radius: 4px;
        transition: background-color 0.2s, color 0.2s, transform 0.2s;
        display: inline-block;
        max-width: 90%;
        font-size: 2.5em;
        line-height: 1;
    }
}

@media (width >= 1024px) {
    h2 {
        color: #34495e;
        border-bottom: 2px solid #3498db;
        padding-bottom: 8px;
        margin-top: 10px;
        margin-bottom: 15px;
        font-size: 1.6em;
    }
    .lyrics-title {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
        padding: 12px 25px;
        background-color: #f0f2f5;
        text-align: center;
        font-size: 1.4em;
        color: #2c3e50;
        font-weight: bold;
        margin-bottom: 0;
        border-top: 1px solid #dee2e6;
        border-bottom: 1px solid #dee2e6;
    }

    .lyrics-container p {
        margin: 0.5em auto;
        padding: 5px 8px;
        border-radius: 4px;
        transition: background-color 0.2s, color 0.2s, transform 0.2s;
        display: inline-block;
        max-width: 90%;
        font-size: 4.1em;
        line-height: 1.2;
    }
}

.lyrics-container p.highlight {
    background-color: #3498db;
    color: white;
    font-weight: bold;
    transform: scale(1.03);
}
.lyrics-container p.previous {
    color: #6c757d;
    opacity: 0.6;
}
.no-song, .error-message {
    text-align: center;
    color: #c0392b;
    margin-top: 25px;
    font-size: 1.1em;
    padding: 15px;
    background-color: #fbeae5;
    border-radius: 6px;
    border: 1px solid #e74c3c;
}
.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 18px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.back-link:hover {
    background-color: #5a6268;
}

a:visited {
    text-decoration: none;
    color: #000000;
}


.song-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive */
    gap: 20px;
    padding: 0;
}
.song-card {
    display: block; /* Pour que le lien prenne toute la carte */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}
.song-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #007bff;
}
.song-card .lyric-type {
    font-size: 0.8em;
    background-color: #eee;
    padding: 3px 6px;
    border-radius: 4px;
    color: #555;
}