#nav-music {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 99999;
    position: fixed;
    bottom: 70px;
    left: 20px;
    cursor: grab;
    transition: transform 0.2s ease;
    transform-origin: center center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    --nav-music-theme: #b08968;
    --nav-music-theme-op-deep: rgba(176, 137, 104, 0.85);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    width: auto;
    padding: 0;
    /* 初始位置在左下角，JS会覆盖此值 */
    bottom: 70px;
    left: 20px;
    right: auto;
    top: auto;
    gap: 4px;
}

#nav-music:active {
    cursor: grabbing;
}

/* 拖动激活时的视觉提示 */
#nav-music.dragging {
    opacity: 0.85;
    transform: scale(1.05);
    transition: none !important;
}

#nav-music.dragging .lgnewui-music-disc {
    animation-play-state: paused !important;
}

/* 非拖动状态的平滑过渡（用于边界吸附动画） */
#nav-music:not(.dragging) {
    transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
                top 0.3s ease, 
                transform 0.2s ease;
}

/* 隐藏 meting-js 内部元素 */
#nav-music meting-js,
#nav-music .aplayer {
    display: none !important;
}

/* 光盘容器 - 响应式尺寸（电脑端变大8成） */
.lgnewui-music-disc-container {
    position: relative;
    width: clamp(61px, 7.6vmin, 87px);
    height: clamp(61px, 7.6vmin, 87px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* 光盘主体 - 响应式（电脑端变大8成） */
.lgnewui-music-disc {
    width: clamp(52px, 6.5vmin, 74px);
    height: clamp(52px, 6.5vmin, 74px);
    border-radius: 50%;
    background: radial-gradient(circle at center,
        #2a2a3e 0%,
        #22223a 25%,
        #1a1a2e 50%,
        #16162a 75%,
        #1a1a2e 100%);
    position: relative;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.5),
        0 4px 18px rgba(0, 0, 0, 0.25),
        inset 0 0 8px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

/* 光盘旋转动画 - 只旋转光盘主体，封面作为子元素跟随 */
#nav-music.playing .lgnewui-music-disc {
    animation: discRotate 20s linear infinite;
    transform-origin: center center;
}

#nav-music.playing .lgnewui-music-disc.paused {
    animation-play-state: paused;
}

@keyframes discRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 光盘纹理 */
.lgnewui-music-disc::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 8%;
    right: 8%;
    bottom: 8%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 2px
    );
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* 光盘边缘光泽 */
.lgnewui-music-disc::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.15) 0%, 
        transparent 30%,
        transparent 60%,
        rgba(255,255,255,0.08) 100%);
    pointer-events: none;
    z-index: 0;
}

/* 光盘封面 - 响应式（电脑端变大8成） */
.lgnewui-music-disc-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(32px, 4.1vmin, 47px);
    height: clamp(32px, 4.1vmin, 47px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 0 1.5px rgba(0, 0, 0, 0.3),
        0 1px 5px rgba(0, 0, 0, 0.5),
        inset 0 0 3px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #333 0%, #222 100%);
    z-index: 1;
}

.lgnewui-music-disc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* 光盘中心圆点（电脑端变大8成） */
.lgnewui-music-disc-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, #fff 0%, #ddd 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 4px rgba(255, 255, 255, 0.9),
        0 0 8px rgba(255, 255, 255, 0.4);
    z-index: 3;
    pointer-events: none;
}

.lgnewui-music-disc-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

/* 光盘发光效果（电脑端变大8成） */
#nav-music.playing .lgnewui-music-disc-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 137px;
    height: 137px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--music-theme-rgb, 176, 137, 104), 0.25) 0%, transparent 65%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: translate(-50%, -50%) scale(1.08); 
    }
}

/* 音乐信息 - 主播放器隐藏，只在弹窗显示 */
.lgnewui-music-disc-info {
    display: none;
}

.lgnewui-music-disc-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    margin: 0 auto;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lgnewui-music-disc-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 进度条 */
#nav-music-progress {
    position: relative;
    width: 100%;
    height: 20px;
    background: transparent;
    border-radius: 999px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    overflow: visible;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#nav-music-progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    pointer-events: none;
}

