/*==============================================================
MUSIC CONTROL
==============================================================*/

.music-control{

    position:fixed;

    left:22px;

    bottom:95px;

    z-index:1050;

}

.music-control button{

    position:relative;

    width:62px;

    height:62px;

    border:none;

    outline:none;

    cursor:pointer;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    color:#fff;

    background:linear-gradient(

        180deg,

        #d5b88f,

        #b89567

    );

    box-shadow:

        0 12px 30px rgba(170,140,95,.20);

    transition:.35s ease;

}

/*==============================================================
HOVER
==============================================================*/

.music-control button:hover{

    transform:translateY(-3px);

    box-shadow:

        0 18px 38px rgba(170,140,95,.30);

}

.music-control button:active{

    transform:scale(.96);

}

/*==============================================================
PLAYING
==============================================================*/

.music-control.playing button{

    animation:serenityRotate 8s linear infinite;

}

.music-control.playing #musicIcon{

    animation:serenityPulse 2.2s ease infinite;

}

@keyframes serenityRotate{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

@keyframes serenityPulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.08);

    }

    100%{

        transform:scale(1);

    }

}

/*==============================================================
GLOW
==============================================================*/

.music-control button::before{

    content:"";

    position:absolute;

    inset:-6px;

    border-radius:50%;

    background:rgba(200,169,126,.18);

    z-index:-1;

    animation:serenityGlow 3s ease infinite;

}

@keyframes serenityGlow{

    0%{

        transform:scale(.9);

        opacity:.65;

    }

    70%{

        transform:scale(1.35);

        opacity:0;

    }

    100%{

        opacity:0;

    }

}

/*==============================================================
DECORATION
==============================================================*/

.music-control button::after{

    content:"✦";

    position:absolute;

    top:-5px;

    right:-5px;

    font-size:12px;

    color:#e7cfaa;

    animation:twinkle 3s ease infinite;

}

@keyframes twinkle{

    0%{

        opacity:.2;

        transform:scale(.8);

    }

    50%{

        opacity:1;

        transform:scale(1.2);

    }

    100%{

        opacity:.2;

        transform:scale(.8);

    }

}

/*==============================================================
RESPONSIVE
==============================================================*/

@media(max-width:768px){

    .music-control{

        left:18px;

        bottom:88px;

    }

    .music-control button{

        width:56px;

        height:56px;

        font-size:22px;

    }

}

@media(max-width:480px){

    .music-control{

        left:15px;

        bottom:82px;

    }

    .music-control button{

        width:52px;

        height:52px;

        font-size:20px;

    }

}