/* ═══════════════════════════════════════════
   JLTomyVOD – CSS Principal
   Style : dark violet / noir, glassmorphism
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --purple-primary: #9147ff;
    --purple-dark:    #6c31d4;
    --purple-glow:    rgba(145, 71, 255, 0.35);
    --purple-subtle:  rgba(145, 71, 255, 0.12);
    --bg-black:       #0d0d12;
    --bg-card:        #16161e;
    --bg-card-hover:  #1e1e2a;
    --bg-glass:       rgba(22, 22, 30, 0.85);
    --text-primary:   #f0f0f8;
    --text-secondary: #9090a8;
    --text-muted:     #55556a;
    --border:         rgba(145, 71, 255, 0.2);
    --border-subtle:  rgba(255,255,255,0.06);
    --red-accent:     #ff4d6a;
    --green-accent:   #00e5a0;
    --gold-accent:    #ffd700;
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      18px;
    --shadow-card:    0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px var(--border-subtle);
    --shadow-glow:    0 0 30px var(--purple-glow);
    --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display:   'Syne', sans-serif;
    --font-body:      'DM Sans', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* Scrollbar stylisée */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: var(--purple-primary); border-radius: 3px; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 64px;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(13, 13, 18, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon {
    width: 36px; height: 36px;
    background: var(--purple-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--shadow-glow);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-accent { color: var(--purple-primary); }

/* Search */
.navbar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.navbar-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.navbar-search input:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px var(--purple-subtle);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    max-height: 360px;
    overflow-y: auto;
    display: none;
}

.search-results.visible { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover { background: var(--bg-card-hover); }

.search-result-item img {
    width: 60px; height: 34px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-card-hover);
}

.search-result-item span {
    font-size: 0.88rem;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nav right */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* User area */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px 6px 8px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-user:hover {
    border-color: var(--purple-primary);
    background: var(--bg-card-hover);
}

.nav-user img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-user-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sub  { background: var(--purple-subtle); color: var(--purple-primary); }
.badge-admin { background: rgba(255, 77, 106, 0.15); color: var(--red-accent); }
.badge-mod  { background: rgba(0, 229, 160, 0.12); color: var(--green-accent); }

/* User dropdown */
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 200px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: none;
    animation: fadeDown 0.2s ease;
}

.nav-user-dropdown.open { display: block; }

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s;
}

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

.dropdown-item.danger { color: var(--red-accent); }
.dropdown-sep { height: 1px; background: var(--border-subtle); }

/* Login button */
.btn-twitch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--purple-primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-twitch svg { width: 16px; height: 16px; }
.btn-twitch:hover {
    background: var(--purple-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* Burger */
.navbar-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.navbar-burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ══════════════════════════════════════
   PAGES
══════════════════════════════════════ */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 64px;
    animation: pageFadeIn 0.3s ease;
}

.page.active { display: block; }

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

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    position: relative;
    height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/hero-bg.png') center center / cover no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
    filter: brightness(0.75) saturate(1.2);
}

.hero:hover .hero-bg {
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--bg-black) 0%,
        rgba(13,13,18,0.55) 45%,
        rgba(13,13,18,0.15) 100%
    );
}

/* Grain texture sur le hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 56px 80px;
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(145, 71, 255, 0.18);
    border: 1px solid rgba(145, 71, 255, 0.5);
    color: #c89eff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(145,71,255,0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.9), 0 0 60px rgba(145,71,255,0.3);
}

.hero-desc {
    font-size: 1.08rem;
    color: rgba(240,240,248,0.75);
    margin-bottom: 32px;
    line-height: 1.7;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
    max-width: 520px;
}

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

/* ══════════════════════════════════════
   BOUTONS
══════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--purple-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--purple-primary);
    color: var(--purple-primary);
}

.btn-twitch-big {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--purple-primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin: 20px 0;
}

.btn-twitch-big svg { width: 20px; height: 20px; }
.btn-twitch-big:hover {
    background: var(--purple-dark);
    box-shadow: 0 8px 30px var(--purple-glow);
    transform: translateY(-3px);
}

/* ══════════════════════════════════════
   GUEST BANNER
══════════════════════════════════════ */
.guest-banner {
    display: flex;
    justify-content: center;
    padding: 80px 24px;
}

.guest-inner {
    max-width: 600px;
    text-align: center;
}

.guest-inner h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.guest-inner p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ══════════════════════════════════════
   VIDEO SECTIONS
══════════════════════════════════════ */
.video-sections {
    padding: 0 32px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-section {
    margin-bottom: 48px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--purple-primary);
    box-shadow: 0 0 8px var(--purple-primary);
}

