        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
        
        :root {
            --background: #ffffff;
            --foreground: #0a0a0a;
            --card: #f8f8f8;
            --card-foreground: #0a0a0a;
            --popover: #ffffff;
            --popover-foreground: #0a0a0a;
            --primary: #dc0000;
            --primary-foreground: #ffffff;
            --secondary: #f5f5f5;
            --secondary-foreground: #0a0a0a;
            --muted: #f5f5f5;
            --muted-foreground: #666666;
            --accent: #dc0000;
            --accent-foreground: #ffffff;
            --destructive: #dc0000;
            --destructive-foreground: #ffffff;
            --border: #e0e0e0;
            --input-background: #f5f5f5;
            --switch-background: #e0e0e0;
            --ring: #dc0000;
        }
        
        .dark {
            --background: #000000;
            --foreground: #ffffff;
            --card: #0a0a0a;
            --card-foreground: #ffffff;
            --popover: #0a0a0a;
            --popover-foreground: #ffffff;
            --primary: #ff0000;
            --primary-foreground: #ffffff;
            --secondary: #1a1a1a;
            --secondary-foreground: #ffffff;
            --muted: #1a1a1a;
            --muted-foreground: #999999;
            --accent: #ff0000;
            --accent-foreground: #ffffff;
            --destructive: #ff0000;
            --destructive-foreground: #ffffff;
            --border: #333333;
            --input-background: #1a1a1a;
            --switch-background: #333333;
            --ring: #ff0000;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: var(--background);
        }
        
        .font-mono {
            font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        }
        
        .sharp {
            border-radius: 0 !important;
        }
        
        .section-header {
            font-size: 1.05rem;
            font-weight: 700;
            letter-spacing: -0.03em;
            position: relative;
            display: inline-block;
            padding-bottom: 6px;
            color: var(--foreground);
        }
        
        .section-header:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 48px;
            height: 3px;
            background-color: var(--primary);
        }
        
        .resume-card {
            transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), 
                       box-shadow 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
        }
        
        .resume-card:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        }
        
        .dark .resume-card:hover {
            box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
        }
        
        .track-card {
            transition: all 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
        }
        
        .track-card:hover {
            border-color: var(--primary);
            transform: translateY(-1px);
        }
        
        .track-card.playing {
            border-color: var(--primary);
            box-shadow: 0 0 0 1px var(--primary);
            background-color: color-mix(in srgb, var(--card) 95%, var(--primary) 5%);
        }
        
        .demo-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            transition: all 0.1s ease;
            font-size: 0.875rem;
        }
        
        .demo-button:hover {
            filter: brightness(1.1);
        }
        
        .demo-button:active {
            transform: scale(0.985);
        }
        
        .player-progress {
            height: 5px;
            background-color: var(--muted);
            position: relative;
            cursor: pointer;
        }
        
        .player-progress-bar {
            height: 100%;
            background-color: var(--primary);
            transition: width 0.05s linear;
        }
        
        .album-card {
            transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
        }
        
        .album-card:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
        }
        
        .album-card.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 1px var(--primary);
        }
        
        .modal {
            animation: modalPop 0.2s ease forwards;
        }
        
        @keyframes modalPop {
            from { opacity: 0; transform: translateY(10px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        .track-card img {
            transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        }
        
        .track-card:hover img {
            transform: scale(1.04);
        }
        
        .redline-accent {
            color: var(--primary);
        }
        
        .album-row {
            scrollbar-width: thin;
            scrollbar-color: #333 #1a1a1a;
        }
        
        .sound-effect-card {
            transition: all 0.15s ease;
        }
        
        .sound-effect-card.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 1px var(--primary);
        }
        
        .video-selector {
            transition: all 0.1s ease;
        }
        
        .video-selector.active {
            background-color: var(--primary);
            color: var(--primary-foreground);
            border-color: var(--primary);
        }
        
        .timer-display {
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: -2px;
            font-family: 'JetBrains Mono', monospace;
        }
        
        .clock-display {
            font-size: 1.35rem;
            font-weight: 600;
            letter-spacing: -1px;
            font-family: 'JetBrains Mono', monospace;
        }
        
        .up-next-scroll {
            max-height: 140px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #444 #1a1a1a;
        }
        
        .up-next-item {
            transition: background-color 0.1s ease;
        }
        
        .up-next-item:hover {
            background-color: color-mix(in srgb, var(--card) 90%, var(--primary) 10%);
        }
        
        .up-next-item.playing {
            background-color: color-mix(in srgb, var(--card) 85%, var(--primary) 15%);
            border-left: 3px solid var(--primary);
        }
        
        .todo-item {
            transition: all 0.1s ease;
        }
        
        .reminder-badge {
            font-size: 10px;
            padding: 1px 6px;
            background: #333;
            color: #aaa;
            border-radius: 2px;
        }
        
        .video-overlay {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 10;
            text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        }
        
        .tab-button {
            transition: all 0.1s ease;
        }
        
        .tab-button.active {
            border-bottom: 3px solid var(--primary);
            color: var(--primary);
            font-weight: 600;
        }
        
        .recent-track {
            transition: all 0.15s ease;
        }
        
        .recent-track:hover {
            transform: translateY(-2px);
            border-color: var(--primary);
        }
        
        .filter-chip {
            transition: all 0.1s ease;
        }
        
        .filter-chip.active {
            background-color: var(--primary);
            color: var(--primary-foreground);
            border-color: var(--primary);
        }
        
        .floating-player {
            transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        }
        
        .dark .floating-player {
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        }

        /* ============================================
           IMPROVED LIGHT THEME SELECTION STYLING
           Fixes poor contrast when red background + white text + red outline
        ============================================ */
        :root .album-card.active,
        :root .track-card.playing,
        :root .filter-chip.active,
        :root .video-selector.active {
            background-color: color-mix(in srgb, var(--card) 85%, var(--primary) 15%);
            border-color: var(--primary);
            color: var(--foreground);
            box-shadow: 0 0 0 1px var(--primary);
        }

        .dark .album-card.active,
        .dark .track-card.playing,
        .dark .filter-chip.active,
        .dark .video-selector.active {
            background-color: color-mix(in srgb, var(--card) 90%, var(--primary) 10%);
            color: var(--foreground);
            border-color: var(--primary);
            box-shadow: 0 0 0 1px var(--primary);
        }

        /* Ensure text inside active states remains readable in light mode */
        :root .album-card.active *,
        :root .track-card.playing * {
            color: inherit;
        }