#nav-music-progress div {
    height: 3px;
    border-radius: inherit;
    position: absolute;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}

#nav-music-progress .lgnewui-nav-music-progress-loaded {
    background: rgba(255, 255, 255, 0.25);
    width: 0%;
    transition: width .15s linear;
}

#nav-music-progress .lgnewui-nav-music-progress-played {
    background: var(--nav-music-theme, #b08968) !important;
    width: 0%;
    transition: width .1s linear;
}

#nav-music-progress .lgnewui-nav-music-progress-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: left .1s linear, transform 0.15s ease, opacity 0.15s ease;
    z-index: 20;
}

#nav-music-progress:hover .lgnewui-nav-music-progress-thumb {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* 控制按钮 */
.lgnewui-nav-music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.lgnewui-nav-music-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.lgnewui-nav-music-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lgnewui-nav-music-btn:active {
    transform: scale(0.95);
}

.lgnewui-nav-music-btn-toggle {
    width: 44px;
    height: 44px;
    background: var(--nav-music-theme, #b08968);
}

.lgnewui-nav-music-btn-toggle:hover {
    background: var(--nav-music-theme, #b08968);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(var(--music-theme-rgb, 176, 137, 104), 0.5);
}

.lgnewui-nav-music-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.lgnewui-nav-music-btn-toggle .lgnewui-nav-music-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
}

.lgnewui-nav-music-icon-pause {
    display: none;
}

#nav-music.playing .lgnewui-nav-music-icon-play {
    display: none;
}

#nav-music.playing .lgnewui-nav-music-icon-pause {
    display: block;
}

/* 拖拽状态 */
#nav-music.is-dragging {
    cursor: grabbing !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999 !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

/* 控件自动隐藏功能 */
#nav-music.hide-controls .lgnewui-nav-music-controls {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (hover: hover) and (pointer: fine) {
    #nav-music.hide-controls:hover .lgnewui-nav-music-controls {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* 移动端控件隐藏 */
#nav-music .lgnewui-nav-music-controls.mobile-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 响应式 - 移动端（变大5成，按屏幕比例自适应） */
@media screen and (max-width: 768px) {
    #nav-music {
        bottom: 90px;
        left: 12px;
        right: auto;
        top: auto;
    }

    .lgnewui-music-disc-container {
        width: clamp(50px, 11.8vw, 66px);
        height: clamp(50px, 11.8vw, 66px);
    }

    .lgnewui-music-disc {
        width: clamp(42px, 9.8vw, 56px);
        height: clamp(42px, 9.8vw, 56px);
    }

    .lgnewui-music-disc-cover {
        width: clamp(26px, 6.2vw, 35px);
        height: clamp(26px, 6.2vw, 35px);
    }

    #nav-music.playing .lgnewui-music-disc-container::after {
        width: clamp(88px, 20.4vw, 115px);
        height: clamp(88px, 20.4vw, 115px);
    }

    .lgnewui-music-disc-center {
        width: 7px;
        height: 7px;
    }

    .lgnewui-music-disc-center::after {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 400px) {
    #nav-music {
        bottom: 85px;
        left: 10px;
        right: auto;
        top: auto;
    }

    .lgnewui-music-disc-container {
        width: clamp(43px, 12.5vw, 56px);
        height: clamp(43px, 12.5vw, 56px);
    }

    .lgnewui-music-disc {
        width: clamp(37px, 10.9vw, 48px);
        height: clamp(37px, 10.9vw, 48px);
    }

    .lgnewui-music-disc-cover {
        width: clamp(24px, 6.8vw, 30px);
        height: clamp(24px, 6.8vw, 30px);
    }

    #nav-music.playing .lgnewui-music-disc-container::after {
        width: clamp(74px, 21.6vw, 94px);
        height: clamp(74px, 21.6vw, 94px);
    }

    .lgnewui-music-disc-center {
        width: 6px;
        height: 6px;
    }

    .lgnewui-music-disc-center::after {
        width: 13px;
        height: 13px;
    }
}

