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

.audioplayer {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    margin: 0;
    align-items: center;
}

.audioplayer-playpause {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #21212C;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.35);
    border-radius: 100%;
    cursor: pointer;
    transition: all 0.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 .audioplayer-playpause:before{
    content: "\f04b";
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
}

.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: 2px;
    height: 10px;
    background-color: #ff0000;
}
*/
/*.audioplayer-time {
    display: flex;
    width: 40px;
    justify-content: center;
    font-size: 12px;
    color: rgba(51, 51, 51, 0.6);
}*/

.audioplayer-time-current {
    margin-left: 24px;
    display: none;
}

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

.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: 5px;
}
.audioplayer-bar-loaded {
    z-index: 1;
    height: 2px;
    background: #bec8d2;
}

.audioplayer-bar-played {
    flex-direction: row-reverse;
    z-index: 2;
    height: 2px;
    background: -webkit-linear-gradient(left, #0059ff, #09b1fa);
}

/*.audioplayer-bar-played::after {
    display: flex;
    position: absolute;
    content: "";
    box-sizing: border-box;
    top: -5px;
    right: -1px;
    margin-right: -5px;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 6px;
}

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

.audioplayer-playing .audioplayer-bar-played::after {
    border: 2px solid #0059ff;
}*/

.audioplayer-volume {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.audioplayer-volume-button {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    height: 28px;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    width: 28px;
}

.audioplayer-volume-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.audioplayer-volume-button:active {
    background: rgba(255, 0, 42, 0.15);
}

.light-mode .audioplayer-volume-button:hover {
    background: rgba(17, 17, 25, 0.06);
}

.light-mode .audioplayer-volume-button:active {
    background: rgba(255, 0, 42, 0.12);
}

/*.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;
}

/* Volume: native range — keyboard, touch, screen readers */
.audioplayer-novolume .audioplayer-volume-adjust {
    display: none !important;
}

.audioplayer-volume-adjust {
    align-items: center;
    color: #1e1e28;
    justify-content: center;
    background: #1e1e28;
    border: 1px solid #2f2f3a;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    left: 100%;
    margin: 0 0 0 0;
    min-height: 34px;
    opacity: 0;
    padding: 6px 12px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(calc(-4px), -50%);
    transition: opacity 0.18s ease, visibility 0.18s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    visibility: hidden;
    z-index: 40;
}

.audioplayer-volume-hover .audioplayer-volume-adjust,
.audioplayer-volume:focus-within .audioplayer-volume-adjust {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.audioplayer-volume-adjust:hover,
.audioplayer-volume-adjust:focus-within {
    background: #252530;
    border-color: #3d3d4a;
    color: #252530;
}

/* Clips Chromium pre-interaction focus ring (drawn outside the input box) */
.audioplayer-volume-range-clip {
    align-items: center;
    contain: paint;
    display: flex;
    flex: 0 0 auto;
    height: 28px;
    justify-content: center;
    line-height: 0;
    overflow: hidden;
    width: 98px;
}

.audioplayer-volume-range,
input[type="range"].audioplayer-volume-range {
    -webkit-appearance: none;
    appearance: none;
    accent-color: #ff002a;
    align-self: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* Match popover background so Chromium's currentColor frame is invisible (transparent caused a black pre-click box) */
    color: inherit;
    cursor: pointer;
    display: block;
    height: 22px;
    margin: 0 auto;
    max-height: 22px;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
    width: 92px;
}

.audioplayer-volume-range:focus,
.audioplayer-volume-range:focus-visible,
.audioplayer-volume-range:focus-within,
.audioplayer-volume-range:active,
.audioplayer-volume-range:hover {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    outline-width: 0 !important;
}

/* Firefox: remove dotted outline / border around the range control */
.audioplayer-volume-range::-moz-focus-outer {
    border: 0;
}

/* Chromium/WebKit: strip default box around the whole range control */
.audioplayer-volume-range::-webkit-slider-container {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

/* WebKit track */
.audioplayer-volume-range::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    background: #3d3d4a;
    border: none;
    border-radius: 999px;
    height: 4px;
    box-shadow: none;
}

.audioplayer-volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #ff002a;
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    height: 14px;
    margin-top: -5px;
    width: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audioplayer-volume-range:hover::-webkit-slider-thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: scale(1.08);
}

.audioplayer-volume-range:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.02);
}

