#bgmplayer {
    position: fixed;
    top: 0;
    z-index: 999;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    border-radius: 12px 0 0 12px;
    transition: transform .5s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
}
#bgmplayer ::-webkit-scrollbar {
    width: 3px !important;
}
#bgmplayer ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) !important;
    border-radius: 10px !important;
}
#bgmplayer ::-webkit-scrollbar-thumb {
    border-radius: 10px !important;
    background: rgba(0,0,0,0.1) !important;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5) !important;
}
#bgmplayer ::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255,0,0,0.4) !important;
}
#bgmplayer .ydicon {
    width: 16px;
    display: inherit;
}
.bgmplayer{
transform: translateX(218px);    -webkit-transform: translateX(218px);
 -ms-transform: translateX(218px);
}
.bgmon{
transform: translateX(0px);    -webkit-transform: translateX(0);
   -ms-transform: translateX(0);
}
/* override inline !important from cat_user_js */
#bgmplayer:not(.bgmon) { transform: translateX(218px) !important; }
#bgmplayer.bgmon { transform: translateX(0) !important; }

span.bgmbuttom{    
    cursor: pointer;
    float: left;
    padding: 25.5px 3px;
}
#bgmpanel {
    width: 240px;
    min-height: 108px;
    height: auto;
    border-radius: 12px 0 0 12px;
    padding: 5px 0;
}
#jindu {
    width:0%;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
    position: absolute;
    bottom: 0;
}
.bgmprogress {
    clear: both;
    padding: 2px 10px 0;
    width: 220px;
}
.yprogress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.yprogress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.yprogress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.yprogress::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
}
.yprogress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.dark .yprogress {
    background: rgba(255, 255, 255, 0.15);
}
.dark .yprogress::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}
.bgmvol {
    float: left;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    margin-top: 2px;
}
.bgmvol .ydicon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}
.yvolume {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.15);
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}
.yvolume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.yvolume::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}
.yvolume::-moz-range-track {
    height: 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.15);
}
.yvolume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.dark .bgmvol .ydicon {
    opacity: 0.5;
}
.dark .yvolume {
    background: rgba(255, 255, 255, 0.2);
}
.dark .yvolume::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.5);
}
.dark .yvolume::-moz-range-thumb {
    background: rgba(255, 255, 255, 0.5);
}
.bgmfm {
    cursor: pointer;
    float: left;
    margin: 0 10px 0 5px;
}
.bgmfm img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.bgmtitle {
    font-size: 15px;
    padding: 5px 0;
    white-space: normal;
    margin-right: 5px;
    line-height: 1.4;
}
.bgmtitle .yd-lrc-text {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
    font-weight: 400;
    white-space: normal;
    word-break: break-all;
}
.dark .bgmtitle .yd-lrc-text {
    color: rgba(255,255,255,0.65);
}
.yd-lrc-hide .yd-lrc-text {
    display: none;
}
.bgmtime {
    float: left;
}
.bgmtime span {
    font-size: 15px;
    margin: 0 5px 0 0;
}
.bgmbtn {
    float: right;
}
.bgmbtn span {
    padding: 3px;
    cursor: pointer;
}
.bgmbtn span:hover {
    background-color: rgba(228, 228, 228, 0.54);
}
/* lyrics toggle button */
#yd-lrc-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height: 1;
}
#yd-lrc-btn:hover {
    background-color: rgba(228, 228, 228, 0.54);
}
.dark #yd-lrc-btn:hover {
    background-color: rgba(255,255,255,0.1);
}
.bgmfm .Rotation.paused{animation-play-state:paused;}
#playlist { 
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin:0 0 8px 0;
    width: 240px;
    max-height: 130px;
    padding-left: 0px;
    font-size: 13px;
    overflow-y: auto;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4,0,0.2,1);
    transition-duration: 300ms;
    scrollbar-color: #718096 #cbd5e0;
    scrollbar-width: thin;
}
/* override inline !important from cat_user_js */
#playlist.yhidden{
    max-height: 0 !important;
    margin: 0 !important;
    overflow-y: hidden !important;
    padding: 0 !important;
    border: none !important;
}
.yd-lib{
    border-left: 3px solid transparent;
    line-height: 2;
    cursor: pointer;
    padding: 1px 3px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
#playlist .yd-lib:last-child{
  border-bottom:none;  
}
.yd-playing {
    border-left: 3px solid rgba(0,0,0,0.5);
}
li.yd-lib:hover{
    background-color: rgba(0,0,0,0.08);
    color: #333;
}
    .dark #bgmplayer {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.dark #bgmpanel {
    background: transparent;
}
.dark #jindu {
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.6));
}
.dark .yd-playing{
    border-left: 3px solid #ff6b6b;
}
.dark li.yd-lib:hover{
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
.dark #playlist {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
