:root {
    /* Original Colors */
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --tertiary-black: #2a2a2a;
    --primary-yellow: #ffd700;
    --secondary-yellow: #ffed4e;
    --accent-yellow: #ffb700;
    --hover-yellow: #e6c200;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #333333;
    --hover-bg: #2d2d2d;
    --success: #00ff88;
    --error: #ff4444;
    --warning: #ffaa00;
    --info: #00aaff;
    
    /* Semantic Aliases */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --card-bg: #1a1a1a;
    --accent-primary: #ffd700;
    --accent-secondary: #ffed4e;
    
    /* Eco-Tech Palette */
    --bio-green: #00ff88;
    --bio-green-dark: #00cc6a;
    --bio-cyan: #00d4ff;
    --bio-teal: #00ffcc;
    --tech-blue: #0066ff;
    --tech-purple: #8844ff;
    --organic-amber: #ffb347;
    --leaf-green: #32cd32;
    --crystal-white: #f0f8ff;
    --matrix-green: #39ff14;
    --hologram-blue: #00ffff;
    --neon-pink: #ff006e;
    --plasma-violet: #bb00ff;
    
    /* Advanced Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-eco-glow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 204, 0.2);
    --shadow-tech-glow: 0 0 25px rgba(0, 102, 255, 0.5), 0 0 50px rgba(136, 68, 255, 0.3);
    --shadow-hologram: 0 0 20px rgba(0, 255, 255, 0.6), 0 8px 32px rgba(0, 212, 255, 0.4);
    --shadow-plasma: 0 0 40px rgba(187, 0, 255, 0.5), 0 12px 48px rgba(255, 0, 110, 0.3);
    --shadow-organic: 0 4px 24px rgba(255, 179, 71, 0.3), 0 2px 12px rgba(50, 205, 50, 0.2);
    
    /* Gradient Definitions */
    --gradient-eco-tech: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.1) 0%, 
        rgba(0, 102, 255, 0.1) 50%, 
        rgba(136, 68, 255, 0.1) 100%);
    --gradient-organic: linear-gradient(120deg, 
        rgba(50, 205, 50, 0.15) 0%, 
        rgba(0, 255, 204, 0.15) 50%, 
        rgba(255, 179, 71, 0.15) 100%);
    --gradient-tech: linear-gradient(45deg, 
        rgba(0, 102, 255, 0.2) 0%, 
        rgba(0, 255, 255, 0.2) 50%, 
        rgba(136, 68, 255, 0.2) 100%);
    --gradient-aurora: linear-gradient(135deg,
        rgba(0, 255, 136, 0.2) 0%,
        rgba(0, 212, 255, 0.2) 25%,
        rgba(136, 68, 255, 0.2) 50%,
        rgba(255, 0, 110, 0.2) 75%,
        rgba(255, 179, 71, 0.2) 100%);
    
    /* Glass Morphism */
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    
    /* Transitions & Animations */
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-elastic: all 0.7s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Light Theme Override */
body.light-theme {
    --primary-black: #ffffff;
    --secondary-black: #f5f5f5;
    --tertiary-black: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;
    --border-color: #d0d0d0;
    --hover-bg: #e0e0e0;
    
    /* Light Theme Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-eco-glow: 0 0 20px rgba(0, 200, 100, 0.3), 0 0 40px rgba(0, 200, 150, 0.15);
    --shadow-tech-glow: 0 0 20px rgba(0, 102, 255, 0.3), 0 0 40px rgba(100, 68, 255, 0.2);
    --shadow-hologram: 0 0 15px rgba(0, 200, 200, 0.4), 0 8px 24px rgba(0, 180, 255, 0.25);
    --shadow-organic: 0 4px 20px rgba(255, 150, 50, 0.2), 0 2px 10px rgba(50, 200, 50, 0.15);
    
    /* Light Theme Gradients */
    --gradient-eco-tech: linear-gradient(135deg, 
        rgba(0, 200, 100, 0.15) 0%, 
        rgba(0, 102, 255, 0.15) 50%, 
        rgba(136, 68, 255, 0.15) 100%);
    --gradient-organic: linear-gradient(120deg, 
        rgba(50, 200, 50, 0.2) 0%, 
        rgba(0, 200, 180, 0.2) 50%, 
        rgba(255, 170, 70, 0.2) 100%);
    --gradient-tech: linear-gradient(45deg, 
        rgba(0, 102, 255, 0.25) 0%, 
        rgba(0, 200, 200, 0.25) 50%, 
        rgba(136, 68, 255, 0.25) 100%);
    
    /* Light Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

/* Light theme background effects */
body.light-theme::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 200, 100, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(136, 68, 255, 0.08) 0%, transparent 50%);
}

body.light-theme::after {
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 200, 100, 0.05) 2px, rgba(0, 200, 100, 0.05) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 102, 255, 0.05) 2px, rgba(0, 102, 255, 0.05) 4px);
    opacity: 0.4;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, var(--primary-black) 0%, #000000 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Background Effect - Eco-Tech Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(136, 68, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 136, 0.03) 2px, rgba(0, 255, 136, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 102, 255, 0.03) 2px, rgba(0, 102, 255, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    animation: gridFlow 20s linear infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes gridFlow {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 50px 50px, -50px -50px; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--bio-green), var(--bio-cyan));
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--bio-cyan), var(--tech-purple));
    box-shadow: 0 0 10px var(--bio-cyan);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: var(--shadow-md), var(--shadow-eco-glow);
    overflow: visible;
}

/* Animated border effect */
.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--bio-green) 20%,
        var(--bio-cyan) 40%,
        var(--tech-purple) 60%,
        var(--organic-amber) 80%,
        transparent 100%);
    animation: borderFlow 8s linear infinite;
}

@keyframes borderFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 2000px;
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.menu-btn:hover {
    background: var(--hover-bg);
    color: var(--primary-yellow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-eco-tech);
    border-radius: 12px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.logo:hover::before {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
}

.logo i {
    color: var(--primary-yellow);
    font-size: 32px;
    filter: drop-shadow(0 0 10px var(--bio-green));
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--bio-green)); }
    33% { filter: drop-shadow(0 0 15px var(--bio-cyan)); }
    66% { filter: drop-shadow(0 0 15px var(--tech-purple)); }
}

