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

.audioplayer {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
    border-radius: 4px;
    background: transparent;
    padding: 0px;
    border: none;
    height: auto;
    margin: 0px;
}
.audioplayer-playpause {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause {
    background: #49263D;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover {
    background: #49263D;
}
.audioplayer-playpause a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 48px;
}
.audioplayer-playpause a:hover{
    text-decoration: none;
}
.audioplayer-playing .audioplayer-playpause {
    background: #49263D !important;
}

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

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause a::before {
    content: "\f04b";
    font-family: 'FontAwesome';
    width: 100%;
    height: 100%;
    color: #fff;
}

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

.audioplayer-playing .audioplayer-playpause a::before{
    content: "\f04c";
    font-family: fontawesome;
    color: #fff;
}

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

.audioplayer-time-current {
    margin-left: 15px;
    font-size: 14px;
    color: #49263d;
}

.audioplayer-time-duration {
    margin-right: 15px;
    font-size: 14px;
    color: #49263d;
}

.audioplayer-bar {
    position: relative;
    display: flex;
    margin: 0 12px;
    flex-basis: 0;
    flex-grow: 1;
    cursor: pointer;
    background: hsl(316deg 32% 20% / 20%);
    height: 18px;
    border-radius: 16px;
}
.audioplayer-bar::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 100%;
    height: 2px;
    background-color: #DDE2E6;
    display: none;
}

.audioplayer-bar > div {
    position: absolute;
    left: 0;
    top: 5px;
}
.audioplayer-bar-loaded {
    z-index: 1;
    height: 2px;
    background: #BEC8D2;
}

.audioplayer-bar-loaded {
    z-index: 1;
    background: #BEC8D2;
    flex-direction: row-reverse;
    top: 5px !important;
    left: 5px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 8px !important;
    display: none;
}

.audioplayer-bar-played {
    flex-direction: row-reverse;
    z-index: 2;
    background-color: #DB4242 !important;
    top: 5px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 8px !important;
    margin: 0px 5px;
    max-width: calc(100% - 10px);
    transition: all .1s ease-in-out;
}

.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: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.audioplayer-volume-button a:hover{
    text-decoration: none;
}
.audioplayer-volume-button a:before, .audioplayer-volume-button a:after {
    content: '';
    position: absolute;
}
.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-volume-adjust > div {
    position: relative;
    display: flex;
    width: 60px;
    height: 6px;
    cursor: pointer;
    background-color: #d9d3d8;
    height: 18px;
    border-radius: 16px;
}
.audioplayer-volume-adjust div div {
    position: absolute;
    top: 5px;
    left: 0;
    height: 2px;
    background-color: #0059FF;
    flex-direction: row-reverse;
    z-index: 2;
    background-color: #DB4242 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 8px !important;
    margin: 0px 5px;
    max-width: calc(100% - 10px);
    transition: all .1s ease-in-out;
}
.audioplayer-volume-button a::after{
    display: none;
}
.audioplayer-volume-button a::before{
    content: "\f028";
    font-family: fontawesome;
}
.audioplayer-mute .audioplayer-volume-button a::before{
    content: "\f027";
    font-family: fontawesome;
}

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

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


