.music-player {

    position: fixed;
    bottom: 30px;
    right: 30px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 12px 18px;

    /* lighter glass effect */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 40px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    z-index: 20;
    transition: .3s;
}

.music-player:hover {
    background: rgba(255, 255, 255, 1);
}

/* play button */

.music-toggle {

    width: 36px;
    height: 36px;

    border-radius: 50%;
    border: none;

    cursor: pointer;

    font-size: 14px;

    /* slightly deeper gradient for contrast */
    background: linear-gradient(135deg, #5a6cff, #2cc7e6);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* waveform */

.wave {
    display: flex;
    gap: 4px;
    height: 20px;
    align-items: flex-end;
}

.wave span {

    width: 3px;
    height: 6px;

    /* darker for visibility */
    background: #5a6cff;

    border-radius: 4px;

    opacity: .6;
}

/* animation when playing */

.music-player.playing .wave span {
    animation: wave 1s infinite ease-in-out;
}

.music-player.playing .wave span:nth-child(2) {
    animation-delay: .1s;
}

.music-player.playing .wave span:nth-child(3) {
    animation-delay: .2s;
}

.music-player.playing .wave span:nth-child(4) {
    animation-delay: .3s;
}

.music-player.playing .wave span:nth-child(5) {
    animation-delay: .4s;
}

@keyframes wave {

    0% {
        height: 5px;
        opacity: .5;
    }

    50% {
        height: 20px;
        opacity: 1;
    }

    100% {
        height: 6px;
        opacity: .5;
    }
}