.logo-accent {
    color: var(--primary-yellow);
    background: linear-gradient(135deg, var(--bio-green), var(--bio-cyan), var(--tech-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo:hover {
    transform: scale(1.05) translateY(-2px);
}

.nav-center {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    width: 100%;
    padding: 12px 60px 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-smooth);
    position: relative;
}

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

.search-container input:focus {
    outline: none;
    border-color: var(--bio-green);
    box-shadow: var(--shadow-eco-glow);
    background: rgba(26, 26, 26, 0.9);
}

.search-container input:focus::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.search-btn {
    position: absolute;
    right: -50px;
    background: linear-gradient(135deg, var(--bio-green), var(--bio-cyan));
    color: var(--primary-black);
    border: none;
    padding: 6px 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    overflow: hidden;
    z-index: 2;
}

#searchFiltersToggle {
    position: absolute;
    right: -90px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    padding: 8px;
    margin-left: 0;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-btn:hover::before {
    width: 300px;
    height: 300px;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
}

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

.search-filters-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    align-items: end;
}

.search-filters-grid .form-group {
    margin-bottom: 0;
}

.search-filters-grid .form-select {
    padding: 8px 10px;
    font-size: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    width: 100%;
}

.search-filters-grid label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

/* Universal checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
    padding: 0 !important;
    border: 2px solid var(--glass-border);
    border-radius: 3px;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
}

input[type="checkbox"]:checked {
    background: var(--bio-green);
    border-color: var(--bio-green);
}

input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: var(--primary-black);
}

/* Checkbox label alignment */
label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-right: 12px;
}

/* Checkbox group spacing */
.checkbox-group {
    padding: 6px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 10px;
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--hover-bg);
    color: var(--primary-yellow);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition-bounce);
    overflow: hidden;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--bio-green) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    opacity: 0.3;
    pointer-events: none;
}

.theme-toggle-btn:hover::before {
    width: 200px;
    height: 200px;
}

.theme-toggle-btn:hover {
    border-color: var(--bio-green);
    box-shadow: var(--shadow-eco-glow);
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle-btn:active {
    transform: scale(0.95) rotate(-15deg);
}

/* Theme icon switching */
.theme-toggle-btn .sun-icon {
    display: none;
}

.theme-toggle-btn .moon-icon {
    display: inline-block;
    animation: iconGlow 3s ease-in-out infinite;
}

body.light-theme .theme-toggle-btn .sun-icon {
    display: inline-block;
    animation: iconGlow 3s ease-in-out infinite;
}

body.light-theme .theme-toggle-btn .moon-icon {
    display: none;
}

body.light-theme .theme-toggle-btn:hover {
    border-color: var(--organic-amber);
}

body.light-theme .search-container input:focus {
    background: rgba(255, 255, 255, 0.95);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--error);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 420px;
    max-height: 600px;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 215, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-black);
}

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

.btn-link {
    background: none;
    border: none;
    color: var(--primary-yellow);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--tech-purple);
    text-decoration: underline;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 480px;
}

.notifications-loading,
.notifications-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
    color: var(--text-secondary);
    gap: 12px;
}

.notifications-empty i {
    font-size: 48px;
    opacity: 0.3;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    gap: 12px;
}

.notification-item:hover {
    background: rgba(255, 215, 0, 0.05);
}

.notification-item.unread {
    background: rgba(255, 215, 0, 0.08);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

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

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-yellow);
    position: absolute;
    top: 20px;
    right: 16px;
    box-shadow: 0 0 8px var(--primary-yellow);
}

.notifications-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: var(--primary-black);
}

.notifications-footer a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.notifications-footer a:hover {
    color: var(--tech-purple);
}

.user-menu {
    position: relative;
}

.user-avatar {
    font-size: 28px;
    position: relative;
    overflow: hidden;
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-yellow);
    transition: var(--transition);
}

.user-avatar:hover .user-avatar-img {
    border-color: var(--tech-purple);
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--hover-bg);
    color: var(--primary-yellow);
}

.dropdown-item.hidden {
    display: none;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    padding: 20px 0;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-organic);
}

/* Organic flowing pattern overlay */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 100%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: organicFlow 10s ease-in-out infinite;
}

@keyframes organicFlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.sidebar.collapsed {
    transform: translateX(-250px);
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    padding: 0 20px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--bio-green), var(--bio-cyan));
    transform: scaleY(0);
    transition: var(--transition-bounce);
}

.sidebar-item:hover::before {
    transform: scaleY(1);
}

.sidebar-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-eco-tech);
    opacity: 0;
    transition: var(--transition);
}

.sidebar-item:hover::after {
    opacity: 1;
}

.sidebar-item:hover {
    color: var(--text-primary);
    padding-left: 25px;
}

.sidebar-item > * {
    position: relative;
    z-index: 1;
}

.sidebar-item.active {
    background: var(--tertiary-black);
    color: var(--primary-yellow);
    border-left: 3px solid var(--primary-yellow);
}

.sidebar-item i {
    font-size: 18px;
    width: 24px;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.categories-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 30px;
    padding-bottom: 0;
    width: calc(100% - 250px);
    min-height: calc(100vh - 60px);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.main-content.expanded {
    margin-left: 0;
    width: 100%;
}

.main-footer.expanded {
    margin-left: 0;
    width: 100%;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--tertiary-black) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Content Section */
.content-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--tertiary-black);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--primary-yellow);
}

.filter-btn.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
    font-weight: 700;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.video-card {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--tertiary-black);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Video Preview Player */
.video-preview-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    border-radius: inherit;
    animation: fadeInVideo 0.3s ease-in;
}

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

/* Smooth transition for thumbnail image */
.video-thumbnail-img {
    transition: opacity 0.3s ease;
}

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

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-info {
    padding: 15px;
}

.video-card-channel-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.video-card-channel-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tertiary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-yellow);
    font-size: 22px;
    transition: var(--transition);
}

.video-card-channel-avatar:hover {
    opacity: 0.8;
}

.video-card-channel-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.video-card-text {
    flex: 1;
    min-width: 0;
}

.video-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

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

.video-card-channel {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.video-card-channel:hover {
    color: var(--primary-yellow);
}

/* Video Player Page */
.video-player-container {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.player-wrapper {
    background: var(--primary-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--primary-black);
}

.video-player iframe,
.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video.js Player Styles */
.video-player .video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-player .vjs-big-play-button {
    font-size: 3em;
    line-height: 2.5em;
    height: 2.5em;
    width: 2.5em;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0.06666em solid #fff;
    background-color: rgba(43, 51, 63, 0.7);
}

.video-player .vjs-big-play-button:hover {
    background-color: rgba(43, 51, 63, 0.9);
}

.video-info {
    margin-top: 20px;
}

.video-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.video-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--tertiary-black);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.action-btn.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

.like-btn.active i {
    animation: likeAnimation 0.5s ease;
}

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

.channel-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.channel-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tertiary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-yellow);
}

