/*
 ****************************************************
 VARS
 ****************************************************
 */

.acpt-custom-audio-playlist-wrapper,
.acpt-custom-audio-player-wrapper {
    --bg-color: white;
    --heading-color: black;
    --scrollbar-bg-color: #aaa;
    --scrollbar-thumb-color: #ccd0d4;
    --color: #777;
    --border-color: #ccd0d4;
    --border-radius: 4px;
    --primary-color: #007cba;
    --secondary-color: #006ba1;
    --gap: 15px;
    --font-size-big: 20px;
    --font-size-default: 16px;
    --font-size-small: 14px;
}

.acpt-custom-audio-playlist-wrapper.dark,
.acpt-custom-audio-player-wrapper.dark {
    --bg-color: black;
    --heading-color: white;
    --color: #aaa;
    --scrollbar-bg-color: #777;
    --scrollbar-thumb-color: #aaa;
    --border-color: transparent;
}

.acpt-custom-audio-playlist-wrapper.dark .acpt-custom-audio-player-wrapper {
    border: 1px solid #aaa;
}

/*
 ****************************************************
 PLAYLIST PLAYER
 ****************************************************
 */

.acpt-custom-audio-playlist-wrapper {
    font-weight: normal;
    background: var(--bg-color);
    color: var(--color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.acpt-custom-audio-playlist-wrapper .playlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.acpt-custom-audio-playlist-wrapper .playlist-controls button {
    margin: 0;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: right;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all ease 0.3s;
    border-radius: 100%;
    width: 32px;
    height: 32px;
}

.acpt-custom-audio-playlist-wrapper .playlist-controls .shuffle-autoplay {
    display: flex;
    gap: 5px;
}

.acpt-custom-audio-playlist-wrapper .playlist-controls .shuffle {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="M17 17h-1.559l-9.7-10.673A1 1 0 0 0 5.001 6H2v2h2.559l4.09 4.5-4.09 4.501H2v2h3.001a1 1 0 0 0 .74-.327L10 13.987l4.259 4.686a1 1 0 0 0 .74.327H17v3l5-4-5-4v3z"></path><path d="M15.441 8H17v3l5-3.938L17 3v3h-2.001a1 1 0 0 0-.74.327l-3.368 3.707 1.48 1.346L15.441 8z"></path></svg>');
}

.acpt-custom-audio-playlist-wrapper .playlist-controls .shuffle.active {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(0, 124, 186, 1);transform: ;msFilter:;"><path d="M17 17h-1.559l-9.7-10.673A1 1 0 0 0 5.001 6H2v2h2.559l4.09 4.5-4.09 4.501H2v2h3.001a1 1 0 0 0 .74-.327L10 13.987l4.259 4.686a1 1 0 0 0 .74.327H17v3l5-4-5-4v3z"></path><path d="M15.441 8H17v3l5-3.938L17 3v3h-2.001a1 1 0 0 0-.74.327l-3.368 3.707 1.48 1.346L15.441 8z"></path></svg>');
}

.acpt-custom-audio-playlist-wrapper .playlist-controls .autoplay {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="M20 12v-1.707c0-4.442-3.479-8.161-7.755-8.29-2.204-.051-4.251.736-5.816 2.256A7.933 7.933 0 0 0 4 10v2c-1.103 0-2 .897-2 2v4c0 1.103.897 2 2 2h2V10a5.95 5.95 0 0 1 1.821-4.306 5.977 5.977 0 0 1 4.363-1.691C15.392 4.099 18 6.921 18 10.293V20h2c1.103 0 2-.897 2-2v-4c0-1.103-.897-2-2-2z"></path><path d="M7 12h2v8H7zm8 0h2v8h-2z"></path></svg>');
}

.acpt-custom-audio-playlist-wrapper .playlist-controls .autoplay.active {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(0, 124, 186, 1);transform: ;msFilter:;"><path d="M20 12v-1.707c0-4.442-3.479-8.161-7.755-8.29-2.204-.051-4.251.736-5.816 2.256A7.933 7.933 0 0 0 4 10v2c-1.103 0-2 .897-2 2v4c0 1.103.897 2 2 2h2V10a5.95 5.95 0 0 1 1.821-4.306 5.977 5.977 0 0 1 4.363-1.691C15.392 4.099 18 6.921 18 10.293V20h2c1.103 0 2-.897 2-2v-4c0-1.103-.897-2-2-2z"></path><path d="M7 12h2v8H7zm8 0h2v8h-2z"></path></svg>');
}

.acpt-custom-audio-playlist-wrapper .playlist-controls .toggle {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="m6.293 13.293 1.414 1.414L12 10.414l4.293 4.293 1.414-1.414L12 7.586z"></path></svg>');
}

.acpt-custom-audio-playlist-wrapper .playlist-controls .toggle.reverse {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist {
    font-weight: normal;
    font-size: var(--font-size-small);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    box-sizing: content-box;
    overflow-y: auto;
    transition: all ease 0.3s;
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist.hidden {
    max-height: 0px;
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist::-webkit-scrollbar {
    width: 6px;
    border-radius: 50%;
    overflow: hidden;
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist::-webkit-scrollbar-track {
    background: var(--scrollbar-bg-color);
    border-left: 1px solid var(--scrollbar-bg-color);
    scroll-padding-right: 20px;
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li {
    display: flex;
    justify-content: space-between;
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li .meta {
    cursor: pointer;
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li .meta .title {
    margin-right: var(--gap);
    font-weight: bold;
    color: var(--heading-color);
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li .meta .album,
.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li .meta .artist,
.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li .length {
    color: var(--color);
}

.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li.active .meta .title,
.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li.active .meta .album,
.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li.active .meta .artist,
.acpt-custom-audio-playlist-wrapper .acpt-audio-playlist li.active .length {
    color: var(--primary-color) !important;
}

/*
 ****************************************************
 SINGLE PLAYER
 ****************************************************
 */
.acpt-custom-audio-player-wrapper {
    font-weight: normal;
    background: var(--bg-color);
    color: var(--color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.acpt-custom-audio-player-wrapper .loading {
    transition: all ease 0.3s;
    text-align: center;
    font-size: var(--font-size-default);
}

.acpt-custom-audio-player-wrapper .meta {
    line-height: 1;
}

.acpt-custom-audio-player-wrapper .meta h4 {
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: var(--heading-color);
    font-size: var(--font-size-big);
}

.acpt-custom-audio-player-wrapper .meta .album,
.acpt-custom-audio-player-wrapper .meta .divider,
.acpt-custom-audio-player-wrapper .meta .artist {
    font-size: var(--font-size-small);
}

.acpt-custom-audio-player-wrapper .meta .divider {
    margin: 0 5px;
}

.acpt-custom-audio-player-wrapper .wave {
    cursor: pointer;
}

.acpt-custom-audio-player-wrapper .controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acpt-custom-audio-player-wrapper .controls .timer,
.acpt-custom-audio-player-wrapper .controls .buttons,
.acpt-custom-audio-player-wrapper .controls .volumes {
    width: 33.33333333333333%;
}

.acpt-custom-audio-player-wrapper .controls .timer {
    font-size: var(--font-size-small);
}

.acpt-custom-audio-player-wrapper .controls .buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.acpt-custom-audio-player-wrapper .controls button {
    margin: 0;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: right;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all ease 0.3s;
}

.acpt-custom-audio-player-wrapper .controls .buttons .play {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" style="fill: rgba(255, 255, 255, 1);transform: ;msFilter:;"><path d="M7 6v12l10-6z"></path></svg>');
    fill: white;
    background-color: var(--primary-color);
    border-radius: 100%;
    width: 48px;
    height: 48px;
}

.acpt-custom-audio-player-wrapper .controls .buttons .play:hover {
    background-color: var(--secondary-color);
}

.acpt-custom-audio-player-wrapper .controls .buttons .play.pause {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" style="fill: rgba(255, 255, 255, 1);transform: ;msFilter:;"><path d="M8 7h3v10H8zm5 0h3v10h-3z"></path></svg>')
}

.acpt-custom-audio-player-wrapper .controls .buttons .prev,
.acpt-custom-audio-player-wrapper .controls .buttons .next,
.acpt-custom-audio-player-wrapper .controls .buttons .rw,
.acpt-custom-audio-player-wrapper .controls .buttons .ff {
    border-radius: 100%;
    width: 32px;
    height: 32px;
}

.acpt-custom-audio-player-wrapper .controls .buttons .rw {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="M12 12V7l-7 5 7 5zm7-5-7 5 7 5z"></path></svg>');
}

.acpt-custom-audio-player-wrapper .controls .buttons .ff {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="m19 12-7-5v10zM5 7v10l7-5z"></path></svg>')
}

.acpt-custom-audio-player-wrapper .controls .buttons .prev {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="m16 7-7 5 7 5zm-7 5V7H7v10h2z"></path></svg>');
}

.acpt-custom-audio-player-wrapper .controls .buttons .next {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="M7 7v10l7-5zm9 10V7h-2v10z"></path></svg>');
}

.acpt-custom-audio-player-wrapper .controls .volumes {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: end;
    text-align: right;
}

.acpt-custom-audio-player-wrapper .controls .volumes .mute {
    border-radius: 100%;
    width: 32px;
    height: 32px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="m21.707 20.293-2.023-2.023A9.566 9.566 0 0 0 21.999 12c0-4.091-2.472-7.453-5.999-9v2c2.387 1.386 3.999 4.047 3.999 7a8.113 8.113 0 0 1-1.672 4.913l-1.285-1.285C17.644 14.536 18 13.19 18 12c0-1.771-.775-3.9-2-5v7.586l-2-2V4a1 1 0 0 0-1.554-.832L7.727 6.313l-4.02-4.02-1.414 1.414 18 18 1.414-1.414zM12 5.868v4.718L9.169 7.755 12 5.868zM4 17h2.697l5.748 3.832a1.004 1.004 0 0 0 1.027.05A1 1 0 0 0 14 20v-1.879l-2-2v2.011l-4.445-2.964c-.025-.017-.056-.02-.082-.033a.986.986 0 0 0-.382-.116C7.059 15.016 7.032 15 7 15H4V9h.879L3.102 7.223A1.995 1.995 0 0 0 2 9v6c0 1.103.897 2 2 2z"></path></svg>')
}

.acpt-custom-audio-player-wrapper .controls .volumes .mute.muted {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(119, 119, 119, 1);transform: ;msFilter:;"><path d="M16 21c3.527-1.547 5.999-4.909 5.999-9S19.527 4.547 16 3v2c2.387 1.386 3.999 4.047 3.999 7S18.387 17.614 16 19v2z"></path><path d="M16 7v10c1.225-1.1 2-3.229 2-5s-.775-3.9-2-5zM4 17h2.697l5.748 3.832a1.004 1.004 0 0 0 1.027.05A1 1 0 0 0 14 20V4a1 1 0 0 0-1.554-.832L6.697 7H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h3c.033 0 .061-.016.093-.019a1.027 1.027 0 0 0 .38-.116c.026-.015.057-.017.082-.033L12 5.868v12.264l-4.445-2.964c-.025-.017-.056-.02-.082-.033a.986.986 0 0 0-.382-.116C7.059 15.016 7.032 15 7 15H4V9z"></path></svg>');
}

.acpt-custom-audio-player-wrapper .controls .volumes input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    border-radius: 16px;
    max-width: 120px;
}

.acpt-custom-audio-player-wrapper .controls .volumes input[type=range]::-webkit-slider-runnable-track {
    height: 13px;
    background: var(--border-color);
    border-radius: 16px;
}

.acpt-custom-audio-player-wrapper .controls .volumes input[type=range]::-moz-range-track {
    height: 13px;
    background: var(--border-color);
    border-radius: 16px;
}

.acpt-custom-audio-player-wrapper .controls .volumes input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 13px;
    width: 13px;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: -407px 0 0 400px var(--primary-color);
}

.acpt-custom-audio-player-wrapper .controls .volumes input[type=range]::-moz-range-thumb {
    height: 15px;
    width: 15px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    box-shadow: -407px 0 0 400px var(--primary-color);
}