/* RemixDesign | woaichidapi@163.com | Redesigned by JimmyCheung */

.audioplayer {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    margin: 0;
    padding: 0 10px;
    width: 100%;
    height: 32px;
    align-items: center;
    border-radius: 8px;
    background: rgba(86, 162, 206, 0.1);
	justify-content: left;
}

.audioplayer-playpause {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease-in-out;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none;   /* Chrome/Safari/Opera */
	-khtml-user-select: none;    /* Konqueror */
	-moz-user-select: none;      /* Firefox */
	-ms-user-select: none;       /* Internet Explorer/Edge */
	user-select: none;
	margin-top: 1px;
}

.audioplayer-playpause i {
	font-size: 16px;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause {
    background: rgba(91, 130, 255, 0);
    border: 1px solid #D4493E;
	color: #D4493E;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover {
    background: rgba(235, 79, 26, 0.1);
}

.audioplayer-playing .audioplayer-playpause {
    background: rgba(253, 79, 26, 0);
    border: 1px solid #D4493E;
	color: #D4493E;
}

.audioplayer-playing .audioplayer-playpause:hover {
    background: rgba(235, 79, 26, 0.1);
}

.audioplayer-time {
    display: flex;
    width: 40px;
    justify-content:center;
    font-size: 12px;
    color: rgba(86, 162, 206, 1);
}

.audioplayer-time-current {
    margin-left: 24px;
}

.audioplayer-time-duration {
    margin-right: 24px;
}

.audioplayer-bar {
    position: relative;
    display: flex;
    margin: 0 12px;
    height: 22px;
    flex-basis: 0;
    flex-grow: 1;
    cursor: pointer;
    background-color: rgba(86, 162, 206, 0.05);
    border-radius: 8px;
}

.audioplayer-bar > div {
    position: absolute;
    left: 0;
    top: 0;
}
.audioplayer-bar-loaded {
    z-index: 1;
    height: 22px; 
    background-color: rgba(86, 162, 206, 0.1);
    border-radius: 8px;
}

.audioplayer-bar-played {
    flex-direction: row-reverse;
    z-index: 2;
    height: 22px;
    background-color: rgba(235, 79, 26, 0.1);
    border-radius: 8px;
} 

.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: 6px;
    height: 8px;
    background-color: rgba(212, 73, 62, 1);
    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 rgba(212, 73, 62, 1);
    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 rgba(212, 73, 62, 1);
    border-width: 6px 6px 0 0;
    border-radius: 0 12px 0 0;
    transform: rotate(45deg);
}

.audioplayer-mute .audioplayer-volume-button a {
    background-color: #D4493E;
}

.audioplayer-mute .audioplayer-volume-button a:before {
    border-right: 9px solid #D4493E;
}

.audioplayer-volume-adjust {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.audioplayer-volume-adjust > div {
    position: relative;
    display: flex;
    width: 60px;
    height: 7px;
    cursor: pointer;
    background-color: rgb(86, 162, 206, 0.4);
}

.audioplayer-volume-adjust div div {
    position: absolute;
    top: 0;
    left: 0;
    height: 7px;
    background-color: rgb(212, 73, 62, 1);
}

/* responsive | you can change the max-width value to match your theme */

@media screen and (max-width: 679px) {
    .audioplayer-volume-adjust {
        display: none;
    }
}

.loader-audio {
	border: 3px solid rgba(86, 162, 206, 0.2);
    -webkit-animation: spin-audio 1s linear infinite;
    animation: spin-audio 1s linear infinite;
    border-top: 3px solid #DA645A;
    border-radius: 50%;
    width: 16px;
    height: 16px;
}

@keyframes spin-audio {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}


