/* =========================
   GLOBAL
========================= */
body {
    font-family: "Lato", sans-serif;
}

/* =========================
   CARD
========================= */
.music_card {
    margin: 0% auto;
    background: #fff;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

/* =========================
   IMAGE / POCHETTE
========================= */
.image {
    width: 100%;
    aspect-ratio: 1 / 1;   /* 🔑 carré parfait */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 3;
}


/* Dégradé sombre → transparent (fusion image / vagues) */
.image::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 4;
    background: linear-gradient(
        to top,
        rgba(56,55,55,1) 0%,
        rgba(56,55,55,0.85) 25%,
        rgba(56,55,55,0.4) 55%,
        rgba(56,55,55,0) 100%
    );
}

/* =========================
   TEXTE (ZONE BLANCHE)
========================= */
.track-info {
    text-align: center;
    margin-top: 50%;
    margin-bottom: 220px;
    position: relative;
    z-index: 5;
}

.track-info .title {
    font-size: 390%;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}

.track-info .artist {
    font-size: 350%;
    color: #777;
}

/* =========================
   WAVES (ANIMATION)
========================= */
@keyframes wave {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ÉTAT PAR DÉFAUT = PAUSE (CALME, SOMBRE) */
.wave {
    position: absolute;
    height: 120%;
    width: 240%;
    left: -75%;
    top: -30%;
    margin-left: 0%;
    margin-top: -40%;
    background: radial-gradient(#353535, #383737);
    border-radius: 50%;
    animation: wave 12000ms linear infinite; /* lent */
    opacity: 0.8;                            /* sombre */
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.wave:nth-child(2) {
    animation-duration: 13000ms;
}

.wave:nth-child(3) {
    animation-duration: 35000ms;
}

/* ÉTAT LECTURE = PLUS VIVANT (MÊME COULEUR) */
.music_card.playing .wave {
    animation-duration: 4000ms;
}

.music_card.playing .wave:nth-child(2) {
    animation-duration: 5000ms;
}

.music_card.playing .wave:nth-child(3) {
    animation-duration: 6000ms;
}

/* =========================
   CONTROLES
========================= */
.controls {
    display: flex;
    justify-content: center;
    gap: 20%;
    position: absolute;
    bottom: 50px;
    width: 100%;
    z-index: 6;
}

.controls i {
    cursor: pointer;
    font-size: 4.4em;
}

/* Boutons vote */
.vote {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.fa-pause,
.fa-play {
    font-size: 2.4em;
    color: #555;
}

.fa-thumbs-up {
    color: #1d594b;
}

.fa-thumbs-down {
    color: #5e1039;
}

/* Feedback vote */
.vote.voted i {
    transform: scale(1.2);
    opacity: 0.8;
}
