/* RemixDesign | woaichidapi@163.com | Redesigned by JimmyCheung */

.audioplayer {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    margin: 1em 0;
    padding: 0 24px;
    width: 100%;
    height: 96px;
    align-items: center;
    /* border: 1px solid #DDE2E6; */
    border-radius: 4px;
    /* background: #fff; */
    position: relative;
}

.audioplayer-playpause {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease-in-out;
    position: absolute;
    /* top: 92px; */
    left: 0px;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause {
    /* background: rgba(91, 130, 255, 0); */
    /* border: 4px solid #fff; */
    background-color: #ffac23;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover {
    /*background: rgba(91, 130, 255, 0.1);*/
    background-color:#ff4900;
    border: 4px solid #ff4900;
}

.audioplayer-playing .audioplayer-playpause {
    /* background: rgba(253, 79, 26, 0); */
    /* border: 4px solid #fff; */
    background-color: #ffac23;
}

.audioplayer-playing .audioplayer-playpause:hover {
   background: rgba(235, 79, 26, 0.1);
    background-color:#ff4900;
    border: 4px solid #ff4900
    
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause a {
    content: '';
    justify-content: center;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 12px solid transparent;
    border-right: none;
    border-bottom: 12px solid transparent;
    border-left: 23px solid #ffffff;
}

.audioplayer-playing .audioplayer-playpause a {
    content: '';
    display: flex;
    justify-content: space-between;
    width: 12px;
    height: 14px;
}

.audioplayer-playing .audioplayer-playpause a::before, .audioplayer-playing .audioplayer-playpause a::after {
    content: '';
    width: 4px;
    height: 21px;
    position: relative;
    margin-left: 0px;
    top: -4px;
    left: 0px;
    background-color: #fff;
}

.audioplayer-time {
    display: flex;
    width: 40px;
    justify-content:center;
    font-size: 12px;
    color: #fff;
    display: none;
}

.audioplayer-time-current {
    /* margin-left: 24px; */
}

.audioplayer-time-duration {
    margin-right: 24px;
}

.audioplayer-bar {
    position: relative;
    left: 60px;
    display: flex;
    margin: 11px 27px 12px 0px;
    height: 12px;
    flex-basis: 0;
    flex-grow: 1;
    cursor: pointer;
}

.audioplayer-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    width: 100%;
    height: 35px;
    /* background-color: #DDE2E6; */
    background-image: url(../../img/bg_player.jpg);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}

.audioplayer-bar > div {
    position: absolute;
    left: 0px;
    top: -10px;
    height: 35px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}
.audioplayer-bar-loaded {
    z-index: 1;
    height: 4px;
    /* background: #f9d8a3; */
}

.audioplayer-bar-played {
    flex-direction: row-reverse;
    z-index: 2;
    height: 4px;
    /* background: -webkit-linear-gradient(left,#0059FF,#09B1FA); */
    background-color: #fcc46996;
    min-width: 30px;
}

.audioplayer-bar-played::after {
    display: flex;
    position: absolute;
    content: '';
    box-sizing: border-box;
    top: -5px;
    right: -1px;
    margin-right: -5px;
    width: 13px;
    height: 13px;
    background-color: #ff4900;
    border-radius: 6px;
    display: none;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-bar-played::after {
    /* border: 2px solid #BEC8D2; */
}

.audioplayer-playing .audioplayer-bar-played::after {
    border: 2px solid #ffad27;
}

.audioplayer-volume {
    display: flex;
    align-items: center;
    position: absolute;
    top: 90px;
    display: none;
}

.audioplayer-volume-button {
    display: flex;
    align-items: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.audioplayer-volume-button a {
    display: flex;
    width: 6px;
    height: 8px;
    background-color: #9A9FB0;
    position: relative;
}

.audioplayer-volume-button a:before, .audioplayer-volume-button a:after {
    content: '';
    position: absolute;
}

.audioplayer-volume-button a:before {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-right: 9px solid #9A9FB0;
    border-bottom: 8px solid transparent;
    border-left: none;
    top: -4px;
}

.audioplayer:not(.audioplayer-mute) .audioplayer-volume-button a:after {
    left: 10px;
    top: -2px;
    width: 6px;
    height: 6px;
    border: 6px double #9A9FB0;
    border-width: 6px 6px 0 0;
    border-radius: 0 12px 0 0;
    transform: rotate(45deg);
}

.audioplayer-mute .audioplayer-volume-button a {
    background-color: #FD4F1A;
}

.audioplayer-mute .audioplayer-volume-button a:before {
    border-right: 9px solid #FD4F1A;
}

.audioplayer-volume-adjust {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.audioplayer-volume-adjust > div {
    position: relative;
    display: flex;
    width: 60px;
    height: 4px;
    cursor: pointer;
    background-color: #BEC8D2;
}

.audioplayer-volume-adjust div div {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #ff4900;
}

/* responsive | you can change the max-width value to match your theme */

@media screen and (max-width: 679px) {
    .audioplayer-volume-adjust {
        display: none;
    }
}
