
/* ==============================
   MUSIC PLAYER - FIXED VERSION
============================== */

#app-cover {
    direction: ltr;
    position: relative;
    top: auto;
    right: 0;
    left: 0;
  
    margin: 20px auto;
    clear: both;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

#bg-artwork {
    background-color: #ffffff;
    opacity: 1;
    filter: none;
    -webkit-filter: none;
}

/* PLAYER */

#player {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    box-sizing: border-box;
}

/* TRACK INFORMATION */

#player-track {
    position: absolute;
    top: -98px;
    right: 15px;
    left: 15px;
    padding: 13px 35px 10px 184px;
    background-color: #fff;
    border-radius: 25px 25px 0 0;
    transition: 1.3s ease-out top;
    z-index: 1;
}

#album-name {
    color: #fd1500;
    font-size: 14px;
    font-weight: bold;
}

#track-name {
    color: #6c6064;
    font-size: 10px;
    margin: -1px 0 13px 0;
}

#track-time {
    height: 15px;
    margin-bottom: 5px;
    overflow: hidden;
}

#current-time {
    float: left;
}

#track-length {
    float: right;
}

#current-time,
#track-length {
    color: transparent;
    font-size: 11px;
    border-radius: 10px;
    transition: 0.3s ease all;
}

#track-time.active #current-time,
#track-time.active #track-length {
    color: #b57288;
    background-color: transparent;
}

/* SEEK BAR */

#s-area,
#seek-bar {
    position: relative;
    height: 8px;
    border-radius: 4px;
}

#s-area {
    background-color: #D6DEE7;
    cursor: pointer;
}

#ins-time {
    position: absolute;
    top: -19px;
    color: #fff;
    font-size: 12px;
    white-space: pre;
    padding: 5px 6px;
    border-radius: 4px;
    display: none;
}

#s-hover {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    opacity: 0.2;
    z-index: 2;
}

#ins-time,
#s-hover {
    background-color: #3b3d50;
}

#seek-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: #b30ce6;
    transition: 0.2s ease width;
    z-index: 1;
}

/* PLAYER CONTENT */

#player-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 0 #656565;
    border-radius: 15px;
    z-index: 2;
    box-sizing: border-box;
}

/* ALBUM ART */

#album-art {
    position: absolute;
    top: -57px;
    left: 60px;
    width: 110px;
    height: 110px;
    margin-left: 0;
    transform: rotateZ(0);
    transition: 0.3s ease all;
    box-shadow: 0 0 0 #fff;
    border-radius: 50%;
    overflow: hidden;
}

#album-art.active {
    top: -57px;
}

#album-art:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #d6dee7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23555' d='M73 39c-14-9-33-1-33 17V456c0 18 19 26 33 17L361 273c13-8 13-26 0-34L73 39z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 58% center;
    background-size: 10px;
    z-index: 2;
}

#album-art img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: -1;
    filter: none;
    -webkit-filter: none;
}

#album-art img.active {
    opacity: 1;
    z-index: 1;
}

#album-art.active img.active {
    z-index: 1;
    animation: rotateAlbumArt 10s linear infinite;
}

@keyframes rotateAlbumArt {
    0% {
        transform: rotateZ(0);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

/* BUFFERING */

#buffer-box {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 13px;
    color: #1f1f1f;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
    line-height: 1;
    padding: 6px;
    margin: -12px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.19);
    opacity: 0;
    z-index: 2;
}

#album-art img,
#buffer-box {
    transition: 0.1s linear all;
}

#album-art.buffering img {
    opacity: 0.25;
}

#album-art.buffering img.active {
    opacity: 0.8;
    filter: blur(2px);
    -webkit-filter: blur(2px);
}

#album-art.buffering #buffer-box {
    opacity: 1;
}

/* CONTROLS */

#player-controls {
    width: 250px;
    height: 100%;
    margin: 0 15px 0 161px;
    float: right;
    overflow: hidden;
    direction: rtl;
}

.control {
    width: 33.333%;
    float: left;
    padding: 12px 18px;
    box-sizing: border-box;
}

.button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.button i {
    display: block;
    color: #d6dee7;
    font-size: 20px;
    text-align: center;
    line-height: 1;
}

.button,
.button i {
    transition: 0.2s ease all;
}

.button:hover {
    background-color: #FFEB3B;
}

.button:hover i {
    color: #fff;
}

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

@media screen and (max-width: 600px) {

    #app-cover {
        width: 100%;
        height: 80px;
        margin: 0px auto;
        top: auto;
        overflow: visible;
    }

    #player {
        width: 100%;
        height: 150px;
    }

    #player-content {
        width: 100%;
        height: 0px;
        overflow: visible;
    }

    #player-track {
        top: -20px;
        left: 0px;
        right: 0px;
        padding: 5px 10px 10px 115px;
    }

    #album-art {
        width: 85px;
        height: 85px;
        left: 15px;
        top: 0px;
        margin-left: 0;
    }

    #album-art.active {
        top: 10px;
    }

    #player-controls {
        float: none;
        width: calc(100% - 110px);
        height: 65px;
        margin: -5px 0 0 105px;
        overflow: visible;
        direction: ltr;
    }

    .control {
        width: 33.333%;
        padding: 18px 8px;
    }

    .button {
        width: 40px;
        height: 40px;
    }

}

/* SMALL MOBILE */

@media screen and (max-width: 380px) {

    #album-art {
        left: 10px;
        width: 75px;
        height: 75px;
    }

    #player-controls {
        width: calc(100% - 90px);
        margin-left: 90px;
    }

    #player-track {
        padding-left: 95px;
    }

}
