/* ===== 底部迷你播放栏（music2 样式 - 更大更宽松） ===== */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(30px);
    border-top: 1px solid var(--card-border);
    z-index: 1000;
    padding: 22px 60px !important;
}

.mini-player-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* 左侧：歌曲信息 */
.mini-player-info {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    padding-right: 50px !important;
}

.mini-player-info img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 14px !important;
    object-fit: cover;
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
    transition: transform 0.3s ease;
}

.mini-player-info:hover img {
    transform: scale(1.05);
}

.mini-player-text {
    color: white;
    overflow: hidden;
    min-width: 0;
}

.mini-player-text div:first-child {
    font-weight: 600;
    font-size: 18px !important;
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-text div:last-child {
    font-size: 15px !important;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧：控制按钮 */
.mini-player-controls {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    flex-shrink: 0;
}

.mini-btn {
    width: 56px !important;
    height: 56px !important;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s;
}

.mini-btn svg {
    width: 26px !important;
    height: 26px !important;
}

/* 播放/暂停主按钮特别大 */
.mini-btn#miniPlayBtn {
    width: 68px !important;
    height: 68px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 26px rgba(102, 126, 234, 0.55) !important;
}

.mini-btn#miniPlayBtn svg {
    width: 30px !important;
    height: 30px !important;
}

.mini-btn#miniPlayBtn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 35px rgba(102, 126, 234, 0.7) !important;
}

.mini-btn:hover {
    transform: scale(1.08);
}

.mini-btn-icon {
    background: rgba(255,255,255,0.14) !important;
}

.mini-btn-icon:hover {
    background: rgba(255,255,255,0.28) !important;
}

/* 移动端设备显示/隐藏控制 */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