.section-dot.featured { background: var(--gold-accent); box-shadow: 0 0 8px var(--gold-accent); }
.section-dot.recent   { background: var(--green-accent); box-shadow: 0 0 8px var(--green-accent); }
.section-dot.popular  { background: var(--red-accent); box-shadow: 0 0 8px var(--red-accent); }

.section-more {
    color: var(--purple-primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s;
    cursor: pointer;
}
.section-more:hover { color: var(--text-primary); }

/* Carousel */
.carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* ══════════════════════════════════════
   VIDEO CARDS
══════════════════════════════════════ */
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s;
    border: 1px solid var(--border-subtle);
    position: relative;
}

.video-card:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(145,71,255,0.3), var(--shadow-glow);
    border-color: rgba(145,71,255,0.35);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-card-hover);
    overflow: hidden;
}

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

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

.video-duration {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.video-progress-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.15);
}

.video-progress-fill {
    height: 100%;
    background: var(--purple-primary);
    transition: width 0.3s;
}

.video-card-info {
    padding: 12px 14px;
}

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

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

.video-card-cat {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    background: var(--purple-subtle);
    color: var(--purple-primary);
}

.video-card-views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .video-play-overlay { opacity: 1; }

.video-play-icon {
    width: 50px; height: 50px;
    background: var(--purple-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 20px var(--purple-glow);
}

/* Thumbnail placeholder */
.thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #2d1b69);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   PAGE VIDÉO
══════════════════════════════════════ */
.video-page-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    padding: 24px 32px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-main { min-width: 0; }

.video-info {
    padding: 20px 0;
}

.video-info-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.video-info-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.video-info-meta span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.video-info-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.action-btn:hover, .action-btn.active {
    background: var(--purple-subtle);
    border-color: var(--purple-primary);
    color: var(--purple-primary);
}

.action-btn.liked {
    background: rgba(255, 77, 106, 0.12);
    border-color: var(--red-accent);
    color: var(--red-accent);
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    white-space: pre-wrap;
}

/* Tags */
.video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.video-tag {
    font-size: 0.78rem;
    padding: 4px 10px;
    background: var(--bg-card-hover);
    color: var(--text-muted);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

/* ── Commentaires ── */
.comments-section {
    margin-top: 24px;
}

.comments-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-form img {
    width: 36px; height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-form-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.comment-form-input:focus { border-color: var(--purple-primary); }

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeIn 0.2s ease;
}

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

.comment img {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

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

.comment-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.comment-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.comment-action-btn {
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
}
.comment-action-btn:hover { color: var(--purple-primary); }

/* ── Sidebar recommandations ── */
.video-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.recommended-card {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.recommended-card:hover { background: var(--bg-card); }

.recommended-thumb {
    width: 120px; height: 67px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-card-hover);
    flex-shrink: 0;
}

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

.recommended-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    line-height: 1.3;
}

.recommended-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   PAGE SUBSCRIBE
══════════════════════════════════════ */
.subscribe-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.subscribe-card {
    text-align: center;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-card);
}

.subscribe-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.subscribe-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.subscribe-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.subscribe-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px !important;
}

/* ══════════════════════════════════════
   PAGES LÉGALES
══════════════════════════════════════ */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--purple-primary);
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* DMCA form */
.dmca-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
}

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

.form-group textarea { resize: vertical; min-height: 100px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 28px 32px;
    background: var(--bg-black);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
}

.footer-brand span { color: var(--purple-primary); }

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--purple-primary); }

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* ══════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════ */
#toastContainer {
    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-md);
    padding: 12px 18px;
    font-size: 0.88rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    max-width: 360px;
}

.toast.success { border-left: 3px solid var(--green-accent); }
.toast.error   { border-left: 3px solid var(--red-accent); }
.toast.info    { border-left: 3px solid var(--purple-primary); }

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

/* ══════════════════════════════════════
   UTILITAIRES
══════════════════════════════════════ */
.hidden { display: none !important; }

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

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

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

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
    .video-page-layout {
        grid-template-columns: 1fr;
    }
    .video-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .navbar-search { display: none; }
    .navbar-burger { display: flex; }
    .navbar-right .btn-twitch { display: none; }

    .hero { height: 400px; }
    .hero-title { font-size: 1.8rem; }
    .hero-content { padding: 0 24px 48px; }

    .video-sections { padding: 0 16px 60px; }
    .carousel { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .video-page-layout { padding: 16px 16px 60px; }

    .admin-sidebar { display: none; }
}

