/**
 * MHENT STUDY - MUSIC LYRICS STUDY HUB STYLES
 * Apple Music / Spotify Glassmorphic Synced Lyrics & Sentence Karaoke Engine
 */

:root {
    --lyrics-bg: #0b0f19;
    --lyrics-card-bg: rgba(17, 24, 39, 0.85);
    --lyrics-active-glow: rgba(14, 165, 233, 0.35);
    --lyrics-accent: #0ea5e9;
    --lyrics-accent-grad: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    --lyrics-text-dim: rgba(255, 255, 255, 0.45);
    --lyrics-text-active: #ffffff;
    --lyrics-phonetic-color: #38bdf8;
    --lyrics-trans-color: #94a3b8;
}

/* Unified Dark Theme Harmonization across Navbar, Content & Footer */
html,
body.lyrics-theme {
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
    min-height: 100vh;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body.lyrics-theme .study-nav {
    background: rgba(15, 23, 42, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding-top: max(10px, env(safe-area-inset-top, 10px)) !important;
    padding-left: max(16px, env(safe-area-inset-left, 16px)) !important;
    padding-right: max(16px, env(safe-area-inset-right, 16px)) !important;
}

body.lyrics-theme .brand-main-title {
    color: #f8fafc !important;
}

body.lyrics-theme .brand-sub-badge {
    background: rgba(14, 165, 233, 0.2) !important;
    color: #38bdf8 !important;
}

body.lyrics-theme .study-link {
    color: #94a3b8 !important;
}

body.lyrics-theme .study-link:hover,
body.lyrics-theme .study-link.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
}

body.lyrics-theme .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

body.lyrics-theme .btn-open-aisa-dict {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    color: #38bdf8 !important;
}

body.lyrics-theme .study-footer {
    background: #080c14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #64748b !important;
}

body.lyrics-theme .footer-brand-title {
    color: #f8fafc !important;
}

/* Layout */
.lyrics-page-wrapper {
    max-width: 1480px;
    width: min(95%, 1480px);
    margin: 0 auto;
    padding: 24px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header & Search Hero */
.lyrics-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lyrics-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
    pointer-events: none;
}

.lyrics-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.lyrics-hero-title-box h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.lyrics-hero-title-box p {
    color: var(--lyrics-trans-color);
    font-size: 0.95rem;
}

.lyrics-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
}

.lyrics-search-input-wrap {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    align-items: center;
}

.lyrics-search-input-wrap i {
    position: absolute;
    left: 16px;
    color: var(--lyrics-trans-color);
    font-size: 1rem;
}

.lyrics-search-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.lyrics-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--lyrics-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.lyrics-search-btn {
    background: var(--lyrics-accent-grad);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.lyrics-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Quick Filter Pills */
.lyrics-lang-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-pill:hover, .lang-pill.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    color: #38bdf8;
}

/* Main Workspace: 2-Column Grid (Player & Track Info on left, Synced Karaoke on right) */
.lyrics-workspace {
    display: grid;
    grid-template-columns: minmax(460px, 500px) 1fr;
    gap: 24px;
    min-height: 640px;
}

@media (min-width: 1400px) {
    .lyrics-workspace {
        grid-template-columns: 500px 1fr;
    }
}

@media (max-width: 1024px) {
    .lyrics-workspace {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lyrics-player-card {
        position: static;
        top: auto;
        padding: 20px;
        border-radius: 20px;
    }

    .lyrics-viewport-card {
        max-height: none;
        min-height: 520px;
    }
}

/* Left Column Wrapper: Player & Word Highlight Spotlight */
.lyrics-left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
    position: sticky;
    top: 85px;
}

@media (min-width: 1025px) {
    .lyrics-left-column {
        max-height: calc(100vh - 95px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    }
    .lyrics-left-column::-webkit-scrollbar {
        width: 4px;
    }
    .lyrics-left-column::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }
}

/* Left Column: Player & Metadata Card */
.lyrics-player-card {
    background: var(--lyrics-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: fit-content;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Media Container (Album Art / YouTube MV) */
.track-media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.track-art-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.track-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.track-art-wrap:hover .track-art-img {
    transform: scale(1.03);
}

/* YouTube IFrame Embed Container & Wrapper */
.youtube-player-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: inherit;
    overflow: hidden;
    z-index: 2;
}

.youtube-player-wrapper iframe,
#track-media-container iframe,
iframe#youtube-player-frame,
.youtube-player-frame {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: none !important;
    display: block !important;
    z-index: 2;
}

/* Clean Media Toolbar beneath Video (Unobstructed Playback) */
.track-media-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: -6px;
    margin-bottom: 2px;
}

.media-toolbar-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.media-toolbar-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    color: #ffffff;
    transform: translateY(-1px);
}

.media-toolbar-btn.btn-toggle-media-mode:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
}

.tv-size-warning-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    animation: pulseWarning 2s infinite ease-in-out;
}

.tv-size-warning-badge:hover {
    background: #ef4444;
    color: #ffffff;
}

@keyframes pulseWarning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Track Metadata (Header above Video) */
.track-info-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.track-info-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.track-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.track-artist {
    font-size: 0.88rem;
    color: #38bdf8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-lang-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
    margin-top: 1px;
    flex-shrink: 0;
}

/* Audio Player Controls */
.player-controls-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.playback-slider-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.playback-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    accent-color: #0ea5e9;
}

.playback-time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
    font-family: monospace;
}

.playback-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn-player-action {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-player-action:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-player-action.active {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.15);
}

.btn-player-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--lyrics-accent-grad);
    color: #ffffff;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transition: all 0.2s;
}

.btn-player-play:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.player-tools-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
    padding-top: 6px;
}

.speed-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

