/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #07070f;
    --bg-panel: rgba(12, 12, 28, 0.75);
    --bg-card: rgba(15, 15, 35, 0.6);
    --bg-card-hover: rgba(20, 20, 50, 0.7);
    --border: rgba(255,255,255,0.08);
    --border-glow: rgba(139, 92, 246, 0.4);
    --text-primary: #f0f0ff;
    --text-secondary: #8888aa;
    --text-dim: #5555770;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(139, 92, 246, 0.3);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.6), 0 0 40px rgba(236, 72, 153, 0.3);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.6), 0 0 40px rgba(6, 182, 212, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --font-main: 'Noto Sans SC', -apple-system, sans-serif;
    --font-mono: 'Orbitron', 'Noto Sans SC', monospace;
}

html { font-size: 16px; }

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Aurora Background ===== */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: float-aurora 20s ease-in-out infinite;
}

.aurora-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #8b5cf6, #a855f7 40%, transparent 70%);
    top: -200px; left: -100px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.aurora-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #ec4899, #f43f5e 40%, transparent 70%);
    top: 20%; right: -150px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.aurora-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #06b6d4, #0891b2 40%, transparent 70%);
    bottom: -100px; left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

.aurora-4 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #3b82f6, #6366f1 40%, transparent 70%);
    top: 50%; left: 10%;
    animation-duration: 28s;
    animation-delay: -15s;
}

@keyframes float-aurora {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ===== App Layout ===== */
.app-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(7,7,15,0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon { font-size: 28px; filter: drop-shadow(0 0 8px rgba(139,92,246,0.8)); }

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 6px;
    letter-spacing: 2px;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.header-actions { display: flex; gap: 10px; }

.btn-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: rgba(139,92,246,0.15);
    color: var(--accent-purple);
    border-color: var(--border-glow);
}

/* ===== Main Layout ===== */
.app-main {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    padding: 20px 24px;
    min-height: calc(100vh - 73px);
}

@media (max-width: 900px) {
    .app-main { grid-template-columns: 1fr; }
    .panel-left { order: 2; }
    .panel-right { order: 1; }
}

/* ===== Panels & Cards ===== */
.panel { display: flex; flex-direction: column; gap: 16px; }

.panel-left { max-height: calc(100vh - 113px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(139,92,246,0.3) transparent; }
.panel-left::-webkit-scrollbar { width: 4px; }
.panel-left::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 4px; }

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color 0.3s;
}

.card:hover { border-color: rgba(139,92,246,0.2); }

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.card-icon { font-size: 20px; }

.card-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.card-actions { display: flex; gap: 6px; }

/* ===== Buttons ===== */
.btn {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-sm {
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-sm:hover { background: rgba(139,92,246,0.12); color: var(--accent-purple); border-color: var(--border-glow); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,92,246,0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent-pink), #db2777);
    color: #fff;
    box-shadow: 0 4px 20px rgba(236,72,153,0.4);
}

.btn-accent:hover { box-shadow: 0 6px 30px rgba(236,72,153,0.6); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0); }
.btn-accent:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-large { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); width: 100%; }

.btn-row { display: flex; gap: 8px; margin-top: 12px; }
.btn-row .btn { flex: 1; }

/* ===== Audio Upload ===== */
.audio-upload-zone {
    border: 2px dashed rgba(139,92,246,0.3);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.audio-upload-zone:hover, .audio-upload-zone.dragover {
    border-color: var(--accent-purple);
    background: rgba(139,92,246,0.08);
}

.upload-content { pointer-events: none; }

.upload-icon { font-size: 36px; margin-bottom: 8px; opacity: 0.8; }
.upload-text { font-size: 14px; color: var(--text-primary); margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--text-secondary); }

.audio-info { margin-top: 8px; }
.audio-name { display: block; font-size: 13px; color: var(--accent-purple); font-weight: 500; word-break: break-all; }
.audio-duration { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ===== Tabs ===== */
.input-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(236,72,153,0.2));
    color: var(--text-primary);
}

/* ===== Lyrics Textarea ===== */
.lyrics-textarea {
    width: 100%;
    min-height: 160px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.2s;
}

.lyrics-textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.lyrics-textarea::placeholder { color: var(--text-secondary); opacity: 0.7; }

/* ===== Alignment Modes ===== */
.align-modes {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.mode-btn.active {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.1));
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.mode-icon { font-size: 18px; }

.mode-panel { display: none; }
.mode-panel.active { display: block; }

.mode-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.timestamp-controls { text-align: center; margin-bottom: 14px; }
.btn-icon-big { font-size: 24px; }
.keyboard-hint { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }

.align-progress { margin-bottom: 12px; }
.align-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.align-label strong { color: var(--accent-purple); }

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

/* ===== Lyrics Lines List ===== */
.lyrics-lines-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.3) transparent;
}

.lyrics-line-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.lyrics-line-item:hover { background: rgba(139,92,246,0.1); border-color: var(--border-glow); }
.lyrics-line-item.active { background: rgba(139,92,246,0.15); border-color: var(--accent-purple); }

.line-num { font-size: 11px; color: var(--text-secondary); min-width: 20px; }
.line-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    min-width: 44px;
    cursor: text;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(6,182,212,0.1);
    border: none;
    font-family: var(--font-main);
    transition: background 0.2s;
}