@media (max-width: 480px) {
    .carousel { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hero-title { font-size: 1.5rem; }
}

/* ── Footer dev credit ── */
.footer-dev {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
    margin-left: 8px;
}
.footer-dev:hover { color: var(--purple-primary); }

/* ── Popup développeur ── */
.dev-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.dev-popup-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.dev-popup-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
    min-width: 300px;
    position: relative;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    animation: fadeDown 0.25s ease;
}

.dev-popup-close {
    position: absolute;
    top: 14px; right: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.15s;
}
.dev-popup-close:hover { color: var(--text-primary); }

.dev-popup-avatar {
    font-size: 3rem;
    margin-bottom: 12px;
}

.dev-popup-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.dev-popup-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.dev-popup-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dev-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
}

.dev-popup-btn svg { width: 18px; height: 18px; }

.dev-popup-btn.discord {
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
    border: 1px solid rgba(88, 101, 242, 0.3);
}
.dev-popup-btn.discord:hover {
    background: rgba(88, 101, 242, 0.25);
    transform: translateY(-2px);
}

.dev-popup-btn.twitch {
    background: var(--purple-subtle);
    color: var(--purple-primary);
    border: 1px solid var(--border);
}
.dev-popup-btn.twitch:hover {
    background: rgba(145, 71, 255, 0.2);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   AMÉLIORATIONS VISUELLES PREMIUM
══════════════════════════════════════ */

/* Fond avec légère texture noise */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(145,71,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(88,101,242,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navbar glassmorphism amélioré */
.navbar.scrolled {
    background: rgba(10, 10, 16, 0.92);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(145,71,255,0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* Brand glow au hover */
.navbar-brand:hover .brand-icon {
    box-shadow: 0 0 20px var(--purple-primary), 0 0 40px rgba(145,71,255,0.4);
    transform: scale(1.05);
    transition: all 0.2s;
}

/* Section titles améliorés */
.section-title {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

/* Video thumbnail shimmer au hover */
.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(145,71,255,0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.video-card:hover .video-thumbnail::after { opacity: 1; }

/* Duration badge amélioré */
.video-duration {
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.03em;
}

/* Play icon amélioré */
.video-play-icon {
    box-shadow: 0 0 30px rgba(145,71,255,0.7), 0 0 60px rgba(145,71,255,0.3);
    backdrop-filter: blur(4px);
}

/* Scrollbar plus fine et stylée */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, var(--purple-primary), var(--purple-dark));
    border-radius: 4px;
}

/* Cards avec reflet en haut */
.video-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(145,71,255,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}
.video-card:hover::before { opacity: 1; }

/* Section dots animés */
.section-dot {
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 6px currentColor; }
    50% { box-shadow: 0 0 14px currentColor, 0 0 24px currentColor; }
}

/* Guest banner amélioré */
.guest-banner {
    background: radial-gradient(ellipse at center, rgba(145,71,255,0.06) 0%, transparent 70%);
}

/* Footer amélioré */
.footer {
    background: linear-gradient(to top, rgba(145,71,255,0.04), transparent), var(--bg-black);
    border-top: 1px solid rgba(145,71,255,0.12);
}

/* ══════════════════════════════════════
   PAGE LIVE
══════════════════════════════════════ */

/* Bouton live navbar */
.nav-live-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 77, 106, 0.15);
    border: 1px solid rgba(255, 77, 106, 0.4);
    color: #ff4d6a;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition);
    animation: livePulse 2s ease-in-out infinite;
}

.nav-live-btn:hover {
    background: rgba(255, 77, 106, 0.25);
    border-color: #ff4d6a;
    transform: scale(1.05);
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,106,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255,77,106,0); }
}

.live-dot {
    width: 8px; height: 8px;
    background: #ff4d6a;
    border-radius: 50%;
    animation: dotBlink 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Page live */
.live-page {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 64px);
}

/* Offline state */
.live-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 16px;
}

.live-offline-icon {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 8px;
}

.live-offline h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.live-offline p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Online state */
.live-header {
    margin-bottom: 20px;
}

.live-badge-big {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,77,106,0.15);
    border: 1px solid rgba(255,77,106,0.4);
    color: #ff4d6a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.live-stream-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.live-stream-game {
    color: var(--purple-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.live-viewers {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Layout live player + chat */
.live-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    height: 70vh;
}

.live-player-wrap {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

#twitch-embed,
#twitch-embed iframe {
    width: 100% !important;
    height: 100% !important;
}

.live-chat-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.live-chat-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1000px) {
    .live-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .live-player-wrap { height: 56vw; }
    .live-chat-wrap { height: 400px; }
}