:root {
    --bg-primary: #0f0f13;
    --bg-secondary: #1a1a24;
    --bg-card: #22222e;
    --bg-hover: #2a2a38;
    --text-primary: #e8e8ed;
    --text-secondary: #8e8e9b;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --success: #22c55e;
    --error: #ef4444;
    --border: #2e2e3a;
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link.active { color: var(--accent); background: var(--bg-card); }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Login Page */
.login-page h1 {
    font-size: 28px;
    margin-bottom: 4px;
}
.login-page .subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.platform-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.platform-tab {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.platform-tab:hover { border-color: var(--accent); }
.platform-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.method-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 4px;
    display: inline-flex;
}

.method-tab {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.method-tab:hover { color: var(--text-primary); }
.method-tab.active { background: var(--bg-card); color: var(--text-primary); }

.method-content { animation: fadeIn 0.2s; }

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-image {
    width: 240px;
    height: 240px;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qr-image img { width: 100%; height: 100%; }
.qr-image p { color: #666; font-size: 13px; }

.qr-status {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-hint { color: var(--text-secondary); font-size: 12px; margin-top: 8px; }

.btn-row { display: flex; gap: 8px; }
.code-row { display: flex; gap: 8px; }

.login-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
}
.login-result.success { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.login-result.error { background: rgba(239,68,68,0.1); color: var(--error); border: 1px solid rgba(239,68,68,0.2); }

/* Search Page */
.search-header { margin-bottom: 24px; }

.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.search-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-btn { padding: 12px 28px; font-size: 15px; }

.platform-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--success);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}
.loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.song-list { display: flex; flex-direction: column; gap: 2px; }

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}
.song-item:hover { background: var(--bg-hover); }

.song-index {
    width: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    flex-shrink: 0;
}

.song-cover-wrap { flex-shrink: 0; }
.song-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}
.song-cover-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: var(--bg-card);
}

.song-info { flex: 1; min-width: 0; }
.song-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.song-platform { flex-shrink: 0; }
.platform-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.badge-kugou { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-netease { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-bilibili { background: rgba(251,114,153,0.15); color: #fb7299; }

.song-duration {
    color: var(--text-secondary);
    font-size: 13px;
    width: 44px;
    text-align: right;
    flex-shrink: 0;
}

.song-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.action-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.action-btn:hover { background: var(--accent); color: #fff; }
.song-menu-btn { font-size: 22px; font-weight: bold; line-height: 1; letter-spacing: -1px; }
.fav-btn.active { color: #ef4444; background: rgba(239, 68, 68, 0.15); }
.fav-btn.active:hover { background: rgba(239, 68, 68, 0.3); color: #ef4444; }

.player-fav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px 8px;
    transition: color 0.2s;
}
.player-fav-btn:hover { color: var(--text-primary); }
.player-fav-btn.active { color: #ef4444; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
}
.page-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Video Player */
.video-container {
    position: fixed;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    max-width: 90vw;
    z-index: 199;
    background: #000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.video-container video { width: 100%; display: block; }
.video-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    z-index: 3;
}

.speed-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    z-index: 200;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    flex-shrink: 0;
}
.player-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-card);
    border: none;
}
.player-meta { min-width: 0; }
.player-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.player-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.player-btn:hover { background: var(--bg-hover); }
.speed-btn {
    font-size: 12px !important;
    font-weight: 600;
    min-width: 36px;
}
.play-btn {
    width: 42px;
    height: 42px;
    background: var(--accent);
    font-size: 18px;
}
.play-btn:hover { background: var(--accent-hover); }

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.time {
    font-size: 12px;
    color: var(--text-secondary);
    width: 40px;
    text-align: center;
}
.progress-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
}
.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.empty-text, .error-text {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Lyrics Sidebar */
.lyrics-panel {
    position: fixed;
    top: 56px;
    right: 0;
    width: 380px;
    height: calc(100vh - 56px - 72px);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 150;
    transition: transform 0.3s ease;
}

.lyrics-panel.hidden {
    transform: translateX(100%);
}

.lyrics-tab {
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.2s;
    user-select: none;
}
.lyrics-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.lyrics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.lyrics-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    display: none;
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scroll-behavior: smooth;
}

.lyric-line {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.6;
    text-align: center;
}
.lyric-line:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.lyric-line.active {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
}

.lyrics-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-size: 14px;
}

