/* =====================================================================
   🛰️ [ SPX-Core-Tokens-Purified ] 顶层全局变量变量舱 (永夜原色版)
   统帅决策：零改动原厂暗色数据，合并深色变量，全面超度浅色杂质
   ===================================================================== */
:root {
    /* 核心主架构变量 —— 100% 锁死原厂深色数值 */
    --font-main: 'Noto Sans SC', 'Segoe UI', Arial, sans-serif;
    --bg-gradient: linear-gradient(135deg, #0b1d1b 0%, #0f2f2c 45%, #123c36 100%);
    --bg-gradient-next: var(--bg-gradient);
    --container-bg: rgba(30, 30, 30, 0.6);
    --container-shadow: rgba(0, 0, 0, 0.3);
    --backdrop-blur: 12px;
    --text-color: #ecf0f1;
    --text-secondary-color: #95a5a6;
    --primary-color: #1abc9c;
    --primary-color-dark: #17a589;
    --warning-color: #e74c3c;
    --success-color: #2ecc71;
    --item-hover-bg: rgba(26, 188, 156, 0.1);
    --item-current-bg: transparent;
    --item-current-text: var(--primary-color);
    --border-color: rgba(255, 255, 255, 0.15);
    --lyrics-highlight-bg: transparent !important;
    --lyrics-highlight-text: #34d1b6;
    --lyrics-highlight-shadow: transparent !important;
    --component-bg: rgba(44, 44, 44, 0.5);
    --scrollbar-thumb-bg: rgba(255, 255, 255, 0.2);
    --scrollbar-track-bg: transparent;
    --body-bg: #0f0f0f;
}

/* =====================================================================
   📦 [ UI-Menus-Purified ] 原厂交互菜单引脚 (剥离 .dark-mode 类依赖)
   ===================================================================== */
.quality-menu {
    background: rgba(44, 44, 44, 0.95);
    border: 2px solid var(--primary-color);
}

.quality-option {
    background: rgba(44, 44, 44, 0.8);
    color: #ecf0f174;
    border-bottom: 1px solid rgba(26, 188, 156, 0.25);
}

.player-quality-menu {
    background: rgba(44, 44, 44, 0.95);
    border-color: var(--primary-color);
}

.player-quality-option {
    color: #ecf0f100;
}

.player-quality-option:hover,
.player-quality-option.active {
    color: #ffffff8a;
}

.source-menu {
    background: rgba(44, 44, 44, 0.95);
    border-color: var(--primary-color);
}

.source-option {
    color: #ecf0f1;
}

.source-option:hover,
.source-option.active {
    color: #ffffff;
}





::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track-bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb-bg); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

body {
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    color: var(--text-color);
    transition: color 0.5s;
    overflow: hidden !important; 
    height: 100dvh !important;
    body { background-color: var(--body-bg) !important;  }
}


.container {
    
    aspect-ratio: auto !important; 

    width: 90% !important; 
    max-width: 1200px !important; 
    margin: 15px auto !important;
    
    height: 90vh !important; 
    max-height: 800px !important; 
    
    border-radius: 28px !important; 

    display: grid;
    align-content: start !important; 
    grid-template-areas:
        "header header header"
        "search search search"
        "cover playlist lyrics"
        "controls controls controls";
    grid-template-rows: auto auto 1fr 100px;
    grid-template-columns: 320px 1fr 1fr;
    gap: 20px;
    
    background: var(--container-bg);
    border-radius: 24px;
    padding: 30px;
    overflow: hidden; 
    position: relative;
    transition: all 0.4s ease;
}

.container.search-mode {
    grid-template-areas: 
        "header header header"
        "search search search"
        "search search search"
        "controls controls controls";
}

.header { 
    grid-area: header;
    text-align: center; 
    position: relative; 
}
.header h1 { 
    margin: 0; 
    font-size: 2.2em; 
    font-weight: 700; 
    color: var(--primary-color); 
    letter-spacing: 1px; 
}
.header .warning { 
    color: var(--text-secondary-color); 
    font-size: 0.9em; 
    margin-top: 10px; 
    font-style: italic; 
}

.search-area {
    grid-area: search;
    background: var(--component-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.search-area *,
.search-area *::before,
.search-area *::after {
    box-sizing: border-box;
}

.container.search-mode .search-area {
    background: var(--component-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
}

.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--component-bg);
    color: var(--text-color);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.source-select-wrapper {
    position: relative;
    flex-shrink: 0;
}

.source-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--component-bg);
    color: var(--text-color);
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 150px;
    position: relative;
    box-shadow: none;
}

.source-select-btn:hover,
.source-select-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--component-bg);
}

.source-select-btn:focus-visible {
    outline: none
}

.source-select-btn .caret-icon {
    font-size: 0.8em;
    transition: transform 0.25s ease;
}

.source-select-btn.active .caret-icon {
    transform: rotate(-180deg);
}

.source-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    bottom: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    min-width: 100%;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    pointer-events: none;
}

.source-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.source-menu.open-upwards {
    top: auto;
    bottom: calc(100% + 10px);
    transform-origin: bottom center;
}

.source-menu.open-downwards {
    top: calc(100% + 10px);
    bottom: auto;
    transform-origin: top center;
}

.source-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.95em;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.source-option:hover,
.source-option.active {
    background: var(--primary-color);
    color: #ffffff;
}

.source-option i {
    font-size: 0.85em;
    opacity: 0.6;
}

.source-option.active i {
    opacity: 1;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
}

.search-btn:disabled {
    background: var(--text-secondary-color);
    cursor: not-allowed;
    transform: none;
}

