        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
        
        body {
            font-family: 'Inter', sans-serif;
            /* Bottom padding for mini-player (68px) + bottom nav (56px) = 124px */
            padding-bottom: 124px;
        }
        
        .dutch-gradient {
            background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FFD23F 50%, #06D6A0 75%, #118AB2 100%);
        }
        
        .dutch-flag-stripe {
            background: linear-gradient(to right, #AE1C28 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #21468B 66.66%);
            height: 4px;
        }
        
        .tulip-pattern {
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6B35' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }
        
        .windmill-bg {
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23118AB2' fill-opacity='0.03'%3E%3Cpolygon points='50,0 60,35 100,50 60,65 50,100 40,65 0,50 40,35'/%3E%3C/g%3E%3C/svg%3E");
        }
        
        /* Transcript responsive styles */
        #transcript-content {
            word-wrap: break-word;
            overflow-wrap: break-word;
            overflow-x: hidden;
            width: 100%;
        }

        .sentence-line {
            display: block;
            line-height: 2;
            word-wrap: break-word;
            overflow-wrap: break-word;
            font-size: 1.3rem;
            padding: 1rem 0;
            opacity: 0.7;
            transition: all 0.4s ease;
            cursor: pointer;
        }

        .sentence-line.active {
            font-weight: 600;
            transform: scale(1.1);
            opacity: 1;
            background: linear-gradient(90deg, rgba(255,107,53,0.1) 0%, rgba(247,147,30,0.1) 100%);
            border-radius: 8px;
            padding: 1.2rem;
        }

        .karaoke-word {
            display: inline-block;
            transition: all 0.3s ease;
            cursor: pointer;
            padding: 3px 6px;
            border-radius: 6px;
            font-weight: 500;
            margin: 2px;
            word-break: keep-all;
        }
        .karaoke-word:hover {
            background-color: #FFF4E6;
            color: #FF6B35;
            transform: translateY(-1px);
        }
        .karaoke-word.active {
            background: linear-gradient(45deg, #FF6B35, #F7931E);
            color: white;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
        }
        .karaoke-word.recorded-good {
            background: linear-gradient(45deg, #06D6A0, #059669);
            color: white;
            box-shadow: 0 2px 8px rgba(6, 214, 160, 0.3);
        }
        .karaoke-word.recorded-ok {
            background: linear-gradient(45deg, #FFD23F, #F59E0B);
            color: #92400E;
            box-shadow: 0 2px 8px rgba(255, 210, 63, 0.3);
        }
        .karaoke-word.recorded-poor {
            background: linear-gradient(45deg, #EF4444, #DC2626);
            color: white;
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
        }
        .karaoke-guided-active {
            background: linear-gradient(45deg, #fb923c, #f97316);
            color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
            padding: 4px 8px;
        }

        /* Dialogue karaoke styles */
        .karaoke-dialogue-turn {
            transition: all 0.3s ease;
        }
        .karaoke-dialogue-turn:hover {
            transform: translateX(4px);
        }
        .karaoke-dialogue-turn.opacity-30 {
            opacity: 0.3;
        }
        .karaoke-dialogue-turn.opacity-100 {
            opacity: 1;
        }

        /* Speaker filter buttons */
        .speaker-filter-btn {
            transition: all 0.2s ease;
        }
        .speaker-filter-btn:hover {
            transform: scale(1.05);
        }
        .speaker-filter-btn:active {
            transform: scale(0.98);
        }

        /* Mobile responsive adjustments */
        @media (max-width: 640px) {
            .karaoke-word {
                padding: 4px 8px;
                margin: 2px 1px;
                font-size: 0.95rem;
            }
            .sentence-line {
                line-height: 2.2;
                padding: 0.75rem 0.5rem !important;
            }
            #transcript-content {
                font-size: 1rem;
                padding: 0.5rem;
            }
        }
        .progress-bar {
            transition: width 0.1s linear;
            background: linear-gradient(90deg, #FF6B35, #F7931E, #FFD23F);
        }
        .recording-pulse {
            animation: dutchPulse 1.5s infinite;
        }
        @keyframes dutchPulse {
            0%, 100% { 
                opacity: 1; 
                box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
            }
            50% { 
                opacity: 0.7; 
                box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
            }
        }
        .tooltip {
            position: absolute;
            z-index: 1000;
            background: white;
            border: 2px solid #FF6B35;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15);
            max-width: 320px;
        }
        .level-badge {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .level-a1 { 
            background: linear-gradient(45deg, #06D6A0, #059669); 
            color: white; 
            box-shadow: 0 2px 8px rgba(6, 214, 160, 0.3);
        }
        .level-a2 { 
            background: linear-gradient(45deg, #FFD23F, #F59E0B); 
            color: #92400E; 
            box-shadow: 0 2px 8px rgba(255, 210, 63, 0.3);
        }
        .level-mixed { 
            background: linear-gradient(45deg, #118AB2, #0369A1); 
            color: white; 
            box-shadow: 0 2px 8px rgba(17, 138, 178, 0.3);
        }
        
        .dutch-card {
            background: white;
            border: 2px solid transparent;
            border-radius: 16px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .dutch-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #AE1C28, #FFFFFF, #21468B);
        }
        
        .dutch-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(255, 107, 53, 0.15);
            border-color: #FF6B35;
        }
        
        .dutch-button {
            background: linear-gradient(45deg, #FF6B35, #F7931E);
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .dutch-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
        }
        
.dutch-button:active {
    transform: translateY(0);
}

/* Recording status card states */
#recording-status .status-card {
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
#recording-status .status-card.recording-state {
    border-color: #fb923c;
    background: linear-gradient(135deg, #FFEDD5 0%, #FFE4E6 100%);
}
#recording-status .status-card.analyzing-state {
    border-color: #38bdf8;
    background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}
#recording-status .status-card.error-state {
    border-color: #f87171;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}
#recording-timer-pill {
    transition: background 0.3s ease, color 0.3s ease;
}
#recording-status .status-card.analyzing-state #recording-timer-pill {
    background: #1d4ed8;
    color: #fff;
}
#recording-status .status-card.error-state #recording-timer-pill {
    background: #b91c1c;
    color: #fff;
}

#login-error {
    transition: opacity 0.3s ease;
}

        /* Mode Selector Buttons */
        .mode-selector {
            display: flex;
            gap: 0.25rem;
            padding: 0.25rem;
            background: linear-gradient(135deg, rgba(255,107,53,0.05) 0%, rgba(247,147,30,0.05) 100%);
            border-radius: 12px;
            border: 2px solid rgba(255,107,53,0.1);
        }

        .mode-btn {
            background: white;
            border: 2px solid transparent;
            border-radius: 8px;
            color: #374151;
            font-weight: 600;
            font-size: 0.75rem;
            padding: 0.4rem 0.6rem;
            transition: all 0.3s ease;
            cursor: pointer;
            white-space: nowrap;
        }

        .mode-btn:hover {
            background: linear-gradient(45deg, rgba(255,107,53,0.1), rgba(247,147,30,0.1));
            border-color: rgba(255,107,53,0.3);
            transform: translateY(-1px);
        }

        .mode-btn.active {
            background: linear-gradient(45deg, #FF6B35, #F7931E);
            color: white;
            border-color: #FF6B35;
            box-shadow: 0 4px 12px rgba(255,107,53,0.3);
            transform: translateY(-2px);
        }

        /* Responsive mode buttons */
        @media (min-width: 640px) {
            .mode-btn {
                font-size: 0.875rem;
                padding: 0.5rem 0.75rem;
            }
        }

        .cheese-yellow { color: #FFD23F; }
        .tulip-orange { color: #FF6B35; }
        .canal-blue { color: #118AB2; }
        .forest-green { color: #06D6A0; }
        
        .dutch-header {
            background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FFD23F 100%);
        }

        /* Auto-scroll transcript styles */
        .sentence-auto {
            transition: all 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
            text-align: center;
            line-height: 1.8;
            font-size: 1.125rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            word-break: break-word;
            overflow-wrap: break-word;
            width: 100%;
            max-width: 100%;
        }

        .add-to-queue-btn {
            flex-shrink: 0;
            min-width: 32px;
            min-height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* Full transcript sentence line styles */
        .sentence-line {
            word-break: break-word;
            overflow-wrap: break-word;
            max-width: 100%;
        }

        /* Sentence mode styles */
        .sentence-mode-item {
            word-break: break-word;
            overflow-wrap: break-word;
            max-width: 90%;
        }

        #auto-scroll-container {
            will-change: transform;
            transition: transform 0.5s ease-out;
        }
        #auto-scroll-toggle {
            font-size: 0.75rem;
            padding: 0.35rem 0.65rem;
            gap: 0.35rem;
        }
        #auto-scroll-toggle #auto-scroll-icon {
            font-size: 1rem;
        }

        /* Mobile optimizations */
        @media (max-width: 768px) {
            .sentence-auto {
                font-size: 1rem;
                padding: 0.75rem 0.5rem;
            }

            .sentence-line {
                padding: 0.5rem 0.25rem;
            }

            .sentence-mode-item {
                font-size: 1.25rem !important;
                padding: 1rem 0.5rem;
                max-width: 95%;
            }

            .add-to-queue-btn {
                min-width: 44px;
                min-height: 44px;
                font-size: 1.25rem;
            }

            #squirt-current-word {
                font-size: 2.5rem !important;
            }

            .grid.grid-cols-2 {
                grid-template-columns: 1fr;
            }

            .tooltip {
                max-width: 90vw;
                font-size: 0.875rem;
            }

            #auto-scroll-toggle {
                font-size: 0.65rem;
                padding: 0.25rem 0.45rem;
            }
        }

        /* Smooth animations */
        @media (prefers-reduced-motion: reduce) {
            .sentence-auto,
            #auto-scroll-container {
                transition: none;
            }
        }

        /* Better touch targets for mobile */
        @media (hover: none) {
            .word-span,
            .sentence-line,
            .sentence-auto {
                padding: 0.5rem;
                min-height: 44px;
                display: inline-flex;
                align-items: center;
            }
        }

        /* Feedback card animations */
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .feedback-card {
            animation: slideUp 0.3s ease-out;
        }

        /* Smooth word mode transitions */
        #squirt-current-word {
            transition: opacity 0.1s ease-out, transform 0.1s ease-out;
        }

        #squirt-progress-bar {
            transition: width 0.2s ease-out;
        }

        /* ============================================
           STICKY BOTTOM MINI-PLAYER (Spotify Pattern)
           ============================================ */

        .mini-player {
            position: fixed;
            bottom: 56px; /* Above bottom nav */
            left: 0;
            right: 0;
            height: 68px;
            background: white;
            border-top: 1px solid #E5E7EB;
            box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
            z-index: 1000;
            transition: transform 0.3s ease;
        }

        .mini-player-content {
            height: 100%;
            position: relative;
            cursor: pointer;
        }

        .mini-progress-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: #E5E7EB;
        }

        .mini-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #FF6B35, #F7931E);
            transition: width 0.1s linear;
        }

        .mini-player-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            height: 100%;
        }

        .mini-control-btn {
            min-width: 48px;
            min-height: 48px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF6B35, #F7931E);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            flex-shrink: 0;
        }

        .mini-control-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(255,107,53,0.4);
        }

        .mini-control-btn:active {
            transform: scale(0.95);
        }

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

        .mini-episode-title {
            font-size: 14px;
            font-weight: 600;
            color: #1F2937;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mini-time-display {
            font-size: 12px;
            color: #6B7280;
        }

        .mini-right-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .mini-speed-btn {
            min-width: 52px;
            min-height: 36px;
            padding: 6px 12px;
            border-radius: 18px;
            border: 2px solid #FF6B35;
            background: white;
            color: #FF6B35;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .mini-speed-btn:hover {
            background: #FFF7ED;
            transform: scale(1.05);
        }

        .mini-expand-btn {
            min-width: 40px;
            min-height: 40px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: #F3F4F6;
            color: #6B7280;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .mini-expand-btn:hover {
            background: #E5E7EB;
            color: #1F2937;
        }

        /* ============================================
           EXPANDED FULL PLAYER (Overlay)
           ============================================ */

        .expanded-player {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            z-index: 2000;
            overflow-y: auto;
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }
            to {
                transform: translateY(0);
            }
        }

        .expanded-player-content {
            padding: 24px 20px 40px;
            max-width: 600px;
            margin: 0 auto;
        }

        .drag-handle-container {
            text-align: center;
            padding: 12px 0;
            cursor: pointer;
        }

        .drag-handle {
            width: 40px;
            height: 5px;
            background: #D1D5DB;
            border-radius: 3px;
            margin: 0 auto;
        }

        .player-close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            min-width: 44px;
            min-height: 44px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #F3F4F6;
            border: none;
            color: #6B7280;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .player-close-btn:hover {
            background: #E5E7EB;
            color: #1F2937;
        }

        .expanded-title {
            font-size: 24px;
            font-weight: 700;
            color: #1F2937;
            text-align: center;
            margin: 24px 0;
            line-height: 1.3;
        }

        /* Waveform visualization */
        .waveform-container {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 32px 0;
            background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
            border-radius: 20px;
            padding: 20px;
        }

        .waveform-animation {
            display: flex;
            align-items: center;
            gap: 8px;
            height: 120px;
        }

        .wave-bar {
            width: 6px;
            background: linear-gradient(180deg, #FF6B35, #F7931E);
            border-radius: 3px;
            animation: wave 1.2s ease-in-out infinite;
        }

        .wave-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
        .wave-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
        .wave-bar:nth-child(3) { height: 90%; animation-delay: 0.2s; }
        .wave-bar:nth-child(4) { height: 100%; animation-delay: 0.3s; }
        .wave-bar:nth-child(5) { height: 70%; animation-delay: 0.4s; }
        .wave-bar:nth-child(6) { height: 50%; animation-delay: 0.5s; }
        .wave-bar:nth-child(7) { height: 40%; animation-delay: 0.6s; }

        @keyframes wave {
            0%, 100% { transform: scaleY(1); }
            50% { transform: scaleY(1.5); }
        }

        /* Progress bar (large, interactive) */
        .expanded-progress-container {
            margin: 32px 0;
        }

        .expanded-progress-bar {
            position: relative;
            height: 8px;
            background: #E5E7EB;
            border-radius: 4px;
            cursor: pointer;
            margin-bottom: 12px;
        }

        .expanded-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #FF6B35, #F7931E);
            border-radius: 4px;
            transition: width 0.1s linear;
        }

        .expanded-progress-handle {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 18px;
            height: 18px;
            background: white;
            border: 3px solid #FF6B35;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            cursor: grab;
        }

        .expanded-progress-handle:active {
            cursor: grabbing;
            transform: translate(-50%, -50%) scale(1.2);
        }

        .expanded-time-display {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            color: #6B7280;
            font-weight: 500;
        }

        /* Speed controls */
        .speed-controls-section {
            margin: 32px 0;
        }

        .speed-label {
            font-size: 14px;
            font-weight: 600;
            color: #6B7280;
            margin-bottom: 12px;
            text-align: center;
        }

        .speed-buttons-grid {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .speed-btn-large {
            min-width: 64px;
            min-height: 44px;
            padding: 10px 16px;
            border-radius: 22px;
            border: 2px solid #E5E7EB;
            background: white;
            color: #6B7280;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .speed-btn-large.active {
            background: linear-gradient(135deg, #FF6B35, #F7931E);
            color: white;
            border-color: #FF6B35;
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(255,107,53,0.3);
        }

        .speed-btn-large:hover:not(.active) {
            border-color: #FF6B35;
            background: #FFF7ED;
        }

        /* Large playback controls */
        .large-playback-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            margin: 40px 0;
        }

        .control-btn-large {
            min-width: 60px;
            min-height: 60px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 2px solid #E5E7EB;
            background: white;
            color: #6B7280;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .control-btn-large:hover {
            border-color: #FF6B35;
            color: #FF6B35;
            transform: scale(1.05);
        }

        .control-label {
            font-size: 10px;
            font-weight: 700;
            margin-top: 2px;
        }

        .control-btn-primary {
            min-width: 72px;
            min-height: 72px;
            width: 72px;
            height: 72px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(135deg, #FF6B35, #F7931E);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 6px 20px rgba(255,107,53,0.3);
        }

        .control-btn-primary:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 24px rgba(255,107,53,0.4);
        }

        .control-btn-primary:active {
            transform: scale(1.05);
        }

        /* Secondary controls */
        .secondary-controls {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 32px;
        }

        .secondary-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 44px;
            padding: 10px 20px;
            border-radius: 22px;
            border: 2px solid #E5E7EB;
            background: white;
            color: #6B7280;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .secondary-btn:hover {
            border-color: #FF6B35;
            color: #FF6B35;
            background: #FFF7ED;
        }

        /* ============================================
           BOTTOM NAVIGATION BAR
           ============================================ */

        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 56px;
            background: white;
            border-top: 1px solid #E5E7EB;
            display: flex;
            z-index: 999;
            box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
        }

        .nav-tab {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            border: none;
            background: none;
            color: #9CA3AF;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 56px;
        }

        .nav-tab:hover {
            color: #6B7280;
            background: #F9FAFB;
        }

        .nav-tab.active {
            color: #FF6B35;
        }

        .nav-tab.active i {
            color: #FF6B35;
        }

        .nav-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        /* Better transcript scroll containment */
        #transcript-content {
            max-height: 600px;
            overflow-y: auto;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        #transcript-content::-webkit-scrollbar {
            width: 8px;
        }

        #transcript-content::-webkit-scrollbar-track {
            background: #F3F4F6;
            border-radius: 10px;
        }

        #transcript-content::-webkit-scrollbar-thumb {
            background: linear-gradient(45deg, #FF6B35, #F7931E);
            border-radius: 10px;
        }

        /* Shrink audio player */
        #audio-player {
            height: 36px !important;
        }

        .dutch-card.audio-player-card {
            padding: 12px 16px !important;
        }

        .dutch-card.audio-player-card .progress-bar {
            height: 8px !important;
        }

        /* Mobile optimizations */
        @media (max-width: 640px) {
            body {
                font-size: 1.1rem;
            }

            .sentence-line {
                font-size: 1.43rem; /* 10% bigger */
                line-height: 2.2;
                padding: 1rem 0.5rem !important;
            }

            .sentence-line.active {
                font-size: 1.57rem; /* Scaled with 1.1x */
            }

            .karaoke-word {
                padding: 6px 10px; /* Bigger touch targets */
                margin: 3px 2px;
                font-size: 1.05rem;
            }

            button, .dutch-button {
                min-height: 44px !important;
                min-width: 44px !important;
            }

            .floating-controls {
                bottom: 10px;
                right: 10px;
            }

            .floating-controls.expanded {
                left: 10px;
                width: calc(100vw - 20px);
                max-width: calc(100vw - 20px);
            }

            /* Reduce margins on mobile */
            .dutch-card {
                margin: 0.5rem 0 !important;
            }

            .grid.gap-4 {
                gap: 0.75rem !important;
            }
        }

        /* Selected sentence for practice */
        .sentence-selected {
            border: 3px solid #FF6B35 !important;
            background: linear-gradient(90deg, rgba(255,107,53,0.15) 0%, rgba(247,147,30,0.15) 100%) !important;
            box-shadow: 0 4px 16px rgba(255,107,53,0.3) !important;
        }

        /* ============================================
           GAMIFICATION ELEMENTS
           ============================================ */

        /* Streak Counter */
        .streak-container {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            padding: 6px 14px;
            border-radius: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .streak-counter {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .streak-icon {
            font-size: 20px;
            line-height: 1;
        }

        .streak-number {
            font-size: 16px;
            font-weight: 700;
            color: white;
        }

        /* Goal Progress Circle */
        .goal-container {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .goal-progress-svg {
            filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
        }

        /* XP Display */
        .xp-container {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            padding: 6px 14px;
            border-radius: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .xp-counter {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .xp-icon {
            font-size: 18px;
            line-height: 1;
        }

        .xp-number {
            font-size: 14px;
            font-weight: 700;
            color: white;
        }

        .xp-level {
            font-size: 12px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            margin-left: 4px;
            padding: 2px 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        /* Achievement Celebration Overlay */
        .achievement-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            animation: fadeIn 0.3s ease;
        }

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

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

        .achievement-card {
            background: white;
            border-radius: 24px;
            padding: 48px 40px;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes slideInUp {
            from {
                transform: translateY(100px) scale(0.8);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .achievement-icon {
            font-size: 80px;
            margin-bottom: 24px;
            animation: bounce 0.6s ease infinite alternate;
        }

        @keyframes bounce {
            from {
                transform: translateY(0);
            }
            to {
                transform: translateY(-10px);
            }
        }

        .achievement-title {
            font-size: 28px;
            font-weight: 800;
            color: #1F2937;
            margin-bottom: 12px;
            background: linear-gradient(135deg, #FF6B35, #F7931E);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .achievement-subtitle {
            font-size: 16px;
            color: #6B7280;
            font-weight: 500;
        }

        /* Mobile optimizations for gamification */
        @media (max-width: 640px) {
            .streak-container,
            .xp-container {
                padding: 3px 8px;
            }

            .streak-icon {
                font-size: 14px;
            }

            .streak-number,
            .xp-number {
                font-size: 12px;
            }

            .achievement-card {
                padding: 32px 24px;
                max-width: 90%;
                margin: 0 16px;
            }

            .achievement-icon {
                font-size: 64px;
            }

            .achievement-title {
                font-size: 24px;
            }

            .achievement-subtitle {
                font-size: 14px;
            }
        }

        /* ============================================
           PROFILE AVATAR DISPLAY
           ============================================ */

        .profile-avatar-container {
            width: 120px;
            height: 120px;
            background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 4px solid #FF6B35;
            box-shadow: 0 8px 24px rgba(255,107,53,0.2);
            flex-shrink: 0;
        }

        .profile-avatar-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        /* ============================================
           KARAOKE ICON FLASH ANIMATION
           ============================================ */

        @keyframes karaoke-flash {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.6;
                transform: scale(1.1);
            }
        }

        .karaoke-flash {
            animation: karaoke-flash 2s ease-in-out infinite;
        }

        /* ============================================
           SLOW BOUNCE ANIMATION FOR LEVEL CARDS
           ============================================ */

        @keyframes bounce-slow {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        .animate-bounce-slow {
            animation: bounce-slow 3s ease-in-out infinite;
        }

        /* ============================================
           FLASHCARD STYLES
           ============================================ */

        .flashcard-3d {
            perspective: 1000px;
            transition: transform 0.3s ease;
        }

        .flashcard-face {
            min-height: 280px;
            backface-visibility: hidden;
            transition: all 0.3s ease;
        }

        @media (min-width: 768px) {
            .flashcard-face {
                min-height: 320px;
            }
        }

        .flashcard-flipped {
            /* Visual indicator for flipped state */
        }

        /* Smooth card transition */
        #flashcard {
            transition: transform 0.2s ease-out;
        }

        /* Card hover effect on desktop */
        @media (hover: hover) {
            #flashcard:hover {
                transform: translateY(-4px);
                box-shadow: 0 12px 24px rgba(0,0,0,0.15);
            }
        }

        /* Mobile swipe hint animation */
        @keyframes swipe-hint {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(-5px); }
        }

        .flashcard-swipe-hint {
            animation: swipe-hint 2s ease-in-out infinite;
        }

        /* Prevent text selection on flashcards */
        .select-none {
            user-select: none;
            -webkit-user-select: none;
        }

        /* Active state for buttons on mobile */
        button:active {
            transform: scale(0.97);
        }