/* ===== 音质选择器 ===== */
.quality-selector {
    position: absolute;
    bottom: 70px;
    right: 20px;
    background: var(--popup-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    z-index: 10002;
    overflow: visible;
}

.quality-selector.show {
    display: block;
}

.quality-option {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quality-option:hover {
    background: rgba(102, 126, 234, 0.2);
}

.quality-option.active {
    background: rgba(102, 126, 234, 0.3);
    color: var(--primary-light);
}

.quality-option-check {
    color: var(--primary-light);
    font-weight: bold;
}

.quality-divider {
    height: 1px;
    background: var(--card-border);
    margin: 6px 0;
}

.quality-label {
    padding: 6px 14px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 二级音质选择器样式 */
.quality-selector-wrapper {
    position: relative;
    margin: 4px 0;
}

.quality-category {
    position: relative;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quality-category:hover,
.quality-category.active {
    background: rgba(102, 126, 234, 0.2);
}

.quality-category-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.quality-category:hover .quality-category-arrow,
.quality-category.active .quality-category-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* 二级弹窗 - 默认左侧弹出 */
.quality-submenu {
    position: absolute;
    right: calc(100% + 8px);
    top: 0;
    background: var(--popup-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    z-index: 10003;
}

/* 右侧弹出（空间不够时JS添加此类） */
.quality-submenu.submenu-right {
    right: auto;
    left: calc(100% + 8px);
}

.quality-selector-wrapper.active .quality-submenu {
    display: block;
}

.quality-submenu-item {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quality-submenu-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.quality-submenu-item.active {
    background: rgba(102, 126, 234, 0.3);
    color: var(--primary-light);
}

.quality-submenu-check {
    color: var(--primary-light);
    font-weight: bold;
}

.submenu-label {
    padding: 4px 14px;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 迷你进度条（置顶细条） */
.mini-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px !important;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
}

.mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
}

/* ===== 全屏播放器（root 版本 - 支持浏览器全屏模式） ===== */
.full-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 浏览器全屏模式下的样式 */
.full-player:-webkit-full-screen {
    width: 100%;
    height: 100%;
    background: #000;
}

.full-player:fullscreen {
    width: 100%;
    height: 100%;
    background: #000;
}

.full-player-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -2;
}

.full-player-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(60px) brightness(0.4);
}

.full-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.full-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    color: white;
}

.full-player-close, .full-player-more, .full-player-fav, .full-player-fx {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.full-player-close:hover, .full-player-more:hover, .full-player-fav:hover {
    background: rgba(255,255,255,0.2);
}

/* 右侧按钮组：爱心 + 更多 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-actions .full-player-more {
    position: relative;
}

/* 收藏/爱心按钮圆圈描边 */
.full-player-fav {
    border: 1.5px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}
.full-player-fav:hover {
    border-color: rgba(255,255,255,0.45);
}

/* 收藏激活：红色填充 */
.full-player-fav.fav-active {
    background: rgba(255,71,87,0.3);
    color: #ff4757;
    border-color: rgba(255,71,87,0.5);
}
.full-player-fav.fav-active svg {
    fill: #ff4757;
    stroke: #ff4757;
    animation: favPop 0.35s ease;
}
@keyframes favPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 更多菜单弹窗 */
.more-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--popup-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 10001;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.more-menu-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.more-menu-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.more-menu-divider {
    height: 1px;
    background: var(--card-border);
    margin: 8px 0;
}

.full-player-title {
    font-size: 16px;
    font-weight: 500;
}

.full-player-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: 0;
}

.full-player-left {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 黑胶唱片效果 */
.vinyl-container {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
    aspect-ratio: 1 / 1;
}

.vinyl-record.playing {
    animation-play-state: running;
}

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

.vinyl-record::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.vinyl-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

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

.full-player-right {
    flex: 1;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.full-player-song-info {
    color: white;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.full-player-song-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-player-song-info p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-player-lyric {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    text-align: center;
    position: relative;
    scroll-behavior: smooth;
    mask-image: linear-gradient(180deg, 
        transparent 0%, 
        black 10%, 
        black 90%, 
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(180deg, 
        transparent 0%, 
        black 10%, 
        black 90%, 
        transparent 100%
    );
}

.full-player-lyric::-webkit-scrollbar {
    display: none;
}

.lyric-item {
    padding: 10px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s ease;
    position: relative;
}

.lyric-item.active {
    font-size: 17px;
    font-weight: 600;
    color: #1DB954;
}

.lyric-item.center-line {
    color: rgba(255,255,255,0.85);
}

.lyric-item.active.center-line {
    color: #1DB954;
}

.lyric-center-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255,255,255,0.25);
    pointer-events: none;
    z-index: 2;
}

.lyric-center-line::before,
.lyric-center-line::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}

.lyric-center-line::before { left: 0; }
.lyric-center-line::after { right: 0; }

.lyric-center-time {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 10px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    z-index: 3;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 8px rgba(102,126,234,0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.lyric-center-time:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(102,126,234,0.6);
}

.lyric-center-time:active {
    transform: translateY(-50%) scale(0.95);
}

.lyric-center-time.chorus-time {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    box-shadow: 0 0 15px rgba(255,71,87,0.7), 0 2px 8px rgba(255,107,107,0.5);
    border: 2px solid rgba(255,255,255,0.4);
    font-weight: bold;
}

.lyric-center-time.chorus-time:hover {
    box-shadow: 0 0 20px rgba(255,71,87,0.9), 0 4px 12px rgba(255,107,107,0.7);
}

.lyric-scroll-indicator {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lyric-scroll-indicator.visible {
    opacity: 1;
}

.lyric-empty {
    padding: 60px 0;
    color: rgba(255,255,255,0.4);
}

.lyric-spacer {
    flex-shrink: 0;
}

/* 浅色模式适配 - 歌词 */
[data-theme="light"] .lyric-item {
    color: rgba(0,0,0,0.5);
}

[data-theme="light"] .lyric-item.active {
    color: #667eea;
}

[data-theme="light"] .lyric-item.center-line {
    color: rgba(0,0,0,0.85);
}

[data-theme="light"] .lyric-center-line {
    background: rgba(0,0,0,0.15);
}

[data-theme="light"] .lyric-center-line::before,
[data-theme="light"] .lyric-center-line::after {
    background: rgba(0,0,0,0.3);
}

[data-theme="light"] .full-player-song-info h2,
[data-theme="light"] .full-player-title {
    color: #1a1a2e;
}

[data-theme="light"] .full-player-song-info p {
    color: rgba(0,0,0,0.6);
}

[data-theme="light"] .control-btn {
    background: rgba(0,0,0,0.05);
    color: #1a1a2e;
}

[data-theme="light"] .full-player-progress span {
    color: rgba(0,0,0,0.6);
}

[data-theme="light"] .progress-track {
    background: rgba(0,0,0,0.1);
}

[data-theme="light"] .more-menu-item {
    color: #1a1a2e;
}

[data-theme="light"] .more-menu-item svg {
    color: rgba(0,0,0,0.5);
}

.full-player-bottom {
    padding: 20px 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex-shrink: 0;
}

.full-player-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 20px;
}

.full-player-progress span {
    pointer-events: none;
    user-select: none;
}

.full-player-progress .progress-track {
    cursor: pointer;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.35);
    border-radius: 4px;
    position: relative;
    z-index: 3;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    position: relative;
    z-index: 4;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 6px rgba(102,126,234,0.8);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.full-player-progress:hover .progress-fill::after {
    opacity: 1;
}

/* 进度条高潮标记 */
.chorus-marker {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,30,60,0.7), rgba(255,50,80,0.6), rgba(255,80,100,0.4));
    border-radius: 4px;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.progress-track:hover .chorus-marker,
.full-player-lyric.hovering .chorus-marker {
    opacity: 1;
    background: linear-gradient(90deg, rgba(255,20,50,0.8), rgba(255,40,70,0.7), rgba(255,70,90,0.5));
}

.full-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.control-btn.play-btn {
    width: 64px;
    height: 64px;
    position: relative;
    background: var(--primary);
}

.control-btn.play-btn:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* 歌词下方按钮区域 */
.popup-actions {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid var(--card-border);
}

.popup-actions button {
    padding: 12px 24px;
    font-size: 14px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.popup-actions .btn-download {
    background: var(--primary);
    color: white;
    flex: 1;
}

.popup-actions .btn-download:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.popup-actions .btn-copy {
    background: rgba(155, 89, 182, 0.8);
    color: white;
}

.popup-actions .btn-copy:hover {
    background: rgba(155, 89, 182, 1);
}

.popup-actions .btn-close {
    background: rgba(231, 76, 60, 0.8);
    color: white;
}

.popup-actions .btn-close:hover {
    background: rgba(231, 76, 60, 1);
}

/* 自定义音频播放器样式 */
audio::-webkit-media-controls-panel {
    background: rgba(102, 126, 234, 0.2);
}

#detail-popup pre { 
    white-space: pre-wrap; 
    max-height: 180px; 
    overflow-y: auto; 
    background: rgba(255, 255, 255, 0.05); 
    padding: 16px; 
    border-radius: var(--radius-sm); 
    margin-bottom: 20px; 
    font-family: inherit;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 14px;
}

#detail-popup pre::-webkit-scrollbar {
    width: 6px;
}

#detail-popup pre::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

#overlay { 
    display: none; 
    position: fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background: rgba(0, 0, 0, 0.7); 
    z-index: 9998; 
    backdrop-filter: blur(8px);
}

/* ===== 移动端适配（仅小屏设备） ===== */
@media (max-width: 768px) {
    /* 移动端全屏播放器适配 */
    .full-player-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
        max-width: 100%;
    }

    .vinyl-container {
        width: 200px;
        height: 200px;
    }

    .vinyl-cover {
        width: 125px;
        height: 125px;
    }

    .full-player-left {
        max-width: 100%;
        flex: 0 0 auto;
    }

    .full-player-song-info {
        margin-bottom: 10px;
    }

    .full-player-song-info h2 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .full-player-song-info p {
        font-size: 12px;
    }

    .full-player-right {
        max-width: 100%;
        min-height: 0;
        flex: 1;
    }

    .full-player-lyric {
        font-size: 13px;
    }

    .lyric-item {
        padding: 8px 15px;
        line-height: 1.5;
    }

    .lyric-item.active {
        font-size: 15px;
    }

    .lyric-center-time {
        font-size: 10px;
        padding: 1px 7px;
        right: 5px;
    }

    .quality-selector {
        right: 10px !important;
        min-width: 160px;
        max-width: calc(100vw - 20px);
    }

    .quality-submenu {
        min-width: 140px;
    }

    .full-player-bottom {
        padding: 10px 20px 20px;
        max-width: 100%;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .control-btn.play-btn {
        width: 52px;
        height: 52px;
    }

    .full-player-header {
        padding: 10px 16px;
    }

    .full-player-close, .full-player-more, .full-player-fav {
        width: 36px;
        height: 36px;
    }

    .full-player-close svg, .full-player-more svg, .full-player-fav svg {
        width: 20px;
        height: 20px;
    }

    .more-menu {
        top: 48px;
        right: 5px;
        min-width: 140px;
    }

    .full-player-title {
        font-size: 14px;
    }
    
    /* 移动端迷你播放器适配 */
    .mini-player {
        padding: 6px 8px !important;
        height: auto !important;
        position: fixed !important;
        z-index: 9999;
    }

    .mini-player-content {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .mini-player-info {
        flex: 0 0 auto !important;
        justify-content: flex-start !important;
        margin-bottom: 0 !important;
        padding-right: 0 !important;
        max-width: 35% !important;
        min-width: 80px !important;
        gap: 6px !important;
    }

    .mini-player-info img {
        width: 36px !important;
        height: 36px !important;
        border-radius: 4px !important;
        flex-shrink: 0;
    }

    .mini-player-text {
        min-width: 0;
        overflow: hidden;
        display: block !important;
    }

    .mini-player-text div:first-child {
        font-size: 12px !important;
        margin-bottom: 2px !important;
        line-height: 1.3 !important;
        color: white !important;
        display: block !important;
    }

    .mini-player-text div:last-child {
        font-size: 10px !important;
        line-height: 1.2 !important;
        color: rgba(255,255,255,0.6) !important;
        display: block !important;
    }

    .mini-player-controls {
        flex: 1 !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-right: 0 !important;
    }

    .mini-player-controls::-webkit-scrollbar {
        display: none;
    }

    /* 移动端按钮 */
    .mini-btn.mini-btn-small {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
    }

    .mini-btn.mini-btn-small svg {
        width: 14px !important;
        height: 14px !important;
    }

    .mini-btn#miniPlayBtn.mini-btn-small {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .mini-btn#miniPlayBtn.mini-btn-small svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* 移动端进度条 */
    .mini-progress {
        height: 3px !important;
        background: rgba(255,255,255,0.15) !important;
    }

    .mini-progress-bar {
        height: 100% !important;
        background: linear-gradient(90deg, #667eea, #764ba2) !important;
    }

    /* 移动端显示/隐藏控制 */
    .mobile-only {
        display: flex !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* ===== 浅色模式 - 全屏播放器（root 渐变背景版） ===== */
[data-theme="light"] .full-player-bg {
    display: none;
}

[data-theme="light"] .full-player-overlay {
    display: none;
}

[data-theme="light"] .full-player {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 50%, #d1d8e8 100%);
}

[data-theme="light"] .full-player-header,
[data-theme="light"] .full-player-header button {
    color: #1a1a2e;
}
[data-theme="light"] .full-player-close,
[data-theme="light"] .full-player-more,
[data-theme="light"] .full-player-fav {
    background: rgba(0,0,0,0.08) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .full-player-fav {
    border-color: rgba(0,0,0,0.15) !important;
}
[data-theme="light"] .full-player-close:hover,
[data-theme="light"] .full-player-more:hover,
[data-theme="light"] .full-player-fav:hover {
    background: rgba(0,0,0,0.15) !important;
}
[data-theme="light"] .full-player-fav:hover {
    border-color: rgba(0,0,0,0.3) !important;
}
[data-theme="light"] .full-player-fav.fav-active {
    background: rgba(255,71,87,0.2) !important;
    color: #ff4757 !important;
    border-color: rgba(255,71,87,0.5) !important;
}
[data-theme="light"] .full-player-fav.fav-active svg {
    fill: #ff4757;
    stroke: #ff4757;
}
[data-theme="light"] .full-player-title {
    color: #1a1a2e !important;
}
[data-theme="light"] .full-player-song-info h2 {
    color: #1a1a2e !important;
}
[data-theme="light"] .full-player-song-info p {
    color: rgba(0,0,0,0.6) !important;
}
[data-theme="light"] .control-btn {
    background: rgba(0,0,0,0.08) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .control-btn:hover {
    background: rgba(0,0,0,0.15) !important;
}
[data-theme="light"] .control-btn.play-btn {
    background: var(--primary) !important;
    color: white !important;
}
[data-theme="light"] .full-player-progress {
    color: rgba(0,0,0,0.6) !important;
}
[data-theme="light"] .progress-track {
    background: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
}
[data-theme="light"] .full-player-lyric {
    color: rgba(0,0,0,0.4) !important;
}
[data-theme="light"] .lyric-item {
    color: rgba(0,0,0,0.4) !important;
}
[data-theme="light"] .lyric-item.active {
    color: #667eea !important;
}
[data-theme="light"] .lyric-item.center-line {
    color: rgba(0,0,0,0.85) !important;
}
[data-theme="light"] .more-menu-item {
    color: #1a1a2e !important;
}
[data-theme="light"] .more-menu-item svg {
    color: rgba(0,0,0,0.5) !important;
}
[data-theme="light"] .quality-selector {
    background: rgba(255,255,255,0.97) !important;
    color: #1a1a2e !important;
}

/* ===== 播放器加载状态（root 版本） ===== */
.player-loading-spinner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    border-radius: inherit;
    z-index: 2;
}
.spinner-ring {
    width: 28px;
    height: 28px;
    position: relative;
}
.spinner-ring::before,
.spinner-ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}
.spinner-ring::before {
    inset: 0;
    border-top-color: #fff;
    border-right-color: rgba(255,255,255,0.35);
    animation: spinnerRotate 0.8s linear infinite;
}
.spinner-ring::after {
    inset: 4px;
    border-bottom-color: rgba(255,255,255,0.7);
    animation: spinnerRotate 1.2s linear infinite reverse;
}
@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}
/* 播放按钮显示加载时隐藏SVG */
.control-btn.play-btn.is-loading svg { opacity: 0; }
.control-btn.play-btn.is-loading .player-loading-spinner { display: flex !important; }

/* 进度条加载指示 */
.progress-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}
.progress-loading-bar {
    width: 30%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    border-radius: inherit;
    animation: progressLoadingSlide 1.2s ease-in-out infinite;
}
@keyframes progressLoadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ===== 迷你播放栏 - 音量弹窗（电脑端） ===== */
.vol-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.vol-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--popup-bg, rgba(30,30,50,0.95));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border, rgba(255,255,255,0.12));
    border-radius: 14px;
    padding: 12px 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    z-index: 9999;
}
.vol-popup.show { display: flex; }
.vol-track {
    position: relative;
    width: 6px;
    height: 120px;
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
    cursor: pointer;
    touch-action: none;
}
.vol-fill {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: var(--primary, linear-gradient(135deg, #667eea, #764ba2));
    border-radius: 3px;
    height: 100%;
    pointer-events: none;
}
.vol-thumb {
    position: absolute;
    left: 50%;
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, 50%);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    bottom: 100%;
    pointer-events: none;
}
.vol-value {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    user-select: none;
}

/* 音量按钮改为药丸形，常显百分比 */
.vol-btn {
    padding: 0 !important;
}
.vol-btn svg {
    width: 26px !important;
    height: 26px !important;
}

/* MV 画质选择（QQ） */
.mv-quality { display:flex; align-items:center; gap:10px; padding:10px 16px 4px; flex-wrap:wrap; }
.mv-q-label { color:rgba(255,255,255,.5); font-size:11px; letter-spacing:1px; margin-right:2px; flex:0 0 auto; }
.mv-q-btn { flex:1 1 0; min-width:60px; text-align:center; background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.16); border-radius:18px; padding:8px 10px; font-size:12.5px; line-height:1; cursor:pointer; transition:background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease; }
.mv-q-btn:hover { background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.32); transform:translateY(-1px); }
.mv-q-btn:active { transform:translateY(0) scale(.97); }
.mv-q-btn.active { background:linear-gradient(135deg,#ff8a3d,#ff5e62); border-color:transparent; font-weight:600; box-shadow:0 4px 14px rgba(255,94,98,.42); transform:translateY(-1px); }

/* ========== 全屏播放器 - 弹幕 ========== */
.danmaku-layer {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    height: 152px;
    overflow: hidden;
    pointer-events: none;
    z-index: 10002;
}
.danmaku-item {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 4px 12px;
    border-radius: 14px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: var(--dm-font, 15px);
    line-height: calc(var(--dm-font, 15px) * 1.34);
    /* 单行不换行：避免长评论换行后高度超过轨道导致上下重叠；will-change 由 JS 动画期间临时开启 */
    animation-name: danmakuMove;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
.danmaku-item .dm-like {
    margin-left: 8px;
    color: #ffd54a;
    font-size: 12px;
    font-weight: 600;
}
@keyframes danmakuMove {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}
/* 播放暂停时同步冻结弹幕 */
.danmaku-layer.danmaku-paused .danmaku-item {
    animation-play-state: paused !important;
}

/* 弹幕切换按钮（收藏按钮旁） */
.full-player-danmaku {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}
.full-player-danmaku:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.45);
}
.full-player-danmaku.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 16px rgba(102,126,234,0.7);
}