/* Right Column: Sentence-by-Sentence Karaoke Viewport */
.lyrics-viewport-card {
    background: var(--lyrics-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(12px);
    position: relative;
    max-height: 750px;
}

/* Viewport Header: Version Switcher & Stats */
.lyrics-viewport-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.version-tabs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.version-tab {
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.version-tab.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    color: #38bdf8;
}

.viewport-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-tool-action {
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-tool-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.btn-tool-action.active {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.btn-ai-gradient {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.25)) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #c084fc !important;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.15);
}

.btn-ai-gradient:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.45)) !important;
    color: #f3e8ff !important;
    transform: translateY(-1px);
}

.btn-ai-gradient.analyzing {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.5)) !important;
    color: #ffffff !important;
    animation: pulseAIBorder 1.6s infinite ease-in-out;
}

@keyframes pulseAIBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
}

.btn-contribute-version {
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-contribute-version:hover {
    background: #10b981;
    color: white;
}

/* Plain Reading Mode Container */
.lyrics-plain-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 32px 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    line-height: 2.2;
    color: #e2e8f0;
    font-size: 1.15rem;
    font-weight: 500;
}

.lyrics-plain-line {
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.lyrics-plain-line:hover {
    background: rgba(255, 255, 255, 0.04);
}

.lyrics-plain-trans {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: -6px;
    margin-bottom: 12px;
    font-weight: 400;
}

/* Lyrics Scrollable Area */
.lyrics-stream-container {
    flex: 1;
    overflow-y: auto;
    padding: 56px 28px 120px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    will-change: scroll-position;
}

/* Sentence Row */
.lyrics-sentence-row {
    padding: 16px 20px;
    border-radius: 16px;
    background: transparent;
    opacity: 0.72;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
                background-color 0.35s ease, 
                border-color 0.35s ease, 
                box-shadow 0.35s ease, 
                opacity 0.35s ease;
    will-change: transform, opacity;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    border: 1px solid transparent;
    transform-origin: center center;
}

.lyrics-sentence-row:hover {
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

/* ACTIVE HIGHLIGHT STATE (Sentence by Sentence Karaoke) */
.lyrics-sentence-row.active {
    opacity: 1;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.14));
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 25px rgba(14, 165, 233, 0.22);
    transform: scale(1.02);
}

.lyrics-quick-tip-banner {
    margin-top: 14px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.84rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lyrics-sentence-row.active .sentence-orig-text {
    color: #ffffff;
    font-size: 1.25rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.lyrics-sentence-row.active .sentence-trans-text {
    color: #cbd5e1;
    font-weight: 500;
}

.sentence-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.sentence-time-badge {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.sentence-play-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 6px;
    padding: 3px 8px;
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.sentence-play-btn i {
    font-size: 0.68rem;
    color: #38bdf8;
    transition: transform 0.2s;
}

.sentence-play-btn:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.45);
    color: #f8fafc;
    transform: translateY(-1px);
}

.sentence-play-btn:hover i {
    transform: scale(1.15);
}

.lyrics-sentence-row.active .sentence-play-btn {
    background: rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.6);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.sentence-loop-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sentence-loop-btn:hover {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.1);
}

.sentence-orig-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lyrics-text-dim);
    line-height: 1.45;
    transition: all 0.25s ease;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.sentence-phonetic-text {
    font-size: 0.84rem;
    color: var(--lyrics-phonetic-color);
    font-weight: 500;
    opacity: 0.85;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.sentence-trans-text {
    font-size: 0.92rem;
    color: rgba(148, 163, 184, 0.7);
    line-height: 1.4;
    transition: all 0.25s ease;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

/* Individual clickable words in lyrics (for vocabulary lookup) */
.word-token {
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
    padding: 0 1px;
    transition: all 0.15s ease;
}

.word-token:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.16);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Key Vocabulary Highlights inside Lyrics */
.vocab-word-chip {
    display: inline-block;
    color: #38bdf8;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    cursor: pointer;
    position: relative;
    padding: 0 3px;
    border-radius: 4px;
    transition: all 0.2s;
}

.vocab-word-chip:hover {
    background: rgba(14, 165, 233, 0.25);
    color: #ffffff;
}

/* Vocabulary Hover Tooltip / Popover */
.vocab-popover-box {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(14, 165, 233, 0.25);
    width: 270px;
    max-width: min(280px, 85vw);
    z-index: 200;
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: default;
    animation: popoverFade 0.2s ease;
}

.vocab-popover-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

/* Dynamic Left/Right Arrow Alignment */
.vocab-popover-box[data-align="left"]::after {
    left: 24px;
    transform: none;
}

.vocab-popover-box[data-align="right"]::after {
    left: auto;
    right: 24px;
    transform: none;
}

/* Flipped downward when too close to the top of container */
.vocab-popover-box.popover-down {
    bottom: auto;
    top: calc(100% + 10px);
}

.vocab-popover-box.popover-down::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #1e293b transparent;
}

.vocab-popover-box.popover-down[data-align="left"]::after {
    left: 24px;
    transform: none;
}

.vocab-popover-box.popover-down[data-align="right"]::after {
    left: auto;
    right: 24px;
    transform: none;
}

.lyrics-sentence-row:has(.vocab-popover-box.show),
.lyrics-sentence-row.has-active-popover {
    z-index: 100 !important;
}

@keyframes popoverFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.vocab-popover-box.show {
    display: flex;
}

.popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.popover-word {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.05rem;
}

.popover-pos {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 1px 6px;
    border-radius: 4px;
}

.popover-phonetic {
    font-family: monospace;
    font-size: 0.8rem;
    color: #38bdf8;
}

.popover-meaning {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.35;
}

