/* Player component styles */
            .content-auto { content-visibility: auto; }
            .player-shadow { box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2); }
            .song-hover { transition: all 0.2s ease; }
            .song-hover:hover { transform: translateX(4px); background-color: rgba(79, 70, 229, 0.15); }
            .progress-bar {
                appearance: none; height: 6px; border-radius: 3px; background: #e2e8f0; outline: none; transition: all 0.2s ease;
            }
            .progress-bar::-webkit-slider-thumb {
                appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #4f46e5; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
            }
            .progress-bar::-webkit-slider-thumb:hover { transform: scale(1.2); box-shadow: 0 0 10px rgba(79, 70, 229, 0.4); }
            .progress-slider-shell {
                position: relative; width: 100%; height: 20px; display: flex; align-items: center;
                outline: none;
            }
            .playback-progress-visual {
                position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px;
                background: #e2e8f0; pointer-events: none; overflow: visible;
                box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
            }
            .playback-progress-fill-clip {
                position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
            }
            .playback-progress-fill {
                position: absolute; inset: 0; border-radius: 0; background: #4f46e5;
                transform: scaleX(0); transform-origin: left center; will-change: transform;
            }
            .playback-progress-thumb {
                position: absolute; left: 0; top: 50%; width: 16px; height: 16px;
                border-radius: 50%; background: #4f46e5; pointer-events: none;
                transform: translate3d(0, -50%, 0); will-change: transform;
                box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2), 0 2px 5px rgba(15, 23, 42, 0.2);
            }
            #progress-slider {
                position: absolute; inset: 0; width: 100%; height: 20px; margin: 0;
                opacity: 0; cursor: pointer; z-index: 2;
            }
            .progress-slider-shell:has(#progress-slider:focus-visible) .playback-progress-visual {
                box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.35);
            }
            #volume-slider,
            #mobile-volume-slider {
                --volume-percent: 100%;
                background: linear-gradient(
                    to right,
                    #4f46e5 0%,
                    #4f46e5 var(--volume-percent),
                    #e2e8f0 var(--volume-percent),
                    #e2e8f0 100%
                );
                transition: none;
            }
            .download-btn { transition: all 0.2s ease; cursor: pointer; }
            .download-btn:hover { color: #10b981; transform: scale(1.1); }
            .downloading { animation: spin 1.5s linear infinite; color: #10b981; }
            @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
            .toast {
                position: fixed; right: 20px; bottom: 20px; padding: 12px 18px; border-radius: 12px;
                border: 1px solid transparent; background: rgba(17, 24, 39, 0.95); color: #f9fafb;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); z-index: 1000;
                display: flex; align-items: center; gap: 9px;
                opacity: 0; visibility: hidden; pointer-events: none;
                transform: translateY(14px) scale(0.96);
                transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
            }
            .toast.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
            .toast i { color: #818cf8; font-size: 1rem; }
            .toast.success i { color: #10b981; }
            .toast.error i { color: #ef4444; }
            .volume-indicator {
                position: fixed; right: 20px; bottom: 20px; min-width: 92px;
                padding: 12px 18px; border-radius: 12px; border: 1px solid transparent;
                background: rgba(17, 24, 39, 0.95); color: #f9fafb;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); z-index: 1001;
                display: flex; align-items: center; justify-content: center; gap: 9px;
                opacity: 0; visibility: hidden; pointer-events: none;
                transform: translateY(14px) scale(0.96);
                transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
            }
            .volume-indicator.show {
                opacity: 1; visibility: visible; transform: translateY(0) scale(1);
            }
            .volume-indicator.stacked {
                bottom: var(--volume-stacked-bottom, 76px);
            }
            .volume-indicator i { color: #818cf8; font-size: 1rem; }
            .volume-indicator span {
                min-width: 42px; text-align: right; font-size: 0.95rem;
                font-weight: 600; font-variant-numeric: tabular-nums;
            }
            .lyrics-container {
                width: 100%; height: 240px; overflow-y: auto; margin: 1rem 0; padding: 1.5rem; border-radius: 16px;
                background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
                backdrop-filter: blur(12px); display: flex; flex-direction: column; align-items: center;
                scroll-behavior: smooth; border: 1px solid rgba(255, 255, 255, 0.05);
                box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
            }
            .lyrics-container::-webkit-scrollbar { width: 6px; }
            .lyrics-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
            .lyrics-container::-webkit-scrollbar-thumb { background: rgba(79, 70, 229, 0.5); border-radius: 10px; }
            .lyrics-container::-webkit-scrollbar-thumb:hover { background: rgba(79, 70, 229, 0.8); }
            .lyrics-line {
                padding: 8px 0; font-size: 1rem; color: #94a3b8; transition: all 0.3s ease;
                text-align: center; width: 100%; opacity: 0.7; position: relative; letter-spacing: 0.3px;
            }
            .lyrics-line.active {
                color: #c7d2fe; font-size: 1.15rem; font-weight: 500; opacity: 1;
                transform: scale(1.05); text-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
            }
            .lyrics-line.active::after {
                content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
                width: 40%; height: 1px; background: linear-gradient(90deg, transparent, #4f46e5, transparent);
            }
            .lyrics-placeholder {
                color: #94a3b8; font-style: italic; text-align: center; padding: 2rem 0;
                display: flex; flex-direction: column; align-items: center; gap: 1rem;
            }
            .lyrics-placeholder i { font-size: 2rem; color: rgba(79, 70, 229, 0.3); }
            .lyrics-controls { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
            .lyrics-control-btn {
                padding: 6px 12px; border-radius: 20px; background: rgba(30, 41, 59, 0.7);
                color: #cbd5e1; transition: all 0.2s ease; cursor: pointer; font-size: 0.875rem; border: 1px solid transparent;
            }
            .lyrics-control-btn:hover { background: rgba(79, 70, 229, 0.2); color: #c7d2fe; border-color: rgba(79, 70, 229, 0.3); }
            .lyrics-control-btn.active { background: rgba(79, 70, 229, 0.3); color: #c7d2fe; font-weight: 500; border-color: rgba(79, 70, 229, 0.5); }
            .playback-rate-picker { position: relative; }
            .playback-rate-menu {
                position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 60;
                min-width: 86px; padding: 7px; border-radius: 12px;
                display: flex; flex-direction: column; gap: 3px;
                background: rgba(15, 23, 42, 0.98); border: 1px solid rgba(148, 163, 184, 0.24);
                box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
                transform: translateX(-50%);
            }
            .playback-rate-menu.hidden { display: none; }
            .playback-rate-option {
                min-width: 72px; padding: 6px 10px; border-radius: 8px; border: 0;
                background: transparent; color: #cbd5e1; cursor: pointer;
                font-size: 0.82rem; line-height: 1.2; white-space: nowrap;
            }
            .playback-rate-option:hover,
            .playback-rate-option.active {
                background: rgba(79, 70, 229, 0.24); color: #e0e7ff;
            }
            .song-list-container {
                background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.6));
                border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden;
            }
            .song-list-header {
                padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
                display: flex; justify-content: space-between; align-items: center; background: rgba(15, 23, 42, 0.4);
            }
            .song-list-header h2 { display: flex; align-items: center; gap: 0.8rem; font-size: 1.1rem; font-weight: 600; color: #f9fafb; }
            .song-list-header h2 i { color: #4f46e5; font-size: 1.2rem; }
            .song-count { background: rgba(79, 70, 229, 0.2); color: #c7d2fe; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
            .song-items-wrapper { padding: 0.5rem; max-height: 80vh; overflow-y: auto; }
            .song-items-wrapper::-webkit-scrollbar { width: 6px; }
            .song-items-wrapper::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
            .song-items-wrapper::-webkit-scrollbar-thumb { background: rgba(79, 70, 229, 0.4); border-radius: 10px; }
            .song-items-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(79, 70, 229, 0.7); }
            .song-item {
                padding: 0.9rem 1.2rem; border-radius: 12px; margin-bottom: 0.5rem;
                display: flex; justify-content: space-between; align-items: center; cursor: pointer;
                background: rgba(30, 41, 59, 0.4); border-left: 3px solid transparent; transition: all 0.2s ease;
            }
            .song-item.active { background: rgba(79, 70, 229, 0.15); border-left: 3px solid #4f46e5; }
            .song-item.active .song-info i { color: #4f46e5; animation: pulse 1.5s infinite; }
            .song-item .song-info { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
            .song-item .song-info i { color: #94a3b8; font-size: 1.1rem; width: 24px; text-align: center; }
            .song-item .song-meta { min-width: 0; }
            .song-item .song-meta h3 { font-weight: 500; color: #f9fafb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
            .song-item .song-meta p { font-size: 0.75rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            .song-item .song-actions { display: flex; align-items: center; gap: 0.8rem; }
            .song-item .song-duration { font-size: 0.75rem; color: #94a3b8; white-space: nowrap; }
            .player-primary {
                width: 100%; display: flex; flex-direction: column; align-items: center;
                flex-shrink: 0;
            }
            .album-cover-container { position: relative; margin-bottom: 1.5rem; }
            .album-cover-wrapper {
                width: 180px; height: 180px; border-radius: 50%; overflow: hidden;
                border: 4px solid rgba(79, 70, 229, 0.2); box-shadow: 0 0 30px rgba(79, 70, 229, 0.1);
                position: relative; z-index: 2; background: #1e293b;
            }
            .album-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; }
            .spin-animation {
                position: absolute; inset: 0; border-radius: 50%;
                border: 4px solid transparent; border-top-color: rgba(79, 70, 229, 0.4);
                border-right-color: rgba(79, 70, 229, 0.2); animation: spin 8s linear infinite;
                z-index: 1; box-shadow: 0 0 20px rgba(79, 70, 229, 0.1);
            }
            .album-cover-glow {
                position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
                width: 120%; height: 120%; border-radius: 50%;
                background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
                z-index: 0; animation: pulse-slow 4s infinite;
            }
            .control-btn { transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
            .prev-next-btn {
                width: 50px; height: 50px; border-radius: 50%;
                background: rgba(30, 41, 59, 0.5); color: #e2e8f0; transition: all 0.2s ease;
            }
            .prev-next-btn:hover { background: rgba(79, 70, 229, 0.2); color: #c7d2fe; transform: scale(1.05); }
            .play-btn {
                width: 65px; height: 65px; border-radius: 50%; background: #4f46e5; color: white;
                box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); transition: all 0.2s ease;
            }
            .play-btn:hover { background: #4338ca; transform: scale(1.05); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); }
            .mode-btn {
                width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
                justify-content: center; color: #94a3b8; transition: all 0.2s ease;
            }
            .mode-btn:hover, .mode-btn.active { background: rgba(79, 70, 229, 0.2); color: #c7d2fe; }
            #repeat-btn { position: relative; }
            .repeat-one-badge {
                position: absolute; right: 4px; bottom: 3px; width: 14px; height: 14px;
                border-radius: 50%; background: #4f46e5; color: #fff;
                display: none; align-items: center; justify-content: center;
                font-size: 8px; font-weight: 700; line-height: 1;
                box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
            }
            #repeat-btn[data-repeat-mode="one"] .repeat-one-badge { display: flex; }
            .song-info-container { text-align: center; margin-bottom: 1.5rem; padding: 0 1rem; width: 100%; }
            .current-song-link {
                font-size: 1.4rem; font-weight: 600; color: #f9fafb; margin: 0 auto 0.5rem;
                line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                display: block; width: fit-content; max-width: 100%;
                text-decoration: none; text-align: center; transition: all 0.2s ease;
            }
            .current-song-link.has-video:hover { color: #c7d2fe; text-decoration: underline; cursor: pointer; }
            .current-song-link.no-video { cursor: default; pointer-events: none; }
            .current-artist-link {
                font-size: 0.95rem; color: #94a3b8; font-weight: 400;
                text-decoration: none; transition: all 0.2s ease; display: inline-block;
            }
            .current-artist-link:hover { color: #c7d2fe; text-decoration: underline; }
            .current-artist-link.no-link { cursor: default; pointer-events: none; }
            .current-artist-link.has-link { cursor: pointer; }
            .progress-container { width: 100%; margin-bottom: 1.5rem; padding: 0 0.5rem; }
            .time-display { display: flex; justify-content: space-between; font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.5rem; }
            .mobile-volume { margin-top: 1.5rem; width: 100%; padding: 0 1rem; }
            .mobile-volume-container {
                display: flex; align-items: center; gap: 0.8rem;
                background: rgba(30, 41, 59, 0.5); border-radius: 25px; padding: 0.7rem 1.2rem;
            }
            .lyrics-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
            .lyrics-title { display: flex; align-items: center; gap: 0.8rem; font-size: 1.1rem; font-weight: 600; color: #f9fafb; }
            .lyrics-title i { color: #4f46e5; font-size: 1.2rem; }
            .record-number-overlay {
                position: fixed; bottom: 0px; left: 0; width: 100%; text-align: center;
                font-size: 14px; color: white; z-index: 999; background: none;
                pointer-events: none; padding: 5px 0; font-weight: bold;
            }
            .record-number-overlay a { background: none !important; text-decoration: none !important; pointer-events: auto; font-weight: bold; }

#lyrics-list {
    padding-top: 78px;
    padding-bottom: 78px;
}

.lyrics-placeholder {
    margin: auto 0;
}

#notDownloadModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#notDownloadModal.show {
    opacity: 1;
    visibility: visible;
}

#notDownloadModal .modal-content {
    min-width: 280px;
    padding: 20px 30px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#notDownloadModal .modal-content h3 {
    margin: 0 0 10px;
}

#notDownloadModal .modal-content p {
    margin: 0 0 15px;
    color: #666;
}

#notDownloadModal .modal-btn {
    padding: 6px 20px;
    border: 0;
    border-radius: 4px;
    background: #4f46e5;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

#notDownloadModal .modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#notDownloadModal .modal-btn-secondary {
    background: #64748b;
}

#notDownloadModal .modal-btn-secondary:hover {
    background: #475569;
}

#notDownloadModal .modal-btn:hover {
    background: #4338ca;
}

/* Rich light theme */
body.light-theme {
    --light-accent: #0f766e;
    --light-accent-strong: #0d9488;
    --light-accent-soft: rgba(13, 148, 136, 0.12);
    --light-accent-border: rgba(13, 148, 136, 0.28);
    --light-blue-soft: rgba(59, 130, 246, 0.09);
    --light-muted: #64748b;
    color-scheme: light;
    color: #1f2937 !important;
    background-color: #f4f8f7 !important;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(45, 212, 191, 0.13) 0, transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(96, 165, 250, 0.12) 0, transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.07) 0, transparent 34%),
        linear-gradient(135deg, #edf7f6 0%, #e7f1fb 52%, #f7f2e9 100%) !important;
    background-attachment: fixed;
    transition: color 0.25s ease, background-color 0.25s ease, background-image 0.25s ease;
}

body.light-theme header {
    background: #eaf3f8 !important;
    background-image: none !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

body.light-theme header h1 {
    color: #0f172a;
    letter-spacing: 0.01em;
}

body.light-theme #theme-toggle,
body.light-theme #volume-btn {
    color: #475569;
}

body.light-theme #theme-toggle:hover,
body.light-theme #volume-btn:hover {
    background-color: var(--light-accent-soft);
}

body.light-theme #theme-toggle i,
body.light-theme #volume-btn i,
body.light-theme #mobile-volume-icon {
    color: #475569 !important;
}

body.light-theme #theme-toggle:hover i,
body.light-theme #volume-btn:hover i {
    color: var(--light-accent) !important;
}

body.light-theme #volume-btn i.fa-volume-mute {
    color: #dc2626 !important;
}

body.light-theme #volume-control {
    background: rgba(255, 255, 255, 0.84) !important;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

body.light-theme main > section {
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 42px -24px rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(16px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme main > section:first-child {
    background: linear-gradient(160deg, #dcecf7 0%, #c9dfed 100%) !important;
}

body.light-theme main > section:last-child {
    background: linear-gradient(160deg, rgba(238, 252, 250, 0.98), rgba(218, 239, 250, 0.9)) !important;
}

body.light-theme .song-list-container {
    background: linear-gradient(160deg, rgba(226, 240, 248, 0.98), rgba(200, 224, 239, 0.95));
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.light-theme .song-list-header {
    background: #dcecf6;
    border-bottom-color: rgba(148, 163, 184, 0.24);
}

body.light-theme .song-list-header h2,
body.light-theme .lyrics-title,
body.light-theme .current-song-link {
    color: #1e293b;
}

body.light-theme .song-list-header h2 i,
body.light-theme .lyrics-title i {
    color: var(--light-accent);
    opacity: 0.9;
}

body.light-theme .song-count {
    background: var(--light-accent-soft);
    color: var(--light-accent);
}

body.light-theme .song-item {
    background: rgba(228, 241, 247, 0.94);
    color: #334155;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

body.light-theme .song-item:hover {
    background-color: var(--light-blue-soft) !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}

body.light-theme .song-item.active {
    background: var(--light-accent-soft);
    border-left-color: #14b8a6;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.11);
}

body.light-theme .song-item:hover .song-info i,
body.light-theme .song-item.active .song-info i {
    color: var(--light-accent);
}

body.light-theme .song-item .song-meta h3 {
    color: #1f2937;
}

body.light-theme .song-item .song-info i,
body.light-theme .song-item .song-meta p,
body.light-theme .song-item .song-duration,
body.light-theme .current-artist-link,
body.light-theme .time-display {
    color: var(--light-muted);
}

body.light-theme .download-btn {
    color: #64748b;
}

body.light-theme .download-btn:hover {
    color: var(--light-accent-strong);
}

body.light-theme .current-song-link.has-video:hover,
body.light-theme .current-artist-link:hover {
    color: var(--light-accent);
}

body.light-theme .song-items-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 118, 110, 0.4) transparent;
}

body.light-theme .song-items-wrapper::-webkit-scrollbar {
    width: 10px;
}

body.light-theme .song-items-wrapper::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}

body.light-theme .song-items-wrapper::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.36);
    background-clip: padding-box;
}

body.light-theme .song-items-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 148, 136, 0.56);
    background-clip: padding-box;
}

body.light-theme .album-cover-wrapper {
    background: #f8fafc;
    border-color: rgba(13, 148, 136, 0.28);
    box-shadow: 0 0 28px rgba(13, 148, 136, 0.16);
}

body.light-theme .album-cover-glow {
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 70%);
}

body.light-theme .spin-animation {
    border-top-color: rgba(13, 148, 136, 0.45);
    border-right-color: rgba(13, 148, 136, 0.17);
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.12);
}

body.light-theme .lyrics-container {
    background: linear-gradient(145deg, rgba(224, 247, 245, 0.97), rgba(219, 235, 254, 0.92) 55%, rgba(237, 245, 253, 0.96));
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 0 20px rgba(15, 23, 42, 0.035), 0 8px 24px rgba(15, 23, 42, 0.04);
    scrollbar-color: rgba(15, 118, 110, 0.42) transparent;
}

body.light-theme .lyrics-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.045);
}

body.light-theme .lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(15, 118, 110, 0.4);
}

body.light-theme .lyrics-container::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 148, 136, 0.62);
}

body.light-theme .lyrics-line,
body.light-theme .lyrics-placeholder {
    color: #64748b;
}

body.light-theme .lyrics-line.active {
    color: var(--light-accent);
    text-shadow: 0 0 15px rgba(13, 148, 136, 0.14);
}

body.light-theme .lyrics-control-btn {
    background: rgba(255, 255, 255, 0.86);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.05);
}

body.light-theme .lyrics-control-btn:hover,
body.light-theme .lyrics-control-btn.active {
    background: var(--light-accent-soft);
    color: var(--light-accent);
    border-color: var(--light-accent-border);
}

body.light-theme .playback-rate-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

body.light-theme .playback-rate-option {
    color: #475569;
}

body.light-theme .playback-rate-option:hover,
body.light-theme .playback-rate-option.active {
    background: var(--light-accent-soft);
    color: var(--light-accent);
}

body.light-theme .lyrics-control-btn i,
body.light-theme .lyrics-control-btn:hover i,
body.light-theme .lyrics-control-btn.active i {
    color: inherit;
}

body.light-theme .progress-bar {
    background: #d5e3e1 !important;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
}

body.light-theme .playback-progress-visual {
    background: #d5e3e1;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
}

body.light-theme .playback-progress-fill,
body.light-theme .playback-progress-thumb {
    background: #2dd4bf;
}

body.light-theme .playback-progress-thumb {
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2), 0 2px 5px rgba(15, 23, 42, 0.14);
}

body.light-theme .progress-slider-shell:has(#progress-slider:focus-visible) .playback-progress-visual {
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.28);
}

body.light-theme #volume-slider,
body.light-theme #mobile-volume-slider {
    background: linear-gradient(
        to right,
        #2dd4bf 0%,
        #2dd4bf var(--volume-percent),
        #d5e3e1 var(--volume-percent),
        #d5e3e1 100%
    ) !important;
}

