/*
 * VipperVID — Premium Dark Theme
 * Glassmorphism, gradients, micro-animations
 */

/* ================================================
   CSS VARIABLES & RESET
   ================================================ */
:root {
    --bg-deep: #06060b;
    --bg-primary: #0a0a12;
    --bg-secondary: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.045);
    --bg-glass: rgba(15, 15, 30, 0.65);
    --bg-input: rgba(255, 255, 255, 0.04);
    --bg-input-focus: rgba(255, 255, 255, 0.07);

    --primary: #7c5cfc;
    --primary-light: #a78bfa;
    --primary-dark: #5b3ed9;
    --primary-glow: rgba(124, 92, 252, 0.25);

    --accent: #00d4ff;
    --accent-light: #67e8f9;
    --accent-dark: #0891b2;
    --accent-glow: rgba(0, 212, 255, 0.2);

    --gradient-primary: linear-gradient(135deg, #7c5cfc 0%, #00d4ff 100%);
    --gradient-hero: linear-gradient(135deg, #7c5cfc 0%, #c084fc 50%, #00d4ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(124,92,252,0.08) 0%, rgba(0,212,255,0.04) 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444, #f97316);

    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #55556a;
    --text-accent: #a78bfa;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(124, 92, 252, 0.3);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-accent-glow: 0 0 30px var(--accent-glow);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    --nav-height: 72px;
    --container-width: 1280px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* ================================================
   ANIMATED BACKGROUND
   ================================================ */
.bg-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-particles::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124,92,252,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,212,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(192,132,252,0.03) 0%, transparent 40%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(6, 6, 11, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition-normal);
}
.navbar.scrolled {
    background: rgba(6, 6, 11, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px; height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-glow);
}
.nav-logo:hover .logo-icon { transform: scale(1.08) rotate(-5deg); }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search */
.nav-search {
    flex: 1;
    max-width: 480px;
}
.search-form { width: 100%; }
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition-fast);
}
.search-input {
    width: 100%;
    padding: 10px 44px 10px 42px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-normal);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-input:focus ~ .search-icon,
.search-input:focus + .search-icon { color: var(--primary-light); }
.search-btn {
    position: absolute;
    right: 4px;
    width: 34px; height: 34px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-normal);
}
.search-input:focus ~ .search-btn,
.search-input:not(:placeholder-shown) ~ .search-btn {
    opacity: 1;
    transform: scale(1);
}
.search-btn:hover { transform: scale(1.05); }

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* User Menu */
.nav-user-menu { position: relative; }
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-secondary);
}
.user-avatar-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}
.avatar-circle {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    overflow: hidden;
}
.avatar-circle img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.menu-arrow {
    font-size: 10px;
    transition: transform var(--transition-normal);
}
.nav-user-menu.active .menu-arrow { transform: rotate(180deg); }

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #11111a !important;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all var(--transition-normal);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95);
    z-index: 10000 !important;
}
.nav-user-menu.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.dropdown-header {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}
.dropdown-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}
.dropdown-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.dropdown-item i { width: 18px; text-align: center; font-size: 14px; }
.dropdown-item-admin { color: var(--primary-light); }
.dropdown-item-admin:hover { background: rgba(124,92,252,0.1); color: var(--primary-light); }
.dropdown-item-danger { color: var(--danger); }
.dropdown-item-danger:hover { background: var(--danger-bg); color: var(--danger); }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    width: 22px; height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: rgba(6,6,11,0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    font-size: 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.mobile-menu-item:hover { background: var(--bg-card); color: var(--text-primary); }
.mobile-menu-item i { width: 22px; text-align: center; }
.mobile-menu-admin { color: var(--primary-light); }
.mobile-menu-danger { color: var(--danger); }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
}
.btn:active::before {
    width: 300px; height: 300px;
    top: calc(50% - 150px);
    left: calc(50% - 150px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
    color: white;
}

.btn-accent {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    padding: 8px 20px;
}
.btn-accent:hover { transform: translateY(-1px); color: white; }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 18px;
}
.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}
.btn-danger:hover { transform: translateY(-2px); color: white; }

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { transform: translateY(-2px); color: white; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-icon {
    width: 40px; height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.btn-icon-sm { width: 34px; height: 34px; font-size: 13px; }

.btn-upload {
    border-radius: var(--radius-full);
    padding: 8px 18px;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.main-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    position: relative;
    z-index: 1;
}

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

/* ================================================
   FLASH MESSAGES
   ================================================ */
.flash-message {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 24px;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 1001;
    animation: flashIn 0.4s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(16px);
    border: 1px solid;
}
.flash-content { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.flash-close {
    background: none; border: none; cursor: pointer;
    color: inherit; opacity: 0.6; font-size: 14px;
    padding: 4px;
}
.flash-close:hover { opacity: 1; }
.flash-success { background: var(--success-bg); border-color: rgba(16,185,129,0.3); color: var(--success); }
.flash-error { background: var(--danger-bg); border-color: rgba(239,68,68,0.3); color: var(--danger); }
.flash-info { background: var(--info-bg); border-color: rgba(59,130,246,0.3); color: var(--info); }
.flash-warning { background: var(--warning-bg); border-color: rgba(245,158,11,0.3); color: var(--warning); }

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

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(124,92,252,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}
.hero-badge i { color: var(--primary-light); }
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title i {
    color: var(--primary-light);
    font-size: 0.9em;
}
.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}
.section-link:hover { color: var(--primary-light); }

/* ================================================
   VIDEO GRID & CARDS
   ================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    animation: cardFadeIn 0.5s ease both;
}
.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

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

.video-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}
.video-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.video-card:hover .video-card-thumb img { transform: scale(1.06); }

.video-card-duration {
    position: absolute;
    bottom: 8px; right: 8px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.8);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.video-card-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 52px; height: 52px;
    background: rgba(124,92,252,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}
.video-card:hover .video-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-card-body { padding: 16px; }
.video-card-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.video-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.video-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card actions (gallery view) */
.video-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px 16px;
}
.card-action-btn {
    flex: 1;
    padding: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.card-action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}
.card-action-btn.danger:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(239,68,68,0.3);
}
.card-action-btn.active {
    color: var(--danger);
    background: var(--danger-bg);
}