.search-results {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding-top: 0;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    border-radius: 0 0 14px 14px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-results-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: none;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.container.search-mode .search-results {
    max-height: none;
    height: 100%;
    padding-top: 15px;
    padding-bottom: 20px;
    opacity: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.4s ease forwards;
    gap: 14px;
}

.search-result-item:nth-child(1) { animation-delay: 0.1s; }
.search-result-item:nth-child(2) { animation-delay: 0.15s; }
.search-result-item:nth-child(3) { animation-delay: 0.2s; }
.search-result-item:nth-child(4) { animation-delay: 0.25s; }
.search-result-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-result-item:hover:not(.selected) {
    background: var(--item-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.search-result-item.selected {

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    
    color: var(--primary-color) !important;
    transform: translateX(10px) !important; /* 向右微移，产生逻辑选中感 */
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.search-result-item.selected .search-result-select {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.search-result-item.selected .search-result-title {
    color: var(--primary-color);
}

.search-result-item.selected .search-result-select {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.search-result-item.selected .search-result-select i {
    opacity: 1;
    transform: scale(1);
}

.search-result-select {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.65);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-result-select i {
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
    pointer-events: none;
}

.search-result-select:focus-visible {
    outline: none;
}

.search-result-item .search-result-select:hover {
    border-color: var(--primary-color);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    margin-bottom: 4px;
}

.search-result-artist {
    font-size: 13px;
    color: var(--text-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.import-selected-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.import-selected-btn:disabled {
    cursor: not-allowed;
    background: rgba(127, 140, 141, 0.5);
    box-shadow: none;
    filter: none;
}

.import-selected-btn:not(:disabled):hover,
.import-selected-btn:not(:disabled):focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.import-selected-btn:focus-visible {
    outline: none;
}

.import-selected-count {
    font-weight: 500;
}

.action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 10000;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.action-btn.download {
    background: var(--success-color);
    padding: 4px 8px;
    font-size: 10px;
}

.action-btn.download:hover {
    background: #27ae60;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.main-content {
    display: contents;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.search-mode .main-content {
    display: none;
}

.cover-area {
    grid-area: cover;
    background: var(--component-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-cover {
    width: 200px;
    height: auto;
    min-height: 200px;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.album-cover.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.album-cover .placeholder {
    font-size: 48px;
    color: white;
    opacity: 0.8;
}

.current-song-info {
    width: 100%;
}

.current-song-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-song-artist {
    font-size: 14px;
    color: var(--text-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist, .lyrics {
    background: var(--component-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    height: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.playlist {
    grid-area: playlist;
    background: var(--component-bg);
    border-radius: 16px;
    padding: 72px 20px 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    box-sizing: border-box;
}


.playlist-header {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
    z-index: 5;
}

.playlist-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-secondary-color);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    pointer-events: none;
    text-transform: none;
    white-space: nowrap;
}

html.desktop-view body.dark-mode .playlist-label {
    color: var(--text-color);
}

html.mobile-view .playlist-label {
    display: none;
}

.playlist-actions-tray {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

body.dark-mode .playlist-actions-tray {
    background: transparent;
    border: none;
    box-shadow: none;
}

.playlist-action-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-secondary-color);
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

body.dark-mode .playlist-action-btn {
    background: rgba(24, 30, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    color: var(--text-secondary-color);
}

.playlist-action-btn i {
    pointer-events: none;
}

.playlist-action-btn:hover:not(:disabled),
.playlist-action-btn:focus-visible:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(26, 188, 156, 0.25);
    filter: brightness(1.06);
    border-color: rgba(26, 188, 156, 0.4);
    color: var(--primary-color);
}

.playlist-action-btn:focus-visible {
    outline: none;
}

.playlist-action-btn--export:hover:not(:disabled),
.playlist-action-btn--export:focus-visible:not(:disabled) {
    color: var(--primary-color-dark);
}

.playlist-action-btn--clear {
    color: rgba(231, 76, 60, 0.85);
    border-color: rgba(231, 76, 60, 0.28);
}

.playlist-action-btn--clear:hover:not(:disabled),
.playlist-action-btn--clear:focus-visible:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 16px 32px rgba(231, 76, 60, 0.28);
    color: var(--warning-color);
}

.playlist-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
}

.playlist-action-btn:disabled:hover {
    background: transparent;
}

.playlist-import-input {
    display: none;
}

html.mobile-view .playlist-header {
    display: none;
}

.playlist:not(.empty) {
    align-items: stretch;
    justify-content: flex-start;
}

.playlist.empty::before {
    content: "点击\"探索雷达\"加载在线音乐";
    color: var(--text-secondary-color);
    font-style: italic;
    opacity: 0.7;
    font-size: 0.9em;
}

.playlist-scroll {
    flex: 1;
    width: 100%;
    overflow-y: scroll !important; 
    padding-right: 4px;
    margin-right: 0; 
    overscroll-behavior: contain;
    transform: translateZ(0);
}

.playlist-scroll::-webkit-scrollbar {
    width: 4px; 
}
.playlist-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.playlist-items .playlist-item {
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    font-size: 14px;
    margin-bottom: 2px;
    border-left: 4px solid transparent;
}

.playlist-items .playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary-color) !important; 
    padding-left: 25px !important; 
    transform: none !important; 
    font-weight: 700;
}

.playlist-items .playlist-item.current {
    background-color: transparent !important; 
    color: var(--primary-color) !important; 
    font-weight: 700;
    border-left: 4px solid var(--primary-color) !important; 
    padding-left: 20px !important;
    transform: none !important;
    box-shadow: none !important;
}

.playlist-item-download {
    position: absolute;
    right: 35px; 
    top: 50%;
    transform: translateY(-50%);
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-items .playlist-item:hover .playlist-item-download {
    opacity: 1;
}

.playlist-item-download:hover {
    background: var(--success-color-hover);
    transform: translateY(-50%) scale(1.05);
}

.playlist-item-remove {
    position: absolute;
    right: 8px; /* Adjusted position */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 59, 48, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-items .playlist-item:hover .playlist-item-remove {
    opacity: 1;
}

.playlist-item-remove:hover {
    background: rgba(255, 59, 48, 1);
    transform: translateY(-50%) scale(1.05);
}

.dynamic-quality-menu {
    background: var(--component-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 150px;
    animation: fadeIn 0.2s ease;
}

.dynamic-quality-menu .quality-option {
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: var(--text-color);
}

.dynamic-quality-menu .quality-option:hover {
    background: var(--primary-color);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.lyrics {
    grid-area: lyrics;
    text-align: center;
    font-size: 1em;
    line-height: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.lyrics-scroll {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 8px;
    margin-right: -8px;
    overscroll-behavior: contain;
}

.lyrics:not(.empty) .lyrics-scroll {
    align-items: flex-start;
    justify-content: flex-start;
}

.lyrics-content {
    width: 100%;
}

.lyrics-content > div {
    white-space: pre-wrap;
    padding: 5px;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.lyrics.empty[data-placeholder="default"] .lyrics-content {
    display: none;
}

.lyrics.empty[data-placeholder="default"] .lyrics-scroll::before {
    content: "歌词将在此处同步显示";
    color: var(--text-secondary-color);
    font-style: italic;
    opacity: 0.7;
    font-size: 0.9em;
}

.lyrics.empty[data-placeholder="message"] .lyrics-scroll::before {
    content: none !important;
}

.controls {
    grid-area: controls;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.controls button:hover { 
    background: var(--primary-color-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); 
}
.controls button:active { 
    transform: translateY(0); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}
.controls button#loadOnlineBtn { 
    width: auto; 
    border-radius: 25px; 
    padding: 0 25px; 
    gap: 10px; 
}
.controls button:disabled { 
    background: var(--text-secondary-color); 
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none; 
}
.transport-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

html:not(.mobile-view) #playModeBtn {
    margin-right: 8px;
}

#mobileQueueToggle {
    display: none;
}

#playPauseBtn {
    width: 60px;
    height: 60px;
    font-size: 1.4em;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 320px;
    min-width: 260px;
}

.progress-container span {
    font-variant-numeric: tabular-nums;
    font-size: 0.85em;
    color: var(--text-secondary-color);
}

.progress-container input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--progress, 0%), rgba(255, 255, 255, 0.5) var(--progress, 0%), rgba(255, 255, 255, 0.2) 100%);
    cursor: pointer;
    transition: background 0.2s ease;
}

.audio-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.volume-container input[type="range"] {
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--volume-progress, 100%), rgba(255, 255, 255, 0.2) var(--volume-progress, 100%), rgba(255, 255, 255, 0.1) 100%);
    cursor: pointer;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

input[type="range"]:active::-webkit-slider-thumb,
input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.1);
}

.player-quality {
    position: relative;
}

.controls .player-quality-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--component-bg);
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    height: auto;
    box-shadow: none;
}

.controls .player-quality-btn:hover,
.controls .player-quality-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(26, 188, 156, 0.25);
    background: var(--component-bg);
}

.player-quality-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 180px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    pointer-events: none;
}

.player-quality-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.player-quality-menu.floating {
    position: fixed;
    right: auto;
    left: 0;
    top: 0;
    will-change: opacity, transform;
}

.player-quality-menu.floating:not(.show) {
    opacity: 0;
    visibility: hidden;
}

.player-quality-menu.open-upwards {
    transform-origin: bottom center;
}

.player-quality-menu.open-downwards {
    transform-origin: top center;
}

.player-quality-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.9em;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-quality-option:hover,
.player-quality-option.active {
    background: var(--primary-color);
    color: white;
}

.player-quality-option small {
    opacity: 0.7;
}

#audioPlayer {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.play-mode-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.play-mode-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.play-mode-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.play-mode-btn.active {
    background: var(--primary-color);
    color: white;
}

.quality-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 999999;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.search-result-item {
    position: relative;
    z-index: 1;
}

.search-result-item:has(.quality-menu.show) {
    z-index: 1000000;
}

.search-result-item.menu-active {
    z-index: 1000000;
}

.quality-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.quality-option {
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(26, 188, 156, 0.18);
}

.quality-option:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(2px);
}

.quality-option:first-child {
    border-radius: 6px 6px 0 0;
}

.quality-option:last-child {
    border-radius: 0 0 6px 6px;
    border-bottom: none;
}

.load-more-btn {
    width: 100%;
    background: var(--component-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    background: var(--text-secondary-color);
    border-color: var(--text-secondary-color);
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.debug-info {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10000;
    max-width: 300px;
    display: none;
}

.debug-info.show {
    display: block;
}

.loader { 
    width: 20px; 
    height: 20px; 
    border: 3px solid var(--primary-color); 
    border-bottom-color: transparent; 
    border-radius: 50%; 
    display: inline-block; 
    box-sizing: border-box; 
    animation: rotation 1s linear infinite; 
}
@keyframes rotation { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.theme-switch-wrapper {
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    justify-content: flex-end;
}

.theme-toggle-button {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
}

.theme-toggle-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.25);
}

.theme-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.theme-toggle-button.is-dark {
    background: linear-gradient(160deg, rgba(36, 42, 54, 0.9), rgba(24, 30, 42, 0.7));
    border-color: rgba(26, 188, 156, 0.45);
}

.theme-toggle-button .theme-icon {
    position: absolute;
    font-size: 18px;
    transition: opacity 0.35s ease, transform 0.45s ease;
    opacity: 0;
    transform: scale(0.6) rotate(-20deg);
}

.theme-toggle-button .theme-icon--sun {
    color: #f5a623;
    text-shadow: 0 0 10px rgba(245, 166, 35, 0.4);
}

.theme-toggle-button .theme-icon--moon {
    color: #a29bfe;
    text-shadow: 0 0 10px rgba(162, 155, 254, 0.4);
    transform: scale(0.6) rotate(20deg);
}

.theme-toggle-button:not(.is-dark) .theme-icon--sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle-button.is-dark .theme-icon--moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: var(--warning-color);
}

.notification.warning {
    background: #f39c12;
}

.view-toggle {
    display: none;
}

.mobile-panel {
    display: contents;
}

.mobile-turntable {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.mobile-turntable__platter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
}

.action-btn.favorite.active i, 
.action-btn.favorite.active {
    color: #ff4d4d !important; 
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.3));
}