/* Playlist Panel */
.playlist-panel {
    position: fixed;
    bottom: 72px;
    left: 20px;
    width: 360px;
    max-width: calc(100vw - 420px);
    height: 420px;
    max-height: calc(100vh - 160px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    flex-direction: column;
    z-index: 199;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s;
}

.playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.playlist-clear, .playlist-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.playlist-clear:hover, .playlist-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.mode-btn {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.mode-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}
.mode-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.playlist-content {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.playlist-item:hover {
    background: var(--bg-hover);
}
.playlist-item.active {
    background: rgba(99, 102, 241, 0.12);
}
.playlist-item.active .playlist-item-name {
    color: var(--accent);
    font-weight: 600;
}

.playlist-item-cover {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
}
.playlist-item-cover-ph {
    background: var(--bg-card);
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}
.playlist-item-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-item-artist {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.playlist-item-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.playlist-item-remove:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.playlist-fav-indicator {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}
.playlist-fav-indicator:hover { color: var(--text-primary); }
.playlist-fav-indicator.active { color: #ef4444; }

.favorites-item-remove.active {
    color: #ef4444;
    font-size: 14px;
}
.favorites-item-remove.active:hover {
    color: var(--text-secondary);
    background: rgba(142, 142, 155, 0.1);
}

.playlist-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-size: 14px;
}

/* Favorites Panel */
.favorites-panel {
    position: fixed;
    bottom: 72px;
    left: 20px;
    width: 360px;
    max-width: calc(100vw - 420px);
    height: 420px;
    max-height: calc(100vh - 160px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    flex-direction: column;
    z-index: 199;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s;
}

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.favorites-clear, .favorites-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.favorites-clear:hover, .favorites-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.favorites-content {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.favorites-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.favorites-item:hover {
    background: var(--bg-hover);
}
.favorites-item.active {
    background: rgba(99, 102, 241, 0.12);
}
.favorites-item.active .favorites-item-name {
    color: var(--accent);
    font-weight: 600;
}

.favorites-item-cover {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
}
.favorites-item-cover-ph {
    background: var(--bg-card);
}

.favorites-item-info {
    flex: 1;
    min-width: 0;
}
.favorites-item-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.favorites-item-artist {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.favorites-item-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.favorites-item-remove:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.favorites-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-size: 14px;
}

/* Context Menu */
.ctx-menu {
    position: fixed;
    z-index: 1000;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    font-size: 13px;
    animation: fadeIn 0.12s;
    display: none;
}
.ctx-item {
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.15s;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ctx-item:hover { background: var(--bg-hover); }
.ctx-separator {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}
.ctx-has-sub { position: relative; }
.ctx-arrow {
    margin-left: 16px;
    font-size: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.ctx-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 150px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.ctx-submenu.flip-left {
    left: auto;
    right: 100%;
}
.ctx-has-sub.sub-open > .ctx-submenu { display: block; }
.ctx-has-sub::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 100%;
}
.ctx-has-sub.sub-open::after { display: none; }
.ctx-submenu .ctx-item { padding: 8px 16px; display: block; }

/* Info Modal */
.info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.info-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    animation: fadeIn 0.15s;
}
.info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.info-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.info-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.info-modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }
.info-modal-body { padding: 14px 18px; }
.info-row {
    display: flex;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(46,46,58,0.5);
}
.info-row:last-child { border-bottom: none; }
.info-key {
    width: 120px;
    flex-shrink: 0;
    color: var(--text-secondary);
}
.info-val {
    flex: 1;
    color: var(--text-primary);
    word-break: break-all;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 13px;
    z-index: 2000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    animation: fadeIn 0.15s;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
    .container { padding: 12px 8px; }

    .search-input { font-size: 14px; padding: 10px 14px; }
    .search-btn { padding: 10px 16px; font-size: 13px; }

    .platform-filters { gap: 6px; }
    .filter-btn { padding: 5px 12px; font-size: 12px; }

    .song-item { gap: 8px; padding: 8px 6px; }
    .song-index { width: 24px; font-size: 12px; }
    .song-cover { width: 38px; height: 38px; }
    .song-cover-placeholder { width: 38px; height: 38px; }
    .song-name { font-size: 13px; }
    .song-artist { font-size: 11px; }
    .song-duration { display: none; }
    .action-btn { width: 30px; height: 30px; font-size: 12px; }

    .player-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 6px;
    }
    .player-info {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .player-cover { width: 40px; height: 40px; }
    .player-controls { gap: 4px; }
    .player-btn { width: 32px; height: 32px; font-size: 14px; }
    .play-btn { width: 38px; height: 38px; font-size: 16px; }
    .player-progress {
        flex-basis: 100%;
        order: 3;
        gap: 8px;
    }
    .time { font-size: 11px; width: 36px; }

    .platform-tabs { gap: 6px; }
    .platform-tab { padding: 8px 16px; font-size: 13px; }

    .method-tabs { flex-wrap: wrap; }
    .method-tab { padding: 6px 14px; font-size: 13px; }

    .qr-image { width: 200px; height: 200px; }

    .login-page h1 { font-size: 22px; }

    .lyrics-panel {
        width: 100%;
        top: 56px;
        height: calc(100vh - 56px - 72px);
        transition: right 0.3s ease;
    }
    .lyrics-panel.hidden {
        transform: none;
        right: -100%;
    }
    .lyrics-panel.hidden .lyrics-tab {
        position: fixed;
        right: 12px;
        bottom: 84px;
        left: auto;
        top: auto;
        transform: none;
        border: 1px solid var(--border);
        border-radius: 50%;
        width: 48px;
        height: 48px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    }
    .lyrics-panel:not(.hidden) .lyrics-tab {
        position: absolute;
        left: auto;
        right: 8px;
        bottom: 8px;
        top: auto;
        transform: none;
        border: 1px solid var(--border);
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }
    .lyrics-close {
        display: block !important;
        font-size: 20px;
        padding: 6px 12px;
        color: var(--text-primary);
        background: var(--bg-card);
        border-radius: 6px;
    }
    .lyrics-content {
        padding-bottom: 56px;
    }

    .playlist-panel {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        bottom: 72px;
        height: 50vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .favorites-panel {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        bottom: 72px;
        height: 50vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}