/* Visibility badge */
.visibility-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 2;
}
.visibility-badge.visible {
    background: rgba(16,185,129,0.2);
    color: var(--success);
    border: 1px solid rgba(16,185,129,0.3);
}
.visibility-badge.hidden {
    background: rgba(239,68,68,0.2);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.3);
}

/* ================================================
   VIDEO PLAYER PAGE
   ================================================ */
.watch-page {
    padding: 32px 0;
}
.watch-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.video-player-wrapper video {
    width: 100%; height: 100%;
    object-fit: contain;
}

.video-info {
    margin-top: 20px;
}
.video-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.video-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.video-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}
.video-meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.video-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.action-btn.favorited {
    background: var(--danger-bg);
    border-color: rgba(239,68,68,0.3);
    color: var(--danger);
}
.action-btn.favorited i { animation: heartPop 0.4s ease; }

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

/* Video Note/Description */
.video-note {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.video-note-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.video-note-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}
.timestamp-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(124,92,252,0.15);
    border-radius: 4px;
    color: var(--primary-light) !important;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.timestamp-link:hover {
    background: rgba(124,92,252,0.3);
    color: white !important;
}

/* Video Sidebar */
.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.sidebar-card-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-card-title i { color: var(--primary-light); }

.share-url-box {
    display: flex;
    gap: 8px;
}
.share-url-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}
.copy-btn {
    padding: 10px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-fast);
}
.copy-btn:hover { transform: scale(1.05); }
.copy-btn.copied { background: var(--success); }

/* Uploader info */
.uploader-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.uploader-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}
.uploader-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}
.uploader-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ================================================
   UPLOAD PAGE
   ================================================ */
.upload-page {
    padding: 48px 0;
}
.upload-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}
.upload-header {
    text-align: center;
    margin-bottom: 40px;
}
.upload-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.upload-header p { color: var(--text-secondary); }
.upload-limit-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
}
.upload-limit-info i { color: var(--info); }

/* Drop Zone */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-card);
    overflow: hidden;
}
.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(124,92,252,0.05);
}
.drop-zone.drag-over::before { opacity: 0.05; }