.popover-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.popover-btn-speak {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #38bdf8;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.popover-btn-save {
    background: var(--lyrics-accent-grad);
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Trending Song Cards Showcase Grid */
.lyrics-showcase-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.showcase-header h3 {
    font-size: 1.25rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.song-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.song-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.song-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #1e293b;
}

.song-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-card-lang-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.song-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-card-artist {
    font-size: 0.85rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Community Contribution Modal */
.contrib-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(10, 15, 29, 0.8);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contrib-modal-overlay.active {
    display: flex;
}

.contrib-modal-card {
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contrib-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contrib-modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contrib-grid-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 640px) {
    .contrib-grid-meta {
        grid-template-columns: 1fr;
    }
}

.contrib-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contrib-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}

.contrib-input, .contrib-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contrib-input:focus, .contrib-textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.contrib-textarea {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

.contrib-editor-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.contrib-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.contrib-editor-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contrib-line-count-badge {
    font-size: 0.75rem;
    background: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.contrib-editor-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contrib-tool-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.contrib-tool-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.contrib-lines-container {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 6px;
}

.contrib-line-edit-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s;
}

.contrib-line-edit-item:hover, .contrib-line-edit-item:focus-within {
    border-color: rgba(14, 165, 233, 0.45);
    background: rgba(14, 165, 233, 0.04);
}

.contrib-line-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-family: monospace;
    color: #94a3b8;
}

.contrib-line-time {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    color: #38bdf8;
}

.contrib-line-orig {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
}

.contrib-line-phonetic {
    font-size: 0.85rem;
    color: #94a3b8;
    font-family: monospace;
}

.contrib-line-input-wrap {
    margin-top: 4px;
}

.contrib-line-trans-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.92rem;
    color: #38bdf8;
    outline: none;
    transition: all 0.2s;
}

.contrib-line-trans-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
    background: rgba(15, 23, 42, 0.95);
}

/* Vocab tags attached to line inside contrib modal */
.contrib-line-words-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.contrib-line-words-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.contrib-words-title {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-add-word-manual {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-add-word-manual:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    transform: translateY(-1px);
}

.contrib-words-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    align-items: center;
}

.contrib-words-empty-hint {
    font-size: 0.76rem;
    color: #64748b;
    font-style: italic;
}

.contrib-word-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.8rem;
    color: #e2e8f0;
    transition: all 0.2s;
}

.contrib-word-chip .chip-w {
    font-weight: 700;
    color: #38bdf8;
}

.contrib-word-chip .chip-m {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.contrib-word-chip .chip-del {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    margin-left: 2px;
    border-radius: 3px;
    transition: all 0.15s;
}

.contrib-word-chip .chip-del:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* Floating selection tag pill */
.contrib-selection-tag-pill {
    position: fixed;
    z-index: 10005;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -100%);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    pointer-events: auto;
}

.contrib-selection-tag-pill:hover {
    transform: translate(-50%, -100%) scale(1.05);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.6);
}

/* Mini Vocab Dialog Modal */
.contrib-vocab-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease-out;
}

.contrib-vocab-dialog-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contrib-vocab-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contrib-vocab-dialog-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-dialog-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.btn-dialog-close:hover {
    color: #f8fafc;
}

.contrib-vocab-dialog-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vocab-dialog-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vocab-dialog-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
}

.vocab-dialog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-ai-autofill {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-ai-autofill:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.contrib-vocab-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
}

.contrib-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}

/* ==========================================================================
   6. BROWSE LIBRARY BUTTON & TIME OFFSET SYNC CALIBRATOR
   ========================================================================== */
.btn-browse-library {
    padding: 12px 20px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #38bdf8;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.btn-browse-library:hover {
    background: rgba(14, 165, 233, 0.3);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

/* Time Offset Sync Calibrator Card */
.lyrics-calibrator-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calibrator-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.calibrator-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.calibrator-val-badge {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.calibrator-buttons-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.btn-offset-step, .btn-offset-reset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: monospace;
}

.btn-offset-step:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: #0ea5e9;
    color: #ffffff;
    transform: scale(1.06);
}

.btn-offset-reset {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.btn-offset-reset:hover {
    background: #f59e0b;
    color: white;
}

/* ==========================================================================
   7. CUSTOM GLASSMORPHIC SPEED SELECTOR & AUDIO CONTROLS
   ========================================================================== */
.player-tools-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    position: relative;
}

.custom-speed-dropdown {
    position: relative;
    user-select: none;
}

.btn-speed-trigger {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-speed-trigger:hover, .custom-speed-dropdown.open .btn-speed-trigger {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    color: #38bdf8;
}

.speed-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.custom-speed-dropdown.open .speed-arrow {
    transform: rotate(180deg);
}

.custom-speed-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #1e293b;
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: 12px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 140px;
    z-index: 150;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    animation: speedMenuFade 0.18s ease;
}

@keyframes speedMenuFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-speed-dropdown.open .custom-speed-menu {
    display: flex;
}

.speed-opt {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.speed-opt:hover {
    background: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
}

.speed-opt.active {
    background: rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    font-weight: 800;
}

/* Audio Engine Switcher */
.audio-engine-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
}

.btn-engine-pill {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-engine-pill:hover {
    color: #f8fafc;
}

.btn-engine-pill.active {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4);
}

/* Volume Slider in Player Controls */
.custom-vol-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.btn-player-mini {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-player-mini:hover, .btn-player-mini.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    color: #38bdf8;
    transform: scale(1.08);
}