.action-btn.favorite.active, 
.action-btn.active i,
.playlist-item .fa-heart.active,
#favoriteBtn.active {
    color: #ff4d4d !important;
    transform: scale(1.2);
    transition: all 0.2s ease;
}

.action-btn.favorite {
    background: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   🛰️ SPX-Core UI 重构：彻底告别土味大风车，换装【6s慢阻尼悬浮呼吸方盘】
   ========================================================================== */

/* 1. 注入灵魂：定义 6 秒慢阻尼垂直悬浮与呼吸阴影动画 */
@keyframes album-breathe {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    50% {
        transform: translateY(-8px) scale(1.02); /* 微微悬浮上移，伴随 1.02 倍极度克制的微张张力 */
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15); /* 阴影随下沉扩散 */
    }
}

/* 2. 核心封面容器：物理超度 50% 纯圆，改用高贵 24px 艺术方圆 */
.album-cover {
    border-radius: 24px !important; /* 彻底掰直！高贵大圆角方盘 */
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* 顶级艺术品级的阻尼感过渡 */
}

/* 3. 播放状态：无情掐断 360 度旋转，并网点火 6 秒悬浮呼吸模式 */
.is-playing .album-cover img {
    animation: album-breathe 6s cubic-bezier(0.33, 1, 0.68, 1) infinite; /* 完美的慢阻尼正弦回弹曲线 */
    border-radius: 24px !important; /* 图片与外壳完美对齐 */
}

/* 4. 暂停状态：优雅定格，不突兀回弹 */
body:not(.is-playing) .album-cover img {
    animation-play-state: paused;
}

.search-auth-btn {
    height: 100%; 
    background: #000; 
    color: var(--primary-color); 
    border: 1px solid rgba(0,170,255,0.3);
    border-radius: 8px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex; 
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-auth-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(0,170,255,0.4);
}


.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 99999; 
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}
.auth-overlay.open { opacity: 1; visibility: visible; }