.drop-zone-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-glow);
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.drop-zone-text {
    position: relative; z-index: 1;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.drop-zone-text strong { color: var(--primary-light); }
.drop-zone-hint {
    position: relative; z-index: 1;
    font-size: 13px;
    color: var(--text-muted);
}

/* Upload form fields */
.upload-form {
    margin-top: 32px;
    display: none;
}
.upload-form.active { display: block; }

.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-normal);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}
.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}
.form-hint code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--primary-light);
}

/* Upload progress */
.upload-progress {
    display: none;
    margin-top: 24px;
}
.upload-progress.active { display: block; }
.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}
.progress-filename {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.progress-filename i { color: var(--primary-light); }
.progress-percentage {
    font-weight: 600;
    color: var(--primary-light);
}
.progress-bar-track {
    width: 100%; height: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: progressShine 1.5s infinite;
}
@keyframes progressShine {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Upload success */
.upload-success {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 24px;
}
.upload-success.active { display: block; }
.upload-success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--success);
    animation: successPop 0.5s ease;
}
@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.upload-success h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.upload-success p { color: var(--text-secondary); margin-bottom: 20px; }
.upload-success .share-url-box { max-width: 400px; margin: 0 auto; }

/* ================================================
   AUTH PAGES
   ================================================ */
.auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}
.auth-form .form-group { margin-bottom: 20px; }
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-footer a { color: var(--primary-light); font-weight: 500; }
.auth-error {
    padding: 12px 16px;
    background: var(--danger-bg);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================================================
   PROFILE PAGE
   ================================================ */
.profile-page {
    padding: 48px 0;
}
.profile-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.profile-avatar-large {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.profile-info h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}
.profile-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}
.profile-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ================================================
   GALLERY & FAVORITES
   ================================================ */
.gallery-page, .favorites-page {
    padding: 48px 0;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-header h1 i { color: var(--primary-light); }

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-btn {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.sort-btn:hover, .sort-btn.active {
    background: rgba(124,92,252,0.1);
    border-color: var(--border-accent);
    color: var(--primary-light);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}
.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.empty-state p { font-size: 14px; margin-bottom: 24px; }

/* ================================================
   ADMIN PANEL
   ================================================ */
.admin-page {
    padding: 32px 0;
}
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Admin Sidebar */
.admin-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    height: fit-content;
}
.admin-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    overflow: hidden;
}
.admin-sidebar-header {
    padding: 16px;
    margin-bottom: 4px;
}
.admin-sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
}
.admin-sidebar-header h3 i {
    font-size: 14px;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}
.admin-nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.admin-nav-item.active {
    background: rgba(124,92,252,0.1);
    color: var(--primary-light);
}
.admin-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.admin-nav-item i { width: 20px; text-align: center; font-size: 14px; }
.admin-nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--primary-glow);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-light);
}

/* Admin Content */
.admin-content {
    min-width: 0;
}
.admin-header {
    margin-bottom: 28px;
}
.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.admin-header p { color: var(--text-secondary); font-size: 14px; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-normal);
}
.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.stat-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}
.stat-card-icon.purple { background: rgba(124,92,252,0.15); color: var(--primary-light); }
.stat-card-icon.blue { background: rgba(59,130,246,0.15); color: var(--info); }
.stat-card-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-card-icon.orange { background: rgba(245,158,11,0.15); color: var(--warning); }
.stat-card-icon.red { background: rgba(239,68,68,0.15); color: var(--danger); }
.stat-card-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Admin Tables */
.admin-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
.admin-table-title {
    font-weight: 600;
    font-size: 15px;
}
.admin-table-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-input {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: all var(--transition-fast);
}
.filter-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.filter-select {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.data-table tr:hover td {
    background: var(--bg-card-hover);
}
.data-table tr:last-child td { border-bottom: none; }

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.status-badge.online { background: var(--success-bg); color: var(--success); }
.status-badge.banned { background: var(--danger-bg); color: var(--danger); }
.status-badge.admin { background: rgba(124,92,252,0.15); color: var(--primary-light); }
.status-badge.visible { background: var(--success-bg); color: var(--success); }
.status-badge.hidden { background: var(--warning-bg); color: var(--warning); }

/* User row in table */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-cell-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}
.user-cell-info {
    display: flex;
    flex-direction: column;
}
.user-cell-name { font-weight: 500; color: var(--text-primary); }
.user-cell-email { font-size: 12px; color: var(--text-muted); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px;
}
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-family: var(--font-body);
}
.page-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.page-btn:disabled, .page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================================================
   MODAL
   ================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modalFadeIn 0.25s ease;
}
.modal-overlay.active { display: flex; }
.modal {
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}
.modal-close {
    width: 36px; height: 36px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); border-color: rgba(239,68,68,0.3); }