/* Firefox */
.audioplayer-volume-range::-moz-range-track {
    background: #3d3d4a;
    border: none;
    border-radius: 999px;
    height: 4px;
}

.audioplayer-volume-range::-moz-range-thumb {
    background: #ff002a;
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    height: 12px;
    width: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audioplayer-volume-range:hover::-moz-range-thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: scale(1.08);
}

/* Edge / Chromium */
.audioplayer-volume-range::-ms-track {
    background: transparent;
    border-color: transparent;
    color: transparent;
    height: 5px;
}

.audioplayer-volume-range::-ms-fill-lower {
    background: linear-gradient(90deg, #ff365e, #ff002a);
    border-radius: 999px;
}

.audioplayer-volume-range::-ms-fill-upper {
    background: #3d3d4a;
    border-radius: 999px;
}

.audioplayer-volume-range::-ms-thumb {
    background: #ff002a;
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    height: 14px;
    width: 14px;
}

/* Light mode (dashboard) */
.light-mode .audioplayer-volume-adjust {
    background: #ffffff;
    border: 1px solid #e2e4ea;
    box-shadow: 0 1px 2px rgba(17, 17, 25, 0.05);
    color: #ffffff;
}

.light-mode .audioplayer-volume-adjust:hover,
.light-mode .audioplayer-volume-adjust:focus-within {
    background: #f4f5f7;
    border-color: #cdd2db;
    box-shadow: 0 1px 3px rgba(17, 17, 25, 0.08);
    color: #f4f5f7;
}

@media (forced-colors: active) {
    .audioplayer-volume-range,
    input[type="range"].audioplayer-volume-range {
        outline: none !important;
    }
}

.light-mode .audioplayer-volume-range::-webkit-slider-runnable-track {
    background: #d8dce3;
}

.light-mode .audioplayer-volume-range::-moz-range-track {
    background: #d8dce3;
}

.light-mode .audioplayer-volume-range::-webkit-slider-thumb {
    border-color: transparent;
    box-shadow: 0 1px 3px rgba(17, 17, 25, 0.25);
}

.light-mode .audioplayer-volume-range::-moz-range-thumb {
    border-color: transparent;
    box-shadow: 0 1px 3px rgba(17, 17, 25, 0.25);
}

.light-mode .audioplayer-volume-range::-ms-fill-upper {
    background: #d8dce3;
}

/* Keep player + volume inside the audio column (no overlap into Track Artists, etc.) */
.audio-box {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.audio-box .audioplayer {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.audio-box .audioplayer-bar {
    flex: 1 1 100px;
    min-width: 72px;
    max-width: 100%;
}

.audio-box .audioplayer-volume {
    flex: 0 0 auto;
}

/* Match track title weight in release preview tables */
.latest-listview td.track-preview-artists {
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
}

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



.audioplayer-playpause{  
    min-width: 26px;
    height: 26px;
    background: #21212c;
    box-shadow:0px 3px 5px rgb(0 0 0 / 35%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 100%;
    font-size: 10px;
    position: relative;
}
.audioplayer-playpause:before{
    position: absolute;
    content: "\f04b";
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
}
.audioplayer.audioplayer-playing .audioplayer-playpause:before{
    content: "\f04c";   
    color: #ff0000;
}

.audioplayer-bar > div{top: 0;}
.audioplayer-bar{
    background: rgba(255, 255, 255, 0.2);
    padding: 0;
    position: relative;
    border-radius: 3px;
    height: 3px;
    width: 100%;
}
.audioplayer-bar-loaded{
    background: #ff002a;
    height: 3px;
    border-radius: 3px;
}
.audioplayer-bar-loaded{background: transparent;}
.audioplayer-bar::before{display: none;}
.audioplayer-bar-played{
    background: #ff002a;
    height: 3px;
    border-radius: 3px;
}
.audioplayer-volume a {
    position: relative;
    margin: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.audioplayer .audioplayer-volume-button a:before{
    position: absolute;
    content: "\f028";
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.audioplayer-mute .audioplayer-volume-button a:before{
    content: "\f6a9";
    border: none;  
}