.channel-details {
    flex: 1;
}

.channel-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.channel-subs {
    font-size: 13px;
    color: var(--text-secondary);
}

.subscribe-btn {
    padding: 10px 25px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-btn:hover {
    background: var(--secondary-yellow);
    transform: scale(1.05);
}

.subscribe-btn.following {
    background: var(--tertiary-black);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.video-description {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.video-chapters {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.video-chapters h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.video-chapters h4 i {
    margin-right: 6px;
    color: var(--bio-green);
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.chapter-item:hover {
    background: var(--glass-bg);
}

.chapter-time {
    font-family: monospace;
    font-size: 13px;
    color: var(--bio-green);
    min-width: 50px;
}

.chapter-title {
    font-size: 14px;
    color: var(--text-primary);
}

.description-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 0;
}

.description-toggle h4 {
    font-size: 16px;
}

.description-toggle i {
    transition: var(--transition);
}

.description-toggle.active i {
    transform: rotate(180deg);
}

.description-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.8;
}

.description-content.expanded {
    max-height: 1000px;
    padding-top: 15px;
}

.video-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.category-tag {
    padding: 6px 15px;
    background: var(--tertiary-black);
    color: var(--primary-yellow);
    border: 1px solid var(--primary-yellow);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-tag:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

/* Comments */
.comments-section {
    margin-top: 30px;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.comment-form {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tertiary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-yellow);
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--tertiary-black);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 50px;
    transition: var(--transition);
}

.comment-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.comments-sort {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.sort-btn {
    padding: 8px 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.sort-btn:hover {
    color: var(--text-primary);
}

.sort-btn.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    display: flex;
    gap: 15px;
}

.comment-content {
    flex: 1;
}

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

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-actions-bar {
    display: flex;
    gap: 15px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.comment-action:hover {
    color: var(--primary-yellow);
}

.comment-action.voted {
    color: var(--primary-yellow);
}

/* Related Videos */
.related-videos {
    position: sticky;
    top: 80px;
}

.related-videos h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-video {
    display: flex;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    padding: 5px;
}

.related-video:hover {
    background: var(--hover-bg);
}

.related-thumbnail {
    position: relative;
    width: 150px;
    height: 85px;
    background: var(--tertiary-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.article-image {
    width: 100%;
    height: 200px;
    background: var(--tertiary-black);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.user-card {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.user-card-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--tertiary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-yellow);
    border: 3px solid var(--primary-yellow);
}

.user-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.user-card-username {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.user-card-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.user-stat {
    text-align: center;
}

.user-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-yellow);
}

.user-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.user-card-follow {
    width: 100%;
    padding: 10px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.user-card-follow:hover {
    background: var(--secondary-yellow);
    transform: scale(1.05);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.activity-item:hover {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-md);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.activity-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--tertiary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-yellow);
}

.activity-user-info {
    flex: 1;
}

.activity-username {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-type {
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Profile */
.profile-container {
    max-width: 1400px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 40px;
}

.profile-cover {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--primary-yellow) 100%);
    border-radius: var(--border-radius);
    margin-bottom: -60px;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    padding: 0 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--secondary-black);
    border: 5px solid var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary-yellow);
}

.profile-details {
    flex: 1;
    padding-top: 70px;
}

.profile-details h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.profile-details p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    gap: 25px;
    font-size: 14px;
}

.profile-stats strong {
    color: var(--primary-yellow);
}

.profile-content {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    padding: 30px;
}

.profile-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    min-width: 400px;
    min-height: 300px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 700px;
    min-width: 600px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.modal-header h2 {
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-yellow);
    transform: scale(1.2);
}

.modal-body {
    padding: 25px;
    min-height: 100px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--tertiary-black);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.multi-select {
    height: 120px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 6px 0;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 0;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--tertiary-black);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

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

.tab-btn.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* File Upload Area */
.file-upload-area {
    border: 2px dashed var(--tertiary-black);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--primary-yellow);
    background: rgba(255, 193, 7, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-yellow);
    background: rgba(255, 193, 7, 0.1);
}

.file-upload-placeholder p {
    margin: 10px 0;
    color: var(--text-primary);
    font-weight: 600;
}

.file-upload-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-upload-selected span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Upload Progress */
.upload-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--tertiary-black);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-yellow));
    transition: width 0.3s ease;
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.modal-footer-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-footer-text a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
}

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

/* Buttons */
.btn-primary {
    padding: 12px 30px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--secondary-yellow);
    transform: scale(1.05);
}

.btn-secondary {
    padding: 12px 30px;
    background: var(--tertiary-black);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--primary-yellow);
}

.btn-block {
    width: 100%;
}

.btn-danger {
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-danger:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 15px;
    background: var(--tertiary-black);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.page-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-yellow);
}