.volume-slider {
    width: 65px;
    height: 4px;
    accent-color: #0ea5e9;
    cursor: pointer;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

/* ==========================================================================
   8. SONG SELECTION & SEARCH RESULTS MODAL
   ========================================================================== */
.song-select-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.song-select-modal-overlay.active {
    display: flex;
}

.song-select-modal-card {
    background: linear-gradient(145deg, #131b2e, #0b1120);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(14, 165, 233, 0.15);
    overflow: hidden;
    animation: zoomInCard 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.song-select-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.song-select-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.song-select-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

.song-select-header-left h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.song-select-header-left p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 2px 0 0;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.song-select-filters {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(15, 23, 42, 0.5);
}

.song-select-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.song-select-input-wrap i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.song-select-input-wrap input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px 10px 38px;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.song-select-input-wrap input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

.song-select-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.song-modal-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.song-modal-pill:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.song-modal-pill.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    color: #38bdf8;
}

.song-select-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-select-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.song-select-item:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.song-item-cover-wrap {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.song-item-cover-icon {
    font-size: 1.1rem;
    color: #38bdf8;
}

.song-item-lang-pill {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
}

.song-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.song-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.song-item-title {
    font-weight: 800;
    color: #f8fafc;
    font-size: 1.05rem;
}

.badge-featured {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.song-item-artist {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.song-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.song-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.song-item-action {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.badge-karaoke {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.badge-plain {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-item-pick {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-item-pick:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

/* ==========================================================================
   9. CUSTOM TOAST NOTIFICATIONS
   ========================================================================== */
.study-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.study-toast {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 18px;
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
}

.study-toast.success {
    border-color: rgba(16, 185, 129, 0.4);
}

.study-toast.success i {
    color: #10b981;
}

.study-toast.info {
    border-color: rgba(14, 165, 233, 0.4);
}

.study-toast.info i {
    color: #0ea5e9;
}

.study-toast.warning {
    border-color: rgba(245, 158, 11, 0.4);
}

.study-toast.warning i {
    color: #f59e0b;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomInCard {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================================================
   SONG VOCABULARY & IDIOMS NOTEBOOK SUMMARY CARD
   ========================================================================= */
.song-vocab-summary-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 20px;
    padding: 24px;
    margin-top: 36px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.song-vocab-summary-card.highlight-pulse {
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.45);
}

.vocab-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.vocab-summary-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vocab-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.vocab-summary-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 4px 0;
}

.vocab-summary-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

.btn-save-all-deck {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
    transition: all 0.25s ease;
}

.btn-save-all-deck:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.vocab-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.vocab-summary-chip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s ease;
}

.vocab-summary-chip-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.chip-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chip-word-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip-card-word {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.chip-card-speak-btn {
    background: transparent;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.chip-card-speak-btn:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: scale(1.1);
}

.chip-card-pos {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.chip-card-phonetic {
    font-size: 0.85rem;
    color: #38bdf8;
    font-family: monospace;
}

.chip-card-meaning {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.chip-card-example {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 2px solid #0ea5e9;
}

.chip-card-example:hover {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.1);
}

.chip-card-bottom {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.chip-card-save-btn {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip-card-save-btn:hover {
    background: #0ea5e9;
    color: white;
}

.song-item-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* =========================================================================
   ENHANCED VOCABULARY CHIP CARDS & ACTIONS
   ========================================================================= */
.chip-card-top,
.vocab-chip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.chip-word-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chip-card-word,
.vocab-chip-word {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.chip-card-pos,
.vocab-chip-pos {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.chip-card-phonetic,
.vocab-chip-phonetic {
    font-size: 0.88rem;
    color: #0ea5e9;
    font-family: 'Fira Code', monospace;
    margin-bottom: 2px;
}

.chip-card-meaning,
.vocab-chip-meaning {
    font-size: 0.94rem;
    color: #e2e8f0;
    line-height: 1.45;
    margin-bottom: 8px;
}

.chip-card-actions,
.vocab-chip-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-save-single-vocab {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-save-single-vocab:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-1px);
}

.btn-goto-sentence {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-goto-sentence:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

/* =========================================================================
   FLOATING QUICK LOOKUP TOOLTIP FOR SELECTED TEXT IN LYRICS
   ========================================================================= */
.lyric-quick-lookup-pill {
    position: fixed;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(14, 165, 233, 0.3);
    transform: translate(-50%, -100%);
    margin-top: -10px;
    animation: pillSlideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

@keyframes pillSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -90%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1);
    }
}

.lookup-pill-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lookup-pill-btn-search {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.lookup-pill-btn-search:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}

.lookup-pill-btn-save {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.lookup-pill-btn-save:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fbbf24;
}

/* Modal header fix */
.song-select-header,
.song-select-modal-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-avatar, .footer-brand-logo {
    object-fit: contain !important;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
}

/* ========================================================================= */
/* ========================================================================= */
/* MUSIXMATCH PRO - TIMING SYNC STUDIO CSS                                   */
/* ========================================================================= */
.sync-studio-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 150000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease-out;
}

.sync-studio-modal-overlay.active {
    display: flex;
}

.mxm-studio-card {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 96vw;
    max-width: 1180px;
    height: 92vh;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(14, 165, 233, 0.14);
    overflow: hidden;
    position: relative;
}

/* 1. STUDIO HEADER */
.mxm-header {
    height: 62px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f172a;
    flex-shrink: 0;
    z-index: 20;
}

.mxm-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mxm-header-icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.mxm-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: scale(1.05);
}

.mxm-header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}

.mxm-header-track-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.mxm-thumb-mini {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.mxm-track-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mxm-track-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.mxm-track-artist {
    font-size: 0.76rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.mxm-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mxm-btn-publish {
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: none;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mxm-btn-publish:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
}

/* 2. WORKSPACE CONTAINER (SIDEBAR + STAGE) */
.mxm-workspace {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.mxm-sidebar-tabs {
    width: 105px;
    background: #080c16;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 14px 8px;
    gap: 10px;
    flex-shrink: 0;
    user-select: none;
}

.mxm-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.mxm-tab-btn i {
    font-size: 1.15rem;
    transition: transform 0.2s;
}

.mxm-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.mxm-tab-btn:hover i {
    transform: scale(1.1);
}

.mxm-tab-btn.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.35);
    color: #38bdf8;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.25);
}

.mxm-tab-btn.active i {
    color: #38bdf8;
}

.mxm-main-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #040711;
    position: relative;
    min-width: 0;
}

.mxm-view-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* TIME SYNC TOOLBAR */
.mxm-sync-toolbar {
    padding: 10px 24px;
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
}

.mxm-sync-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.84rem;
    color: #94a3b8;
}

.mxm-sync-hint .hint-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
}

.mxm-sync-hint .hint-badge kbd {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: inherit;
    color: #ffffff;
}

.mxm-sync-counter {
    font-size: 0.85rem;
    color: #94a3b8;
}

.mxm-sync-counter b {
    color: #38bdf8;
    font-size: 1.05rem;
}

/* SCROLLABLE LIST OF LINES (MUSIXMATCH PRO SCREENSHOT 2) */
.mxm-lines-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 100px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.mxm-intro-break {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.85rem;
    user-select: none;
    margin-bottom: 6px;
}

.mxm-intro-break .break-dots {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #38bdf8;
}

.mxm-lines-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* INDIVIDUAL LINE ROW */
.mxm-line-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mxm-line-row:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(255, 255, 255, 0.2);
}

.mxm-line-row.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: #0ea5e9;
    box-shadow: 0 0 22px rgba(14, 165, 233, 0.35);
    transform: scale(1.008);
}

.mxm-line-row.playing-now {
    border-left: 4px solid #a855f7;
}

.mxm-btn-line-delete {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.15s;
    flex-shrink: 0;
}

.mxm-btn-line-delete:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

/* STEPPER WITH PRECISE CONTROLS (<< < 00:00.09 > >>) */
.mxm-stepper-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2px 6px;
    gap: 2px;
    flex-shrink: 0;
}

.mxm-step-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 800;
    width: 22px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    user-select: none;
}

.mxm-step-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.mxm-line-time-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 800;
    color: #64748b;
    padding: 2px 8px;
    min-width: 68px;
    text-align: center;
    user-select: none;
    letter-spacing: 0.3px;
}

.mxm-line-time-badge.has-time {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

/* PLAY BUTTON DIRECTLY ON ROW */
.mxm-btn-line-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.mxm-btn-line-play:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
    transform: scale(1.14);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.6);
}