body.light-theme .progress-bar::-webkit-slider-thumb {
    background: #2dd4bf;
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2), 0 2px 5px rgba(15, 23, 42, 0.14);
}

body.light-theme .progress-bar::-webkit-slider-thumb:hover {
    background: #5eead4;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.24), 0 0 10px rgba(45, 212, 191, 0.24);
}

body.light-theme .progress-bar::-moz-range-thumb {
    background: #2dd4bf;
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2), 0 2px 5px rgba(15, 23, 42, 0.14);
}

body.light-theme .progress-bar::-moz-range-thumb:hover {
    background: #5eead4;
}

body.light-theme .volume-indicator {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

body.light-theme .toast {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

body.light-theme .toast i {
    color: var(--light-accent);
}

body.light-theme .toast.success i {
    color: #10b981;
}

body.light-theme .toast.error i {
    color: #dc2626;
}

body.light-theme .volume-indicator i {
    color: var(--light-accent);
}

body.light-theme .prev-next-btn {
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

body.light-theme .prev-next-btn:hover {
    background: var(--light-accent-soft);
    color: var(--light-accent);
}

body.light-theme .play-btn {
    background: linear-gradient(145deg, #5eead4, #2dd4bf);
    color: #134e4a;
    box-shadow: 0 7px 18px rgba(45, 212, 191, 0.24);
}

body.light-theme .play-btn:hover {
    background: linear-gradient(145deg, #99f6e4, #5eead4);
    color: #0f766e;
    box-shadow: 0 9px 22px rgba(45, 212, 191, 0.3);
}

body.light-theme .mode-btn {
    color: #64748b;
}

body.light-theme .mode-btn:hover,
body.light-theme .mode-btn.active {
    background: var(--light-accent-soft);
    color: var(--light-accent);
}

body.light-theme #repeat-btn[data-repeat-mode="one"] .repeat-one-badge {
    background: var(--light-accent);
}

/* Active repeat modes brighten the icon without an outer glow. */
#repeat-btn.active {
    background: transparent;
    color: #e0e7ff;
    text-shadow: none;
}

#repeat-btn.active:hover {
    background: rgba(79, 70, 229, 0.2);
}

#shuffle-btn.active {
    background: transparent;
    color: #e0e7ff;
    text-shadow: none;
}

#shuffle-btn.active:hover {
    background: rgba(79, 70, 229, 0.2);
}