.page-btn.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

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

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 50px auto;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px 25px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transform: translateX(calc(100% + 60px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
    pointer-events: none;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.toast.success {
    border-color: var(--success);
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.success .toast-icon::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.toast.error {
    border-color: var(--error);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.error .toast-icon::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.toast.warning {
    border-color: var(--warning);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.warning .toast-icon::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.toast.info {
    border-color: var(--info);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast.info .toast-icon::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-player-container {
        grid-template-columns: 1fr;
    }
    
    .related-videos {
        position: static;
    }
    
    .related-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        display: grid;
    }
    
    .related-video {
        flex-direction: column;
    }
    
    .related-thumbnail {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .main-footer {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-center {
        display: none;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 15px;
        margin-top: 60px;
        width: 100%;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
/* Playlists Styles */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.playlist-card {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.playlist-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background: var(--tertiary-black);
    overflow: hidden;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-video-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.playlist-info {
    padding: 15px;
}

.playlist-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.playlist-creator {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: var(--transition);
}

.playlist-creator:hover {
    text-decoration: underline;
}

.playlist-selection {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.playlist-item:hover {
    background: var(--tertiary-black);
    border-color: var(--primary-yellow);
}

.playlist-item.selected {
    background: var(--tertiary-black);
    border-color: var(--primary-yellow);
}

.playlist-item-icon {
    width: 60px;
    height: 45px;
    background: var(--tertiary-black);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
    color: var(--primary-yellow);
}

.playlist-item-details {
    flex: 1;
}

.playlist-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.playlist-item-checkbox {
    width: 20px;
    height: 20px;
    margin-left: auto;
}

/* Advanced Playlist Styles */
.playlist-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card i {
    font-size: 32px;
    color: var(--primary-yellow);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.playlist-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--secondary-black);
    border-radius: var(--border-radius);
}

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

.filter-select {
    background: var(--tertiary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    background: var(--tertiary-black);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

.playlists-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.playlist-list-item {
    display: flex;
    gap: 15px;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.playlist-list-item:hover {
    border-color: var(--primary-yellow);
    transform: translateX(5px);
}

.playlist-thumbnail-small {
    width: 160px;
    height: 90px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.playlist-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px 0 0 0;
    font-size: 11px;
}

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

.playlist-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-privacy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.playlist-privacy.private {
    color: var(--danger-color);
}

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

.playlist-overlay-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.playlist-card:hover .playlist-overlay-actions {
    opacity: 1;
}

.playlist-privacy-badge {
    margin-left: auto;
    font-size: 12px;
}

/* Playlist Detail View */
.playlist-detail-view {
    padding: 20px;
}

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

.btn-back {
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-back:hover {
    border-color: var(--primary-yellow);
}

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

.playlist-detail-content {
    max-width: 1200px;
}

.playlist-header-info {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.playlist-thumbnail-large {
    width: 360px;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-thumbnail-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-meta-large {
    flex: 1;
}

.playlist-meta-large h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.playlist-meta-large p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.playlist-stats-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.playlist-stats-inline span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-play-all {
    padding: 12px 30px;
    font-size: 16px;
}

.playlist-videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.playlist-videos-header h3 {
    font-size: 24px;
}

.playlist-videos-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-video-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px;
    transition: var(--transition);
}

.playlist-video-item:hover {
    border-color: var(--primary-yellow);
}

.playlist-video-item.dragging {
    opacity: 0.5;
}

.video-position {
    width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.video-drag-handle {
    cursor: grab;
    color: var(--text-secondary);
    padding: 5px;
}

.video-drag-handle:active {
    cursor: grabbing;
}

.video-thumbnail-compact {
    width: 120px;
    height: 68px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

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

.video-duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.9);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.video-info-compact {
    flex: 1;
    cursor: pointer;
}

.video-title-compact {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta-compact {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.video-actions-compact {
    display: flex;
    gap: 5px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 30px;
}

/* Go Live button in empty state (live page) */
.btn-go-live-empty {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(255, 68, 68, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.btn-go-live-empty i {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.btn-go-live-empty:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 68, 68, 0.5);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

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

/* Series Styles */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.series-card {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.series-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--tertiary-black);
    overflow: hidden;
}

.series-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.series-info {
    padding: 15px;
}

.series-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.series-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.series-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.series-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.series-header {
    background: var(--secondary-black);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.series-detail-container .series-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.series-detail-container .series-description {
    font-size: 16px;
    max-width: none;
    -webkit-line-clamp: unset;
}

.episodes-list {
    display: grid;
    gap: 15px;
}

.episode-card {
    display: flex;
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.episode-card:hover {
    background: var(--tertiary-black);
    border-color: var(--primary-yellow);
}

.episode-thumbnail {
    position: relative;
    width: 200px;
    height: 120px;
    background: var(--tertiary-black);
    flex-shrink: 0;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--primary-yellow);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.episode-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.episode-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.episode-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Share Modal Styles */
.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--tertiary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 18px;
}

.copy-input-group {
    display: flex;
    gap: 10px;
}

.copy-input-group input,
.copy-input-group textarea {
    flex: 1;
}

.copy-input-group button {
    flex-shrink: 0;
}

/* Video Card Labels */
.video-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.video-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-featured {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.label-new {
    background: var(--success);
    color: var(--primary-black);
}

.label-popular {
    background: var(--error);
    color: var(--text-primary);
}

.label-pending {
    background: var(--warning);
    color: var(--primary-black);
}

/* Watch Later Button on Video Cards */
.video-watch-later {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.watch-later-btn {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
}

.video-card:hover .watch-later-btn {
    opacity: 1;
}

.watch-later-btn:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    transform: scale(1.1);
}

.watch-later-btn.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    opacity: 1;
}

/* Featured Carousel */
.featured-section {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
}

.featured-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.carousel-btn {
    background: var(--tertiary-black);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

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

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    color: var(--primary-yellow);
}

.verified-badge i {
    font-size: 14px;
}

/* Video Player Playlist Sidebar */
.playlist-sidebar {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
}

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

.playlist-sidebar-title {
    font-size: 18px;
    font-weight: 600;
}

.playlist-sidebar-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.playlist-videos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.playlist-video-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--tertiary-black);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.playlist-video-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-yellow);
}

.playlist-video-item.active {
    border-color: var(--primary-yellow);
    background: var(--hover-bg);
}

.playlist-video-thumb {
    width: 80px;
    height: 50px;
    border-radius: 4px;
    background: var(--primary-black);
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-video-info {
    flex: 1;
    min-width: 0;
}

.playlist-video-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-video-author {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .series-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        flex-direction: column;
    }
    
    .episode-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FUTURISTIC ECO-TECH ENHANCEMENTS
   ============================================ */

/* Organic Particle Effect */
@keyframes floatOrganic {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: translate(10px, -20px) rotate(90deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translate(-5px, -35px) rotate(180deg); 
        opacity: 0.9;
    }
    75% { 
        transform: translate(-15px, -20px) rotate(270deg); 
        opacity: 0.6;
    }
}

/* Tech Data Stream */
@keyframes dataStream {
    0% { 
        transform: translateY(100vh) scaleY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(-100vh) scaleY(1);
        opacity: 0;
    }
}

/* Holographic Shimmer */
@keyframes hologramShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Plasma Wave */
@keyframes plasmaWave {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 70% 30% 40% 60% / 40% 50% 60% 50%;
        transform: rotate(270deg) scale(1.05);
    }
}

/* Aurora Borealis Effect */
@keyframes aurora {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-10%) translateY(0%) rotate(-2deg);
    }
    33% {
        opacity: 0.8;
        transform: translateX(10%) translateY(-5%) rotate(2deg);
    }
    66% {
        opacity: 0.6;
        transform: translateX(5%) translateY(5%) rotate(-1deg);
    }
}

/* Bioluminescent Glow */
@keyframes bioGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px var(--bio-green));
    }
    33% {
        filter: brightness(1.3) drop-shadow(0 0 20px var(--bio-cyan));
    }
    66% {
        filter: brightness(1.1) drop-shadow(0 0 15px var(--leaf-green));
    }
}

/* Matrix Rain */
@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Energy Pulse */
@keyframes energyPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px var(--bio-green),
            0 0 20px var(--bio-green),
            0 0 30px var(--bio-cyan);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 20px var(--bio-cyan),
            0 0 40px var(--tech-blue),
            0 0 60px var(--tech-purple);
        transform: scale(1.02);
    }
}

/* Crystalline Refraction */
@keyframes crystalRefract {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1);
    }
    25% {
        filter: hue-rotate(30deg) brightness(1.2);
    }
    50% {
        filter: hue-rotate(60deg) brightness(1.1);
    }
    75% {
        filter: hue-rotate(30deg) brightness(1.15);
    }
}

/* Organic Growth */
@keyframes organicGrow {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(3deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Tech Scan Line */
@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Quantum Flicker */
@keyframes quantumFlicker {
    0%, 100% {
        opacity: 1;
        filter: blur(0);
    }
    50% {
        opacity: 0.8;
        filter: blur(0.5px);
    }
}

/* Enhanced Button/Card Hover Effects */
.icon-btn,
.menu-btn {
    position: relative;
    overflow: hidden;
}

.icon-btn::before,
.menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--bio-green) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    opacity: 0.3;
    pointer-events: none;
}

.icon-btn:hover::before,
.menu-btn:hover::before {
    width: 200px;
    height: 200px;
}

/* Eco-Tech Cards Enhancement */
.video-card,
.playlist-card,
.series-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.video-card::before,
.playlist-card::before,
.series-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 136, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
}

.video-card:hover::before,
.playlist-card:hover::before,
.series-card:hover::before {
    opacity: 1;
    animation: hologramShimmer 1.5s ease-in-out;
}

.video-card:hover,
.playlist-card:hover,
.series-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        var(--shadow-lg),
        var(--shadow-eco-glow),
        0 20px 60px rgba(0, 255, 136, 0.2);
}

/* Dropdown Menu Enhancement */
.dropdown-menu {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-hologram);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    position: relative;
    overflow: hidden;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--bio-green), var(--bio-cyan));
    transition: var(--transition-bounce);
    transform: translateY(-50%);
}

.dropdown-item:hover::after {
    height: 80%;
}

/* Bio-Luminescent Accents */
.verified-badge,
.notification-badge {
    animation: bioGlow 3s ease-in-out infinite;
}

/* Featured Section Enhancement */
.featured-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: var(--gradient-aurora);
    animation: aurora 20s ease-in-out infinite;
    opacity: 0.1;
    pointer-events: none;
}

/* Carousel Button Enhancement */
.carousel-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
    transition: left 0.5s;
}