.mxm-line-row.active .mxm-btn-line-play {
    border-color: #38bdf8;
    color: #38bdf8;
}

.mxm-line-text-wrap {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
}

.mxm-line-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.45;
    word-break: break-word;
}

.mxm-line-row.active .mxm-line-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* FLOATING SYNC CONTROL AT BOTTOM */
.mxm-floating-sync-bar {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 15;
}

.mxm-btn-nav-up {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.mxm-btn-nav-up:hover {
    background: rgba(51, 65, 85, 0.95);
    color: #fff;
    transform: translateY(-2px);
}

.mxm-btn-sync-down {
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    background: #ffffff;
    color: #020617;
    font-size: 0.92rem;
    font-weight: 900;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 255, 255, 0.25);
    transition: all 0.15s;
}

.mxm-btn-sync-down:hover {
    background: #f0f9ff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.35);
}

.mxm-btn-sync-down:active {
    transform: translateY(1px) scale(0.97);
}

/* 3. BOTTOM SCRUBBER & AUDIO PROGRESS BAR (MUSIXMATCH PRO SCREENSHOT 2) */
.mxm-bottom-player-bar {
    height: 64px;
    background: #0b0f19;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    z-index: 20;
}

.mxm-scrub-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    min-width: 48px;
    text-align: center;
}

.mxm-progress-container {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.mxm-progress-fill {
    position: absolute;
    left: 0;
    top: 10px;
    height: 5px;
    background: linear-gradient(90deg, #818cf8, #38bdf8);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    transition: width 0.05s linear;
}

.mxm-progress-slider {
    position: absolute;
    left: 0;
    top: 10px;
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    outline: none;
    margin: 0;
    cursor: pointer;
    z-index: 3;
}

.mxm-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
    cursor: pointer;
    transition: transform 0.15s;
}

.mxm-progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.35);
}

.mxm-progress-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
    cursor: pointer;
    border: none;
}

.mxm-transport-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mxm-transport-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.mxm-transport-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.mxm-transport-btn .t-badge {
    font-size: 0.62rem;
    position: absolute;
    bottom: 3px;
    right: 4px;
    font-weight: 900;
    color: #38bdf8;
}

.mxm-play-main {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #020617;
    border: none;
    font-size: 1.05rem;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

.mxm-play-main:hover {
    transform: scale(1.08);
    background: #f0f9ff;
}

/* TRANSCRIPT FORM STYLING */
.mxm-transcript-form {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* TRANSLATE STYLING (MUSIXMATCH PRO SCREENSHOT 3) */
.mxm-translate-header {
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 16px;
}

.mxm-translate-lang-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mxm-translate-lang-row .lang-tag-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.mxm-translate-lang-row .lang-tag-val {
    font-size: 0.88rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 4px 12px;
    border-radius: 8px;
}

.mxm-translate-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mxm-translate-item {
    display: grid;
    grid-template-columns: 80px 1.2fr 1fr;
    gap: 14px;
    align-items: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.15s;
}

.mxm-translate-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.mxm-translate-item .rev-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    font-weight: 700;
}

.mxm-translate-item .rev-text {
    font-size: 0.95rem;
    color: #f8fafc;
    font-weight: 600;
    line-height: 1.4;
}

.mxm-translate-item .rev-trans-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    transition: all 0.15s;
}

