body {
    background-color: #13181d;
    color: #f1f1f1;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
}

.home-button {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    z-index: 1000;
    overflow: hidden;
    display: inline-block;
    background: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
}

.home-button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 36px;
    background: url("data:image/svg+xml,%3Csvg width='400' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 Q 50 50 100 20 T 200 20 T 300 20 T 400 20 V60 H0 Z' fill='rgba(63,89,149,0.6)' stroke='rgba(0,0,0,0.4)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: cover;
    animation: waveMotion 4s linear infinite;
    z-index: -1;
    transition: transform 0.4s ease;
}

.home-button:hover::after {
    transform: translateY(-10px);
    opacity: 1;
}

@keyframes waveMotion {
    0% {
        background-position-x: 0%;
    }

    100% {
        background-position-x: -200px;
    }
}

h1 {
    color: #FFD700;
}

/* Conteneur général en flex pour placer playlists et résultats côte à côte */
.main-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
    /* pour aligner en haut */
}

/* Liste des playlists (droite) */
.playlist-list {
    flex: 1 1 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Style liens playlists */
.playlist-list a {
    display: inline-block;
    background: #222;
    color: #f1f1f1;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    transition: background 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    width: 250px;
    text-align: center;
    margin-bottom: 10px;
}

.playlist-list a:hover {
    background: #1aa34a;
    border-color: #1DB954;
    transform: scale(1.05);
}


/* Résultats (gauche) */
.results-container {
    flex: 0 0 320px;
    background: #1c1c1e;
    /* gris presque noir, très net sur fond bleu/gris */
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-height: 480px;
    overflow-y: auto;
    margin-top: 20px;
    margin-left: 50px;
}

/* Titre résultats */
.results-container h2 {
    color: #ffffff;
    margin-bottom: 15px;
    margin-top: 0;
}

/* Texte gagnant en jaune */
.results-container .winner-text {
    color: #FFD700;
    font-weight: bold;
    font-size: 22px;
    margin-top: 20px;
}

/* Contenu des résultats */
.results-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chaque ligne de résultat */
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 18px;
    background: linear-gradient(135deg, #5a5f66, #3e4349);
    /* gris moyen légèrement bleuté */
    color: #f1f1f1;
    border-left: 4px solid #1DB954;
    border-radius: 8px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.result-row:hover {
    background: linear-gradient(135deg, #6a7078, #4a5057);
    /* un peu plus clair au survol */
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* Gagnant : fond vert, texte blanc */
.result-row.winner {
    background: #1DB954;
    color: #ffffff;
    font-weight: 700;
    border-color: #17a846;
}


/* Nom playlist */
.playlist-name {
    flex: 1;
    text-align: left;
}

/* Vote count */
.vote-count {
    flex-shrink: 0;
    text-align: right;
}

/* Griser la liste quand vote terminé */
.playlist-list.disabled {
    pointer-events: none;
    opacity: 0.5;
}