.carousel-btn:hover::before {
    left: 100%;
}

.carousel-btn:hover {
    background: var(--bio-green);
    color: var(--primary-black);
    border-color: var(--bio-cyan);
    box-shadow: var(--shadow-eco-glow);
}

/* Search Results & Tags Enhancement */
.tag,
.video-tag {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.tag::before,
.video-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 255, 136, 0.2),
        rgba(0, 212, 255, 0.2),
        transparent);
    transition: left 0.6s;
}

.tag:hover::before,
.video-tag:hover::before {
    left: 100%;
}

.tag:hover,
.video-tag:hover {
    border-color: var(--bio-green);
    box-shadow: var(--shadow-eco-glow);
    transform: translateY(-2px);
}

/* Loading & Skeleton Enhancement */
@keyframes skeletonWave {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton,
.loading-skeleton {
    background: linear-gradient(
        90deg,
        var(--tertiary-black) 25%,
        rgba(0, 255, 136, 0.1) 50%,
        var(--tertiary-black) 75%
    );
    background-size: 200% 100%;
    animation: skeletonWave 2s ease-in-out infinite;
}

/* Form Input Enhancement */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--bio-green);
    box-shadow: var(--shadow-eco-glow);
    background: rgba(26, 26, 26, 0.95);
}

/* Button Variants */
.btn-primary,
button[type="submit"],
.submit-btn {
    background: linear-gradient(135deg, var(--bio-green), var(--bio-cyan));
    border: none;
    color: var(--primary-black);
    font-weight: 600;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.btn-primary::after,
button[type="submit"]::after,
.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after,
button[type="submit"]:hover::after,
.submit-btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover,
button[type="submit"]:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5);
}

.btn-primary:active,
button[type="submit"]:active,
.submit-btn:active {
    transform: translateY(0);
}

/* Modal Enhancement */
.modal,
.popup,
.overlay-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-hologram);
}

/* Progress Bar Enhancement */
.progress-bar,
.video-progress {
    background: var(--tertiary-black);
    position: relative;
    overflow: hidden;
}

.progress-bar::before,
.video-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.progress-fill,
.progress-bar-fill {
    background: linear-gradient(90deg, var(--bio-green), var(--bio-cyan), var(--tech-purple));
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
    box-shadow: 
        0 0 10px var(--bio-green),
        0 0 20px var(--bio-cyan),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Tooltip Enhancement */
.tooltip,
[data-tooltip]::after {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-eco-glow);
    animation: tooltipFade 0.3s ease-in-out;
}

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

/* Accessibility Focus States */
*:focus-visible {
    outline: 2px solid var(--bio-green);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2);
}

/* Performance Optimization for Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    body::before,
    body::after,
    .navbar::before,
    .sidebar::before {
        display: none;
    }
}

/* ============================================
   LIGHT THEME ENHANCEMENTS
   ============================================ */

/* Light theme navbar enhancement */
body.light-theme .navbar {
    background: var(--glass-bg);
    box-shadow: var(--shadow-md), 0 2px 20px rgba(0, 200, 100, 0.15);
}

body.light-theme .navbar::before {
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--leaf-green) 20%,
        var(--bio-cyan) 40%,
        var(--tech-purple) 60%,
        var(--organic-amber) 80%,
        transparent 100%);
}

/* Light theme sidebar */
body.light-theme .sidebar {
    background: var(--glass-bg);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
}

/* Light theme cards */
body.light-theme .video-card,
body.light-theme .playlist-card,
body.light-theme .series-card {
    background: var(--glass-bg);
    box-shadow: var(--shadow-sm);
}

body.light-theme .video-card:hover,
body.light-theme .playlist-card:hover,
body.light-theme .series-card:hover {
    box-shadow: 
        var(--shadow-lg),
        0 10px 40px rgba(0, 200, 100, 0.15);
}