.modal-body { margin-bottom: 24px; }
.modal-body p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlideIn {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    position: relative;
    z-index: 1;
}
.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}
.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px 0;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================================
   404 PAGE
   ================================================ */
.error-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}
.error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}
.error-page h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.error-page p { color: var(--text-secondary); margin-bottom: 24px; }

/* ================================================
   TOGGLE SWITCH
   ================================================ */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}
.toggle-switch input {
    opacity: 0;
    width: 0; height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px; width: 20px;
    left: 2px; bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-normal);
}
.toggle-switch input:checked + .toggle-slider {
    background: rgba(124,92,252,0.2);
    border-color: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: var(--primary);
}

/* ================================================
   LOG ENTRIES
   ================================================ */
.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}
.log-entry:hover { background: var(--bg-card-hover); }
.log-entry:last-child { border-bottom: none; }
.log-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.log-icon.login { background: var(--success-bg); color: var(--success); }
.log-icon.logout { background: var(--warning-bg); color: var(--warning); }
.log-icon.upload { background: rgba(59,130,246,0.15); color: var(--info); }
.log-icon.delete { background: var(--danger-bg); color: var(--danger); }
.log-icon.admin { background: rgba(124,92,252,0.15); color: var(--primary-light); }
.log-icon.default { background: var(--bg-input); color: var(--text-muted); }
.log-content { flex: 1; min-width: 0; }
.log-action { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.log-details { font-size: 12px; color: var(--text-muted); margin-top: 2px; word-break: break-word; }
.log-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ================================================
   TOOLTIP
   ================================================ */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
    z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; visibility: visible; }

/* ================================================
   SKELETON LOADING
   ================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .watch-layout { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .admin-sidebar-card {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .admin-sidebar-header { width: 100%; margin-bottom: 0; }
    .admin-nav-item { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 768px) {
    .nav-search { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu { display: block; }
    .btn-text { display: none; }
    .btn-upload { padding: 8px 12px; }

    .hero h1 { font-size: 1.8rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 1.5rem; }
    .hero-actions { flex-direction: column; gap: 12px; }

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

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

    .page-header { flex-direction: column; align-items: flex-start; }
    
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 10px 12px; }

    .auth-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .nav-container { padding: 0 16px; }
    .container { padding: 0 16px; }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }

/* Custom Select & Option Dark Mode Override */
select {
    background-color: #12121e !important;
    color: #e2e8f0 !important;
}
select option {
    background-color: #12121e !important;
    color: #e2e8f0 !important;
    padding: 12px !important;
    font-size: 14px !important;
}
select option:hover, select option:focus, select option:checked {
    background-color: #7c5cfc !important;
    color: #ffffff !important;
}

/* ================================================
   WATCH PLAYER CONTROL BAR & FULLSCREEN STYLES
   ================================================ */
.watch-control-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4) 70%, transparent);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 100;
    transition: opacity 0.3s ease;
}

#watchPlayerContainer:fullscreen,
#watchPlayerContainer:-webkit-full-screen,
#watchPlayerContainer:-moz-full-screen,
#watchPlayerContainer:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    background: #000 !important;
}

#watchPlayerContainer:fullscreen #videoPlayer,
#watchPlayerContainer:-webkit-full-screen #videoPlayer,
#watchPlayerContainer:-moz-full-screen #videoPlayer,
#watchPlayerContainer:-ms-fullscreen #videoPlayer {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
}

#watchPlayerContainer:fullscreen .watch-control-bar,
#watchPlayerContainer:-webkit-full-screen .watch-control-bar,
#watchPlayerContainer:-moz-full-screen .watch-control-bar,
#watchPlayerContainer:-ms-fullscreen .watch-control-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0,0,0,0.5) 70%, transparent) !important;
    padding: 16px 24px !important;
}