/* 播放列表样式 - 保持不变 */
.lgnewui-music-playlist-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.lgnewui-music-playlist-content::-webkit-scrollbar {
    width: 4px;
}

.lgnewui-music-playlist-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.lgnewui-music-playlist-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lgnewui-music-playlist-content::-webkit-scrollbar-track {
    background: transparent;
}

.lgnewui-music-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.lgnewui-music-playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lgnewui-music-playlist-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.lgnewui-music-playlist-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.lgnewui-music-playlist-index {
    width: 20px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    flex-shrink: 0;
}

.lgnewui-music-playlist-item.active .lgnewui-music-playlist-index {
    color: #fff;
    font-weight: 600;
}

.lgnewui-music-playlist-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.lgnewui-music-playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease-in-out;
}

.lgnewui-music-playlist-item:hover .lgnewui-music-playlist-cover img {
    transform: scale(1.15) rotate(5deg);
}

.lgnewui-music-playlist-cover img.loaded {
    transition: transform 0.3s ease, .7s filter linear, .7s -webkit-filter linear;
}

.lgnewui-music-playlist-playing-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.lgnewui-music-playlist-item.active .lgnewui-music-playlist-playing-indicator {
    display: flex;
}

.lgnewui-music-playlist-playing-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.lgnewui-music-playlist-playing-bars span {
    width: 3px;
    background: #fff;
    border-radius: 2px;
    animation: playingBars 0.8s ease-in-out infinite;
}

.lgnewui-music-playlist-playing-bars span:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.lgnewui-music-playlist-playing-bars span:nth-child(2) {
    height: 12px;
    animation-delay: 0.15s;
}

.lgnewui-music-playlist-playing-bars span:nth-child(3) {
    height: 8px;
    animation-delay: 0.3s;
}

@keyframes playingBars {
    0%, 100% {
        transform: scaleY(0.5);
    }
    50% {
        transform: scaleY(1);
    }
}

.lgnewui-music-playlist-info {
    flex: 1;
    min-width: 0;
}

.lgnewui-music-playlist-song-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lgnewui-music-playlist-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.lgnewui-music-playlist-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lgnewui-music-playlist-quality {
    font-size: 9px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 3px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lgnewui-music-playlist-item.active .lgnewui-music-playlist-cover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
}