/* Light theme hero section */
body.light-theme .hero-section {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.9) 0%, rgba(230, 240, 250, 0.9) 100%);
}

body.light-theme .hero-section::before {
    background: radial-gradient(circle, rgba(0, 200, 100, 0.15) 0%, transparent 70%);
}

/* Light theme buttons */
body.light-theme .search-btn {
    background: linear-gradient(135deg, var(--leaf-green), var(--bio-cyan));
    box-shadow: 0 4px 15px rgba(50, 200, 50, 0.3);
}

body.light-theme .search-btn:hover {
    box-shadow: 0 6px 25px rgba(50, 200, 50, 0.5);
}

body.light-theme .btn-primary,
body.light-theme button[type="submit"],
body.light-theme .submit-btn {
    background: linear-gradient(135deg, var(--leaf-green), var(--bio-cyan));
    box-shadow: 0 4px 20px rgba(50, 200, 50, 0.3);
}

body.light-theme .btn-primary:hover,
body.light-theme button[type="submit"]:hover,
body.light-theme .submit-btn:hover {
    box-shadow: 0 6px 30px rgba(50, 200, 50, 0.5);
}

/* Light theme text adjustments */
body.light-theme .logo-accent {
    background: linear-gradient(135deg, var(--leaf-green), var(--bio-cyan), var(--tech-purple));
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-theme .hero-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--leaf-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light theme scrollbar */
body.light-theme ::-webkit-scrollbar-track {
    background: var(--secondary-black);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--leaf-green), var(--bio-cyan));
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--bio-cyan), var(--tech-purple));
    box-shadow: 0 0 10px var(--bio-cyan);
}

/* Light theme dropdown */
body.light-theme .dropdown-menu {
    background: var(--glass-bg);
    box-shadow: var(--shadow-lg);
}

/* Light theme featured section */
body.light-theme .featured-section {
    background: var(--glass-bg);
    box-shadow: var(--shadow-sm);
}

/* Light theme tags */
body.light-theme .tag,
body.light-theme .video-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

body.light-theme .tag:hover,
body.light-theme .video-tag:hover {
    border-color: var(--leaf-green);
    box-shadow: 0 0 20px rgba(50, 200, 50, 0.3);
}

/* Light theme modal */
body.light-theme .modal,
body.light-theme .popup,
body.light-theme .overlay-container {
    background: var(--glass-bg);
    box-shadow: var(--shadow-lg);
}

/* Light theme carousel buttons */
body.light-theme .carousel-btn {
    background: var(--glass-bg);
}

body.light-theme .carousel-btn:hover {
    background: var(--leaf-green);
    border-color: var(--bio-cyan);
    box-shadow: 0 0 20px rgba(50, 200, 50, 0.4);
}

/* Smooth theme transition */
body {
    transition: background 0.5s ease, color 0.3s ease;
}

/* Scoped theme-transition: only apply to key container elements, not every element */
.main-content,
.sidebar,
.main-footer,
.navbar,
.modal-content,
.settings-card,
.video-card,
.content-section {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ==========================================
   Footer Styles
   ========================================== */

.main-footer {
    /* position: fixed; */
    /* bottom: 0; */
    /* left: 250px; */
    /* right: 0; */
    margin-top: 40px;
    background: var(--secondary-black);
    border-top: 2px solid var(--border-color);
    padding: 20px 30px;
    overflow: visible;
    z-index: 100;
    margin-left: 250px;
    width: calc(100% - 250px);
    transition: margin-left var(--transition-smooth), width var(--transition-smooth);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-eco-tech);
    opacity: 0.1;
    pointer-events: none;
}

.footer-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .main-footer {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-newsletter {
        grid-column: span 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 15px 10px;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    .footer-social {
        justify-content: center;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* Footer Brand Column */
.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-logo i {
    color: var(--primary-yellow);
    font-size: 1.8rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tertiary-black);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--bio-green), var(--bio-cyan));
    border-color: var(--bio-green);
    color: var(--primary-black);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--bio-green), var(--bio-cyan));
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    display: flex;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bio-green);
    transform: translateX(5px);
}

.footer-links a:hover i {
    opacity: 1;
    color: var(--bio-cyan);
}

/* Newsletter Section */
.footer-newsletter {
    grid-column: span 1;
}

.newsletter-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.newsletter-form {
    margin-bottom: 15px;
}

.newsletter-input-group {
    display: flex;
    gap: 8px;
    background: var(--tertiary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 4px;
    transition: var(--transition);
}

.newsletter-input-group:focus-within {
    border-color: var(--bio-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--bio-green), var(--bio-cyan));
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
    padding: 10px 18px;
    color: var(--primary-black);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, var(--bio-green-dark), var(--tech-blue));
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.newsletter-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.feature-item i {
    color: var(--bio-green);
    font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    position: relative;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--tertiary-black);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-badges .badge i {
    font-size: 0.85rem;
}

.footer-badges .badge:hover {
    border-color: var(--bio-green);
    background: rgba(0, 255, 136, 0.1);
    color: var(--bio-green);
    transform: translateY(-2px);
}

/* Light Theme Footer Overrides */
body.light-theme .main-footer {
    background: var(--secondary-black);
    border-top-color: var(--border-color);
}

body.light-theme .social-link {
    background: var(--tertiary-black);
    border-color: var(--border-color);
}

body.light-theme .social-link:hover {
    background: linear-gradient(135deg, var(--leaf-green), var(--bio-cyan));
    border-color: var(--leaf-green);
    box-shadow: 0 8px 20px rgba(50, 200, 50, 0.4);
}

body.light-theme .newsletter-input-group {
    background: white;
    border-color: var(--border-color);
}

body.light-theme .newsletter-input-group:focus-within {
    border-color: var(--leaf-green);
    box-shadow: 0 0 0 3px rgba(50, 200, 50, 0.15);
}

body.light-theme .newsletter-btn {
    background: linear-gradient(135deg, var(--leaf-green), var(--bio-cyan));
}

body.light-theme .newsletter-btn:hover {
    background: linear-gradient(135deg, var(--leaf-green), var(--tech-blue));
    box-shadow: 0 4px 15px rgba(50, 200, 50, 0.4);
}

body.light-theme .footer-badges .badge {
    background: white;
    border-color: var(--border-color);
}