.line-time:focus {
    outline: none;
    background: rgba(6,182,212,0.2);
}

.line-time.empty { color: var(--text-secondary); background: transparent; }
.line-text-preview { font-size: 12px; color: var(--text-secondary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-text-preview.synced { color: var(--text-primary); }

/* ===== AI Panel ===== */
.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.input-row label { font-size: 13px; color: var(--text-secondary); white-space: nowrap; }

.input-field {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    flex: 1;
    transition: border-color 0.2s;
}

.input-field:focus { outline: none; border-color: var(--accent-purple); }
.time-input { font-family: var(--font-mono); }

/* ===== Right Panel ===== */
.panel-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 0;
}

/* ===== Mini Player ===== */
.mini-player {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.now-playing { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.np-icon { font-size: 28px; }

.np-info { min-width: 0; }
.np-title { font-size: 14px; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-status { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.player-controls { display: flex; align-items: center; gap: 8px; }

.ctrl-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ctrl-btn:hover { background: rgba(139,92,246,0.2); transform: scale(1.05); }
.ctrl-btn:active { transform: scale(0.95); }

.ctrl-play {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    box-shadow: var(--glow-purple);
}

.ctrl-play:hover { box-shadow: var(--glow-pink); }

.time-display {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.time-sep { margin: 0 2px; opacity: 0.5; }

/* ===== Seek Bar ===== */
.progress-section {
    padding: 8px 20px 4px;
    border-bottom: 1px solid var(--border);
}

.seek-bar {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: height 0.2s;
}

.seek-bar:hover { height: 6px; }
.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    box-shadow: var(--glow-purple);
    transition: transform 0.2s;
}

.seek-bar::-webkit-slider-thumb:hover { transform: scale(1.3); }
.seek-bar::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    border: none;
    box-shadow: var(--glow-purple);
}

.seek-times {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* ===== Karaoke Display ===== */
.karaoke-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.karaoke-inner {
    text-align: center;
    width: 100%;
    max-width: 700px;
    transition: all 0.4s ease;
}

.karaoke-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0.5;
}

.empty-icon { font-size: 56px; filter: drop-shadow(0 0 20px rgba(139,92,246,0.5)); }

.karaoke-empty h3 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.karaoke-empty p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== Karaoke Lyrics ===== */
.karaoke-lyrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.karaoke-lyrics .line { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

.line.prev {
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0.5;
    transform: translateY(-20px);
    filter: blur(1px);
}

.line.current {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    transform: scale(1.05);
    text-shadow: var(--glow-purple);
    filter: drop-shadow(0 0 30px rgba(139,92,246,0.5));
    line-height: 1.4;
    padding: 10px 20px;
}

.line.current.highlight {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(139,92,246,0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(236,72,153,0.8)); }
}

.line.next {
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0.6;
    transform: translateY(20px);
}

.line-text { display: inline; }

/* Word highlight mode */
.line-text .word {
    display: inline;
    transition: all 0.15s ease;
}

.line-text .word.active {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 0 8px rgba(236,72,153,0.8));
    transform: scale(1.1);
}

.line-text .word.done {
    color: var(--accent-purple);
    opacity: 0.7;
}

/* ===== Lyrics Quick View ===== */
.lyrics-quick-view {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.3) transparent;
}

.qv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.qv-list { display: flex; flex-direction: column; gap: 3px; }

.qv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.qv-item:hover { background: rgba(139,92,246,0.1); }
.qv-item.playing { background: rgba(139,92,246,0.15); }

.qv-time { font-family: var(--font-mono); color: var(--accent-cyan); min-width: 40px; }
.qv-text { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qv-item.playing .qv-text { color: var(--text-primary); }

/* ===== Shortcuts Bar ===== */
.shortcuts-bar {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-secondary);
    justify-content: center;
    flex-wrap: wrap;
}

.shortcuts-bar span { display: flex; align-items: center; gap: 4px; }

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-primary);
    min-width: 22px;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: rgba(12, 12, 28, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 16px; font-weight: 600; }

.btn-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; }

.modal-body { padding: 20px; }

.share-preview {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.sp-song { font-size: 14px; color: var(--accent-purple); margin-bottom: 8px; }
.sp-lyrics { font-size: 13px; color: var(--text-secondary); line-height: 1.6; max-height: 120px; overflow-y: auto; }

.share-actions { display: flex; gap: 10px; }
.share-actions .btn { flex: 1; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15,15,35,0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-primary);
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.7); }

/* ===== Animations ===== */
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.lyrics-line-item { animation: slideIn 0.2s ease; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .app-header { padding: 12px 16px; }
    .logo-text { font-size: 18px; }
    .app-main { padding: 12px; gap: 12px; }
    .card { padding: 14px; }
    .line.current { font-size: 24px; }
    .line.prev, .line.next { font-size: 15px; }
    .karaoke-container { padding: 24px 16px; min-height: 250px; }
    .shortcuts-bar { gap: 12px; }
    .np-title { max-width: 100px; }
}

@media (max-width: 480px) {
    .lyrics-quick-view { display: none; }
    .header-actions { display: none; }
    .line.current { font-size: 20px; }
}