body.light-theme #repeat-btn.active {
    background: transparent !important;
    color: var(--light-accent-strong);
    text-shadow: none;
}

body.light-theme #repeat-btn.active:hover {
    background: var(--light-accent-soft) !important;
}

body.light-theme #shuffle-btn.active {
    background: transparent !important;
    color: var(--light-accent-strong);
    text-shadow: none;
}

body.light-theme #shuffle-btn.active:hover {
    background: var(--light-accent-soft) !important;
}

body.light-theme .mobile-volume-container {
    background: rgba(240, 253, 250, 0.9);
}

body.light-theme .record-number-overlay,
body.light-theme .record-number-overlay a {
    color: #475569 !important;
}

body.light-theme .record-number-overlay a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

body.light-theme .record-number-overlay a:hover {
    color: var(--light-accent) !important;
}

body.light-theme .record-number-overlay img {
    filter: saturate(0.85);
    opacity: 0.82;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

body.light-theme .record-number-overlay a:hover img {
    filter: saturate(1);
    opacity: 1;
}

.brand-button {
    position: relative; padding: 0; border: 0; background: transparent;
    color: inherit; cursor: pointer; font-family: inherit; line-height: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.brand-button:hover { color: #c7d2fe; opacity: 0.92; }

.brand-button.authenticated::after {
    content: ''; display: inline-block; width: 7px; height: 7px;
    margin-left: 8px; margin-bottom: 2px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
    vertical-align: middle;
}

.auth-modal {
    position: fixed; inset: 0; z-index: 10050;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(2, 6, 23, 0.56);
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.auth-modal-content {
    position: relative; width: min(360px, 100%); padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 16px;
    background: rgba(15, 23, 42, 0.98); color: #f8fafc;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
}

.auth-modal-content h3 { margin: 0 0 20px; font-size: 1.15rem; }

.auth-modal-close {
    position: absolute; top: 12px; right: 14px; width: 30px; height: 30px;
    border: 0; border-radius: 50%; background: transparent; color: #94a3b8;
    cursor: pointer; font-size: 1.35rem; line-height: 1;
}

.auth-modal-close:hover { background: rgba(148, 163, 184, 0.12); color: #f8fafc; }

.auth-field { display: block; margin-bottom: 14px; }
.auth-field span { display: block; margin-bottom: 6px; color: #cbd5e1; font-size: 0.85rem; }
.auth-field input {
    width: 100%; box-sizing: border-box; padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 9px;
    background: rgba(2, 6, 23, 0.35); color: #f8fafc; outline: none;
}

.auth-field input:focus {
    border-color: rgba(129, 140, 248, 0.72);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.auth-message { min-height: 20px; margin: 4px 0 12px; color: #fca5a5; font-size: 0.82rem; }

.auth-primary,
.auth-secondary {
    width: 100%; padding: 10px 14px; border-radius: 9px; cursor: pointer;
    font-weight: 600; transition: background 0.2s ease, opacity 0.2s ease;
}

.auth-primary { border: 0; background: #4f46e5; color: #fff; }
.auth-primary:hover { background: #4338ca; }
.auth-primary:disabled { cursor: wait; opacity: 0.65; }
.auth-secondary {
    margin-top: 10px; border: 1px solid rgba(148, 163, 184, 0.28);
    background: transparent; color: #cbd5e1;
}
.auth-secondary:hover { background: rgba(148, 163, 184, 0.1); color: #fff; }
.auth-secondary.hidden { display: none; }

.auth-account-info {
    margin: 2px 0 4px; padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 10px;
    background: rgba(2, 6, 23, 0.24);
}

.auth-account-info.hidden { display: none; }

.auth-account-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}

.auth-account-cell {
    min-width: 0; padding: 10px 8px; border-radius: 8px;
    background: rgba(15, 23, 42, 0.34);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}

.auth-account-cell span { color: #94a3b8; font-size: 0.78rem; }
.auth-account-cell strong {
    display: block; max-width: 100%; margin-top: 5px;
    color: #f8fafc; font-size: 0.9rem; font-weight: 600;
    overflow-wrap: anywhere;
}

body.light-theme .brand-button:hover { color: var(--light-accent); }

body.light-theme .auth-modal-content {
    background: rgba(255, 255, 255, 0.98);
    color: #1e293b;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

body.light-theme .auth-modal-close { color: #64748b; }
body.light-theme .auth-modal-close:hover { background: rgba(148, 163, 184, 0.12); color: #0f172a; }
body.light-theme .auth-field span { color: #475569; }
body.light-theme .auth-field input {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(148, 163, 184, 0.35);
    color: #0f172a;
}
body.light-theme .auth-primary { background: var(--light-accent); }
body.light-theme .auth-primary:hover { background: var(--light-accent-strong); }
body.light-theme .auth-secondary { color: #475569; }
body.light-theme .auth-account-info {
    background: rgba(248, 250, 252, 0.86);
    border-color: rgba(148, 163, 184, 0.28);
}
body.light-theme .auth-account-cell { background: rgba(255, 255, 255, 0.82); }
body.light-theme .auth-account-cell span { color: #64748b; }
body.light-theme .auth-account-cell strong { color: #0f172a; }

body.light-theme #notDownloadModal .modal-btn {
    background: var(--light-accent);
}

body.light-theme #notDownloadModal .modal-btn:hover {
    background: var(--light-accent-strong);
}


body.light-theme .lyrics-line.active::after {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--light-accent), transparent);
}


body.light-theme .song-items-wrapper .song-item.song-hover:hover {
    background-color: rgba(59, 130, 246, 0.12) !important;
    background-image: none !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
}

body.light-theme .song-items-wrapper .song-item.song-hover.active:hover {
    background-color: rgba(13, 148, 136, 0.15) !important;
    background-image: none !important;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.12);
}


body.light-theme .song-items-wrapper .song-item.song-hover:hover {
    background-color: rgba(45, 212, 191, 0.075) !important;
    background-image: none !important;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.08);
}

body.light-theme .song-items-wrapper .song-item.song-hover.active:hover {
    background-color: rgba(45, 212, 191, 0.12) !important;
    background-image: none !important;
    border-left-color: #14b8a6;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.11);
}

/* The lyrics toggle keeps its active color without a background halo. */
#lyrics-toggle.active {
    background: transparent;
    box-shadow: none;
}

#lyrics-toggle.active:hover {
    background: rgba(79, 70, 229, 0.2);
}

body.light-theme #lyrics-toggle.active {
    background: transparent !important;
    box-shadow: none;
    color: var(--light-accent);
}

body.light-theme #lyrics-toggle.active:hover {
    background: var(--light-accent-soft) !important;
}