.mxm-translate-item .rev-trans-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

@media (max-width: 768px) {
    .mxm-studio-card {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .mxm-sidebar-tabs {
        width: 100%;
        height: 52px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 4px 8px;
        justify-content: space-around;
    }

    .mxm-tab-btn {
        flex: 1;
        padding: 6px 4px;
        flex-direction: row;
        gap: 6px;
    }

    .mxm-workspace {
        flex-direction: column;
    }

    .mxm-stepper-wrap {
        padding: 1px 4px;
        gap: 1px;
    }

    .mxm-line-time-badge {
        min-width: 55px;
        font-size: 0.74rem;
        padding: 1px 3px;
    }

    .mxm-step-btn {
        width: 18px;
        height: 22px;
        font-size: 0.8rem;
    }

    .mxm-translate-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ========================================================================= */
/* MINIGAME: CHÉP CHÍNH TẢ & SHADOWING (DICTATION MODE)                      */
/* ========================================================================= */
.dictation-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
}

.dictation-game-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f472b6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dictation-game-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.dictation-box {
    margin-top: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
    animation: fadeIn 0.2s ease-out;
}

.dictation-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dictation-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1.05rem;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dictation-input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.btn-dictation-submit {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0 18px;
    border-radius: 8px;
    cursor: pointer;
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s;
    white-space: nowrap;
}

.btn-dictation-submit:hover {
    transform: scale(1.03);
}

.btn-dictation-hint,
.btn-dictation-skip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    border-radius: 8px;
    height: 42px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-dictation-hint:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fbbf24;
}

.btn-dictation-skip:hover {
    background: rgba(255, 255, 255, 0.16);
}

.dictation-feedback {
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dictation-feedback.correct {
    color: #10b981;
}

.dictation-feedback.incorrect {
    color: #f43f5e;
}

.blank-word-mask {
    display: inline-block;
    background: rgba(236, 72, 153, 0.25);
    border-bottom: 2px dashed #ec4899;
    border-radius: 4px;
    padding: 0 8px;
    min-width: 50px;
    text-align: center;
    color: #f472b6;
    font-weight: 800;
    font-family: monospace;
}

/* ==========================================================================
   USER PROFILE CHIP (AVATAR ONLY) & MOBILE DRAWER TOGGLE
   ========================================================================== */
.user-chip,
.user-chip-avatar-only {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
}

.user-chip:hover,
.user-chip-avatar-only:hover {
    transform: scale(1.1) !important;
}

.user-chip img,
.user-chip #user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #0ea5e9 !important;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4) !important;
}

.user-chip #user-name,
.user-chip .btn-logout-tiny {
    display: none !important;
}

.mobile-drawer-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.mobile-drawer-toggle:hover {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: #0ea5e9 !important;
    color: #38bdf8 !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   VOCAB DIALOG SELECT OPTIONS CONTRAST FIX
   ========================================================================== */
select.contrib-line-trans-input {
    background-color: #0f172a !important;
    color: #38bdf8 !important;
    cursor: pointer;
}

select.contrib-line-trans-input option {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    padding: 8px 12px;
}

/* ==========================================================================
   COMMUNITY TRANSLATIONS DRAWER (LIST DRAWER & CONTRIB MANAGER)
   ========================================================================== */
.btn-version-drawer-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-version-drawer-open:hover {
    background: rgba(14, 165, 233, 0.22);
    border-color: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.2);
}

.version-count-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
}

.lyrics-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 29, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lyrics-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lyrics-drawer-panel {
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.lyrics-drawer-overlay.active .lyrics-drawer-panel {
    transform: translateX(0);
}

.lyrics-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.9);
}

.lyrics-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lyrics-drawer-title h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.btn-drawer-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-drawer-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

.lyrics-drawer-desc {
    padding: 12px 20px;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(15, 23, 42, 0.5);
}

.lyrics-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.version-card-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.version-card-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

.version-card-item.active {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.version-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.version-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.version-card-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #f8fafc;
}

.version-card-author {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.version-card-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.version-card-badge.official {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.version-card-badge.community {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.version-card-note {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-style: italic;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 2px solid #8b5cf6;
}

.version-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.version-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-version-apply {
    flex: 1;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-version-apply:hover {
    background: #0ea5e9;
    color: #fff;
}

.btn-version-apply.is-current {
    background: #0ea5e9;
    color: #fff;
    cursor: default;
}

.btn-version-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-version-action-icon.edit:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fbbf24;
}

.btn-version-action-icon.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}

.lyrics-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.95);
}