.auth-modal {
    background: #0a0a0a;
    width: min(360px, 90%);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(0,170,255,0.4);
    position: relative;
    text-align: center;
    box-shadow: 0 0 50px rgba(0,170,255,0.25);
}

.close-auth { position: absolute; top: 15px; right: 15px; color: #555; cursor: pointer; }
.close-auth:hover { color: var(--primary-color); }
.auth-logo { width: 50px; height: 50px; margin-bottom: 20px; }
.auth-header h2 { color: #fff; margin-bottom: 8px; font-weight: 300; letter-spacing: 2px; }
.auth-header p { color: #888; font-size: 0.85rem; margin-bottom: 25px; }
.input-group { position: relative; margin-bottom: 12px; }
.input-group i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #444; }
.input-group input { width: 100%; padding: 12px 12px 12px 38px; background: #111; border: 1px solid #222; border-radius: 8px; color: #fff; font-size: 0.9rem; }
.input-group input:focus { border-color: var(--primary-color); outline: none; }
.auth-submit-btn { width: 100%; padding: 12px; background: var(--primary-color); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; margin-top: 15px; transition: background 0.3s; }
.auth-submit-btn:hover { background: #0099ff; }

@media (max-width: 768px) {
    .search-auth-btn span { display: none; }
    .search-auth-btn { padding: 0 12px; height: 40px; }
    .search-container { gap: 10px; } 
}

.search-auth-btn .auth-text {
    display: inline-block !important; 
    margin-left: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.search-auth-btn.logged-in {
    background: rgba(40, 167, 69, 0.15) !important;
    border: 1px solid #28a745 !important;
    color: #28a745 !important;
}

@media (max-width: 768px) {
    .search-container {
        gap: 8px; 
    }
    .search-auth-btn {
        padding: 0 10px;
        min-width: 85px;
    }
}

.search-auth-btn.logged-in {
    position: relative;
    overflow: hidden;
    background: rgba(40, 167, 69, 0.1) !important;
    border: 1px solid #28a745 !important;
    color: #28a745 !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
    animation: auth-pulse 3s infinite ease-in-out;
}

.search-auth-btn.logged-in {
    background: linear-gradient(135deg, #1e7e34, #28a745) !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
    animation: auth-glow 3s infinite alternate; 
}

.search-auth-btn.logged-in::after {
    content: '';
    position: absolute;
    top: -50%; left: -150%;
    width: 100%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(25deg);
    animation: auth-scan 4s infinite linear;
}

@keyframes auth-glow {
    from { box-shadow: 0 0 5px rgba(40, 167, 69, 0.3); transform: scale(1); }
    to { box-shadow: 0 0 20px rgba(40, 167, 69, 0.6); transform: scale(1.02); }
}

@keyframes auth-scan {
    0% { left: -150%; }
    100% { left: 150%; }
}

#pwa-splash {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #0d1b3e; /* 星空蓝 */
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media (display-mode: browser) {
    #pwa-splash { display: none; }
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-20px);
}

.logo-container {
    position: relative;
    width: 120px; height: 120px;
    margin-bottom: 30px;
}

.splash-img {
    width: 100%; height: 100%;
    border-radius: 22%;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
    z-index: 5; position: relative;
}

.pulse-wave, .pulse-wave-delayed {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    border: 2px solid #00f2fe; border-radius: 22%;
    z-index: 1; opacity: 0;
    animation: wavePulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.pulse-wave-delayed { animation-delay: 1.2s; }

@keyframes wavePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.splash-title {
    color: #fff; font-size: 48px; margin: 0;
    letter-spacing: 12px; font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.splash-subtitle {
    color: rgba(0, 242, 254, 0.5); font-size: 12px;
    margin-top: 15px; letter-spacing: 4px; font-weight: 300;
}

.loading-bar-container {
    width: 160px; height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 10px; border-radius: 2px; overflow: hidden;
}
.loading-bar-fill {
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, #00f2fe, transparent);
    animation: loadingSlide 2s infinite linear;
}
@keyframes loadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}



:root {
    --text-color: #2c3e50; /* 默认：浅色模式深灰字 */
    --body-bg: #f5f5f7;    /* 默认：浅色模式苹果白 */
}

/* 统帅，请确保您的 JS 切换的是 .dark-mode 类 */
.dark-mode {
    --text-color: #ecf0f1; /* 深色模式：亮白字 */
    --body-bg: #0f0f0f;    /* 深色模式：极客黑 */
}

/* 🛠️ 关键并网：让底色跟随变量（必须修改这一行！） */
body {
    background-color: var(--body-bg) !important;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* =====================================================================
   🎯 统帅战术控制中心：全景深 1-2-3-2-1 像素对焦系统（无伤修复版）
   ===================================================================== */

/* 2. 基础歌词：PC/移动通用物理对焦 */
.lyrics-content div, 
.mobile-inline-lyrics__content div {
    color: var(--text-color) !important; 
    opacity: 0.35; /* 降低背景噪音 */
    
    /* 🛠️ 黄金呼吸阻尼 */
    transition: 
        opacity 0.45s ease, 
        color 0.4s ease, 
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
        
    transform: scale(1);
    filter: none !important;
    text-shadow: none !important; /* 🚫 绝杀阴影 */
}

/* 3. PC 正常模式专用：1% 精度间距限制 */
@media (min-width: 821px) {
    body:not(.desktop-immersive) #lyrics .lyrics-content div {
        font-size: 1.15rem !important; 
        line-height: 1.8 !important;
        margin-bottom: 12px !important;
    }
}

/* 🛠️ 双端基础高亮联动舱 */
.lyrics .current,
.lyrics-content div.current, 
.mobile-inline-lyrics__content div.current {
    color: #00ffcc89 !important; /* 👑 物理绝杀 89 毒素，输出 100% 纯正极光青 */
    opacity: 1 !important;
    transform: scale(1) translateZ(0) !important; 
    font-weight: bold !important;
    background-color: transparent !important;
}

/* =====================================================================
   🖥️ [ SPX-Desktop-Immersive-Overhaul ] 桌面全景沉浸巨幕舱 (821px+ 终极版)
   ===================================================================== */
@media (min-width: 821px) {
    
    body.desktop-immersive .header,
    body.desktop-immersive .search-area,
    body.desktop-immersive .playlist {
        display: none !important;
    }
    
    body.desktop-immersive .container {
        position: fixed;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        padding: 40px 8vw !important;
        box-sizing: border-box;
        z-index: 200000 !important;
        display: grid !important; 
        grid-template-areas:
            "cover lyrics"
            "controls controls";
        grid-template-columns: 1fr 1.2fr;
        grid-template-rows: 1fr 80px;
        gap: 30px;
        background: var(--container-bg) !important;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }

    body.desktop-immersive .cover-area {
        background: transparent !important;
        border: none !important;
        padding: 0;
        justify-content: center;
    }

    body.desktop-immersive .album-cover {
        width: 35vh !important;
        height: 35vh !important;
        max-width: 350px;
        max-height: 350px;
    }
    
    body.desktop-immersive #lyrics {
        background: transparent !important;
        border: none !important;
        height: 100% !important;
    }

    body.desktop-immersive .current-song-title {
        font-size: 2.2rem !important;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.88) !important;
        margin-bottom: 10px;
        text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    body.desktop-immersive .current-song-artist {
        font-size: 1.3rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    body.desktop-immersive #lyrics::-webkit-scrollbar {
        width: 2px !important;
    }
    body.desktop-immersive #lyrics::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.05) !important;
    }

     body.desktop-immersive .lyrics-scroll {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        
        /* 💡 黄金对焦位：上边距缩短至 38vh，下边距拉长至 62vh，滚动时焦点歌词自动停留在中轴线偏上 12% 处 */
        padding: 38vh 0 62vh !important; 
        
        box-sizing: border-box !important;
        scroll-behavior: smooth;
        
        /* 🛠️ 光学面罩同步上提：调整消隐渐变拐点（15%->10%，85%->92%），下方能看到的歌词瞬间变多 */
        mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 92%, transparent 100%) !important;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 92%, transparent 100%) !important;
    }

    /* 🛰 Honor-Desktop 1-2-3-2-1 纯超柔曲线大屏并网 */

    /* 【 0级/1级仓 · 远端普通歌词 】 */
    body.desktop-immersive .lyrics-content div {
        opacity: 0.15; 
        font-size: 1.7rem; /* 微调基础字号，增强层级反差 */
        line-height: 2;
        margin-bottom: 24px; 
        white-space: normal !important;
        word-break: break-word !important;
        
        /* 统一同步超柔速率，彻底粉碎高频重算导致的卡顿 */
        transition:
            opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
            color 0.5s ease !important;
            
        transform: scale(0.85) translateZ(0); 
    }

    /* 【 1.5级仓 · 二线预备句 】 */
    body.desktop-immersive .lyrics-content div:has(+ div + div.current),
    body.desktop-immersive .lyrics-content div.current + div + div {
        opacity: 0.42 !important;
        transform: scale(0.92) translateZ(0) !important;
    }

    /* 【 2级仓 · 一线护航句 】 */
    body.desktop-immersive .lyrics-content div:has(+ div.current),
    body.desktop-immersive .lyrics-content div.current + div {
        opacity: 0.72 !important;
        color: rgba(255, 255, 255, 0.85) !important;
        transform: scale(0.98) translateZ(0) !important;
    }

    /* 【 3级仓 · 沉浸王牌主歌词 】 */
    body.desktop-immersive .lyrics-content div.current {
        opacity: 1 !important;
        color: #00ffcc89 !important; /* 彻底剔除带不透明度的 89 尾缀，饱和度打满 */
        transform: scale(1.08) translateZ(0) !important; 
        font-weight: 700 !important;
    }
}

@media (max-width: 820px) {
    
    /* [原厂固化隐藏流] 保持不变 */
    body.mobile-inline-lyrics-open .mobile-turntable,
    body.mobile-inline-lyrics-open .current-song-info,
    body.mobile-inline-lyrics-open .header,
    body.mobile-inline-lyrics-open .mobile-toolbar,
    body.mobile-inline-lyrics-open .progress-container,
    body.mobile-inline-lyrics-open .controls {  
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease;
        height: 88dvh !important;
        display: flex !important; 
        flex-direction: column !important;
        border-radius: 28px !important; 
        margin: 10px auto !important;
        padding: 20px !important;
    }

    #lyrics {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        will-change: scroll-position;
        transform: translateZ(0); 
    }

    /* 全屏歌词沉浸幕布 */
    .mobile-inline-lyrics {
        display: none; 
        position: fixed;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 100000 !important;
        flex-direction: column;
        border: none !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        background: rgba(4, 6, 10, 0.4) !important; /* 稍微加深底色，强化极光对比 */
        backdrop-filter: blur(45px) saturate(160%) brightness(0.6) !important;
        -webkit-backdrop-filter: blur(45px) saturate(160%) brightness(0.6) !important;
        will-change: transform;
        transform: translateZ(0); 
    }
    .mobile-inline-lyrics.active { display: flex !important; }
    
    .mobile-inline-lyrics__hint { 
        display: flex !important; 
        justify-content: flex-start !important; 
        width: 100% !important;
        padding-left: 20px !important;
    }
    .mobile-inline-lyrics__hint span {
        font-size: 0.9rem;
        opacity: 0.7;
        color: rgba(255, 255, 255, 0.75) !important;
    }

    /* 🎯 战术动作 1：加装全局「 离子羽化面罩 」，让头尾两端的歌词自然淡入虚无 */
    .mobile-inline-lyrics__scroll {
        flex: 1;
        width: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 50vh 0 50vh !important; 
        box-sizing: border-box;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%) !important;
        mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%) !important;
    }

    .mobile-inline-lyrics__content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-left: 1% !important;
        width: 90% !important;
        box-sizing: border-box;
        text-align: center !important;
        -webkit-transform-style: preserve-3d !important;
        transform-style: preserve-3d !important;
    }

    /* =====================================================================
       🛰️ [ 1-2-3-2-1 递进式粒子轨道系统 ]
       通过全新 CSS 拓扑，完全不依赖 JS，由显卡硬件直接动态渲染
       ===================================================================== */

    /* 【 0级/1级仓 · 远端普通歌词 】：默认极低不透明度，大幅度缩小，完全退入大背景 */
    .mobile-inline-lyrics__content div {
        opacity: 0.22 !important; /* 极薄雾化 */
        color: rgba(255, 255, 255, 0.4) !important;
        line-height: 1.6 !important;
        padding: 12px 10px !important; /* 适度拉开行距，增强空间感 */
        font-size: 1.25rem !important; 
        transition: 
            opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            color 0.4s ease !important;
            
        will-change: opacity, transform;
        transform: scale(0.85) translateZ(0) !important; /* 远端基准缩放 */
    }

    /* 【 1.5级仓 · 二线邻近句 】：当前句的前两句、后两句，亮度中等抬头 */
    .mobile-inline-lyrics__content div:has(+ div + div.current),   /* 前第2句 */
    .mobile-inline-lyrics__content div.current + div + div {         /* 后第2句 */
        opacity: 0.45 !important;
        color: rgba(255, 255, 255, 0.65) !important;
        transform: scale(0.93) translateZ(0) !important;
    }

    /* 【 2级仓 · 一线伴生句 】：当前句的正上方那一句、正下方那一句，高明亮护航 */
    .mobile-inline-lyrics__content div:has(+ div.current),       /* 正上方邻居 */
    .mobile-inline-lyrics__content div.current + div {             /* 正下方邻居 */
        opacity: 0.75 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        transform: scale(1.01) translateZ(0) !important;
    }

    /* 【 3级仓 · 王牌主歌词 】：绝对焦点，100% 纯净极光青，高纯度霓虹爆裂 */
    .mobile-inline-lyrics__content div.current {
        opacity: 1 !important;
        /* 💡 提亮纠偏：拔除原本带透明度的 89 尾缀，换上 100% 满配发光极光青 */
        color: #00ffcc89 !important; 
        transform: scale(1.08) translateZ(0) !important; 
        font-weight: 700 !important;
        /* 注入高规格激光透镜晕染，使其在 45px 磨砂背景上如同神迹一般立体 */
    }
}

