        /* ============ DESIGN SYSTEM ============ */
        :root {
            /* Primary & Accent - green minimal palette */
            --primary: #0f7c59;
            --primary-hover: #0c6849;
            --primary-light: #e6f4ee;
            --accent: #0aa86b;
            --accent-hover: #088a59;

            /* Semantic */
            --success: #0f7c59;
            --success-light: #e6f4ee;
            --warning: #f59e0b;
            --warning-light: #fef3c7;
            --danger: #e23f3f;
            --danger-light: #ffe5e5;

            /* Neutrals */
            --bg-primary: #ffffff;
            --bg-secondary: #f4f7f6;
            --bg-tertiary: #e8efed;
            --bg-elevated: #ffffff;
            --text-primary: #0b1f17;
            --text-secondary: #2b3c36;
            --text-muted: #5a6a63;
            --border: #d9e4df;
            --border-light: #e8f0ed;

            /* Spacing */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 24px;
            --space-6: 32px;
            --space-7: 48px;
            --space-8: 64px;

            /* Radii */
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;

            /* Shadows */
            --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
            --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
            --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
            --shadow-xl: 0 18px 38px rgba(15, 23, 42, 0.16);

            /* Typography */
            --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-size-xs: 12px;
            --font-size-sm: 14px;
            --font-size-base: 16px;
            --font-size-lg: 18px;
            --font-size-xl: 22px;
            --font-size-2xl: 28px;
            --font-size-3xl: 36px;

            /* Motion */
            --transition-fast: 0.12s ease;
            --transition-base: 0.2s ease;
            --transition-slow: 0.3s ease;

            /* Layout */
            --sidebar-width: 240px;
            --sidebar-collapsed: 72px;
        }

        /* Dark mode placeholder for future use */
        [data-theme="dark"] {
            --bg-primary: #0b1220;
            --bg-secondary: #0f172a;
            --bg-tertiary: #1e293b;
            --bg-elevated: #111827;
            --text-primary: #f8fafc;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --border: #1f2a3c;
            --border-light: #1a2434;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
            --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.32);
            --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.45);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-family);
            background: radial-gradient(circle at 20% 20%, #f2f8f4 0, #e8f1ed 35%, #e2ebe6 65%, #dfe7e3 100%);
            color: var(--text-primary);
            min-height: 100vh;
            padding: 0;
            margin: 0;
            line-height: 1.5;
            transition: background var(--transition-base), color var(--transition-base);
        }
        /* Enforce light surface colors */
        body, .container, .add-video-section, .unified-library-section, .auth-card {
            background-color: transparent;
        }
        header {
            background: linear-gradient(120deg, #0f7c59, #0b6246) !important;
            color: #ffffff !important;
            border-bottom: none;
            box-shadow: var(--shadow-md);
        }
        .viewer-library, .add-video-section, .unified-library-section {
            background: transparent !important;
            color: var(--text-primary) !important;
        }
        .video-card, .micro-card, .micro-card-compact {
            background: #ffffff !important;
            color: var(--text-primary) !important;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        .video-card-title, .micro-card-title, .micro-card-compact .micro-card-title {
            color: var(--text-primary) !important;
        }

        /* ============ HEADER ============ */
        header {
            background: linear-gradient(120deg, #0f7c59, #0b6246) !important;
            color: #ffffff !important;
            padding: 16px 24px !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border-bottom: none;
            position: sticky;
            top: 0;
            z-index: 100;
            min-height: 70px;
            width: 100%;
        }

        body.viewer-route header {
            display: block !important;
            background: linear-gradient(120deg, #0f7c59, #0b6246) !important;
            color: #ffffff !important;
        }

        body.auth-route header,
        body.admin-route header {
            display: none !important;
        }
        
        /* Ensure header is visible when shown by JavaScript */
        body header[style*="display: block"],
        body header[style*="display:block"] {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            height: auto !important;
        }

        header h1 {
            color: #ffffff !important;
            border-bottom: none;
            padding: 0;
            margin: 0;
            font-size: var(--font-size-xl);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        header h1 svg {
            color: #ffffff !important;
            stroke: #ffffff !important;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: var(--space-5);
        }

        /* Hero banner */
        .hero-panel {
            background: linear-gradient(135deg, rgba(15, 124, 89, 0.94), rgba(11, 98, 70, 0.94));
            color: #ffffff;
            padding: 28px 32px;
            border-radius: 18px;
            box-shadow: var(--shadow-lg);
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 24px;
            align-items: center;
            margin-bottom: 24px;
        }

        .hero-copy h2 {
            font-size: 28px;
            margin: 0 0 8px 0;
            font-weight: 800;
            letter-spacing: -0.3px;
        }

        .hero-copy p {
            margin: 0 0 16px 0;
            color: rgba(255,255,255,0.85);
            font-size: 15px;
        }

        .hero-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .btn-hero {
            background: #ffffff;
            color: #0f7c59;
            border: none;
            padding: 12px 18px;
            border-radius: 12px;
            font-weight: 700;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: transform var(--transition-base), box-shadow var(--transition-base);
        }

        .btn-hero.secondary {
            background: rgba(255,255,255,0.12);
            color: #ffffff;
            border: 1px solid rgba(255,255,255,0.25);
        }

        .btn-hero:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .hero-stats {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .hero-stat-card {
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.25);
            color: #ffffff;
            border-radius: 14px;
            padding: 14px 16px;
            min-width: 150px;
            backdrop-filter: blur(4px);
        }

        .hero-stat-label {
            font-size: 12px;
            opacity: 0.85;
            margin-bottom: 6px;
        }

        .hero-stat-value {
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.2px;
        }

        /* Green-focused component overrides */
        .viewer-tabs {
            display: flex;
            gap: 10px;
            margin: 6px 0 20px 0;
        }

        .viewer-tab {
            background: #ffffff;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 16px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            box-shadow: var(--shadow-sm);
            transition: all var(--transition-base);
        }

        .viewer-tab:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-1px);
        }

        .viewer-tab.active {
            background: linear-gradient(135deg, #0f7c59, #0b6246);
            color: #ffffff;
            border-color: transparent;
            box-shadow: var(--shadow-md);
        }

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

        .playlist-filter-tag {
            background: #ffffff;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 13px;
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .playlist-filter-tag:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .playlist-filter-tag.active {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
            box-shadow: var(--shadow-sm);
        }

        /* Study modern layout */
        .study-shell {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .study-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 16px 18px;
            box-shadow: var(--shadow-sm);
        }

        .study-title {
            margin: 0;
            font-size: 20px;
            font-weight: 800;
            color: var(--text-primary);
        }

        .study-subtitle {
            margin: 4px 0 0 0;
            color: var(--text-muted);
            font-size: 14px;
        }

        .study-filters {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            max-width: 480px;
        }

        .study-filters input {
            width: 100%;
        }

        .study-video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 14px;
        }

        .study-playlist-group {
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            background: #ffffff;
            box-shadow: var(--shadow-sm);
        }

        .study-playlist-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .study-playlist-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .study-playlist-count {
            font-size: 12px;
            color: var(--text-muted);
        }

        .study-playlist-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 10px;
        }

        /* Rails */
        .study-playlist-group.rail .study-playlist-items {
            display: none;
        }

        .study-playlist-rail {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(200px, 1fr);
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 8px;
        }

        .study-playlist-rail::-webkit-scrollbar {
            height: 8px;
        }
        .study-playlist-rail::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 999px;
        }

        .rail-footer {
            display: flex;
            justify-content: flex-start;
            margin-top: 8px;
        }

        .rail-more-btn {
            background: var(--bg-secondary);
            color: var(--text-secondary);
            border: 1px solid var(--border);
            padding: 8px 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .rail-more-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-1px);
        }

        .study-video-item {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-sm);
        }

        .study-video-item:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .study-video-item.active {
            border-color: var(--primary);
            background: #f0f7f4;
        }

        .study-video-item-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .study-video-item-meta {
            font-size: 12px;
            color: var(--text-muted);
        }

        .study-main.modern {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 16px;
            box-shadow: var(--shadow-sm);
        }

        .study-content-body {
            display: grid;
            grid-template-columns: 1.3fr 0.7fr;
            gap: 16px;
        }

        @media (max-width: 900px) {
            .study-toolbar {
                flex-direction: column;
            }
            .study-content-body {
                grid-template-columns: 1fr;
            }
        }

        /* Test modern layout (mirrors study) */
        .test-shell {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .test-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 16px 18px;
            box-shadow: var(--shadow-sm);
        }

        .test-title {
            margin: 0;
            font-size: 20px;
            font-weight: 800;
            color: var(--text-primary);
        }

        .test-subtitle {
            margin: 4px 0 0 0;
            color: var(--text-muted);
            font-size: 14px;
        }

        .test-filters {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            max-width: 480px;
        }

        .test-filters input {
            width: 100%;
        }

        .test-video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 14px;
        }

        .test-video-item {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-sm);
        }

        .test-video-item:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .test-video-item.active {
            border-color: var(--primary);
            background: #f0f7f4;
        }

        .test-video-item-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .test-main.modern {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 16px;
            box-shadow: var(--shadow-sm);
        }

        @media (max-width: 900px) {
            .test-toolbar {
                flex-direction: column;
            }
        }

        .playlist-card {
            border: 1px solid var(--border);
            background: #ffffff;
            border-radius: 12px;
            padding: 14px;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-sm);
        }

        .playlist-card:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            background: #f6fbf8;
        }

        .playlist-card.active {
            border-color: var(--primary);
            background: #f0f7f4;
        }

        .playlist-badge {
            background: linear-gradient(135deg, #0f7c59 0%, #0aa86b 100%);
            color: #ffffff;
            border: 1px solid rgba(15, 124, 89, 0.15);
        }

        .playlist-option:hover {
            border-color: var(--primary);
            background: #f0f7f4;
            transform: translateX(4px);
        }

        .btn, .btn-action, .btn-watch, .btn-primary {
            background: var(--primary);
            color: #ffffff;
            border: none;
            box-shadow: var(--shadow-sm);
        }

        .btn:hover, .btn-action:hover, .btn-watch:hover, .btn-primary:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .unified-library-section.viewer-library {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--shadow-md);
        }

        .view-all-btn {
            background: var(--primary);
            color: #ffffff;
            border: none;
            padding: 10px 16px;
            border-radius: 999px;
            font-weight: 600;
            box-shadow: var(--shadow-sm);
        }

        .view-all-btn:hover {
            background: var(--primary-hover);
            box-shadow: var(--shadow-md);
        }

        /* Load more */
        .load-more-row {
            display: flex;
            justify-content: center;
            margin: 20px 0 8px 0;
        }

        .load-more-btn {
            background: var(--primary);
            color: #ffffff;
            border: none;
            padding: 12px 18px;
            border-radius: 12px;
            font-weight: 700;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
        }

        .load-more-btn:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        /* Responsive adjustments */
        @media (max-width: 900px) {
            .container {
                padding: var(--space-4);
            }
            .hero-panel {
                grid-template-columns: 1fr;
            }
            .hero-actions {
                gap: 8px;
            }
            .hero-stats {
                gap: 8px;
            }
            .viewer-tabs {
                flex-wrap: wrap;
            }
            .playlist-filter-row {
                gap: 6px;
            }
        }

        h1 {
            color: var(--text-primary);
            text-align: left;
            margin-bottom: var(--space-5);
            font-size: var(--font-size-2xl);
            font-weight: 600;
            padding: var(--space-4) 0;
            border-bottom: 1px solid var(--border);
        }

        /* ============ SECTIONS ============ */
        .add-video-section {
            background: var(--bg-primary);
            border-radius: var(--radius-lg);
            padding: var(--space-5);
            margin-bottom: var(--space-5);
            box-shadow: var(--shadow-md);
            border: none;
            transition: background var(--transition-base), box-shadow var(--transition-base);
        }

        .add-video-section h2 {
            color: var(--text-primary);
            margin-bottom: var(--space-4);
            font-size: var(--font-size-lg);
            font-weight: 600;
        }

        .form-group {
            margin-bottom: var(--space-4);
        }

        label {
            display: block;
            margin-bottom: var(--space-2);
            color: var(--text-secondary);
            font-weight: 500;
            font-size: var(--font-size-sm);
        }

        /* ============ INPUTS ============ */
        input[type="text"], input[type="email"], input[type="password"], textarea, select {
            width: 100%;
            padding: var(--space-3) var(--space-4);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            font-size: var(--font-size-base);
            font-family: var(--font-family);
            background: var(--bg-secondary);
            color: var(--text-primary);
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-base);
        }

        input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
            background: var(--bg-primary);
        }

        input::placeholder, textarea::placeholder {
            color: var(--text-muted);
        }

        /* ============ BUTTONS ============ */
        button, .btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: var(--space-3) var(--space-5);
            border-radius: var(--radius-md);
            font-size: var(--font-size-sm);
            font-weight: 500;
            font-family: var(--font-family);
            cursor: pointer;
            transition: all var(--transition-fast);
            text-transform: none;
            letter-spacing: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
        }

        button:hover, .btn:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        }

        button:active, .btn:active {
            transform: translateY(0);
            box-shadow: none;
        }

        button:disabled, .btn:disabled {
            background: var(--bg-tertiary);
            color: var(--text-muted);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Button Variants */
        .btn-secondary {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .btn-secondary:hover {
            background: var(--border);
            box-shadow: var(--shadow-md);
        }

        .btn-success {
            background: var(--success);
        }

        .btn-success:hover {
            background: #059669;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
        }

        .btn-danger {
            background: var(--danger);
        }

        .btn-danger:hover {
            background: #dc2626;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-secondary);
        }

        .btn-ghost:hover {
            background: var(--bg-tertiary);
            box-shadow: none;
            transform: none;
        }

        .btn-sm {
            padding: var(--space-2) var(--space-3);
            font-size: var(--font-size-xs);
        }

        .btn-lg {
            padding: var(--space-4) var(--space-6);
            font-size: var(--font-size-base);
        }

        /* ============ VIDEO SECTIONS ============ */
        .videos-section {
            background: transparent;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
        }

        .videos-section h2 {
            color: var(--text-primary);
            margin-bottom: var(--space-4);
            font-size: var(--font-size-lg);
            font-weight: 600;
        }

        .video-count {
            color: var(--text-muted);
            font-size: var(--font-size-sm);
            margin-bottom: var(--space-4);
        }

        .videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: var(--space-5);
        }

        /* ============ VIDEO CARDS (Standardized Thumb + Title) ============ */
        .video-card {
            background: #ffffff;
            border-radius: 18px;
            overflow: hidden;
            transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
            border: 1px solid #e6e8ec;
            cursor: pointer;
        }

        .video-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
            border-color: rgba(37, 99, 235, 0.25);
        }

        .video-thumb {
            position: relative;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            background: #f2f4f8;
        }

        .video-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.25s ease;
        }

        .video-card:hover .video-thumb img {
            transform: scale(1.03);
        }

        /* Title above image */
        .video-card-header {
            padding: var(--space-4);
            display: flex;
            flex-direction: column;
            gap: 6px;
            background: #ffffff;
        }

        .video-card-title-top {
            font-size: 16px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0;
        }

        .video-card-meta {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .pill-neutral {
            background: rgba(15, 23, 42, 0.06);
            color: #334155;
            border: 1px solid rgba(15, 23, 42, 0.12);
        }

        .video-card-title {
            color: #ffffff;
            font-weight: 700;
            font-size: 15px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0;
        }

        .video-thumb-meta {
            display: flex;
            gap: 8px;
            margin-top: var(--space-2);
        }

        .pill {
            background: rgba(255,255,255,0.14);
            color: #e5e7eb;
            font-size: 11px;
            padding: 4px 8px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.22);
        }

        .video-card-body {
            padding: var(--space-3) var(--space-4);
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .video-card-body h3 {
            margin: 0;
            color: #0f172a;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .video-card-body .pill {
            background: rgba(37, 99, 235, 0.08);
            color: #1d4ed8;
            border: 1px solid rgba(37, 99, 235, 0.25);
        }

        .video-embed {
            width: 100%;
            aspect-ratio: 16 / 9;
            border: none;
            border-radius: 0;
            background: var(--bg-tertiary);
        }

        .video-card-body {
            padding: var(--space-4);
        }

        .video-card-title {
            font-size: var(--font-size-base);
            font-weight: 600;
            color: var(--text-primary);
            margin: 0 0 var(--space-3) 0;
            line-height: 1.4;
        }

        .video-status-badges {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-2);
            margin-bottom: var(--space-3);
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: var(--radius-full);
            font-size: 11px;
            font-weight: 500;
        }

        .status-badge.transcribed {
            background: var(--success-light);
            color: #065f46;
        }

        .status-badge.summarized {
            background: #dbeafe;
            color: #1e40af;
        }

        .status-badge.has-slides {
            background: #fef3c7;
            color: #92400e;
        }

        .status-badge.has-micro {
            background: #ede9fe;
            color: #5b21b6;
        }

        .status-badge.processing {
            background: #fef3c7;
            color: #92400e;
            animation: pulse 2s infinite;
        }

        .video-playlists {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-2);
            margin-bottom: var(--space-3);
        }

        .playlist-label {
            font-size: 11px;
            color: var(--text-muted);
        }

        .playlist-badge {
            display: inline-block;
            padding: 2px 8px;
            background: var(--bg-tertiary);
            border-radius: var(--radius-full);
            font-size: 11px;
            color: var(--text-secondary);
        }

        .video-card-actions {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-2);
            padding-top: var(--space-3);
            border-top: 1px solid var(--border);
        }

        .video-card-actions .btn {
            flex: 1;
            min-width: 0;
            padding: var(--space-2) var(--space-3);
            font-size: 12px;
        }

        .video-card-actions .btn-icon {
            padding: var(--space-2);
            min-width: 36px;
            flex: 0;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        /* ============ PATH CARDS (Create Section) ============ */
        .content-path-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-4);
            margin-top: var(--space-4);
            max-width: 500px;
        }

        .path-card {
            padding: var(--space-4) var(--space-5);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: var(--space-4);
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
        }

        .path-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary);
            background: var(--bg-primary);
        }

        .path-card.youtube:hover {
            border-color: var(--primary);
        }

        .path-card.text:hover {
            border-color: var(--success);
        }

        .path-card-icon {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-md);
            flex-shrink: 0;
            color: white;
        }

        .path-card-icon svg {
            width: 24px;
            height: 24px;
        }

        .path-card.youtube .path-card-icon {
            background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
        }

        .path-card.text .path-card-icon {
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        }

        .path-card-content {
            flex: 1;
            min-width: 0;
        }

        .path-card-title {
            font-size: var(--font-size-base);
            font-weight: 600;
            margin-bottom: 2px;
            color: var(--text-primary);
        }

        .path-card-description {
            font-size: var(--font-size-xs);
            color: var(--text-muted);
            line-height: 1.4;
        }

        .path-card-arrow {
            color: var(--text-muted);
            opacity: 0;
            transform: translateX(-4px);
            transition: all 0.2s ease;
        }

        .path-card:hover .path-card-arrow {
            opacity: 1;
            transform: translateX(0);
        }

        /* ============ STAGGERED ANIMATIONS ============ */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.4s ease-out forwards;
        }

        .videos-grid .video-card {
            animation: fadeInUp 0.4s ease-out forwards;
        }

        .videos-grid .video-card:nth-child(1) { animation-delay: 0ms; }
        .videos-grid .video-card:nth-child(2) { animation-delay: 50ms; }
        .videos-grid .video-card:nth-child(3) { animation-delay: 100ms; }
        .videos-grid .video-card:nth-child(4) { animation-delay: 150ms; }
        .videos-grid .video-card:nth-child(5) { animation-delay: 200ms; }
        .videos-grid .video-card:nth-child(6) { animation-delay: 250ms; }

        /* ============ SKELETON LOADERS ============ */
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .skeleton {
            background: linear-gradient(
                90deg,
                var(--bg-tertiary) 25%,
                var(--bg-secondary) 50%,
                var(--bg-tertiary) 75%
            );
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: var(--radius-md);
        }

        .skeleton-card {
            background: var(--bg-primary);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }

        .skeleton-thumbnail {
            width: 100%;
            aspect-ratio: 16 / 9;
        }

        .skeleton-body {
            padding: var(--space-4);
        }

        .skeleton-title {
            height: 20px;
            width: 80%;
            margin-bottom: var(--space-3);
        }

        .skeleton-badges {
            display: flex;
            gap: var(--space-2);
            margin-bottom: var(--space-3);
        }

        .skeleton-badge {
            height: 24px;
            width: 80px;
            border-radius: var(--radius-full);
        }

        .skeleton-actions {
            display: flex;
            gap: var(--space-2);
            padding-top: var(--space-3);
            border-top: 1px solid var(--border);
        }

        .skeleton-btn {
            height: 36px;
            flex: 1;
            border-radius: var(--radius-md);
        }

        /* ============ LOADING SPINNER ============ */
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid var(--border);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-lg);
        }

        [data-theme="dark"] .loading-overlay {
            background: rgba(15, 23, 42, 0.8);
        }

        /* ============ EMPTY & MESSAGE STATES ============ */
        .empty-state {
            text-align: center;
            padding: var(--space-8);
            color: var(--text-muted);
        }

        .empty-state svg {
            width: 80px;
            height: 80px;
            margin-bottom: var(--space-5);
            opacity: 0.3;
        }

        .message {
            padding: var(--space-3) var(--space-4);
            border-radius: var(--radius-md);
            margin-bottom: var(--space-3);
            display: none;
            font-size: var(--font-size-sm);
            font-weight: 500;
        }

        .message.success {
            background: var(--success-light);
            color: #065f46;
            border: none;
        }

        .message.error {
            background: var(--danger-light);
            color: #991b1b;
            border: none;
        }

        .message.show {
            display: block;
        }

        /* ============ SEARCH BOX ============ */
        .search-box {
            margin-bottom: var(--space-5);
        }

        .search-box input {
            width: 100%;
            padding: var(--space-3) var(--space-4);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            font-size: var(--font-size-base);
            transition: all var(--transition-fast);
            background: var(--bg-primary);
            color: var(--text-primary);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .search-box input::placeholder {
            color: var(--text-muted);
        }

        /* ============ PLAYLISTS ============ */
        .playlists-section {
            background: var(--bg-primary);
            border-radius: var(--radius-lg);
            padding: var(--space-5);
            margin-bottom: var(--space-5);
            box-shadow: var(--shadow-md);
            border: none;
            transition: background var(--transition-base);
        }

        .playlists-section h2 {
            color: var(--text-primary);
            margin-bottom: var(--space-4);
            font-size: var(--font-size-lg);
            font-weight: 600;
        }

        .playlist-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .playlist-header h2 {
            margin-bottom: 0;
        }

        .view-all-btn {
            background: #f2f2f2;
            color: #030303;
            border: none;
            padding: 8px 16px;
            border-radius: 18px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
            box-shadow: none;
            text-transform: none;
            letter-spacing: normal;
        }

        .view-all-btn:hover {
            transform: none;
            background: #e5e5e5;
            box-shadow: none;
        }

        .playlists-grid {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 16px;
        }

        .playlist-stack {
            border: 1px solid #e5e5e5;
            border-radius: 12px;
            padding: 16px;
            background: #ffffff;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .playlist-stack.active {
            border-color: #0f7c59;
            box-shadow: 0 6px 16px rgba(15, 124, 89, 0.15);
        }

        .playlist-stack-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .playlist-stack-title h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
            color: #0f172a;
        }

        .playlist-stack-count {
            display: inline-block;
            margin-top: 4px;
            font-size: 12px;
            color: #64748b;
        }

        .playlist-stack-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .playlist-stack-btn {
            background: #0f7c59;
            color: #ffffff;
            border: none;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .playlist-stack-btn:hover {
            background: #0b6246;
        }

        .playlist-stack-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
        }

        .playlist-stack-grid .micro-video-card {
            aspect-ratio: 16 / 9;
            border-radius: 10px;
        }

        .playlist-stack-grid .micro-video-overlay {
            padding: 10px;
        }

        .playlist-stack-loading,
        .playlist-stack-empty {
            padding: 12px;
            border-radius: 8px;
            background: #f8fafc;
            color: #64748b;
            font-size: 13px;
        }

        .playlist-option {
            border: 2px solid #e5e5e5;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s;
            background: #f9f9f9;
        }

        .playlist-option:hover {
            border-color: #667eea;
            background: #f0f4ff;
            transform: translateX(5px);
        }

        .playlist-option h3 {
            margin: 0 0 8px 0;
            color: #030303;
            font-size: 16px;
        }

        .playlist-option p {
            margin: 0;
            color: #606060;
            font-size: 14px;
        }

        .video-playlists {
            margin: 12px 0 8px 0;
            padding: 8px 12px;
            background: #f5f5f5;
            border-radius: 6px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .playlist-label {
            font-size: 12px;
            color: #606060;
            font-weight: 500;
        }

        .playlist-badge {
            display: inline-block;
            padding: 4px 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
        }

        .create-playlist-form {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .create-playlist-form input {
            flex: 1;
        }

        .create-playlist-form button {
            padding: 8px 16px;
        }

        /* ============ UNIFIED LIBRARY SECTION ============ */
        .unified-library-section {
            padding: var(--space-4);
        }

        .library-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-4);
            flex-wrap: wrap;
            gap: var(--space-3);
        }

        .library-header h2 {
            margin: 0;
            color: var(--text-primary);
        }

        .library-controls {
            display: flex;
            gap: var(--space-3);
            align-items: center;
            flex-wrap: wrap;
        }

        .playlist-filter select {
            padding: var(--space-2) var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: var(--font-size-sm);
            min-width: 180px;
        }

        .create-playlist-inline {
            display: flex;
            gap: var(--space-2);
        }

        .create-playlist-inline input {
            padding: var(--space-2) var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: var(--font-size-sm);
            width: 180px;
        }

        .btn-create-playlist {
            padding: var(--space-2) var(--space-3);
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: var(--font-size-sm);
            cursor: pointer;
            white-space: nowrap;
        }

        .btn-create-playlist:hover {
            background: var(--primary-hover);
        }

        /* Search Box Inline */
        .search-box-inline {
            display: flex;
            align-items: center;
        }

        .search-box-inline input {
            padding: var(--space-2) var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: var(--font-size-sm);
            width: 200px;
        }

        .search-box-inline input::placeholder {
            color: var(--text-muted);
        }

        /* Viewer Library specific */
        .viewer-library {
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Viewer Tabs */
        .viewer-tabs {
            display: flex;
            gap: var(--space-2);
            margin-bottom: var(--space-4);
            padding: var(--space-2);
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        .viewer-tab {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            padding: var(--space-3) var(--space-4);
            background: transparent;
            border: none;
            border-radius: var(--radius-md);
            color: var(--text-secondary);
            font-size: var(--font-size-sm);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .viewer-tab:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .viewer-tab.active {
            background: var(--primary);
            color: white;
        }

        .viewer-tab svg {
            flex-shrink: 0;
        }

        /* Micro Video Card Thumbnail */
        .micro-thumbnail {
            position: relative;
            overflow: hidden;
        }

        .micro-play-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .micro-thumbnail:hover .micro-play-overlay {
            opacity: 1;
        }

        .micro-play-overlay svg {
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }

        .micro-video-card .video-thumbnail img {
            transition: transform 0.2s ease;
        }

        .micro-video-card:hover .video-thumbnail img {
            transform: scale(1.05);
        }

        /* Micro Header Controls */
        .micro-header-controls {
            display: flex;
            gap: var(--space-2);
            align-items: center;
        }

        .micro-header-controls input {
            padding: var(--space-2) var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: var(--font-size-sm);
            width: 150px;
        }

        .btn-tiktok-mode {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            padding: var(--space-2) var(--space-3);
            background: linear-gradient(135deg, #ff0050, #00f2ea);
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: var(--font-size-sm);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-tiktok-mode:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
        }

        /* Seen Filter Group */
        .seen-filter-group {
            display: flex;
            gap: 4px;
            margin-left: auto;
        }

        .seen-filter-tag {
            padding: 6px 12px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: var(--radius-full);
            font-size: var(--font-size-xs);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .seen-filter-tag:hover {
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        .seen-filter-tag.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-2);
            align-items: center;
        }

        /* Compact Micro Videos Grid */
        .micro-videos-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--space-4);
            padding-top: 8px;
        }

        /* Compact Micro Card */
        .micro-card-compact {
            background: transparent;
            border: none;
            border-radius: 18px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
            position: relative;
        }

        /* Grouped micro videos by playlist */
        .micro-playlist-group {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 12px 14px 16px;
        }

        .micro-playlist-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            gap: 12px;
        }

        .micro-playlist-header h3 {
            margin: 0;
            font-size: 15px;
            font-weight: 700;
            color: #0f172a;
        }

        .micro-playlist-count {
            font-size: 12px;
            color: #64748b;
        }

        .micro-playlist-row {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
        }

        .micro-card-compact:hover {
            transform: translateY(-4px);
        }

        .micro-card-compact .micro-thumb {
            position: relative;
            aspect-ratio: 9 / 16;
            overflow: hidden;
            border-radius: 18px;
            background: #f2f4f8;
            box-shadow: 0 14px 36px rgba(0,0,0,0.18);
        }

        .micro-card-compact .micro-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            filter: saturate(1.05);
        }

        .micro-card-compact:hover .micro-thumb img {
            transform: scale(1.05);
        }

        .micro-card-compact .micro-thumb-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: var(--space-4);
            /* Keep text legible without blurring the image */
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
        }

        .micro-thumb-title-top {
            font-size: 18px;
            font-weight: 800;
            color: #0f172a;
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-shadow: 0 8px 18px rgba(255, 255, 255, 0.65);
            max-width: 85%;
        }

        .micro-card-compact .micro-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .micro-card-compact .micro-meta .pill {
            background: #ffffff;
            color: #0f172a;
            font-size: 11px;
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
        }

        /* Seen/Unseen badges (unused in new layout but kept for fallback) */
        .seen-badge, .unseen-badge {
            display: none;
        }

        /* Play Icon Overlay */
        .micro-play-icon {
            position: absolute;
            bottom: 14px;
            right: 14px;
            transform: translate(0, 0);
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.96);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s ease, transform 0.2s ease;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
        }

        .micro-card-compact:hover .micro-play-icon {
            opacity: 1;
            transform: translateY(-2px);
        }

        .micro-play-icon svg {
            margin-left: 3px;
        }

        /* TikTok Modal */
        .tiktok-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #000;
            z-index: 20000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tiktok-container {
            width: 100%;
            height: 100%;
            max-width: 450px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .tiktok-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            font-size: 32px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            transition: background 0.2s ease;
        }

        .tiktok-close:hover {
            background: rgba(255,255,255,0.3);
        }

        .tiktok-video-wrapper {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
        }

        #tiktokVideo {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
        }

        .tiktok-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .tiktok-info h3 {
            color: white;
            font-size: 16px;
            margin: 0 0 8px 0;
            max-width: 280px;
        }

        .tiktok-playlist-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .tiktok-playlist-tags span {
            font-size: 11px;
            padding: 3px 8px;
            background: rgba(139, 92, 246, 0.8);
            color: white;
            border-radius: var(--radius-sm);
        }

        .tiktok-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .tiktok-action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: white;
            font-size: 11px;
            cursor: pointer;
            padding: 8px;
            border-radius: var(--radius-md);
            transition: background 0.2s ease;
        }

        .tiktok-action-btn:hover {
            background: rgba(255,255,255,0.1);
        }

        .tiktok-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            padding: 15px;
            background: rgba(0,0,0,0.5);
        }

        .tiktok-nav-btn {
            background: rgba(255,255,255,0.1);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .tiktok-nav-btn:hover {
            background: rgba(255,255,255,0.2);
            transform: scale(1.1);
        }

        .tiktok-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .tiktok-counter {
            color: white;
            font-size: 14px;
            font-weight: 500;
        }

        /* Viewer Video Card Actions */
        .video-card-compact .btn-view {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .video-card-compact .btn-view:hover {
            background: var(--primary);
            color: white;
        }

        /* Manage Playlists Button */
        .btn-manage-playlists {
            padding: var(--space-2) var(--space-3);
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            font-size: var(--font-size-xs);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-manage-playlists:hover {
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        /* Playlist Filter Row */
        .playlist-filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-2);
            margin-bottom: var(--space-4);
            align-items: center;
        }

        #playlistFilterTags {
            display: contents;
        }

        .playlist-filter-tag {
            padding: var(--space-2) var(--space-3);
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border: 1px solid var(--border);
            border-radius: var(--radius-full);
            font-size: var(--font-size-sm);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .playlist-filter-tag:hover {
            background: var(--bg-secondary);
            border-color: var(--primary);
            color: var(--text-primary);
        }

        .playlist-filter-tag.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .playlist-filter-tag .count {
            opacity: 0.7;
            font-size: var(--font-size-xs);
            margin-left: 4px;
        }

        /* Playlist Manager Modal */
        .playlist-manager-content {
            max-width: 500px;
        }

        .playlist-manager-body {
            padding: var(--space-4);
        }

        .create-playlist-section {
            display: flex;
            gap: var(--space-2);
            margin-bottom: var(--space-4);
            padding-bottom: var(--space-4);
            border-bottom: 1px solid var(--border);
        }

        .create-playlist-section input {
            flex: 1;
            padding: var(--space-2) var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: var(--font-size-sm);
        }

        .playlist-list {
            display: flex;
            flex-direction: column;
            gap: var(--space-2);
            max-height: 300px;
            overflow-y: auto;
        }

        .playlist-list-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: var(--space-3);
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
        }

        .playlist-list-item .playlist-info {
            flex: 1;
        }

        .playlist-list-item .playlist-name {
            font-weight: 500;
            color: var(--text-primary);
        }

        .playlist-list-item .playlist-count {
            font-size: var(--font-size-xs);
            color: var(--text-muted);
        }

        .playlist-list-item .playlist-actions {
            display: flex;
            gap: var(--space-2);
        }

        .playlist-list-item .btn-edit,
        .playlist-list-item .btn-delete-sm {
            padding: 4px 8px;
            font-size: var(--font-size-xs);
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .playlist-list-item .btn-edit {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
        }

        .playlist-list-item .btn-edit:hover {
            background: var(--primary);
            color: white;
        }

        .playlist-list-item .btn-delete-sm {
            background: transparent;
            color: var(--text-muted);
        }

        .playlist-list-item .btn-delete-sm:hover {
            background: var(--danger);
            color: white;
        }

        /* Edit mode for playlist item */
        .playlist-list-item.editing .playlist-info {
            display: flex;
            gap: var(--space-2);
            flex: 1;
        }

        .playlist-list-item.editing .playlist-name-input {
            flex: 1;
            padding: 4px 8px;
            border: 1px solid var(--primary);
            border-radius: var(--radius-sm);
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: var(--font-size-sm);
        }

        .playlist-list-item .btn-save {
            padding: 4px 8px;
            font-size: var(--font-size-xs);
            background: var(--success);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
        }

        .playlist-list-item .btn-cancel {
            padding: 4px 8px;
            font-size: var(--font-size-xs);
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
        }

        /* Compact Video Grid - 5 per row */
        .videos-grid-compact {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: var(--space-3);
        }

        /* Lightweight skeletons for loading */
        .skeleton-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: var(--space-3);
        }

        .skeleton-card {
            background: linear-gradient(90deg, #f5f7fb 25%, #eef1f7 37%, #f5f7fb 63%);
            background-size: 400% 100%;
            height: 240px;
            border-radius: var(--radius-lg);
            animation: skeleton-loading 1.2s ease-in-out infinite;
        }

        @keyframes skeleton-loading {
            0% { background-position: 100% 50%; }
            100% { background-position: 0 50%; }
        }

        .load-more-row {
            display: flex;
            justify-content: center;
            margin: var(--space-4) 0;
        }

        .load-more-btn {
            padding: 10px 16px;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            background: white;
            color: var(--text-primary);
            cursor: pointer;
            box-shadow: var(--shadow-sm);
            transition: all 0.15s ease;
        }

        .load-more-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: var(--shadow-md);
        }

        @media (max-width: 1400px) {
            .videos-grid-compact {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 1100px) {
            .videos-grid-compact {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 800px) {
            .videos-grid-compact {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Compact Video Card */
        .video-card-compact {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .video-card-compact:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
        }

        /* Title ABOVE thumbnail */
        .video-card-compact .video-title {
            padding: var(--space-2) var(--space-3);
            font-size: var(--font-size-sm);
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border-bottom: 1px solid var(--border);
        }

        .video-card-compact .video-thumbnail {
            width: 100%;
            aspect-ratio: 16 / 9;
            background: var(--bg-tertiary);
        }

        .video-card-compact .video-thumbnail iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .video-card-compact .video-thumbnail-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: var(--font-size-xs);
        }

        /* Playlist tags on video */
        .video-card-compact .video-playlist-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            padding: var(--space-2) var(--space-3);
            min-height: 28px;
        }

        .video-playlist-tag {
            font-size: 10px;
            padding: 2px 6px;
            background: var(--primary);
            color: white;
            border-radius: var(--radius-sm);
        }

        /* Compact Actions */
        .video-card-compact .video-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            padding: var(--space-2) var(--space-3);
            border-top: 1px solid var(--border);
        }

        .video-card-compact .video-actions button {
            flex: 1;
            min-width: 0;
            padding: 4px 6px;
            font-size: 10px;
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .video-card-compact .btn-action {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .video-card-compact .btn-action:hover {
            background: var(--primary);
            color: white;
        }

        .video-card-compact .btn-playlist {
            background: var(--bg-tertiary);
            color: var(--text-muted);
            flex: 0;
            min-width: 28px;
        }

        .video-card-compact .btn-playlist:hover {
            background: var(--primary);
            color: white;
        }

        .video-card-compact .btn-delete {
            background: transparent;
            color: var(--text-muted);
            flex: 0;
            min-width: 28px;
        }

        .video-card-compact .btn-delete:hover {
            background: var(--danger);
            color: white;
        }

        .video-card-compact .btn-watch {
            background: var(--success);
            color: white;
        }

        .video-card-compact .btn-watch:hover {
            background: #059669;
        }

        /* ============ ADMIN SIDEBAR LAYOUT ============ */
        .admin-layout {
            display: flex;
            min-height: 100vh;
        }

        .admin-sidebar {
            width: var(--sidebar-width);
            background: var(--bg-primary);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            z-index: 100;
            transition: width var(--transition-base), background var(--transition-base);
        }

        .admin-sidebar.collapsed {
            width: var(--sidebar-collapsed);
        }

        .admin-sidebar.collapsed .logo-text,
        .admin-sidebar.collapsed .nav-text,
        .admin-sidebar.collapsed .user-info {
            display: none;
        }

        .admin-sidebar.collapsed .sidebar-logo {
            justify-content: center;
        }

        .admin-sidebar.collapsed .nav-item {
            justify-content: center;
            padding: var(--space-3);
        }

        .admin-sidebar.collapsed .theme-toggle {
            justify-content: center;
        }

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

        .sidebar-logo {
            display: flex;
            align-items: center;
            gap: var(--space-3);
        }

        .logo-icon {
            font-size: 24px;
        }

        .logo-text {
            font-weight: 600;
            font-size: var(--font-size-base);
            color: var(--text-primary);
        }

        .sidebar-toggle {
            background: transparent;
            border: none;
            padding: var(--space-2);
            border-radius: var(--radius-sm);
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar-toggle:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            transform: none;
            box-shadow: none;
        }

        .sidebar-nav {
            flex: 1;
            padding: var(--space-4);
            display: flex;
            flex-direction: column;
            gap: var(--space-2);
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            padding: var(--space-3) var(--space-4);
            border-radius: var(--radius-md);
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: var(--font-size-sm);
            transition: all var(--transition-fast);
        }

        .nav-item:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .nav-item.active {
            background: var(--primary-light);
            color: var(--primary);
        }

        .nav-icon {
            font-size: 18px;
            width: 24px;
            text-align: center;
        }

        .sidebar-footer {
            padding: var(--space-4);
            border-top: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: var(--space-3);
        }

        .theme-toggle {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            padding: var(--space-3) var(--space-4);
            border-radius: var(--radius-md);
            background: var(--bg-tertiary);
            border: none;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: var(--font-size-sm);
            cursor: pointer;
            width: 100%;
            transition: all var(--transition-fast);
        }

        .theme-toggle:hover {
            background: var(--border);
            transform: none;
            box-shadow: none;
        }

        .theme-icon-dark { display: none; }
        [data-theme="dark"] .theme-icon-light { display: none; }
        [data-theme="dark"] .theme-icon-dark { display: inline; }

        .user-profile {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            padding: var(--space-3);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-full);
            background: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .user-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .user-info .user-email {
            font-size: var(--font-size-xs);
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sign-out-link {
            background: transparent;
            border: none;
            padding: 0;
            color: var(--danger);
            font-size: var(--font-size-xs);
            cursor: pointer;
            text-align: left;
            font-weight: 500;
        }

        .sign-out-link:hover {
            text-decoration: underline;
            transform: none;
            box-shadow: none;
        }

        /* Admin Main Content */
        .admin-main {
            flex: 1;
            margin-left: var(--sidebar-width);
            background: var(--bg-secondary);
            min-height: 100vh;
            transition: margin-left var(--transition-base);
        }

        .admin-sidebar.collapsed + .admin-main {
            margin-left: var(--sidebar-collapsed);
        }

        .admin-header {
            background: var(--bg-primary);
            border-bottom: 1px solid var(--border);
            padding: var(--space-4) var(--space-6);
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .admin-header h1 {
            font-size: var(--font-size-xl);
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            padding: 0;
            border: none;
        }

        .admin-content {
            padding: var(--space-6);
            max-width: 1400px;
        }

        .add-to-playlist-btn {
            background: #f2f2f2 !important;
            color: #030303 !important;
            padding: 6px 12px !important;
            font-size: 12px !important;
            margin-top: 8px;
            border: 1px solid #ccc !important;
            text-transform: none !important;
            letter-spacing: normal !important;
        }

        .add-to-playlist-btn:hover {
            background: #e5e5e5 !important;
        }

        .video-card-footer {
            padding: 8px 0;
            background: transparent;
        }

        .video-card-footer select {
            width: 100%;
            padding: 6px 8px;
            border: 1px solid #ccc;
            border-radius: 2px;
            font-size: 13px;
            background: white;
        }

        .transcript-section {
            margin-top: 8px;
            background: #f2f2f2;
            border-radius: 8px;
            border: 1px solid #e5e5e5;
        }

        .transcript-header {
            padding: 10px 12px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f9f9f9;
            border-radius: 8px 8px 0 0;
        }

        .transcript-header:hover {
            background: #f2f2f2;
        }

        .transcript-header h4 {
            margin: 0;
            color: #030303;
            font-weight: 500;
            font-size: 13px;
        }

        .transcript-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .transcript-content.expanded {
            max-height: 600px;
            overflow-y: auto;
        }

        .transcript-text {
            padding: 12px;
            color: #606060;
            line-height: 1.5;
            white-space: pre-wrap;
            font-size: 13px;
        }

        .summary-section {
            background: #f9f9f9;
            border-radius: 8px;
            border: 1px solid #e5e5e5;
        }

        .summary-header {
            padding: 10px 12px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f2f2f2;
            border-radius: 8px 8px 0 0;
        }

        .summary-header:hover {
            background: #e5e5e5;
        }

        .summary-header h4 {
            margin: 0;
            color: #030303;
            font-weight: 500;
            font-size: 13px;
        }

        .summary-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .summary-content.expanded {
            max-height: 400px;
            overflow-y: auto;
        }

        .summary-text {
            padding: 12px;
            color: #030303;
            line-height: 1.5;
            font-size: 13px;
        }

        .summary-text ul {
            list-style-type: disc;
            padding-left: 20px;
        }

        .summary-text li {
            line-height: 1.6;
            margin: 4px 0;
        }

        .summary-text strong {
            font-weight: 600;
            color: #030303;
        }

        .summary-text p {
            margin: 8px 0;
        }

        .accordion-icon {
            transition: transform 0.3s ease;
        }

        .accordion-icon.rotated {
            transform: rotate(180deg);
        }

        .transcribe-btn {
            background: #065fd4 !important;
            padding: 4px 8px !important;
            font-size: 11px !important;
            margin-top: 4px !important;
            margin-right: 4px;
            display: inline-block;
            width: auto !important;
            text-transform: none !important;
            letter-spacing: normal !important;
            border-radius: 2px !important;
        }

        .loading {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .delete-btn {
            background: #cc0000 !important;
            padding: 4px 8px !important;
            font-size: 11px !important;
            margin-top: 4px !important;
            margin-right: 4px;
            display: inline-block;
            width: auto !important;
            text-transform: none !important;
            letter-spacing: normal !important;
            border-radius: 2px !important;
        }

        .delete-btn:hover {
            background: #a00 !important;
        }

        .add-playlist-btn {
            background: #f2f2f2 !important;
            color: #030303 !important;
            border: 1px solid #ccc !important;
            padding: 4px 8px !important;
            font-size: 11px !important;
            margin-top: 4px !important;
            margin-right: 4px;
            display: inline-block;
            width: auto !important;
            text-transform: none !important;
            letter-spacing: normal !important;
            border-radius: 2px !important;
        }

        .add-playlist-btn:hover {
            background: #e5e5e5 !important;
        }

        .video-actions {
            padding: 8px 0;
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .video-actions .btn-action,
        .video-actions .btn-watch {
            padding: 6px 10px;
            font-size: 11px;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            background: white;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .video-actions .btn-action:hover,
        .video-actions .btn-watch:hover {
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: var(--shadow-sm);
        }

        .video-actions .btn-watch {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .video-actions .btn-watch:hover {
            box-shadow: var(--shadow-md);
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            animation: fadeIn 0.2s ease-out;
        }

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

        .modal-content {
            background: var(--bg-primary);
            margin: 8% auto;
            padding: var(--space-6);
            border-radius: var(--radius-xl);
            width: 90%;
            max-width: 500px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            border: 1px solid var(--border);
        }

        @keyframes slideIn {
            from {
                transform: translateY(-20px) scale(0.98);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

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

        .modal-header h2 {
            color: var(--text-primary);
            margin: 0;
            font-size: var(--font-size-lg);
            font-weight: 600;
        }

        .close-modal {
            color: var(--text-muted);
            font-size: 24px;
            font-weight: normal;
            cursor: pointer;
            background: var(--bg-tertiary);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }

        .close-modal:hover {
            color: var(--text-primary);
            background: var(--border);
        }

        .close {
            color: var(--text-muted);
            font-size: 24px;
            cursor: pointer;
            background: var(--bg-tertiary);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            float: right;
            line-height: 1;
        }

        .close:hover {
            color: var(--text-primary);
            background: var(--border);
        }

        .playlist-option {
            padding: var(--space-4);
            border: 2px solid var(--border);
            border-radius: var(--radius-md);
            margin-bottom: var(--space-3);
            cursor: pointer;
            transition: all var(--transition-base);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-primary);
        }

        .playlist-option:hover {
            border-color: var(--primary);
            background: var(--primary-light);
            transform: translateX(4px);
        }

        .playlist-option-name {
            font-weight: 500;
            color: var(--text-primary);
        }

        .playlist-option-count {
            color: var(--text-muted);
            font-size: var(--font-size-sm);
        }

        .no-playlists-message {
            text-align: center;
            padding: var(--space-5);
            color: var(--text-muted);
        }

        /* ============ PRESENTATION VIEWER STYLES ============ */

        .presentation-modal {
            background-color: rgba(0, 0, 0, 0.95);
        }

        .presentation-content {
            background-color: transparent;
            margin: 0;
            padding: 0;
            width: 100%;
            max-width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            animation: none;
        }

        .close-presentation {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            width: auto;
            z-index: 1001;
            transition: color 0.3s, transform 0.3s;
        }

        .close-presentation:hover {
            color: #8B3FE8;
            transform: scale(1.1);
        }

        .slide-container {
            width: 90%;
            max-width: 1000px;
            height: 70vh;
            background: linear-gradient(135deg, #1A0B2E 0%, #2A1B3D 50%, #1A0B2E 100%);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px;
            position: relative;
            overflow: hidden;
        }

        .slide-content {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            animation: slideIn 0.5s ease;
        }

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

        .slide-title-main {
            font-size: 3.5em;
            font-weight: 700;
            color: #FFFFFF;
            margin-bottom: 20px;
            line-height: 1.2;
            max-width: 90%;
            text-align: left;
        }

        .slide-subtitle {
            font-size: 2em;
            font-weight: 400;
            color: #8B3FE8;
            margin-top: 20px;
            text-align: left;
        }

        .slide-bullet-content {
            font-size: 1.8em;
            font-weight: 400;
            color: #FFFFFF;
            line-height: 1.6;
            max-width: 85%;
            text-align: left;
            padding: 30px;
        }

        .slide-bullet-content strong {
            color: #8B3FE8;
            font-weight: 700;
        }

        .slide-bullet-content em {
            font-style: italic;
            color: #E91E8C;
        }

        .presentation-controls {
            display: flex;
            align-items: center;
            gap: 30px;
            margin-top: 30px;
        }

        .nav-btn {
            background: linear-gradient(135deg, #8B3FE8 0%, #7928CA 100%);
            color: white;
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-btn:hover:not(:disabled) {
            transform: scale(1.1);
            box-shadow: 0 5px 20px rgba(139, 63, 232, 0.5);
        }

        .nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .slide-indicator {
            color: white;
            font-size: 1.5em;
            font-weight: 600;
            min-width: 100px;
            text-align: center;
        }

        .slide-dots {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(139, 63, 232, 0.3);
            cursor: pointer;
            transition: all 0.3s;
        }

        .dot.active {
            background: #8B3FE8;
            transform: scale(1.3);
        }

        .dot:hover {
            background: rgba(139, 63, 232, 0.6);
        }

        .view-presentation-btn {
            background: #f2f2f2 !important;
            color: #030303 !important;
            padding: 4px 8px !important;
            font-size: 11px !important;
            margin-top: 4px !important;
            margin-right: 4px;
            display: inline-block;
            width: auto !important;
            border: 1px solid #ccc !important;
            border-radius: 2px !important;
            cursor: pointer;
            transition: background 0.2s;
            text-transform: none !important;
            letter-spacing: normal !important;
        }

        .view-presentation-btn:hover {
            transform: none;
            box-shadow: none;
            background: #e5e5e5 !important;
        }

        .export-pptx-btn {
            background: #065fd4 !important;
            color: white !important;
            border: none;
            padding: 8px 16px !important;
            border-radius: 2px !important;
            font-size: 14px !important;
            font-weight: 500 !important;
            cursor: pointer;
            transition: background 0.2s;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
        }

        .export-pptx-btn:hover {
            transform: none;
            box-shadow: none;
            background: #0757c7 !important;
        }

        .export-pptx-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        @media (max-width: 768px) {
            .slide-container {
                width: 95%;
                height: 60vh;
                padding: 30px;
            }

            .slide-title-main {
                font-size: 2em;
            }

            .slide-subtitle {
                font-size: 1.3em;
            }

            .slide-bullet-content {
                font-size: 1.3em;
                padding: 15px;
            }

            .nav-btn {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

            .slide-indicator {
                font-size: 1.2em;
            }
        }

        /* Micro Video Generation Styles */
        .micro-video-processing {
            margin-top: 8px;
            padding: 8px;
            background: #f0f7ff;
            border: 1px solid #065fd4;
            border-radius: 4px;
            font-size: 11px;
            display: inline-block;
            width: auto;
        }

        .progress-bar {
            margin-top: 4px;
            height: 4px;
            background: #e5e5e5;
            border-radius: 2px;
            overflow: hidden;
            width: 100px;
        }

        .progress-fill {
            height: 100%;
            width: 30%;
            background: #065fd4;
            animation: progress 2s infinite;
        }

        @keyframes progress {
            0% { width: 30%; }
            50% { width: 70%; }
            100% { width: 30%; }
        }

        /* Navigation Tabs */
        .navigation-tabs {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #e5e5e5;
        }

        .nav-tab {
            background: #f2f2f2;
            color: #606060;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .nav-tab.active {
            background: #065fd4;
            color: white;
        }

        .nav-tab:hover {
            background: #e5e5e5;
        }

        .nav-tab.active:hover {
            background: #0757c7;
        }

        /* Micro Videos Grid (Vertical Layout) */
        .micro-videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
            padding: 16px 0;
        }

        .micro-video-card {
            position: relative;
            aspect-ratio: 9 / 16;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            background: #000;
        }

        .micro-video-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }

        .micro-video-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .micro-video-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 12px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
        }

        .micro-video-overlay h3 {
            font-size: 13px;
            font-weight: 500;
            margin: 0 0 4px 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .micro-video-duration {
            font-size: 11px;
            background: rgba(0,0,0,0.6);
            padding: 2px 6px;
            border-radius: 3px;
        }

        .seen-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(6, 95, 212, 0.9);
            color: white;
            font-size: 10px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 4px;
            z-index: 10;
            letter-spacing: 0.5px;
        }

        /* Modal Player */
        .micro-player-content {
            max-width: 450px;
            max-height: 90vh;
            background: #000;
            padding: 0;
            border-radius: 12px;
            overflow: hidden;
            margin: 0 !important;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            cursor: move;
        }

        .micro-player-container {
            width: 100%;
            max-height: 80vh;
            aspect-ratio: 9 / 16;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #microVideoPlayer {
            width: 100%;
            max-height: 80vh;
            object-fit: contain;
        }

        .micro-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            background: #1a1a1a;
            color: white;
        }

        .micro-nav-btn {
            background: #065fd4;
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .micro-nav-btn:disabled {
            background: #404040;
            cursor: not-allowed;
            opacity: 0.5;
        }

        .micro-nav-btn:not(:disabled):hover {
            background: #0757c7;
        }

        #autoPlayIndicator {
            padding: 12px;
            background: #2a2a2a;
            color: white;
            text-align: center;
            font-size: 13px;
        }

        #autoPlayIndicator button {
            margin-left: 12px;
            background: #cc0000;
            color: white;
            border: none;
            padding: 4px 12px;
            border-radius: 4px;
            cursor: pointer;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #606060;
        }

        .empty-state h3 {
            margin: 16px 0 8px;
            font-size: 18px;
        }

        .empty-state p {
            margin: 8px 0;
            font-size: 14px;
        }

        .empty-state button {
            margin-top: 16px;
        }

        /* ============ AUTHENTICATION STYLES ============ */
        /* Auth Pages */
        .auth-page {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100vh;
            background: radial-gradient(circle at 20% 20%, #e7efff 0, rgba(231,239,255,0) 35%), radial-gradient(circle at 80% 0, #f1e8ff 0, rgba(241,232,255,0) 32%), linear-gradient(135deg, #f7f9fc 0%, #edf1f9 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: var(--space-6);
        }

        .auth-page-content {
            width: 100%;
            max-width: 480px;
            padding: var(--space-3);
        }

        .auth-card {
            background: #ffffff !important;
            border-radius: var(--radius-xl);
            padding: var(--space-7);
            box-shadow: var(--shadow-lg);
            border: 1px solid #e2e8f0;
            color: #0f172a;
        }

        .auth-card h1 {
            text-align: center;
            color: #0f172a;
            font-size: var(--font-size-2xl);
            font-weight: 700;
            margin: 0 0 var(--space-1) 0;
            border: none;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
        }

        .auth-card h2 {
            text-align: center;
            color: #334155;
            font-size: var(--font-size-lg);
            font-weight: 600;
            margin: 0 0 var(--space-5) 0;
        }

        .auth-card .form-group {
            margin-bottom: 20px;
        }

        .auth-card .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

        .auth-card .form-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid #e5e5e5;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }

        .auth-card .form-group input:focus {
            outline: none;
            border-color: #667eea;
        }

        .auth-submit-btn {
            width: 100%;
            padding: 14px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            margin-top: 8px;
        }

        .auth-submit-btn:hover {
            background: #5568d3;
        }

        .auth-error {
            margin-top: 16px;
            padding: 12px;
            background: #fee;
            color: #c33;
            border-radius: 8px;
            font-size: 14px;
        }

        .auth-footer {
            text-align: center;
            margin-top: 24px;
            color: #666;
            font-size: 14px;
        }

        .auth-footer a {
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
        }

        .auth-footer a:hover {
            text-decoration: underline;
        }

        /* Header Updates */
        .header-content {
            display: flex !important;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .header-right {
            display: flex !important;
            align-items: center;
            gap: 24px;
        }

        /* Points Display - Header */
        .points-display {
            display: flex !important;
            align-items: center;
            gap: 8px;
            color: #ffffff !important;
            background: rgba(255,255,255,0.2);
            padding: 8px 16px;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        .points-icon {
            font-size: 20px;
            color: #ffffff !important;
        }

        .points-value {
            font-size: 24px;
            font-weight: 700;
            color: #ffffff !important;
        }

        .points-label {
            font-size: 12px;
            opacity: 0.95;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #ffffff !important;
        }

        /* User Menu */
        .user-menu {
            display: flex !important;
            align-items: center;
            gap: 12px;
        }

        .user-email {
            font-size: 14px;
            color: #ffffff !important;
            opacity: 0.95;
        }

        .sign-out-btn {
            background: rgba(255,255,255,0.95);
            color: #0f7c59;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .sign-out-btn:hover {
            background: #ffffff;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

        /* Points Display - Micro Library */
        .micro-library-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .micro-points-display {
            text-align: right;
        }

        .micro-points-card {
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .micro-points-icon {
            font-size: 32px;
        }

        .micro-points-info {
            text-align: left;
        }

        .micro-points-value {
            font-size: 32px;
            font-weight: 700;
            line-height: 1;
        }

        .micro-points-label {
            font-size: 12px;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .micro-points-detail {
            margin-top: 8px;
            font-size: 13px;
            color: #606060;
            font-weight: 500;
        }

        /* ============ ADD VIDEO WIZARD STYLES ============ */
        .wizard-modal {
            z-index: 1100;
            overflow-y: auto;
            padding: 20px;
        }

        .wizard-modal .modal-content {
            margin: 0 auto;
            max-height: calc(100vh - 40px);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .wizard-content {
            max-width: 600px;
            width: 100%;
        }

        .wizard-body {
            flex: 1;
            overflow-y: auto;
            padding-bottom: var(--space-4);
            max-height: calc(100vh - 280px);
        }

        .wizard-progress {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 0 20px;
        }

        .wizard-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            position: relative;
        }

        .wizard-step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 15px;
            left: 60%;
            width: 80%;
            height: 2px;
            background: var(--border);
        }

        .wizard-step.completed::after {
            background: var(--primary);
        }

        .step-circle {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
            z-index: 1;
            transition: all 0.3s;
        }

        .wizard-step.active .step-circle {
            background: var(--primary);
            color: white;
        }

        .wizard-step.completed .step-circle {
            background: var(--success);
            color: white;
        }

        .step-label {
            margin-top: 8px;
            font-size: 12px;
            color: var(--text-muted);
            text-align: center;
        }

        .wizard-step.active .step-label {
            color: var(--primary);
            font-weight: 500;
        }

        .wizard-step.completed .step-label {
            color: var(--success);
        }

        .wizard-body {
            min-height: 300px;
        }

        .wizard-step-content {
            display: none;
        }

        .wizard-step-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

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

        .url-input-group {
            display: flex;
            gap: var(--space-3);
            margin-bottom: var(--space-4);
        }

        .url-input-group input {
            flex: 1;
            padding: var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: var(--font-size-base);
        }

        .url-input-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .fetch-btn {
            background: var(--primary);
            color: white;
            padding: var(--space-3) var(--space-5);
            border: none;
            border-radius: var(--radius-md);
            cursor: pointer;
            font-weight: 500;
            white-space: nowrap;
            transition: all var(--transition-fast);
        }

        .fetch-btn:hover {
            background: var(--primary-hover);
        }

        .fetch-btn:disabled {
            background: var(--bg-tertiary);
            color: var(--text-muted);
            cursor: not-allowed;
        }

        .youtube-preview {
            display: none;
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            padding: var(--space-4);
            margin-bottom: var(--space-4);
        }

        .youtube-preview.visible {
            display: block;
        }

        .youtube-preview img {
            width: 100%;
            max-width: 240px;
            border-radius: var(--radius-md);
            margin-bottom: var(--space-3);
        }

        .youtube-preview input {
            width: 100%;
            padding: var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            font-size: var(--font-size-base);
            background: var(--bg-primary);
            color: var(--text-primary);
        }

        .duration-info {
            margin-top: var(--space-2);
            color: var(--text-muted);
            font-size: var(--font-size-sm);
        }

        .processing-status {
            text-align: center;
            padding: 40px 20px;
        }

        .processing-status.hidden {
            display: none;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #e0e0e0;
            border-top-color: #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .processing-status h3 {
            margin: 0 0 10px;
            color: #333;
        }

        .processing-status p {
            color: #666;
            margin: 0;
        }

        .summary-editor {
            display: none;
        }

        .summary-editor.visible {
            display: block;
        }

        .summary-editor h3 {
            margin: 0 0 15px;
            color: #333;
        }

        .summary-editor textarea {
            width: 100%;
            min-height: 200px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.6;
            resize: vertical;
            font-family: inherit;
        }

        .summary-editor textarea:focus {
            border-color: #667eea;
            outline: none;
        }

        .content-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .content-option-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: var(--space-5);
            text-align: center;
            transition: all 0.2s ease;
        }

        .content-option-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .content-option-card .icon {
            font-size: 40px;
            margin-bottom: var(--space-3);
        }

        .content-option-card h3 {
            margin: 0 0 var(--space-2);
            color: var(--text-primary);
            font-size: var(--font-size-lg);
            font-weight: 600;
        }

        .content-option-card p {
            color: var(--text-muted);
            font-size: var(--font-size-sm);
            margin: 0 0 var(--space-4);
            line-height: 1.5;
        }

        .content-option-card .presenter-select {
            margin: var(--space-3) 0;
            text-align: left;
        }

        .content-option-card .presenter-select label {
            display: block;
            font-size: var(--font-size-xs);
            color: var(--text-muted);
            margin-bottom: var(--space-2);
        }

        .content-option-card .presenter-select select {
            width: 100%;
            padding: var(--space-2) var(--space-3);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: var(--font-size-sm);
        }

        .generate-micro-btn,
        .generate-slides-btn {
            width: 100%;
            padding: var(--space-3) var(--space-4);
            border: none;
            border-radius: var(--radius-md);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .generate-micro-btn {
            background: var(--primary);
            color: white;
        }

        .generate-micro-btn:hover:not(:disabled) {
            background: var(--primary-hover);
        }

        .generate-slides-btn {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            margin-top: var(--space-2);
        }

        .generate-slides-btn:hover:not(:disabled) {
            background: var(--border);
        }

        .generate-micro-btn:disabled,
        .generate-slides-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .generation-status {
            margin-top: var(--space-3);
            padding: var(--space-3);
            border-radius: var(--radius-md);
            font-size: var(--font-size-sm);
            display: none;
        }

        .generation-status.visible {
            display: block;
        }

        .generation-status.processing {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary);
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .generation-status.success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .generation-status.error {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        .progress-indicator {
            line-height: 1.6;
        }

        .wizard-section-title {
            color: var(--text-primary);
            font-size: var(--font-size-lg);
            font-weight: 600;
            margin: 0 0 var(--space-5) 0;
        }

        .wizard-footer {
            display: flex;
            justify-content: space-between;
            padding-top: var(--space-4);
            border-top: 1px solid var(--border);
            background: var(--bg-primary);
            flex-shrink: 0;
        }

        .wizard-footer button {
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }

        .wizard-back-btn {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border: none;
        }

        .wizard-back-btn:hover {
            background: var(--border);
        }

        .wizard-next-btn {
            background: var(--primary);
            color: white;
            border: none;
        }

        .wizard-next-btn:hover:not(:disabled) {
            background: var(--primary-hover);
        }

        .wizard-next-btn:disabled {
            background: var(--bg-tertiary);
            color: var(--text-muted);
            cursor: not-allowed;
        }

        .wizard-close-btn {
            background: var(--success);
            color: white;
            border: none;
        }

        .wizard-close-btn:hover {
            background: #43a047;
        }

        .presenter-select {
            margin-top: 15px;
        }

        .presenter-select label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
        }

        .presenter-select select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            background: white;
        }

        /* ============ STUDY TAB STYLES ============ */

        .study-container {
            display: flex;
            height: calc(100vh - 180px);
            gap: 20px;
            padding: 20px;
        }

        .study-sidebar {
            width: 280px;
            flex-shrink: 0;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .study-sidebar-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
        }

        .study-sidebar-header h3 {
            margin: 0 0 12px 0;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .study-sidebar-header input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            background: var(--bg-secondary);
        }

        .study-video-list {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
        }

        .study-video-item {
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 4px;
        }

        .study-video-item:hover {
            background: var(--bg-secondary);
        }

        .study-video-item.active {
            background: var(--primary);
            color: white;
        }

        .study-video-item-title {
            font-size: 13px;
            font-weight: 500;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .study-video-item-meta {
            font-size: 11px;
            margin-top: 4px;
            opacity: 0.7;
        }

        .study-video-item-meta .has-micro {
            background: var(--success);
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
        }

        .study-video-item.active .has-micro {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Study playlist grouping */
        .study-playlist-group {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 10px;
            background: var(--bg-primary);
        }

        .study-playlist-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
            gap: 8px;
        }

        .study-playlist-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .study-playlist-count {
            font-size: 12px;
            color: var(--text-muted);
        }

        .study-playlist-items {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .study-main {
            flex: 1;
            min-width: 0;
        }

        .study-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-muted);
            text-align: center;
        }

        .study-empty-icon {
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .study-empty-state h3 {
            margin: 0 0 8px 0;
            color: var(--text-secondary);
        }

        .study-empty-state p {
            margin: 0;
            font-size: 14px;
        }

        .study-content {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .study-content-header {
            padding: 16px 20px;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 12px;
            margin-bottom: 16px;
        }

        .study-content-header h2 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .study-content-body {
            flex: 1;
            display: flex;
            gap: 16px;
            min-height: 0;
        }

        .study-left-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;
            min-width: 0;
        }

        .study-video-player {
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            aspect-ratio: 16/9;
            max-height: 300px;
        }

        .study-video-player video {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .study-no-video {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            background: #1a1a1a;
        }

        .study-transcript-section {
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .study-transcript-section:not(.collapsed) {
            flex: 1;
            min-height: 0;
        }

        .study-transcript-section.collapsed {
            flex: none;
        }

        .study-transcript-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            cursor: pointer;
            user-select: none;
            border-bottom: 1px solid var(--border);
        }

        .study-transcript-section.collapsed .study-transcript-header {
            border-bottom: none;
        }

        .study-transcript-header:hover {
            background: var(--bg-secondary);
        }

        .study-transcript-header h3 {
            margin: 0;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .transcript-toggle-icon {
            display: flex;
            align-items: center;
            color: var(--text-muted);
            transition: transform 0.3s ease;
        }

        .study-transcript-section.collapsed .transcript-toggle-icon {
            transform: rotate(-90deg);
        }

        .study-transcript {
            padding: 16px;
            overflow-y: auto;
            font-size: 13px;
            line-height: 1.6;
            color: var(--text-secondary);
            transition: all 0.3s ease;
        }

        .study-transcript-section.collapsed .study-transcript {
            display: none;
        }

        .study-transcript p {
            margin: 0 0 12px 0;
        }

        .study-transcript .no-content {
            color: var(--text-muted);
            font-style: italic;
        }

        .study-right-panel {
            width: 380px;
            flex-shrink: 0;
        }

        .study-chat-container {
            height: 100%;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .study-chat-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }

        .study-chat-header h3 {
            margin: 0 0 4px 0;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .study-chat-header p {
            margin: 0;
            font-size: 12px;
            color: var(--text-muted);
        }

        .study-chat-messages {
            flex: 1;
            padding: 16px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-welcome {
            text-align: center;
            color: var(--text-muted);
            font-size: 13px;
            padding: 20px;
        }

        .chat-message {
            max-width: 85%;
            animation: fadeIn 0.2s ease;
        }

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

        .chat-message.user-message {
            align-self: flex-end;
        }

        .chat-message.assistant-message {
            align-self: flex-start;
        }

        .chat-message .message-content {
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 13px;
            line-height: 1.5;
        }

        .user-message .message-content {
            background: var(--primary);
            color: white;
            border-bottom-right-radius: 4px;
        }

        .assistant-message .message-content {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-bottom-left-radius: 4px;
        }

        .assistant-message.error .message-content {
            background: #fee;
            color: #c00;
        }

        .typing-indicator {
            color: var(--text-muted);
            font-style: italic;
        }

        .study-chat-input-container {
            display: flex;
            gap: 8px;
            padding: 12px 16px;
            border-top: 1px solid var(--border);
            flex-shrink: 0;
        }

        .study-chat-input-container input {
            flex: 1;
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 20px;
            font-size: 13px;
            background: var(--bg-secondary);
        }

        .study-chat-input-container input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .study-chat-send {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: var(--primary);
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .study-chat-send:hover {
            background: var(--primary-hover);
        }

        /* Responsive adjustments for Study tab */
        @media (max-width: 1200px) {
            .study-right-panel {
                width: 320px;
            }
        }

        @media (max-width: 900px) {
            .study-container {
                flex-direction: column;
                height: auto;
            }

            .study-sidebar {
                width: 100%;
                max-height: 200px;
            }

            .study-content-body {
                flex-direction: column;
            }

            .study-right-panel {
                width: 100%;
            }
        }

        /* ============ TEST/QUIZ TAB STYLES ============ */

        .test-container {
            display: flex;
            height: calc(100vh - 180px);
            gap: 20px;
            padding: 20px;
        }

        .test-sidebar {
            width: 280px;
            flex-shrink: 0;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .test-sidebar-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
        }

        .test-sidebar-header h3 {
            margin: 0 0 12px 0;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .test-sidebar-header input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            background: var(--bg-secondary);
        }

        .test-video-list {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
        }

        .test-video-item {
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 4px;
        }

        .test-video-item:hover {
            background: var(--bg-secondary);
        }

        .test-video-item.active {
            background: var(--primary);
            color: white;
        }

        .test-video-item-title {
            font-size: 13px;
            font-weight: 500;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .test-main {
            flex: 1;
            min-width: 0;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        .test-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-muted);
            text-align: center;
        }

        .test-empty-icon {
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .test-empty-state h3 {
            margin: 0 0 8px 0;
            color: var(--text-secondary);
        }

        .test-empty-state p {
            margin: 0;
            font-size: 14px;
        }

        .test-content {
            height: 100%;
            display: flex;
            flex-direction: column;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            max-height: calc(100vh - 220px);
            overflow-y: auto;
            min-height: 0;
        }

        .test-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
        }

        .test-header h2 {
            margin: 0 0 12px 0;
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .test-progress {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        #testProgressText {
            font-size: 13px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .test-progress-bar {
            flex: 1;
            height: 6px;
            background: var(--bg-tertiary);
            border-radius: 3px;
            overflow: hidden;
        }

        .test-progress-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        /* Quiz Loading */
        .quiz-loading {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            color: var(--text-secondary);
        }

        .quiz-loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Quiz Container */
        .quiz-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 24px;
            overflow-y: auto;
            max-height: calc(100vh - 320px);
            min-height: 0;
        }

        .quiz-question {
            position: sticky;
            top: 0;
            z-index: 3;
            flex: 0 0 auto;
            padding-bottom: 12px;
            margin-bottom: 16px;
            background: var(--bg-primary);
            border-bottom: 1px solid var(--border);
            box-shadow: 0 6px 12px rgba(15, 23, 42, 0.04);
        }

        .quiz-question h3 {
            font-size: 18px;
            font-weight: 500;
            color: var(--text-primary);
            margin: 0 0 24px 0;
            line-height: 1.5;
        }

        .quiz-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .quiz-option {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px;
            background: var(--bg-secondary);
            border: 2px solid var(--border);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .quiz-option:hover {
            border-color: var(--primary);
            background: var(--bg-tertiary);
        }

        .quiz-option.selected {
            border-color: var(--primary);
            background: rgba(59, 130, 246, 0.1);
        }

        .option-letter {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-primary);
            border: 2px solid var(--border);
            border-radius: 50%;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .quiz-option.selected .option-letter {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .option-text {
            font-size: 15px;
            color: var(--text-primary);
            line-height: 1.4;
        }

        /* Quiz Navigation */
        .quiz-navigation {
            position: static;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            padding: 20px 0 8px 0;
            border-top: 1px solid var(--border);
            margin-top: 24px;
            background: transparent;
            box-shadow: none;
            z-index: 1;
        }

        .quiz-nav-btn {
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
        }

        .quiz-nav-btn:hover:not(:disabled) {
            background: var(--bg-tertiary);
        }

        .quiz-nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .quiz-nav-btn.primary {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .quiz-nav-btn.primary:hover:not(:disabled) {
            background: var(--primary-hover);
        }

        .quiz-nav-btn.success {
            background: var(--success);
            border-color: var(--success);
            color: white;
        }

        .quiz-nav-btn.success:hover:not(:disabled) {
            background: #43a047;
        }

        /* Quiz Results */
        .quiz-results {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            min-height: 0;
        }

        .results-score {
            text-align: center;
            margin-bottom: 32px;
        }

        .score-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            background: var(--bg-secondary);
            border: 4px solid var(--border);
        }

        .score-circle.excellent {
            border-color: var(--success);
            background: rgba(76, 175, 80, 0.1);
        }

        .score-circle.good {
            border-color: #2196f3;
            background: rgba(33, 150, 243, 0.1);
        }

        .score-circle.okay {
            border-color: #ff9800;
            background: rgba(255, 152, 0, 0.1);
        }

        .score-circle.needs-work {
            border-color: var(--error);
            background: rgba(244, 67, 54, 0.1);
        }

        .score-number {
            font-size: 36px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .score-total {
            font-size: 18px;
            color: var(--text-muted);
        }

        .results-score h3 {
            margin: 0;
            font-size: 18px;
            color: var(--text-secondary);
        }

        .results-breakdown {
            margin-bottom: 24px;
        }

        .result-item {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 8px;
            background: var(--bg-secondary);
            border-left: 4px solid;
        }

        .result-item.correct {
            border-left-color: var(--success);
        }

        .result-item.incorrect {
            border-left-color: var(--error);
        }

        .result-question {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .result-number {
            font-weight: 600;
            color: var(--text-secondary);
        }

        .result-question > span:nth-child(2) {
            flex: 1;
            font-size: 14px;
            color: var(--text-primary);
        }

        .result-icon {
            font-weight: 600;
            flex-shrink: 0;
        }

        .result-item.correct .result-icon {
            color: var(--success);
        }

        .result-item.incorrect .result-icon {
            color: var(--error);
        }

        .result-answers {
            margin-top: 8px;
            padding-left: 24px;
            font-size: 13px;
        }

        .your-answer {
            color: var(--error);
        }

        .correct-answer {
            color: var(--success);
            margin-top: 4px;
        }

        .results-actions {
            display: flex;
            justify-content: center;
            gap: 12px;
            padding-top: 16px;
            padding-bottom: 20px;
            flex-shrink: 0;
        }

        /* Responsive adjustments for Test tab */
        @media (max-width: 900px) {
            .test-container {
                flex-direction: column;
                height: auto;
            }

            .test-sidebar {
                width: 100%;
                max-height: 200px;
            }

            .quiz-question h3 {
                font-size: 16px;
            }

            .quiz-option {
                padding: 12px;
            }
        }

/* ============ QUIZ MANAGER STYLES ============ */

.quiz-manager-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quiz-manager-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.quiz-status-badge.none {
    background: #e5e7eb;
    color: #6b7280;
}

.quiz-status-badge.draft {
    background: #fef3c7;
    color: #b45309;
}

.quiz-status-badge.published {
    background: #d1fae5;
    color: #047857;
}

.quiz-manager-info {
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.quiz-manager-info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.quiz-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.quiz-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.quiz-action-btn.generate {
    background: #3b82f6;
    color: white;
}

.quiz-action-btn.generate:hover {
    background: #2563eb;
}

.quiz-action-btn.add {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.quiz-action-btn.add:hover {
    background: #e5e7eb;
}

.quiz-action-btn.publish {
    background: #10b981;
    color: white;
}

.quiz-action-btn.publish:hover {
    background: #059669;
}

.quiz-action-btn.unpublish {
    background: #f59e0b;
    color: white;
}

.quiz-action-btn.unpublish:hover {
    background: #d97706;
}

.quiz-action-btn.delete {
    background: #fff;
    color: #dc2626;
    border-color: #fecaca;
}

.quiz-action-btn.delete:hover {
    background: #fef2f2;
}

.quiz-manager-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}

.quiz-manager-loading p {
    color: #6b7280;
    font-size: 14px;
}

.quiz-questions-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.quiz-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
}

.quiz-empty-state p {
    margin: 16px 0 4px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
}

.quiz-empty-state span {
    font-size: 13px;
}

.quiz-question-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.quiz-question-item:hover {
    border-color: #d1d5db;
}

.question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.question-content {
    flex: 1;
    min-width: 0;
}

.question-text {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.option-preview {
    display: inline-block;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.option-preview.correct {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: #047857;
}

.question-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-edit-question,
.btn-delete-question {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-edit-question {
    background: #e5e7eb;
    color: #4b5563;
}

.btn-edit-question:hover {
    background: #d1d5db;
    color: #1f2937;
}

.btn-delete-question {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete-question:hover {
    background: #fecaca;
}

/* Question Editor Modal */
.question-editor-content {
    max-width: 600px;
    width: 95%;
}

.question-editor-body {
    padding: 20px;
}

.question-field {
    margin-bottom: 20px;
}

.question-field label,
.options-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.question-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.question-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.option-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e5e7eb;
    color: #4b5563;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.option-input-row input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.option-input-row input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.option-input-row input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #10b981;
}

.correct-label {
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.question-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-save {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-save:hover {
    background: #2563eb;
}

/* Quiz button in video card */
.btn-quiz {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-quiz:hover {
    background: #e5e7eb;
}

.btn-quiz.draft {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}

.btn-quiz.published {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: #047857;
}