.btn-drawer-add-contrib {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-drawer-add-contrib:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE UI (CROSS-DEVICE ANTI-OCCLUSION & APP PACKING)
   ========================================================================== */
@media (max-width: 768px) {
    /* Page Layout & Container with Safe Area Support */
    .lyrics-page-wrapper {
        padding: 14px 12px calc(60px + env(safe-area-inset-bottom, 0px));
        padding-left: max(12px, env(safe-area-inset-left, 12px));
        padding-right: max(12px, env(safe-area-inset-right, 12px));
        gap: 16px;
    }

    /* Hero Section */
    .lyrics-hero {
        padding: 18px 16px;
        border-radius: 16px;
        gap: 14px;
    }

    .lyrics-hero-title-box h1 {
        font-size: 1.35rem;
        gap: 8px;
    }

    .lyrics-hero-title-box p {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    /* Search Bar & Library Button */
    .lyrics-search-form {
        gap: 8px;
        width: 100%;
    }

    .lyrics-search-input-wrap {
        width: 100%;
        min-width: 100%;
    }

    .lyrics-search-btn, 
    .btn-browse-library {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    /* Horizontal Scrollable Language Pills */
    .lyrics-lang-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        width: 100%;
        gap: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .lyrics-lang-pills::-webkit-scrollbar {
        display: none;
    }

    .lang-pill {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    /* Player Card on Mobile */
    .lyrics-player-card {
        padding: 16px 14px;
        gap: 16px;
        border-radius: 16px;
    }

    .track-title {
        font-size: 1.2rem;
    }

    .track-artist {
        font-size: 0.88rem;
    }

    /* Time Offset Calibrator Row */
    .lyrics-calibrator-card {
        padding: 8px 10px;
    }

    .calibrator-buttons-row {
        gap: 3px;
    }

    .btn-offset-step, 
    .btn-offset-reset {
        padding: 5px 3px;
        font-size: 0.68rem;
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    /* Player Audio Tools */
    .player-tools-row {
        font-size: 0.8rem;
    }

    /* Lyrics Viewport Card & Header */
    .lyrics-viewport-card {
        border-radius: 16px;
        min-height: 480px;
    }

    .lyrics-viewport-header {
        padding: 12px 14px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .version-tabs-wrap {
        width: 100%;
    }

    .btn-version-drawer-open {
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    /* Horizontally Swipeable Tool Strip */
    .viewport-header-tools {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .viewport-header-tools::-webkit-scrollbar {
        display: none;
    }

    .btn-tool-action, 
    .btn-contribute-version {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 11px;
        font-size: 0.78rem;
    }

    /* Karaoke Lyrics Sentences */
    .lyrics-stream-container {
        padding: 20px 12px calc(80px + env(safe-area-inset-bottom, 0px));
        gap: 16px;
    }

    .lyrics-sentence-row {
        padding: 12px 14px;
        border-radius: 14px;
        gap: 6px;
    }

    .sentence-orig-text {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .lyrics-sentence-row.active .sentence-orig-text {
        font-size: 1.12rem;
    }

    .sentence-trans-text {
        font-size: 0.85rem;
        line-height: 1.35;
    }

    .sentence-phonetic-text {
        font-size: 0.78rem;
    }

    .sentence-meta-row {
        font-size: 0.72rem;
    }

    .sentence-play-btn, 
    .sentence-loop-btn {
        padding: 3px 7px;
        font-size: 0.72rem;
    }

    /* Vocabulary Popover Box */
    .vocab-popover-box {
        max-width: min(290px, calc(100vw - 28px));
        width: 275px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* Community Translations Drawer */
    .lyrics-drawer-panel {
        max-width: 100%;
        border-left: none;
        padding-top: max(0px, env(safe-area-inset-top, 0px));
    }

    .lyrics-drawer-header {
        padding: 14px 16px;
        padding-top: max(14px, env(safe-area-inset-top, 14px));
    }

    .lyrics-drawer-list {
        padding: 12px 14px;
        gap: 10px;
    }

    .lyrics-drawer-footer {
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Modal Overlays & Cards on Mobile */
    .contrib-modal-overlay,
    .song-select-modal-overlay,
    .sync-studio-modal-overlay {
        padding: 8px;
    }

    .contrib-modal-card,
    .song-select-modal-card,
    .sync-studio-card {
        max-width: 100%;
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px) !important;
        border-radius: 16px;
    }

    .contrib-modal-header,
    .song-select-header,
    .sync-studio-header {
        padding: 12px 16px;
    }

    .contrib-modal-body,
    .song-select-body,
    .sync-studio-body {
        padding: 14px 16px;
        gap: 12px;
    }

    .contrib-footer,
    .sync-studio-footer {
        flex-direction: column-reverse;
        gap: 8px;
        padding-bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
    }

    .contrib-footer button,
    .sync-studio-footer button {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
    }

    /* Safe-Area Bottom for Global Mega Footer */
    .study-mega-footer {
        padding-bottom: max(32px, calc(24px + env(safe-area-inset-bottom, 0px))) !important;
    }
}

/* Tablet & Compact Screens (< 640px) */
@media (max-width: 640px) {
    /* Navbar compacting & safe areas */
    .btn-open-aisa-dict kbd {
        display: none !important;
    }

    .study-nav, .study-navbar {
        height: auto !important;
        min-height: 48px;
    }

    /* Centered Toast Notifications on Small Viewports */
    .study-toast-container {
        left: max(16px, env(safe-area-inset-left, 16px)) !important;
        right: max(16px, env(safe-area-inset-right, 16px)) !important;
        bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
        align-items: center !important;
    }

    .study-toast {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
    /* Compact Top Nav AI Dictionary button to icon-only circle */
    .btn-open-aisa-dict span {
        display: none !important;
    }

    .btn-open-aisa-dict {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    .streak-pill-btn {
        font-size: 0.72rem !important;
        padding: 3px 6px !important;
    }

    .playback-buttons-row {
        gap: 10px;
    }

    .btn-player-action {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .btn-player-play {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .track-media-container {
        border-radius: 14px;
        min-height: 195px;
    }

    /* Dictation Game Box */
    .dictation-input-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .dictation-input {
        min-width: 100%;
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    .btn-dictation-submit {
        flex: 1;
        height: 38px;
        font-size: 0.85rem;
        justify-content: center;
    }

    .btn-dictation-hint,
    .btn-dictation-skip {
        height: 38px;
        font-size: 0.78rem;
        padding: 0 10px;
    }

    /* Compact sentence typography on extra-small mobile */
    .sentence-orig-text {
        font-size: 0.98rem;
    }

    .lyrics-sentence-row.active .sentence-orig-text {
        font-size: 1.05rem;
    }

    .sentence-trans-text {
        font-size: 0.82rem;
    }

    .sentence-phonetic-text {
        font-size: 0.74rem;
    }

    /* 1-Column Responsive Cards for Vocab Summary & Featured Songs */
    .vocab-summary-grid {
        grid-template-columns: 1fr !important;
    }

    .songs-grid {
        grid-template-columns: 1fr !important;
    }

    /* Floating quick lookup tooltip mobile boundary */
    .lyric-quick-lookup-pill {
        max-width: calc(100vw - 24px);
        padding: 5px 10px;
        font-size: 0.76rem;
    }

    .lookup-pill-text {
        max-width: 85px;
    }

    .lookup-pill-btn-search,
    .lookup-pill-btn-save {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   APP PACKING & OVERLAY ELEVATION RULES (NEVER GET COVERED BY BOTTOM NAV)
   ========================================================================== */
/* Hide mobile bottom nav completely on lyrics hub to give 100% height to lyrics */
.mhent-bottom-nav {
    display: none !important;
}

/* Ensure drawers and modals are always above all fixed elements */
.lyrics-drawer-overlay,
.song-select-modal-overlay,
.sync-studio-modal-overlay {
    z-index: 150000 !important;
}

.contrib-modal-overlay {
    z-index: 160000 !important;
}

.contrib-vocab-dialog-overlay {
    z-index: 170000 !important;
}

.study-toast-container {
    z-index: 200000 !important;
}

/* ==========================================================================
   REAL-TIME WORD HIGHLIGHT BOX (VOCAB SPOTLIGHT)
   ========================================================================== */
.lyrics-vocab-spotlight-card {
    background: var(--lyrics-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vocab-spotlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vocab-spotlight-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #f1f5f9;
}

.vocab-spotlight-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.vocab-spotlight-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 70px;
    justify-content: center;
}

.spotlight-empty-state, 
.spotlight-no-words {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
}

.spotlight-current-text {
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
}

.spotlight-current-trans {
    color: #38bdf8;
    font-size: 0.82rem;
    line-height: 1.3;
}

.spotlight-hint {
    color: #64748b;
    font-size: 0.72rem;
    font-style: italic;
    margin-top: 3px;
}

.spotlight-words-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
}

.spotlight-word-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #38bdf8;
    border-radius: 10px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
    animation: spotlightFadeIn 0.25s ease forwards;
    min-width: 0;
}

.spotlight-word-card:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

.spotlight-word-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.spotlight-word-term {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
}

.spotlight-term-main {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-term-phonetic {
    font-size: 0.78rem;
    color: #38bdf8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: -1px;
}

.spotlight-term-pos {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.spotlight-word-meaning {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* ==========================================================================
   STUDIO 16:9 VIEW MODE (Clean Recording for OBS - Pure Cinema Stage)
   ========================================================================== */
body.is-studio-mode {
    overflow: hidden !important;
    background: #090d16 !important;
}

body.is-studio-mode .main-nav,
body.is-studio-mode .lyrics-hero,
body.is-studio-mode .site-footer,
body.is-studio-mode .track-media-toolbar,
body.is-studio-mode .lyrics-calibrator-card,
body.is-studio-mode .custom-speed-dropdown,
body.is-studio-mode .audio-engine-toggle,
body.is-studio-mode .viewport-header-tools,
body.is-studio-mode .btn-version-drawer-open,
body.is-studio-mode .lyrics-quick-tip-banner,
body.is-studio-mode .chat-ai-trigger,
body.is-studio-mode #study-ai-container,
body.is-studio-mode .sentence-loop-btn,
body.is-studio-mode .lyrics-vocab-summary-section,
body.is-studio-mode #vocab-quick-drawer,
body.is-studio-mode .vocab-quick-drawer,
body.is-studio-mode .studio-floating-dock {
    display: none !important;
}

body.is-studio-mode .lyrics-workspace {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    margin: 0;
    padding: 20px 28px;
    z-index: 9999;
    background: radial-gradient(circle at 30% 30%, #0f172a 0%, #020617 100%);
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 24px;
    box-sizing: border-box;
}

body.is-studio-mode .lyrics-left-column {
    height: 100%;
    max-height: 100%;
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

/* Studio Player Card: Box chuẩn khung viền kính mờ như bản vẽ */
body.is-studio-mode .lyrics-player-card {
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    max-height: none;
    position: static;
    overflow: hidden;
}

/* Video 16:9 chuẩn tuyệt đối, loại bỏ hoàn toàn 2 dải đen */
body.is-studio-mode .track-media-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.is-studio-mode .track-title {
    font-size: 1.2rem;
}

body.is-studio-mode .track-artist {
    font-size: 0.9rem;
}

body.is-studio-mode .player-controls-box {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    gap: 8px;
}

/* Khung Từ Vựng Highlight dưới Video: Chiếm trọn không gian còn lại */
body.is-studio-mode .lyrics-vocab-spotlight-card {
    flex: 1;
    min-height: 0;
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

body.is-studio-mode .vocab-spotlight-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    padding-right: 2px;
}

/* Cột Lời bài hát Karaoke bên phải */
body.is-studio-mode .lyrics-viewport-card {
    height: 100%;
    max-height: 100%;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.is-studio-mode .lyrics-viewport-header {
    display: none !important;
}

body.is-studio-mode .lyrics-stream-container {
    padding: 60px 36px 180px;
    gap: 32px;
}

body.is-studio-mode .lyrics-sentence-row {
    padding: 20px 24px;
    border-radius: 16px;
}

body.is-studio-mode .sentence-orig-text {
    font-size: 1.35rem;
}

body.is-studio-mode .lyrics-sentence-row.active .sentence-orig-text {
    font-size: 1.55rem;
}

body.is-studio-mode .sentence-trans-text {
    font-size: 1.05rem;
}