.about-dashboard { text-align: center; color: #fff; }
.dashboard-title { color: #00ffcc; font-size: 1.4rem; font-weight: 800; letter-spacing: 4px; }
.dashboard-subtitle { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-bottom: 25px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.about-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,255,204,0.1);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.about-card:hover { border-color: #00ffcc; background: rgba(0,255,204,0.05); }

.card-header { display: flex; align-items: center; gap: 8px; color: #00ffcc; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
.card-body { font-size: 0.8rem; line-height: 1.6; color: #ccc; }
/* === [V2026.0415：右舷 HUD 阵列 · 精简全息版] === */
.lkm-toast-container {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 20px);
    left: 15px; /* 🛠️ 靠右悬浮 */
    z-index: 10000000; /* 确保在所有 Modal 之上 */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.lkm-toast {
    pointer-events: auto;
    min-width: 150px;
    max-width: 240px;
    /* 🛠️ 水晶质感：与您的 Mothership 面板视觉对齐 */
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* 🛠️ 变色灵魂：动态同步当前主题色 */
    border-left: 3px solid var(--theme-color, #00ffcc) !important;
    border-radius: 6px; /* 🛠️ 对应 db-card 的硬朗感 */
    color: #ffffff;
    padding: 10px 16px;
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* 滑入动画 */
    transform: translateX(130%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lkm-toast.show { transform: translateX(0); opacity: 1; }
.lkm-toast.hide { transform: translateX(130%); opacity: 0; }
.lkm-toast.error { border-left-color: #ff4d4d !important; }
/* === [V2026.0415：LKM 无影全息视窗协议 · 最终精修版] === */

/* 1. 统一遮罩层 */
.lkm-modal-overlay {
    display: none; 
    position: fixed; inset: 0; 
    background: rgba(0, 0, 0, 0.5); /* 🛠️ 轻微加深背景，增加沉浸感 */
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    z-index: 9999999; 
    justify-content: center; align-items: center;
}

/* 2. 统一水晶盒：无影禁区 */
.lkm-crystal-box {
    /* 🛠️ 匹配播放列表：烟熏透明感 */
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.03) 100%) !important;
    backdrop-filter: blur(45px) saturate(220%) brightness(1.1);
    -webkit-backdrop-filter: blur(45px) saturate(220%) brightness(1.1);
    
    padding: 35px 25px; border-radius: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    
    width: 90%; max-width: 400px; 
    box-shadow: none !important; /* 🛠️ 禁影令：永久物理剥离盒子阴影 👉👈 */
    animation: lkm-panel-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 3. 动态变色与无影文字 */
.db-title, .db-label, .db-sub {
    color: var(--theme-color, #00ffcc) !important;
    text-shadow: none !important; /* 🛠️ 禁影令：剥离文字阴影 */
    font-weight: 800;
}
.db-sub { color: rgba(255,255,255,0.4) !important; }

/* 🛠️ 关于 UI 里的图标同步剥离阴影 */
.db-card i {
    color: var(--theme-color, #00ffcc) !important;
    text-shadow: none !important;
}

/* 4. 确认按钮：禁影高能脉冲 */
.lkm-btn-primary {
    background: var(--theme-color, #00ffcc) !important;
    color: #000 !important; font-weight: 800; border: none;
    padding: 15px; border-radius: 14px; width: 100%; cursor: pointer;
    box-shadow: none !important; /* 🛠️ 禁影令：剥离按钮阴影 👉👈 */
    font-size: 1.4rem; transition: all 0.2s;
}
.lkm-btn-primary:active { transform: scale(0.96); filter: brightness(1.2); }

/* === [V2026.0415：LKM 1%精度模块化无影水晶协议] === */

/* 1. 统一遮罩与水晶盒：物理压缩居中对焦 👉👈 */
.lkm-modal-overlay, #authOverlay {
    display: none; position: fixed; inset: 0; 
    background: rgba(0, 0, 0, 0.45) !important; 
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    z-index: 10000000 !important; 
    justify-content: center; align-items: center;
}

.lkm-crystal-box, .auth-content-box {
    /* 🛠️ 烟熏水晶质感：随音变色色彩流山 */
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.05) 100%) !important;
    backdrop-filter: blur(50px) saturate(220%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(50px) saturate(220%) brightness(1.1) !important;
    
    padding: 30px 20px !important; border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
    
    /* 🛠️ 统帅指令：保持旧 UI 精致尺寸 (310px) */
    width: 82% !important; max-width: 310px !important;
    
    box-shadow: none !important; /* 🛠️ 禁影令：物理湮灭所有阴影 👉👈 */
    display: flex; flex-direction: column; align-items: center; text-align: center;
    animation: lkm-panel-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 2. 核心头部：耳机图标绝对中轴对焦 */
.auth-header, .db-header {
    width: 100% !important; display: flex; flex-direction: column; 
    align-items: center !important; justify-content: center !important;
}

.db-icon-main {
    color: var(--theme-color, #00ffcc) !important; /* 🛠️ 色彩并网同步 */
    font-size: 2.8rem !important; margin-bottom: 12px !important;
    text-shadow: none !important; /* 🛠️ 禁影令 👉👈 */
    display: block !important; margin-inline: auto !important;
}

.db-title { 
    color: var(--theme-color, #00ffcc) !important;
    font-size: 1.4rem !important; font-weight: 800; letter-spacing: 3px; 
    text-shadow: none !important; /* 🛠️ 禁影令 👉👈 */
}

.db-sub { 
    font-size: 0.75rem !important; color: rgba(255,255,255,0.4) !important;
    margin-bottom: 20px !important; letter-spacing: 1px;
}

/* 3. 关于面板专用：卡片阵列 */
.db-grid { 
    display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; 
    /* 🛠️ 核心修复：增加底部边距，防止与按钮“合一块” */
    margin-bottom: 25px !important; 
    max-height: 350px;
    overflow-y: auto;
}

.db-card { 
    background: rgba(255, 255, 255, 0.04) !important; padding: 12px; 
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: left;
}
.db-label { color: var(--theme-color, #00ffcc) !important; font-weight: 800; font-size: 0.9rem; margin-bottom: 4px; display: block; }
.db-body { color: rgba(255, 255, 255, 0.7) !important; font-size: 0.95rem; line-height: 1.5; }

/* 4. 确认按钮：独立模块化对焦 */
.lkm-btn-primary {
    background: var(--theme-color, #00ffcc) !important;
    color: #000 !important; font-weight: 800; border: none;
    padding: 14px; border-radius: 12px; width: 100%; 
    font-size: 1.3rem; cursor: pointer;
    box-shadow: none !important; /* 🛠️ 禁影令 👉👈 */
    
    /* 🛠️ 增加顶部微量间距，确保 100MHz 频段的独立性 */
    margin-top: 5px !important; 
    transition: all 0.2s;
}
.lkm-btn-primary:active { transform: scale(0.96); filter: brightness(1.2); }

/* 5. 登录表单：微缩图标与物理对齐 */
.lkm-form { width: 100% !important; display: flex; flex-direction: column; gap: 12px; }
.lkm-form .input-group { position: relative; display: flex; align-items: center; width: 100%; }

.lkm-form .input-group i { 
    position: absolute; left: 15px; 
    font-size: 1.0rem !important; 
    color: var(--theme-color, #00ffcc) !important; 
    z-index: 10; text-shadow: none !important; /* 🛠️ 禁影令 👉👈 */
}

.lkm-form input {
    width: 100% !important; padding: 12px 12px 12px 42px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important; color: #fff; font-size: 1.2rem;
    outline: none; box-shadow: none !important; /* 🛠️ 禁影令 👉👈 */
    box-sizing: border-box; transition: all 0.3s;
}

/* 动画：入场 */
@keyframes lkm-panel-appear {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 🚀 [ 1mV 精度：450SR-S 极化雷达指挥部 ] */
.radar-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh;
    background: rgba(10, 14, 26, 0.8) !important; 
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    z-index: 100000; display: none; flex-direction: column;
    padding: env(safe-area-inset-top) 0 0 0; box-sizing: border-box;
}

/* 🚀 顶部指挥条：锁定高度，防止被挤压 */
.radar-header {
    flex-shrink: 0; display: flex; flex-direction: column;
    padding: 15px 12px 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-row { 
    display: flex; align-items: center; justify-content: space-between; 
    height: 40px; position: relative;
}

/* 物理级巨型返回键：左侧引脚 */
.radar-back-btn {
    width: 44px; height: 40px; display: flex; align-items: center; 
    justify-content: flex-start; cursor: pointer; z-index: 10;
}

/* 动态战区标题：居中对齐，强制溢出隐藏 */
#radarTitle {
    position: absolute; left: 0; right: 0; text-align: center;
    font-size: 15px; font-weight: 900; color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
    pointer-events: none; /* 防止遮挡按钮 */
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 0 50px;
}

/* 机械切换器：吕（你）最爱的版本 */
.radar-mode-toggle {
    display: flex; background: rgba(0, 0, 0, 0.5); border-radius: 10px;
    padding: 3px; border: 1px solid rgba(255, 255, 255, 0.1); margin-top: 10px;
}
.mode-btn {
    flex: 1; padding: 6px; font-size: 11px; text-align: center; border-radius: 8px;
    color: rgba(255, 255, 255, 0.4); cursor: pointer; transition: 0.3s;
}
.mode-btn.active {
    background: rgba(0, 242, 254, 0.2); color: #00f2fe;
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.2);
}

/* 🚀 内容区：物理级栅格锁死 */
.radar-content {
    flex: 1; overflow-y: auto; padding: 15px 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}

.playlist-grid, .song-grid {
    display: grid; 
    /* 🎯 [ 核心爆破 ]：强制每列 25% 宽度，绝不平摊 */
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 15px 8px; align-items: start;
}

/* 极化卡片：锁定点击域与尺寸 */
.playlist-card, .song-card {
    display: flex; flex-direction: column; cursor: pointer; 
    width: 100%; min-width: 0; /* 物理防挤压 */
}

.card-cover-box {
    width: 100%; aspect-ratio: 1/1; border-radius: 6px; 
    overflow: hidden; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); position: relative;
}
.card-cover-box img { 
    width: 100%; height: 100%; object-fit: cover; 
    display: block; /* 爆破手机端图片下间距 */
}

/* 强制文字居中与高度：解决一上一下的关键 */
.card-title {
    margin-top: 6px; font-size: 9px; color: #ddd;
    height: 12px; line-height: 12px; text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


@media screen and (min-width: 1025px) {
    /* 🚀 把手机专属的导航拨片、收藏舱、记录舱，在电脑上统统抹除！ */
    .mobile-tactical-nav, 
    #favorites, 
    #history {
        display: none !important;
    }
}

/* 🚀 1. 确保面板内部的视图容器能够正确伸缩 */
.mobile-view-content.active {
    display: flex !important;
    flex-direction: column;
    flex: 1;            /* 关键：占据面板除去头部和拨片后的所有空间 */
    min-height: 0;      /* 关键：防止 Flex 子项溢出而不触发滚动 */
    overflow: hidden;   /* 裁剪掉直接溢出，交给下一级处理 */
}

/* 🚀 2. 真正的滚动载荷舱 */
.playlist-scroll {
    flex: 1;            /* 占满 active 容器的所有垂直空间 */
    min-height: 0;      /* 再次声明，双重保险 */
    overflow-y: auto !important; /* 强制开启垂直滚动 */
    
    /* 解决手机端触摸粘滞感 */
    -webkit-overflow-scrolling: touch; 
    overscroll-behavior: contain;
    touch-action: pan-y;
}

/* 🚀 3. 修正：不要让最外层的 mobile-panel 拦截滚动 */
body.mobile-view .mobile-panel {
    /* 吕（你）原来的代码里如果有 overflow: hidden 没关系，但下面这行要改 */
    touch-action: auto !important; 
}


/* 🚀 当面板处于『收藏模式』时，所有没爱心的歌，通通给我消失！ */
#mobilePanel.mode-favorites .playlist-item:not(.is-favorite) {
    display: none !important;
}

/* 列表模式和记录模式下，CSS 不干预，全部显示 */


/* 🚀 [ 屏蔽场 ]：PC 和手机面板物理隔离 */
@media screen and (min-width: 1025px) {
    #mobilePanel { display: none !important; } /* PC 隐藏手机面板 */
    #pcPanel { display: flex !important; }    /* PC 显示电脑面板 */
}

@media screen and (max-width: 1024px) {
    #pcPanel { display: none !important; }    /* 手机隐藏电脑面板 */
    #mobilePanel { display: flex !important; } /* 手机显示面板 */
}

/* =====================================================================
   🛰️ [ SPX-YesPlay-Vibrant-Core ] 终极 4 点不规则液态流彩矩阵
   统帅决策：彻底粉碎单色雾化，换装 4 轴全景不规则非对称流彩漂移系统
   ===================================================================== */

.background-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    background-color: #020408; /* 绝对黑洞底色，承托高纯度流彩 */
    overflow: hidden;
}

.background-stage__layer {
    position: absolute;
    top: -100px; left: -100px; right: -100px; bottom: -100px;
    background-size: 200% 200%;
    /* 🎯 终极羽化：拉高到 90px 高斯模糊，让不同颜色的交界处产生丝滑的流彩过渡 */
    filter: blur(90px) saturate(160%) brightness(0.65);
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* 🔥 【 基础层 】：4 颗大小不一、坐标错位的彩色量子球，非对称无规则揉碎 */
.background-stage__layer--base {
    background-image: 
        radial-gradient(circle at 15% 25%,  var(--color-1, #0b1d1b) 0%, transparent 55%),  /* 主色球 */
        radial-gradient(circle at 85% 15%,  var(--color-2, #0f2f2c) 0%, transparent 60%),  /* 撞色球（提供流彩感） */
        radial-gradient(circle at 75% 85%,  var(--color-3, #123c36) 0%, transparent 50%),  /* 补色球 */
        radial-gradient(circle at 30% 80%,  var(--color-4, #000000) 0%, transparent 65%); /* 氛围平摊球 */
    animation: yesplayDynamicMesh 32s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🔥 【 跃迁层 】：切歌时，反向扭曲交融，达成无缝高保真渡越 */
.background-stage__layer--transition {
    background-image: 
        radial-gradient(circle at 15% 25%,  var(--color-1-next, #0b1d1b) 0%, transparent 55%),
        radial-gradient(circle at 85% 15%,  var(--color-2-next, #0f2f2c) 0%, transparent 60%),
        radial-gradient(circle at 75% 85%,  var(--color-3-next, #123c36) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%,  var(--color-4-next, #000000) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: yesplayDynamicMesh 32s infinite alternate-reverse cubic-bezier(0.4, 0, 0.2, 1);
}

body.background-transitioning .background-stage__layer--transition {
    opacity: 1;
}

/* 🎯 完美复刻 YesPlayMusic 的不规则运动快门 */
@keyframes yesplayDynamicMesh {
    0% {
        background-position: 0% 10%;
        transform: scale(1) rotate(0deg) translate(0px, 0px);
    }
    25% {
        background-position: 80% 40%;
        /* 产生挤压和拉伸，让颜色这边多一点那边少一点 */
        transform: scale(1.12) rotate(4deg) translate(40px, -20px);
    }
    50% {
        background-position: 20% 90%;
        transform: scale(0.92) rotate(-5deg) translate(-30px, 40px);
    }
    75% {
        background-position: 100% 60%;
        transform: scale(1.06) rotate(2deg) translate(25px, -35px);
    }
    100% {
        background-position: 10% 0%;
        transform: scale(1.02) rotate(-1deg) translate(-10px, 10px);
    }
}

/* =====================================================================
   🌌 [ SPX-YesPlay-Vibrant-Core ] 全景不规则块状流彩矩阵 (随机方块完全体)
   ===================================================================== */
.background-stage {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none;
    z-index: -2 !important;
    background-color: #0d0f12 !important; 
    overflow: hidden;
}

.background-stage__layer {
    position: absolute !important;
    zoom: 1;
    inset: 0 !important;
    
    /* 🚀 黄金对焦模糊度：卡在 75px，完美保留大块黑白拼接的块状疆域，绝不稀释 */
    filter: blur(75px) saturate(135%) brightness(0.48) !important;
    transform: translateZ(0);
}

/* 🔥 【 基础层 】：全面接收 JS 丢进来的随机角度与中心点，粉碎固定死角 */
.background-stage__layer--base {
    background-color: var(--color-4, #0d0f12) !important; 
    
    background-image: 
        /* 🎨 随机板块一：由 JS 动态派发角度（--bg-angle）的硬切线性巨幕，每首歌切的方向全随机 */
        linear-gradient(var(--bg-angle, 135deg), var(--color-1) 0%, var(--color-1) 45%, transparent 45%),
        
        /* 🎨 随机板块二：由 JS 动态派发核心坐标（--bg-pos-x / y）的巨型斜拉大色块，彻底打破黑色死三角 */
        radial-gradient(ellipse 70% 50% at var(--bg-pos-x, 70%) var(--bg-pos-y, 30%), var(--color-2) 0%, var(--color-2) 40%, transparent 40%),
        
        /* 🎨 板块三：右下角常驻环境块，负责和底层黑色完美衔接 */
        radial-gradient(circle at 85% 85%, var(--color-3) 0%, transparent 65%) !important;
        
    background-size: 100% 100% !important;
    animation: none !important; /* 🔒 锁死不准流动 */
}

/* 🔥 【 跃迁层 】：同步接收 NEXT 弹仓的全新摇号参数 */
.background-stage__layer--transition {
    background-color: var(--color-4-next, #0d0f12) !important;
    
    background-image: 
        linear-gradient(var(--bg-angle-next, 135deg), var(--color-1-next) 0%, var(--color-1-next) 45%, transparent 45%),
        radial-gradient(ellipse 70% 50% at var(--bg-pos-x-next, 70%) var(--bg-pos-y-next, 30%), var(--color-2-next) 0%, var(--color-2-next) 40%, transparent 40%),
        radial-gradient(circle at 85% 85%, var(--color-3-next) 0%, transparent 65%) !important;
        
    background-size: 100% 100% !important;
    animation: none !important;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
body.background-transitioning .background-stage__layer--transition {
    opacity: 1;
}

/* 🎯 【 最终减光面罩 】 */
.background-stage::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%), 
        rgba(10, 11, 13, 0.35) !important;
    z-index: 1 !important;
}