/* ========== 弹幕设置弹窗 ========== */
.dm-settings-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999; backdrop-filter: blur(4px);
}
.dm-settings-modal {
    width: 340px; max-width: 90vw;
    background: var(--popup-bg, rgba(30,30,50,0.95));
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border, rgba(255,255,255,0.12));
    border-radius: 16px; padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    color: var(--text-primary, #fff);
}
.dm-settings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dm-settings-title { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dm-settings-close {
    width: 32px; height: 32px; border: none; background: rgba(255,255,255,0.08);
    color: inherit; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1;
}
.dm-settings-close:hover { background: rgba(255,255,255,0.18); }
.dm-settings-body { display: flex; flex-direction: column; gap: 18px; }
.dm-row { display: flex; align-items: center; gap: 12px; }
.dm-row-label { width: 72px; font-size: 14px; color: var(--text-secondary, #ccc); flex-shrink: 0; }
.dm-range { flex: 1; accent-color: #667eea; height: 4px; cursor: pointer; }
.dm-row-value { width: 56px; text-align: right; font-size: 13px; color: #ffd54a; flex-shrink: 0; }
.dm-settings-footer { margin-top: 18px; text-align: right; }
.dm-reset-btn {
    background: rgba(255,255,255,0.1); border: 1px solid var(--card-border, rgba(255,255,255,0.16));
    color: inherit; padding: 8px 16px; border-radius: 18px; font-size: 13px; cursor: pointer;
}
.dm-reset-btn:hover { background: rgba(255,255,255,0.2); }

/* ========== 移动端适配补充：弹幕层位置 + 弹幕设置弹窗 ========== */
@media (max-width: 768px) {
    .danmaku-layer { top: 64px; height: 132px; }
    .dm-settings-modal { width: 100%; max-width: calc(100vw - 24px); padding: 16px; border-radius: 14px; }
    .dm-settings-body { gap: 14px; }
    .dm-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .dm-row-label { width: auto; }
    .dm-range { width: 100%; }
    .dm-row-value { width: auto; text-align: left; }
}

/* ========== 移动端迷你播放栏按钮防挤压变形 ========== */
@media (max-width: 768px) {
    .mini-player-controls { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .mini-player-controls .mini-btn {
        width: 34px !important; height: 34px !important;
        min-width: 34px !important; min-height: 34px !important;
        flex-shrink: 0 !important; border-radius: 50%;
    }
    .mini-player-controls .mini-btn svg { width: 16px !important; height: 16px !important; }
    .mini-player-controls .mini-btn#miniPlayBtn {
        width: 42px !important; height: 42px !important;
        min-width: 42px !important; min-height: 42px !important;
    }
    .mini-player-controls .mini-btn#miniPlayBtn svg { width: 18px !important; height: 18px !important; }
}

/* ========== 弹幕设置：密度三选按钮 ========== */
.dm-density-btns { display: flex; gap: 8px; flex: 1; }
.dm-density-btn {
    flex: 1; padding: 8px 0; border: 1px solid var(--card-border, rgba(255,255,255,0.16));
    background: rgba(255,255,255,0.08); color: var(--text-primary, #fff);
    border-radius: 10px; font-size: 13px; cursor: pointer; transition: all .2s;
}
.dm-density-btn:hover { background: rgba(255,255,255,0.18); }
.dm-density-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent; color: #fff; box-shadow: 0 0 14px rgba(102,126,234,0.6);
}

/* ===== 变调变速（本地处理）===== */
/* 透明圆圈，与更多/关闭按钮风格一致（不加描边） */
.full-player-fx:hover {
    background: rgba(255,255,255,0.2);
}
.full-player-fx.active {
    background: rgba(102,126,234,0.35);
    color: #aab4ff;
}

/* 更多菜单里的「变调变速」项：PC 隐藏，移动端显示 */
.fx-menu-item { display: none; }

/* 全屏遮罩：参考弹幕设置弹窗的弹出方式（点击遮罩关闭） */
.fx-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999; backdrop-filter: blur(4px);
    animation: fxOverlayIn .15s ease;
}
@keyframes fxOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.fx-panel {
    width: min(380px, 92%);
    background: var(--popup-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    color: var(--text-primary);
    animation: fxModalIn .18s ease;
}
@keyframes fxModalIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.fx-panel-header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 12px; }
.fx-panel-close { background: none; border: none; color: var(--text-secondary); font-size: 18px; cursor: pointer; line-height: 1; }
.fx-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.fx-row span { color: var(--text-secondary); }
.fx-row b { color: #aab4ff; }
.fx-enable-row { flex-direction: row; align-items: center; justify-content: space-between; }
.fx-row input[type=range] { width: 100%; accent-color: #667eea; }
.fx-row input[type=checkbox] { width: 18px; height: 18px; accent-color: #667eea; }
.fx-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-actions button { background: rgba(102,126,234,0.25); border: none; color: #fff; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.fx-tip { font-size: 11px; color: var(--text-secondary); opacity: 0.7; }

/* 移动端：隐藏头部变调变速按钮，改由更多菜单中的「变调变速」项进入 */
@media (max-width: 768px) {
    .fx-header-btn { display: none !important; }
    .fx-menu-item { display: flex; }
    .fx-panel { width: 92%; top: 60px; }
}