body.light-theme .footer-badges .badge:hover {
    border-color: var(--leaf-green);
    background: rgba(50, 200, 50, 0.1);
    color: var(--leaf-green);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-brand,
    .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .main-footer {
        margin-top: 50px;
        padding: 40px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-brand,
    .footer-newsletter {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ===================================
   LIVE STREAMING STYLES
   =================================== */

/* Go Live Button */
.btn-go-live {
    background: linear-gradient(135deg, var(--error), #cc0000);
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.btn-go-live:hover {
    background: linear-gradient(135deg, #ff0000, #dd0000);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

.btn-go-live .live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Live Badge in Sidebar */
.live-badge {
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    animation: livePulse 2s ease-in-out infinite;
}

.live-icon {
    color: var(--error);
}

.live-icon-pulse {
    color: var(--error);
    animation: iconPulse 2s ease-in-out infinite;
}

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

/* Live Video Card Badge */
.live-badge-corner {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--error);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.live-badge-corner::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

.live-viewers {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Live Setup Wizard */
.live-setup-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.live-setup-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.live-setup-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.live-setup-steps .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tertiary-black);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.live-setup-steps .step.active .step-circle,
.live-setup-steps .step.completed .step-circle {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--primary-black);
}

.live-setup-steps .step.completed .step-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.live-setup-steps .step-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.live-setup-steps .step.active .step-label {
    color: var(--primary-yellow);
    font-weight: 600;
}

.live-step {
    display: none;
}

#liveStep1 {
    display: block;
}

/* Stream Method Cards */
.stream-method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stream-method-card {
    background: var(--secondary-black);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stream-method-card:hover {
    border-color: var(--primary-yellow);
    background: var(--tertiary-black);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stream-method-card i {
    font-size: 48px;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.stream-method-card h3 {
    margin: 15px 0 10px;
    color: var(--text-primary);
}

.stream-method-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.stream-method-card .badge {
    display: inline-block;
    background: var(--bio-green);
    color: var(--primary-black);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 10px;
}

.stream-method-card .recommended {
    background: var(--primary-yellow);
}

/* Browser Stream Interface */
.stream-preview {
    position: relative;
    background: var(--primary-black);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/9;
}

.stream-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.stream-controls .icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tertiary-black);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stream-controls .icon-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-yellow);
    transform: scale(1.1);
}

.stream-controls .icon-btn.disabled {
    opacity: 0.5;
    border-color: var(--error);
}

.stream-controls .btn-start {
    background: var(--error);
    border-color: var(--error);
    color: white;
    width: auto;
    padding: 0 30px;
    border-radius: 25px;
    font-weight: 600;
}

.stream-controls .btn-start:hover {
    background: #cc0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.stream-controls .btn-stop {
    background: var(--tertiary-black);
    border-color: var(--border-color);
    color: white;
    width: auto;
    padding: 0 30px;
    border-radius: 25px;
    font-weight: 600;
}

.stream-controls .btn-stop:hover {
    background: var(--error);
    border-color: var(--error);
}

/* Stream Info Panel */
.stream-info-panel {
    background: var(--secondary-black);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.stream-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.stream-info-row:last-child {
    border-bottom: none;
}

.stream-info-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stream-info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.status-ready {
    background: var(--bio-green);
    color: var(--primary-black);
}

.status-live {
    background: var(--error);
    color: white;
    animation: livePulse 1.5s ease-in-out infinite;
}

.status-ended {
    background: var(--text-muted);
    color: white;
}

/* Stream Health */
.stream-health {
    background: var(--secondary-black);
    border-radius: 12px;
    padding: 20px;
}

.stream-health h4 {
    margin: 0 0 15px;
    color: var(--text-primary);
    font-size: 16px;
}

.health-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.health-metric-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.health-metric-value {
    color: var(--text-primary);
    font-weight: 600;
}

.health-metric-value.good {
    color: var(--bio-green);
}

.health-metric-value.warning {
    color: var(--warning);
}

.health-metric-value.error {
    color: var(--error);
}

/* RTMP Credentials */
.rtmp-credentials {
    background: var(--secondary-black);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.credential-field:last-child {
    margin-bottom: 0;
}

.credential-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.credential-input-group {
    display: flex;
    gap: 10px;
}

.credential-input-group input {
    flex: 1;
    background: var(--tertiary-black);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.credential-input-group .btn {
    padding: 12px 20px;
    white-space: nowrap;
}

/* Instructions */
.instructions-section {
    margin-bottom: 20px;
}

.instruction-header {
    background: var(--secondary-black);
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.instruction-header:hover {
    background: var(--tertiary-black);
}

.instruction-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.instruction-header-title i {
    font-size: 24px;
    color: var(--primary-yellow);
}

.instruction-header-title h4 {
    margin: 0;
    color: var(--text-primary);
}

.instruction-header .fa-chevron-down {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.instruction-content {
    background: var(--tertiary-black);
    border-radius: 0 0 8px 8px;
    padding: 20px;
    margin-top: -8px;
    display: none;
}

.instruction-content ol {
    margin: 0;
    padding-left: 20px;
}

.instruction-content li {
    margin: 12px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.instruction-content code {
    background: var(--primary-black);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary-yellow);
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.instruction-content strong {
    color: var(--text-primary);
}

/* Recommended Settings Box */
.settings-box {
    background: var(--primary-black);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.settings-box h5 {
    margin: 0 0 10px;
    color: var(--primary-yellow);
    font-size: 14px;
}

.settings-box ul {
    margin: 0;
    padding-left: 20px;
}

.settings-box li {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Stream Monitor */
.stream-monitor {
    background: var(--secondary-black);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.stream-monitor h4 {
    margin: 0 0 15px;
    color: var(--text-primary);
}

.stream-status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--tertiary-black);
    border-radius: 8px;
    margin-bottom: 15px;
}

.stream-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.stream-status-dot.active {
    background: var(--error);
    animation: livePulse 1.5s ease-in-out infinite;
}

.stream-status-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* Empty State for Live Page */
/* Stream Tips */
.stream-tips {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.stream-tips h5 {
    margin: 0 0 10px;
    color: var(--bio-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-tips ul {
    margin: 0;
    padding-left: 20px;
}

.stream-tips li {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Responsive Live Streaming */
@media (max-width: 768px) {
    .stream-method-cards {
        grid-template-columns: 1fr;
    }
    
    .live-setup-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .live-setup-steps::before {
        display: none;
    }
    
    .rtmp-credentials,
    .stream-info-panel {
        padding: 15px;
    }
    
    .credential-input-group {
        flex-direction: column;
    }
    
    .stream-controls {
        flex-wrap: wrap;
    }
}

/* ==========================================
   New Feature Styles: History, Subscriptions,
   My Videos, Channels, Settings, About,
   Enhanced Comments, Download Button
   ========================================== */

/* History Page */
.history-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-search-input {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 200px;
    transition: border-color 0.2s;
}

.history-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.channel-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.channel-card-banner {
    height: 80px;
    overflow: hidden;
}

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

.channel-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--bg-secondary);
    margin: -36px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.channel-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 16px 4px;
}

.channel-card-handle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 16px 12px;
}

.channel-card-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.channel-card-stats i {
    margin-right: 4px;
}

.channel-card-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 16px 16px;
}

/* Settings Page */
.settings-container {
    max-width: 720px;
    margin: 0 auto;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h3 i {
    color: var(--accent-primary);
}

.settings-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

/* Profile Banner Upload */
.settings-banner-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.settings-banner {
    width: 100%;
    height: 120px;
    background: var(--tertiary-black);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.settings-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.settings-banner-placeholder i {
    font-size: 28px;
}

.settings-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.settings-banner-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.settings-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.settings-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.settings-avatar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.settings-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.settings-toggle label {
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
}

.toggle-switch {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s;
}

.toggle-switch:checked {
    background: var(--accent-primary);
}

.toggle-switch:checked::after {
    transform: translateX(20px);
}

/* Notification Settings */
.notification-settings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.notification-setting-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.notification-setting-row:last-child {
    border-bottom: none;
}

.notification-setting-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notification-setting-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.notification-setting-toggle input[type="checkbox"] {
    cursor: pointer;
}

/* Quota Display */
.quota-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quota-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quota-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.quota-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* About / Instance Page */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 32px;
}

.about-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.about-short-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.about-stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.about-stat-card i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.about-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.about-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section h3 i {
    color: var(--accent-primary);
}

.about-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.about-info-item {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-info-item strong {
    color: var(--text-primary);
    margin-right: 6px;
}

/* Enhanced Comment Actions */
.comment-actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.comment-vote-btn.active {
    color: var(--accent-primary);
}

.comment-vote-btn.active .fa-thumbs-up {
    color: var(--success, #00ff88);
}

.comment-vote-btn.active .fa-thumbs-down {
    color: var(--error, #ff4444);
}

.comment-vote-count {
    font-size: 0.75rem;
    min-width: 8px;
    text-align: center;
}

.comment-delete-btn:hover {
    color: var(--accent-danger, #dc3545);
}

/* Reply Input */
.reply-input-group {
    margin-top: 8px;
}

.reply-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
}

.reply-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.reply-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

/* Subscriptions List */
.subscriptions-list {
    margin-top: 20px;
}

.subscriptions-actions {
    display: flex;
    gap: 8px;
}

/* Button Variants */
.btn-sm {
    font-size: 0.8rem;
    padding: 6px 12px;
}

.btn-danger {
    background: var(--accent-danger, #dc3545);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn-danger:hover {
    opacity: 0.85;
}

.btn-history-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-secondary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
    opacity: 0;
}

.video-card:hover .btn-history-delete {
    opacity: 1;
}

.btn-history-delete:hover {
    background: var(--accent-danger, #dc3545);
    color: white;
}

/* Video action buttons — allow wrapping on narrow viewports */

/* Edit Video Modal Form */
.edit-form-row {
    margin-bottom: 16px;
}

.edit-form-row label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.edit-form-row input,
.edit-form-row select,
.edit-form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.edit-form-row textarea {
    resize: vertical;
    font-family: inherit;
}

.edit-form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.edit-form-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .history-actions {
        flex-direction: column;
        width: 100%;
    }

    .history-search-input {
        min-width: unset;
        width: 100%;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }

    .settings-avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .notification-setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .channel-card-actions {
        flex-direction: column;
    }
}

/* ===== Utility Classes ===== */

.avatar-round {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hidden-input {
    display: none;
}

.text-secondary {
    color: var(--text-secondary);
}

/* ===== Upload Form Enhancements ===== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-yellow);
    margin-bottom: 10px;
}

.file-icon {
    font-size: 24px;
    color: var(--primary-yellow);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Back to Top Button ===== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--hover-yellow);
    transform: translateY(-2px);
    opacity: 1;
    visibility: visible;
}

/* ===== Settings Tabs ===== */

.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
    overflow-x: auto;
}

.settings-tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-tab-btn:hover {
    color: var(--text-primary);
}

.settings-tab-btn.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

/* ===== Video Card Actions ===== */

.video-card-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.video-card-actions .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== Form File Input ===== */

.form-input-file {
    padding: 10px;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    width: 100%;
    cursor: pointer;
}

.form-input-file::file-selector-button {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

/* ===== Profile About Section ===== */

.profile-about-section {
    background: var(--secondary-black);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.profile-about-section h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.profile-about-meta {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Search Suggestions ===== */

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    transition: background 0.15s;
}

.search-suggestion-item:hover,
.search-suggestion-item.highlighted {
    background: var(--tertiary-black);
}

.search-suggestion-item i {
    color: var(--text-secondary);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* ===== More Options Menu ===== */

.more-options-wrapper {
    position: relative;
}

.more-options-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
}

.video-card:hover .more-options-btn {
    opacity: 1;
}

.more-options-menu {
    position: absolute;
    top: 40px;
    right: 8px;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 180px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: none;
}

.more-options-menu.active {
    display: block;
}

.more-options-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    transition: background 0.15s;
    font-size: 14px;
}

.more-options-menu-item:hover {
    background: var(--tertiary-black);
}

.more-options-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--text-secondary);
}

/* ===== Video Watch Progress Bar ===== */

.video-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-yellow);
    z-index: 3;
    transition: width 0.3s;
}

/* ===== Quality Selector ===== */

.vjs-quality-selector .vjs-menu-content {
    max-height: 200px;
}

.vjs-quality-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 6px;
    min-width: 120px;
    padding: 4px 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.vjs-quality-item {
    padding: 6px 14px;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.15s;
}

.vjs-quality-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.vjs-quality-item.active {
    background: rgba(255, 204, 0, 0.2);
    color: var(--primary-yellow);
    font-weight: 600;
}

/* ===== PiP Button ===== */

.vjs-pip-button .vjs-icon-placeholder::before {
    content: '\f065';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* ===== Subscription New Indicator ===== */

.subscription-new-badge {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--primary-black);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* ===== Load More Button ===== */

.load-more-container {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.load-more-btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    transition: var(--transition);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}