/* RemixDesign | woaichidapi@163.com | Redesigned by JimmyCheung */

.audioplayer {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
}

.audioplayer-playpause {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause {
    background: rgba(91, 130, 255, 0);
    /*border: 1px solid #5B82FF;*/
}

/*.audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover {
    background: rgba(91, 130, 255, 0.1);
}*/

.audioplayer-playing .audioplayer-playpause {
    background: rgba(253, 79, 26, 0);
    /*border: 1px solid #FD4F1A;*/
}

/*.audioplayer-playing .audioplayer-playpause:hover {
    background: rgba(235, 79, 26, 0.1);
}*/

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause a {
    content: '';
    justify-content: center;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 15px solid transparent;
    border-right: none;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #a6b4af;
}

.audioplayer-playing .audioplayer-playpause a {
    content: '';
    display: flex;
    justify-content: space-between;
    width: 12px;
    height: 18px;
}

.audioplayer-playing .audioplayer-playpause a::before, .audioplayer-playing .audioplayer-playpause a::after {
    content: '';
    width: 4px;
    height: 18px;
    background-color: #a6b4af;
}

.audioplayer-time {
    display: flex;
    width: 40px;
    justify-content:center;
    font-size: 12px;
    color: rgba(166, 180 ,175, .6)
}

/*.audioplayer-time-current {
    margin-left: 24px;
}*/

.audioplayer-time-duration {
    margin-right: 24px;
}

.audioplayer-bar {
    position: relative;
    display: flex;
    margin: 0 12px;
    height: 12px;
    flex-basis: 0;
    flex-grow: 1;
    cursor: pointer;
}

.audioplayer-bar::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 100%;
    height: 2px;
    background-color: #DDE2E6;
}

.audioplayer-bar > div {
    position: absolute;
    left: 0;
    top: 1px;
}
.audioplayer-bar-loaded {
    z-index: 1;
    height: 8px;
    background: #a6b4af;
    border:1px solid #a6b4af;
}

.audioplayer-bar-played {
    flex-direction: row-reverse;
    z-index: 2;
    height: 6px;
    background: linear-gradient(left,#354141,#414d4d);
    background: -webkit-linear-gradient(left,#354141,#414d4d);
    margin-top: 1px;
    margin-left: 1px;
}

.audioplayer-bar-played::after {
    display: flex;
    position: absolute;
    content: '';
    box-sizing: border-box;
    top: -8px;
    right: -11px;
    margin-right: -5px;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-bar-played::after {
    border: 2px solid #BEC8D2;
}

.audioplayer-playing .audioplayer-bar-played::after {
    border: 2px solid #0059FF;

}

.audioplayer-volume {
    display: flex;
    align-items: center;
}

.audioplayer-volume-button {
    display: flex;
    align-items: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.audioplayer-volume-button a {
    display: flex;
    width: 8px;
    height: 10px;
    background-color: #9A9FB0;
    position: relative;
    border-bottom-left-radius: 2px;
    border-top-left-radius: 2px;
}

.audioplayer-volume-button a:before, .audioplayer-volume-button a:after {
    content: '';
    position: absolute;
}

.audioplayer-volume-button a:before {
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-right: 9px solid #9A9FB0;
    border-bottom: 8px solid transparent;
    border-left: none;
    top: -6px;
    left: 3px;
}

.audioplayer:not(.audioplayer-mute) .audioplayer-volume-button a:after {
    left: 12px;
    top: -1px;
    width: 12px;
    height: 12px;
    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: 8px;
    cursor: pointer;
    background-color: #a6b4af;
    border:1px solid #a6b4af;
}

.audioplayer-volume-adjust div div {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    background-color: #414d4d;
}

/* responsive | you can change the max-width value to match your theme */

@media screen and (max-width: 679px) {
    .audioplayer-volume-adjust {
        display: none;
    }
}