.lgnewui-music-playlist-item.active .lgnewui-music-playlist-cover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.lgnewui-music-playlist-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.lgnewui-music-playlist-empty svg {
    width: 40px;
    height: 40px;
    fill: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.lgnewui-music-playlist-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.lgnewui-music-volume-value {
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: rgba(255, 255, 255, 0.9);
    width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
    flex-shrink: 0;
    pointer-events: none;
}

.lgnewui-music-volume-segment-track {
    position: relative;
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    touch-action: none;
}

.lgnewui-music-volume-segment-block {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.lgnewui-music-volume-segment-block.active {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.lgnewui-music-volume-icon-wrap {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    width: 36px;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lgnewui-music-volume-icon-wrap:hover {
    transform: scale(1.1);
}

.lgnewui-music-volume-icon-wrap:active {
    transform: scale(0.9);
}

.lgnewui-music-volume-icon-wrap.active {
    color: #ffffff;
}

.lgnewui-music-volume-icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.lgnewui-music-volume-icon-path {
    display: none;
}

.lgnewui-icon-state-mute .lgnewui-path-mute {
    display: block;
}

.lgnewui-icon-state-low .lgnewui-path-low {
    display: block;
}

.lgnewui-icon-state-med .lgnewui-path-med {
    display: block;
}

.lgnewui-icon-state-high .lgnewui-path-high {
    display: block;
}

.lgnewui-music-playlist-panel {
    --panel-theme: var(--nav-music-theme, #b08968);
    --panel-theme-rgb: var(--music-theme-rgb, 176, 137, 104);
    position: fixed;
    left: 20px;
    width: 300px;
    max-height: 360px;
    background: linear-gradient(135deg, rgba(var(--panel-theme-rgb), 0.95) 0%, rgba(var(--panel-theme-rgb), 0.85) 50%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.6s ease;
    z-index: 99999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    bottom: 60px;
    transform: translateY(12px) scale(0.95);
    transform-origin: bottom left;
}

.lgnewui-music-playlist-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.lgnewui-music-playlist-panel.position-below {
    bottom: auto;
    top: 60px;
    transform: translateY(-12px) scale(0.95);
    transform-origin: top left;
}

.lgnewui-music-playlist-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lgnewui-music-playlist-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lgnewui-music-playlist-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lgnewui-music-playlist-title svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    opacity: 0.9;
}

.lgnewui-music-playlist-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.lgnewui-music-playlist-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lgnewui-music-playlist-mode {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.lgnewui-music-playlist-mode:hover {
    opacity: 1;
}

.lgnewui-music-playlist-mode .mode-icon {
    width: 14px;
    height: 14px;
    stroke: #fff;
}

.lgnewui-music-playlist-close {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lgnewui-music-playlist-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lgnewui-music-playlist-close:active {
    transform: scale(0.9) rotate(90deg);
}

.lgnewui-music-playlist-close svg {
    width: 10px;
    height: 10px;
    stroke: #fff;
    stroke-width: 2.5;
}

.lgnewui-music-playlist-lyrics-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.lgnewui-music-playlist-lyrics-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.lgnewui-music-playlist-lyrics-btn:active {
    transform: scale(0.9);
}

.lgnewui-music-playlist-lyrics-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.lgnewui-music-playlist-lyrics-btn .lyrics-text {
    display: inline-block;
}

.lgnewui-music-playlist-lyrics-btn.active .lyrics-text {
    display: none;
}

.lgnewui-music-playlist-lyrics-btn .lyrics-check {
    display: none;
    font-size: 10px;
    font-weight: 700;
}

.lgnewui-music-playlist-lyrics-btn.active .lyrics-check {
    display: inline-block;
}

.lgnewui-music-page-lyrics {
    position: fixed;
    /* JS 动态控制 top，水平居中屏幕 */
    left: 50%;
    top: auto;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: auto;
    max-width: calc(100vw - 140px);
}

.lgnewui-music-page-lyrics.show {
    opacity: 1;
}

.lgnewui-music-page-lyrics-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    margin: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    height: auto;
    max-width: 100%;
    width: auto;
}

.lgnewui-music-page-lyrics-current {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70vw;
    padding: 0 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    text-align: center;
}

@media screen and (max-width: 400px) {
    .lgnewui-music-playlist-panel {
        left: 10px;
        width: 280px;
        max-height: 420px;
    }
}

@media screen and (max-width: 768px) {
    .lgnewui-music-playlist-panel {
        max-height: 450px;
    }

    .lgnewui-music-page-lyrics {
        /* JS 动态控制位置，与播放器同一水平线 */
        max-width: calc(100vw - 60px);
    }

    .lgnewui-music-page-lyrics-content {
        margin: 0;
        height: 44px;
        max-width: 100%;
        padding: 0 12px;
    }

    .lgnewui-music-page-lyrics-current {
        font-size: 14px;
        padding: 0 12px;
        line-height: 44px;
        max-width: 100%;
    }
}

/* ============ 播放器弹窗样式 ============ */
.lgnewui-music-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.lgnewui-music-modal.show {
    opacity: 1;
    visibility: visible;
}

/* SVG 图标强制显示颜色 */
.lgnewui-music-modal svg {
    fill: currentColor;
    color: #fff;
    flex-shrink: 0;
}

.lgnewui-music-modal-content {
    width: 340px;
    max-width: 92vw;
    max-height: 82vh;
    background: rgba(45, 45, 55, 0.85);
    border-radius: 20px;
    padding: 16px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.lgnewui-music-modal-content::-webkit-scrollbar {
    width: 3px;
}
.lgnewui-music-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.lgnewui-music-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

/* 放大状态 - 桌面端样式（图片2） */
.lgnewui-music-modal.expanded .lgnewui-music-modal-content {
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

/* 放大时隐藏小封面和信息行，改为大封面 */
.lgnewui-music-modal.expanded .lgnewui-music-modal-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-header-left {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-cover-wrapper {
    position: relative;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-cover {
    width: 140px;
    height: 140px;
    border-radius: 16px;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-info {
    text-align: center;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-title {
    font-size: 20px;
    margin-bottom: 6px;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-artist {
    font-size: 14px;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-main-controls {
    order: 3;
    margin-top: 8px;
    margin-bottom: 8px;
    justify-content: flex-start;
    padding-left: 2px;
    gap: 30px;
}

/* 移除原有的负边距和额外间距，使用gap统一控制间隔 */
.lgnewui-music-modal.expanded #modalPrevBtn,
.lgnewui-music-modal.expanded #modalPlayBtn,
.lgnewui-music-modal.expanded #modalNextBtn {
    margin-left: 0;
}

.lgnewui-music-modal.expanded #modalListBtn {
    margin-right: 0;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-progress {
    order: 2;
    margin-bottom: 0;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-options {
    display: none;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-volume {
    display: none;
}

/* 放大状态下隐藏内联播放列表，只保留歌词和列表按钮 */
.lgnewui-music-modal.expanded .lgnewui-music-modal-playlist {
    display: none !important;
}

/* 移动端放大样式（图片3） */
@media screen and (max-width: 500px) {
    .lgnewui-music-modal.expanded .lgnewui-music-modal-content {
        width: 95vw;
        max-height: 92vh;
        padding: 16px;
        gap: 10px;
    }
    
    .lgnewui-music-modal.expanded .lgnewui-music-modal-cover {
        width: 120px;
        height: 120px;
    }

    .lgnewui-music-modal.expanded .lgnewui-music-modal-title {
        font-size: 18px;
    }
    
    /* 移动端放大状态也隐藏播放列表 */
    .lgnewui-music-modal.expanded .lgnewui-music-modal-playlist {
        display: none !important;
    }
    
    /* 移动端缩小按钮位置 */
    .lgnewui-music-modal-expand-expanded {
        right: 18px;
        top: 8px;
    }

    /* 移动端列表弹窗 */
    .lgnewui-music-modal-list-popup {
        width: 280px;
    }

    .lgnewui-music-modal-list-popup-content {
        max-height: 280px;
    }

    .lgnewui-music-modal-main-controls {
        gap: 14px;
    }
}

/* ===== 顶部区域：封面+信息 + 放大按钮 ===== */
.lgnewui-music-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.lgnewui-music-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

/* 封面容器（包裹封面和放大状态下的放大按钮） */
.lgnewui-music-modal-cover-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* 方形封面 */
.lgnewui-music-modal-cover {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lgnewui-music-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 歌曲信息 */
.lgnewui-music-modal-info {
    min-width: 0;
    flex: 1;
}

.lgnewui-music-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    line-height: 1.3;
}

.lgnewui-music-modal-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* 放大按钮（普通状态） - 右上角 */
.lgnewui-music-modal-expand {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.lgnewui-music-modal-expand:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.06);
}

.lgnewui-music-modal-expand svg {
    width: 16px;
    height: 16px;
}

/* 放大状态下隐藏右上角的放大按钮 */
.lgnewui-music-modal.expanded .lgnewui-music-modal-expand {
    display: none;
}

/* 放大按钮（放大状态） - 右上角（右移120px） */
.lgnewui-music-modal-expand-expanded {
    display: none;
    position: absolute;
    right: -68px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lgnewui-music-modal-expand-expanded:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

.lgnewui-music-modal-expand-expanded svg {
    width: 16px;
    height: 16px;
}

/* 放大状态下显示封面右侧的放大按钮 */
.lgnewui-music-modal.expanded .lgnewui-music-modal-expand-expanded {
    display: flex;
}

/* 普通状态下隐藏列表按钮（仅在放大状态显示） */
.lgnewui-music-modal .lgnewui-music-modal-list-btn {
    display: none !important;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-list-btn {
    display: flex !important;
}

/* ===== 进度条 ===== */
.lgnewui-music-modal-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.lgnewui-music-modal-current,
.lgnewui-music-modal-duration {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    min-width: 36px;
    text-align: center;
    font-family: -apple-system, 'SF Mono', 'Monaco', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.lgnewui-music-modal-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.lgnewui-music-modal-progress-loaded {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    width: 0%;
}

.lgnewui-music-modal-progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0%;
}

.lgnewui-music-modal-progress-thumb {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    left: 0%;
    transition: left 0.1s linear, transform 0.15s ease;
}

.lgnewui-music-modal-progress:hover .lgnewui-music-modal-progress-thumb {
    transform: translate(-50%, -50%) scale(1.3);
}

/* ===== 控制按钮：列表 / 上一首 / 播放 / 下一首 ===== */
.lgnewui-music-modal-main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
    position: relative;
    z-index: 50;
}

.lgnewui-music-modal-ctrl-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
}

.lgnewui-music-modal-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lgnewui-music-modal-ctrl-btn svg {
    width: 20px;
    height: 20px;
}

/* 列表按钮 - 三条横线图标 */
.lgnewui-music-modal-list-btn svg {
    width: 18px;
    height: 18px;
}

.lgnewui-music-modal-list-btn.active {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

/* ===== 悬浮播放列表弹窗 ===== */
.lgnewui-music-modal-list-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 300px;
    background: rgba(20, 20, 28, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.lgnewui-music-modal-list-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.lgnewui-music-modal-list-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lgnewui-music-modal-list-popup-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.lgnewui-music-modal-list-popup-content {
    max-height: 310px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.lgnewui-music-modal-list-popup-content::-webkit-scrollbar {
    width: 4px;
}

.lgnewui-music-modal-list-popup-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.lgnewui-music-modal-list-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

/* 列表弹窗中的单首歌曲项 */
.lgnewui-music-modal-list-popup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.18s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lgnewui-music-modal-list-popup-item:last-child {
    border-bottom: none;
}

.lgnewui-music-modal-list-popup-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lgnewui-music-modal-list-popup-item.active {
    background: rgba(255, 255, 255, 0.12);
}

.lgnewui-music-modal-list-popup-item.active .popup-item-title {
    color: #fff;
    font-weight: 600;
}

.lgnewui-music-modal-list-popup-item.active .popup-item-index {
    display: none;
}

.lgnewui-music-modal-list-popup-item.active::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 4px;
    flex-shrink: 0;
}

.lgnewui-music-modal-list-popup-item.active {
    padding-left: 12px;
}

.popup-item-index {
    width: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    font-weight: 500;
}

.popup-item-cover {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.popup-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-item-info {
    flex: 1;
    min-width: 0;
}

.popup-item-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.popup-item-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lgnewui-music-modal-list-popup-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* 播放按钮 - 更大更突出 + 平滑过渡 */
.lgnewui-music-modal-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.lgnewui-music-modal-play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lgnewui-music-modal-play-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.lgnewui-music-modal-play-btn:hover::before {
    opacity: 1;
}

.lgnewui-music-modal-play-btn:active {
    transform: scale(0.95);
}

.lgnewui-music-modal-play-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

/* 播放/暂停图标切换动画 */
.lgnewui-music-modal-play-btn .play-icon,
.lgnewui-music-modal-play-btn .pause-icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.lgnewui-music-modal.playing .lgnewui-music-modal-play-btn .play-icon {
    display: none;
    transform: scale(0.5) rotate(-90deg);
}

.lgnewui-music-modal.playing .lgnewui-music-modal-play-btn .pause-icon {
    display: block;
    animation: iconPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPop {
    0% { transform: scale(0.4) rotate(90deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(-5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 加载中状态 - 已禁用加载动画，防止影响正常按钮使用 */
/* 保留loading类名但禁用所有视觉和交互效果 */
.lgnewui-music-modal-ctrl-btn.loading {
    pointer-events: auto;
}

.lgnewui-music-modal-ctrl-btn.loading svg {
    opacity: 1;
}

.lgnewui-music-modal-ctrl-btn.loading::after {
    display: none;
}

/* 播放按钮加载样式 - 已禁用 */
.lgnewui-music-modal-play-btn.loading::after {
    display: none;
}

.lgnewui-music-modal-ctrl-btn {
    position: relative;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 播放脉冲效果（正在播放时按钮的呼吸效果） */
.lgnewui-music-modal.playing .lgnewui-music-modal-play-btn {
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.15); }
    50% { box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255,255,255,0.2); }
}

/* ===== 播放模式 + 歌词开关 ===== */
.lgnewui-music-modal-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

/* 播放模式按钮 - 左侧 */
.lgnewui-music-modal-mode-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lgnewui-music-modal-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lgnewui-music-modal-mode-btn .mode-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* 歌词开关 - 右侧滑动开关样式 */
.lgnewui-music-modal-lyrics-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.lgnewui-music-modal-lyrics-switch .lyrics-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.lgnewui-music-modal-lyrics-switch input[type="checkbox"] {
    display: none;
}

.lgnewui-music-modal-lyrics-switch .switch-slider {
    position: relative;
    width: 42px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    transition: all 0.25s ease;
}

.lgnewui-music-modal-lyrics-switch .switch-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.lgnewui-music-modal-lyrics-switch input[type="checkbox"]:checked + .switch-slider {
    background: linear-gradient(135deg, rgba(176, 137, 104, 0.9), rgba(200, 160, 120, 0.95));
}

.lgnewui-music-modal-lyrics-switch input[type="checkbox"]:checked + .switch-slider::before {
    left: 23px;
}

/* ===== 音量控制 ===== */
.lgnewui-music-modal-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0 4px;
}

.lgnewui-music-modal-volume-icon {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.lgnewui-music-modal-volume-icon:hover {
    color: #fff;
}

.lgnewui-music-modal-volume-icon svg {
    width: 18px;
    height: 18px;
}

/* 音量条 */
.lgnewui-music-modal-volume-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.lgnewui-music-modal-volume-thumb {
    position: absolute;
    top: 50%;
    left: 60%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: left 0.1s linear, transform 0.15s ease;
}

.lgnewui-music-modal-volume-bar:hover .lgnewui-music-modal-volume-thumb {
    transform: translate(-50%, -50%) scale(1.25);
}

/* 增强按钮（参考 love72.top 风格） */
.lgnewui-music-modal-volume-boost {
    padding: 6px 12px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.lgnewui-music-modal-volume-boost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 增强激活状态 - 蓝色高亮（匹配 love72.top） */
.lgnewui-music-modal-volume-boost.active {
    background: #3b82f6;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.lgnewui-music-modal-volume-boost.active:hover {
    background: #2563eb;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.7);
}

/* ===== 播放列表 ===== */
.lgnewui-music-modal-playlist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    margin-bottom: 4px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

.lgnewui-music-modal-playlist::-webkit-scrollbar {
    width: 4px;
}

.lgnewui-music-modal-playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.lgnewui-music-modal-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lgnewui-music-modal-playlist::-webkit-scrollbar-track {
    background: transparent;
}

.lgnewui-music-modal-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lgnewui-music-modal-playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lgnewui-music-modal-playlist-item.active {
    background: rgba(255, 255, 255, 0.12);
}

.lgnewui-music-modal-playlist-item .playlist-index {
    width: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-weight: 500;
    flex-shrink: 0;
}

.lgnewui-music-modal-playlist-item.active .playlist-index {
    color: rgba(255, 255, 255, 0.95);
}

.lgnewui-music-modal-playlist-item .playlist-cover {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.lgnewui-music-modal-playlist-item .playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lgnewui-music-modal-playlist-item .playlist-name {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lgnewui-music-modal-playlist-item.active .playlist-name {
    color: #fff;
}

.lgnewui-music-modal-playlist-item .playlist-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* ===== 放大后的歌词区域 ===== */
.lgnewui-music-modal-full-lyrics {
    display: none;
    height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.lgnewui-music-modal.expanded .lgnewui-music-modal-full-lyrics {
    display: block;
    height: auto;
    max-height: 340px;
    margin-top: 20px;
    margin-bottom: 8px;
    overflow-y: auto;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    scrollbar-gutter: stable;
}

.lgnewui-music-modal-full-lyrics::-webkit-scrollbar {
    width: 3px;
}

.lgnewui-music-modal-full-lyrics::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.lgnewui-music-modal-full-lyrics::-webkit-scrollbar-track {
    background: transparent;
}

.lgnewui-music-modal-full-lyrics-content {
    text-align: center;
    /* 首尾各留容器一半的空间（170px），确保第一行和最后一行也能居中显示 */
    padding: 170px 0;
}

.lgnewui-music-modal-full-lyrics-content .lyric-line {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.32);
    line-height: 42px;
    padding: 4px 12px;
    margin: 0;
    transition: color 0.35s ease, font-size 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* 固定高度确保每行高度一致 */
    height: 50px;
    box-sizing: border-box;
}

.lgnewui-music-modal-full-lyrics-content .lyric-line .lyric-text {
    flex: 1;
    text-align: center;
}

.lgnewui-music-modal-full-lyrics-content .lyric-line .lyric-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-family: -apple-system, 'SF Mono', monospace;
    min-width: 32px;
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.lgnewui-music-modal-full-lyrics-content .lyric-line:hover .lyric-time,
.lgnewui-music-modal-full-lyrics-content .lyric-line.active .lyric-time {
    opacity: 1;
}

.lgnewui-music-modal-full-lyrics-content .lyric-line.active .lyric-time {
    color: rgba(255, 255, 255, 0.6);
}

.lgnewui-music-modal-full-lyrics-content .lyric-line:hover {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
}

/* active状态下hover不改变背景，保持高亮效果 */
.lgnewui-music-modal-full-lyrics-content .lyric-line.active:hover {
    color: #ffffff;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.12) 100%);
}

.lgnewui-music-modal-full-lyrics-content .lyric-line:active {
    background: rgba(255, 255, 255, 0.06);
}

.lgnewui-music-modal-full-lyrics-content .lyric-line.active {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    /* 网易云风格：柔和渐变背景 + 发光文字 */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px 16px;
    margin: 0;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.6), 0 0 30px rgba(var(--music-theme-rgb, 176, 137, 104), 0.3);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(var(--music-theme-rgb, 176, 137, 104), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    /* 保持固定高度，与普通行一致 */
    height: 50px;
    box-sizing: border-box;
    animation: lyricPulseGlow 3s ease-in-out infinite;
}

/* 网易云风格：当前行呼吸光效 */
@keyframes lyricPulseGlow {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.25),
            0 0 20px rgba(var(--music-theme-rgb, 176, 137, 104), 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow:
            0 4px 25px rgba(0, 0, 0, 0.3),
            0 0 35px rgba(var(--music-theme-rgb, 176, 137, 104), 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* 当前行的时间标签在激活时显示 */
.lgnewui-music-modal-full-lyrics-content .lyric-line.active .lyric-time {
    opacity: 1;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.lgnewui-music-modal-full-lyrics-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    padding: 60px 0;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 500px) {
    .lgnewui-music-modal {
        padding-top: 40px;
    }
    .lgnewui-music-modal-content {
        width: 94vw;
        padding: 16px;
        border-radius: 20px;
    }
    .lgnewui-music-modal.expanded .lgnewui-music-modal-content {
        width: 95vw;
        max-height: 90vh;
    }
    .lgnewui-music-modal-cover {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }
    .lgnewui-music-modal-title {
        font-size: 16px;
    }
    .lgnewui-music-modal-artist {
        font-size: 12px;
    }
    .lgnewui-music-modal-main-controls {
        gap: 18px;
    }
    .lgnewui-music-modal-ctrl-btn {
        width: 44px;
        height: 44px;
    }
    .lgnewui-music-modal-play-btn {
        width: 58px;
        height: 58px;
    }
}

@media screen and (max-width: 380px) {
    .lgnewui-music-modal-content {
        padding: 14px;
    }
    .lgnewui-music-modal-cover {
        width: 52px;
        height: 52px;
        border-radius: 11px;
    }
    .lgnewui-music-modal-main-controls {
        gap: 16px;
    }
    .lgnewui-music-modal-ctrl-btn {
        width: 40px;
        height: 40px;
    }
    .lgnewui-music-modal-play-btn {
        width: 52px;
        height: 52px;
    }
    .lgnewui-music-modal-play-btn svg {
        width: 22px;
        height: 22px;
    }
}
