/* ============================================================
   MPC HUB - STYLES GLOBAUX
   ============================================================ */

/* Variables CSS */
:root {
    --primary: #e94560;
    --primary-dark: #c73e54;
    --primary-light: #f05a75;
    --secondary: #0f3460;
    --secondary-dark: #0a2440;
    --secondary-light: #1a4a7a;
    --accent: #4ecdc4;
    --accent-dark: #2a9d8f;
    --bg-dark: #1a1a2e;
    --bg-darker: #12121f;
    --bg-card: #16213e;
    --bg-card-hover: #1e2d50;
    --text-primary: #eaeaea;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --border: #0f3460;
    --border-light: #1e3a6e;
    --success: #28a745;
    --warning: #f39c12;
    --danger: #dc3545;
    --info: #17a2b8;
    --gradient: linear-gradient(135deg, #e94560, #0f3460);
    --gradient-hover: linear-gradient(135deg, #f05a75, #1a4a7a);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 2px 15px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --navbar-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: var(--font);
    outline: none;
}

ul {
    list-style: none;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================================
   UTILITAIRES
   ============================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-google {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background: #f5f5f5;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(18, 18, 31, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-search {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    transition: var(--transition);
}

.nav-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.nav-search i {
    color: var(--text-muted);
    font-size: 14px;
}

.nav-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
}

.nav-search input::placeholder {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-upload-btn {
    background: var(--gradient);
    color: white !important;
    border-radius: var(--radius-sm);
}

.nav-upload-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-login {
    background: var(--secondary);
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
}

.btn-login:hover {
    background: var(--secondary-light);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-notifications {
    position: relative;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-notifications:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.nav-avatar:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.nav-avatar span {
    font-size: 14px;
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 180px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 100;
}

.user-dropdown.show {
    display: block;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition-fast);
}

.user-dropdown a:hover {
    background: var(--secondary);
    color: var(--text-primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.nav-mobile-toggle {
    display: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 20px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--navbar-height);
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(15, 52, 96, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(233,69,96,0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(78,205,196,0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(233,69,96,0.3), transparent),
        radial-gradient(2px 2px at 230px 80px, rgba(78,205,196,0.2), transparent);
    background-size: 300px 300px;
    animation: particlesMove 20s linear infinite;
}

@keyframes particlesMove {
    0% { background-position: 0 0; }
    100% { background-position: 300px 300px; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.4);
    color: var(--primary-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--bg-darker);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
}

.see-all {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.see-all:hover {
    gap: 10px;
}

/* ============================================================
   VIDEO CARDS - GRILLE
   ============================================================ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-darker);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--bg-darker));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.video-play-btn i {
    font-size: 48px;
    color: white;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    transition: transform 0.2s ease;
}

.video-card:hover .video-play-btn i {
    transform: scale(1.1);
}

.video-interactive-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gradient);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.video-card-info {
    padding: 16px;
}

.video-card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.video-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-category-badge {
    display: inline-block;
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.video-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.video-card-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.category-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-card span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   DOWNLOAD SECTION
   ============================================================ */

.download-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.download-features {
    list-style: none;
    margin-bottom: 30px;
}

.download-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.download-features li i {
    color: var(--success);
    font-size: 16px;
    flex-shrink: 0;
}

.download-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.download-info-text {
    font-size: 13px;
    color: var(--text-muted);
}

.download-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.download-counter i {
    color: var(--primary);
}

.download-counter span {
    font-weight: 700;
    color: var(--text-primary);
}

/* App Screenshot */
.app-screenshot {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.screenshot-header {
    background: var(--bg-card);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.screenshot-body {
    display: flex;
    height: 350px;
}

.fake-sidebar {
    width: 80px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fake-item {
    height: 35px;
    background: var(--border);
    border-radius: 8px;
    opacity: 0.5;
}

.fake-item.active {
    background: var(--primary);
    opacity: 0.8;
}

.fake-canvas {
    flex: 1;
    background: #12121f;
    position: relative;
    padding: 20px;
    background-image:
        linear-gradient(rgba(30, 58, 110, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 110, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
}

.fake-node {
    position: absolute;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.node-start {
    background: #28a745;
    top: 40px;
    left: 30px;
}

.node-question {
    background: #f39c12;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.5s;
}

.node-death {
    background: #dc3545;
    bottom: 60px;
    left: 30px;
    animation-delay: 1s;
}

.node-end {
    background: #9b59b6;
    bottom: 60px;
    right: 30px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ============================================================
   STEPS GRID
   ============================================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   AUTH PAGE
   ============================================================ */

.auth-page {
    background: var(--bg-darker);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-left {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-left-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    font-size: 72px;
    display: block;
    margin-bottom: 16px;
}

.auth-left h1 {
    font-size: 40px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.auth-left p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.auth-feature i {
    font-size: 20px;
    color: white;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--bg-dark);
}

.auth-form {
    width: 100%;
    max-width: 420px;
}

.auth-form h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

.char-count {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition-fast);
}

.toggle-password:hover {
    color: var(--primary);
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin-top: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-separator span {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 24px;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================================
   EXPLORE PAGE
   ============================================================ */

.main-content {
    display: flex;
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

.sidebar {
    width: 260px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    position: sticky;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.filter-item input[type="radio"] {
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-group select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
}

.content-area {
    flex: 1;
    padding: 30px;
    min-width: 0;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.content-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.video-count {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 50px;
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
}

/* ============================================================
   WATCH PAGE - LECTEUR
   ============================================================ */

.watch-page {
    background: var(--bg-darker);
}

.watch-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--navbar-height) 20px 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "player sidebar"
        "info sidebar"
        "comments sidebar";
    gap: 24px;
}

.watch-player-area {
    grid-area: player;
}

.player-container {
    background: black;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.video-player {
    width: 100%;
    height: 100%;
    background: black;
    display: block;
}

/* Overlay de choix */
.choice-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 30px;
    gap: 16px;
    z-index: 10;
}

.choice-question {
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 700;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 16px 24px;
    border-radius: var(--radius);
    max-width: 80%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.choice-timer {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.timer-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.timer-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.choice-btn {
    background: rgba(15, 52, 96, 0.9);
    border: 2px solid var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.choice-btn:hover {
    background: rgba(233, 69, 96, 0.8);
    border-color: white;
    transform: translateX(4px);
}

.choice-btn-num {
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Game Over */
.gameover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(5px);
}

.gameover-content {
    text-align: center;
    padding: 40px;
    background: rgba(22, 33, 62, 0.9);
    border: 2px solid var(--danger);
    border-radius: var(--radius-lg);
    max-width: 450px;
}

.gameover-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.gameover-content h2 {
    font-size: 40px;
    font-weight: 900;
    color: var(--danger);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.gameover-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.gameover-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* End Screen */
.end-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(5px);
}

.end-content {
    text-align: center;
    padding: 40px;
    background: rgba(22, 33, 62, 0.9);
    border: 2px solid var(--success);
    border-radius: var(--radius-lg);
    max-width: 500px;
}

.end-icon {
    font-size: 80px;
    margin-bottom: 16px;
}

.end-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 24px 0;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius);
}

.end-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.end-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.end-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Player Controls */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 16px 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-container:hover .player-controls {
    opacity: 1;
}

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls-left button,
.controls-right button {
    background: transparent;
    color: white;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.controls-left button:hover,
.controls-right button:hover {
    background: rgba(255,255,255,0.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-control input[type="range"] {
    width: 80px;
    accent-color: var(--primary);
    cursor: pointer;
}

.time-display {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

/* Watch Info */
.watch-info {
    grid-area: info;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.watch-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.watch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.watch-category {
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.watch-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.active {
    background: rgba(233, 69, 96, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.watch-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info h3 {
    font-size: 16px;
    font-weight: 700;
}

.author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-subscribe {
    flex-shrink: 0;
}

.watch-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Commentaires */
.watch-comments {
    grid-area: comments;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.watch-comments h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-area {
    flex: 1;
}

.comment-input-area textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    margin-bottom: 8px;
}

.comment-input-area textarea:focus {
    border-color: var(--primary);
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-username {
    font-weight: 700;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment-action-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.comment-action-btn:hover {
    color: var(--primary);
}

/* Sidebar Watch */
.watch-sidebar {
    grid-area: sidebar;
    align-self: start;
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
}

.watch-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 0 4px;
}

.sidebar-videos {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-video-card {
    display: flex;
    gap: 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 8px;
    transition: var(--transition-fast);
}

.sidebar-video-card:hover {
    background: var(--bg-card);
}

.sidebar-thumbnail {
    width: 130px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-info {
    flex: 1;
    min-width: 0;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   UPLOAD PAGE
   ============================================================ */

.upload-page {
    padding-top: calc(var(--navbar-height) + 40px);
    padding-bottom: 60px;
    min-height: 100vh;
}

.page-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.05);
}

.dropzone-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 16px;
}

.dropzone-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dropzone-content p {
    color: var(--text-muted);
    margin-bottom: 6px;
}

.dropzone-info {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-progress {
    padding: 30px;
    background: var(--bg-darker);
    border-radius: var(--radius);
    text-align: center;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.file-name {
    font-weight: 600;
}

.file-size {
    color: var(--text-muted);
}

.progress-bar-container {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.thumbnail-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.thumbnail-upload:hover {
    border-color: var(--primary);
}

.thumbnail-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    background: var(--bg-darker);
    font-size: 14px;
}

.thumbnail-preview i {
    font-size: 40px;
}

.thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-card {
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-thumb {
    aspect-ratio: 16/9;
    background: var(--border);
}

.preview-info {
    padding: 12px;
}

.preview-info h5 {
    font-size: 14px;
    margin-bottom: 4px;
}

.preview-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.upload-success {
    text-align: center;
    padding: 60px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.upload-success h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}

.upload-success p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

.admin-sidebar {
    width: 250px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    gap: 4px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.admin-menu-item.active {
    color: var(--primary);
}

.menu-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 50px;
    font-weight: 700;
}

.admin-content {
    flex: 1;
    padding: 30px;
    min-width: 0;
    overflow-x: auto;
}

.admin-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.admin-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-search {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
}

.admin-filter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    min-width: 150px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th {
    background: var(--bg-darker);
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--bg-darker);
}

.admin-table img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.status-published {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.status-pending {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
}

.status-blocked {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.table-actions {
    display: flex;
    gap: 6px;
}

.table-btn {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid;
}

.table-btn-approve {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.table-btn-block {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.table-btn-delete {
    background: rgba(102, 102, 102, 0.1);
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.table-btn:hover {
    opacity: 0.8;
}

.admin-recent {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.admin-recent h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.activity-item:hover {
    background: var(--bg-darker);
}

.activity-item small {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.settings-form {
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}

.settings-form .form-group {
    margin-bottom: 24px;
}

.reports-list,
.comments-mod-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-card,
.comment-mod-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid var(--danger);
}

.report-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.report-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.report-actions {
    display: flex;
    gap: 8px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* 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: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    animation: slideInLeft 0.3s ease;
    font-size: 14px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-hover);
    animation: fadeInUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
    .download-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-features li {
        justify-content: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .watch-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "player"
            "info"
            "comments"
            "sidebar";
    }
    
    .watch-sidebar {
        position: static;
    }
    
    .sidebar-videos {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-video-card {
        width: calc(50% - 8px);
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }
    
    .nav-search {
        display: none;
    }
    
    .nav-links .nav-link:not(.nav-upload-btn):not(.btn-login) {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .admin-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .admin-menu-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .gameover-buttons,
    .end-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .choice-overlay {
        padding: 16px;
    }
    
    .choice-question {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-container {
        padding: 20px;
    }
    
    .upload-dropzone {
        padding: 40px 20px;
    }
    
    .watch-container {
        padding: var(--navbar-height) 12px 20px;
    }
    
    .modal {
        padding: 20px;
    }
    
    .toast {
        min-width: auto;
        width: calc(100vw - 32px);
    }
}