/* ============================================
   SeneLutte Web - Desktop/Tablet Responsive CSS
   ============================================ */

/* ============================================
   Variables & Reset
   ============================================ */
:root {
    --primary: #e94560;
    --primary-light: rgba(233, 69, 96, 0.12);
    --secondary: #1a1a2e;
    --secondary-light: #16213e;
    --accent: #ffc947;
    --success: #27ae60;
    --error: #e74c3c;
    --info: #3498db;
    --warning: #f39c12;

    --bg-body: #0a0a1a;
    --bg-card: #131328;
    --bg-card-hover: #1a1a3e;
    --bg-surface: rgba(255,255,255,0.04);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0c0;
    --text-muted: #5a5a7a;
    --border-color: rgba(255,255,255,0.06);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.3);
    --transition: all 0.2s ease;
    --nav-height: 64px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ============================================
   Top Navbar
   ============================================ */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(19, 19, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
}

.topnav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topnav-left { display: flex; align-items: center; gap: 32px; }

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.topnav-logo { width: 36px; height: 36px; }
.topnav-name {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topnav-links { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-surface); text-decoration: none; }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.topnav-right { display: flex; align-items: center; gap: 16px; }

.topnav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    color: var(--text-muted);
    transition: var(--transition);
}
.topnav-search:focus-within { border-color: var(--primary); }
.topnav-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 180px;
}
.topnav-search input::placeholder { color: var(--text-muted); }

.topnav-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}
.topnav-icon:hover { color: var(--text-primary); border-color: var(--primary); }
.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
}

.topnav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.topnav-user:hover { color: var(--text-primary); border-color: var(--primary); text-decoration: none; }

/* ============================================
   Notification Panel (Web)
   ============================================ */
.notif-panel-web {
    position: fixed;
    top: var(--nav-height);
    right: 24px;
    width: 380px;
    max-height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    overflow: hidden;
}
.notif-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border-color); }
.notif-panel-header h3 { font-size: 0.95rem; }
.notif-panel-header button { background: none; border: none; color: var(--primary); font-size: 0.8rem; cursor: pointer; }
.notif-list { overflow-y: auto; max-height: 340px; }
.notif-item { padding: 12px 18px; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; }
.notif-item.unread { background: rgba(233,69,96,0.05); border-left: 3px solid var(--primary); }
.notif-item strong { display: block; margin-bottom: 2px; }
.notif-item p { color: var(--text-secondary); font-size: 0.8rem; }

/* ============================================
   Main Container
   ============================================ */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px;
    min-height: calc(100vh - var(--nav-height) - 200px);
    transition: opacity 0.15s ease;
}

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

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.card:hover { border-color: rgba(255,255,255,0.1); }
.card-clickable { cursor: pointer; }
.card-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================================
   Grid Layouts
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.layout-main-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.layout-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

/* ============================================
   Stats Grid
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card { text-align: center; padding: 16px; }
.stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   Typography
   ============================================ */
.page-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title { font-size: 1.1rem; font-weight: 700; }
.section-link { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.empty-text { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 24px; }
.empty-state { text-align: center; padding: 40px 20px; }
.section-title-sm { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }

/* ============================================
   Badges
   ============================================ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: rgba(255,201,71,0.15); color: var(--accent); }
.badge-success { background: rgba(39,174,96,0.15); color: var(--success); }
.badge-info { background: rgba(52,152,219,0.15); color: var(--info); }
.badge-warning { background: rgba(243,156,18,0.15); color: var(--warning); }

/* ============================================
   Buttons
   ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #c73652; }
.btn-secondary { background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-secondary:hover { color: var(--text-primary); border-color: var(--text-muted); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-rounded { border-radius: 50px; }
.btn-full { width: 100%; }

/* ============================================
   Forms
   ============================================ */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(233,69,96,0.15); }
.form-input::placeholder { color: var(--text-muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a5a7a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.search-input-wrapper { display: flex; align-items: center; gap: 8px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px 16px; color: var(--text-muted); }
.search-input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-size: 0.9rem; }
.search-input::placeholder { color: var(--text-muted); }

/* ============================================
   Filter Tabs
   ============================================ */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tab { padding: 7px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border-color); cursor: pointer; transition: var(--transition); white-space: nowrap; }
.filter-tab:hover { color: var(--text-primary); border-color: var(--text-muted); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   Lutteur Cards (List)
   ============================================ */
.lutteur-list-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.lutteur-list-card:hover { transform: translateX(4px); }
.lutteur-list-info { flex: 1; min-width: 0; }
.lutteur-list-name { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lutteur-list-meta { font-size: 0.8rem; color: var(--text-muted); }
.lutteur-list-stats { text-align: right; flex-shrink: 0; }
.lutteur-list-record { font-size: 0.85rem; font-weight: 700; }
.lutteur-list-ecurie { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================
   Lutteur Hero Card
   ============================================ */
.lutteur-hero { overflow: hidden; padding: 0; }
.lutteur-cover { width: 100%; height: 240px; background-size: cover; background-position: center; background-color: var(--bg-surface); cursor: pointer; }
.lutteur-cover-default { background: linear-gradient(135deg, var(--secondary), var(--primary)); opacity: 0.6; cursor: default; }
.lutteur-hero-body { text-align: center; padding: 0 24px 28px; margin-top: -55px; position: relative; }
.lutteur-avatar-main { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg-card); box-shadow: var(--shadow-lg); background: var(--bg-surface); cursor: pointer; transition: transform 0.2s; }
.lutteur-avatar-main:hover { transform: scale(1.05); }

/* ============================================
   Avatar
   ============================================ */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-surface); }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 80px; height: 80px; }

/* ============================================
   Combat Cards
   ============================================ */
.combat-card { padding: 16px; cursor: pointer; }
.combat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.combat-date { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.combat-vs { display: flex; align-items: center; justify-content: center; gap: 16px; }
.combat-fighter { text-align: center; flex: 1; }
.fighter-name { font-size: 0.95rem; font-weight: 700; }
.fighter-name.winner { color: var(--success); }
.vs-badge { font-size: 0.75rem; font-weight: 800; color: var(--primary); background: var(--primary-light); padding: 6px 12px; border-radius: 50px; flex-shrink: 0; }
.combat-mise { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-align: center; margin-top: 8px; }

/* ============================================
   Publication Cards (Actu)
   ============================================ */
.pub-card { margin-bottom: 16px; }
.pub-pinned { display: flex; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.pub-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pub-author-info { flex: 1; }
.pub-author { font-size: 0.85rem; font-weight: 700; display: block; }
.pub-time { font-size: 0.7rem; color: var(--text-muted); }
.pub-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.pub-content { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.pub-image { width: 100%; border-radius: var(--radius-sm); margin-bottom: 10px; max-height: 400px; object-fit: cover; }
.pub-actions { display: flex; gap: 20px; padding-top: 10px; border-top: 1px solid var(--border-color); }
.pub-action-btn { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; padding: 4px 0; background: none; border: none; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.pub-action-btn:hover { color: var(--text-primary); }
.pub-comments { padding-top: 10px; border-top: 1px solid var(--border-color); margin-top: 10px; }
.pub-comment { padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.pub-comment-form { padding-top: 8px; }

/* Facebook-style image grids */
.fb-grid { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; cursor: pointer; gap: 3px; }
.fb-img { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--bg-surface); position: relative; transition: filter 0.2s; }
.fb-grid:hover .fb-img { filter: brightness(0.95); }
.fb-grid-1 { display: block; }
.fb-grid-1 .fb-img { width: 100%; height: 0; padding-bottom: 50%; border-radius: var(--radius-sm); }
.fb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.fb-grid-2 .fb-img { height: 0; padding-bottom: 80%; }
.fb-grid-3 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3px; height: 320px; }
.fb-grid-3 .fb-img-main { height: 100%; }
.fb-grid-3 .fb-img-side { display: flex; flex-direction: column; gap: 3px; height: 100%; }
.fb-grid-3 .fb-img-side .fb-img { flex: 1; }
.fb-grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.fb-grid-4 .fb-img { height: 0; padding-bottom: 65%; }
.fb-grid-5 { display: flex; flex-direction: column; gap: 3px; }
.fb-row-top { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.fb-row-top .fb-img { height: 0; padding-bottom: 60%; }
.fb-row-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }
.fb-row-bottom .fb-img { height: 0; padding-bottom: 70%; position: relative; }
.fb-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.8rem; font-weight: 800; }

/* Video */
.pub-video-embed { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; background: var(--bg-surface); }
.pub-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.pub-video-player { width: 100%; border-radius: var(--radius-sm); margin-bottom: 10px; max-height: 400px; background: var(--bg-surface); }
.pub-video { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px; background: var(--bg-surface); border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer; color: var(--text-secondary); font-size: 0.85rem; }

/* Composer */
.pub-composer { border: 1px dashed var(--primary); border-radius: var(--radius); background: rgba(233,69,96,0.03); }
.pub-composer-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; gap: 8px; }
.pub-media-btn { cursor: pointer; font-size: 1.1rem; padding: 4px 8px; border-radius: 6px; }

/* ============================================
   Info Grid
   ============================================ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-size: 0.9rem; color: var(--text-primary); }

/* ============================================
   Ratio Bar
   ============================================ */
.ratio-bar { height: 8px; background: var(--bg-surface); border-radius: 4px; overflow: hidden; }
.ratio-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--accent)); border-radius: 4px; transition: width 0.8s ease; }

/* ============================================
   Type Stats (Analysis)
   ============================================ */
.type-stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.type-stat-name { font-size: 0.8rem; min-width: 80px; text-transform: capitalize; }
.type-stat-bar { flex: 1; height: 8px; background: var(--bg-surface); border-radius: 4px; overflow: hidden; }
.type-stat-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.type-stat-success { background: var(--success); }
.type-stat-primary { background: var(--primary); }
.type-stat-val { font-size: 0.75rem; color: var(--text-muted); min-width: 55px; text-align: right; }

/* ============================================
   Distinctions
   ============================================ */
.distinction-card { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.distinction-icon { font-size: 1.5rem; flex-shrink: 0; }
.distinction-info { flex: 1; }
.distinction-title { font-size: 0.95rem; font-weight: 700; }
.distinction-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.distinction-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

/* Ecurie historique */
.ecurie-hist-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.ecurie-hist-item:last-child { border: none; }
.ecurie-hist-name { font-weight: 600; }
.ecurie-hist-dates { font-size: 0.8rem; color: var(--text-muted); }

/* Gallery */
.lutteur-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery-item { cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ============================================
   Classement
   ============================================ */
.classement-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: var(--transition); }
.classement-item:hover { background: var(--bg-surface); }
.classement-rang { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-surface); font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.classement-rang.top-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #1a1a2e; }
.classement-rang.top-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #1a1a2e; }
.classement-rang.top-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }

/* ============================================
   Comments Module
   ============================================ */
.cm-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.cm-item:last-child { border: none; }
.cm-reply { margin-left: 24px; padding-left: 14px; border-left: 2px solid var(--border-color); }
.cm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.cm-body { flex: 1; }
.cm-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.cm-author { font-size: 0.85rem; font-weight: 700; }
.cm-time { font-size: 0.7rem; color: var(--text-muted); }
.cm-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; margin: 4px 0; }
.cm-actions { display: flex; gap: 14px; margin-top: 4px; }
.cm-action-btn { background: none; border: none; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; padding: 2px 0; transition: var(--transition); }
.cm-action-btn:hover { color: var(--text-primary); }
.cm-delete-btn { color: var(--error); opacity: 0.6; }
.cm-delete-btn:hover { opacity: 1; }
.cm-form { margin-top: 12px; }
.cm-reply-form { margin-top: 8px; padding: 10px; background: var(--bg-surface); border-radius: var(--radius-sm); }
.cm-textarea { font-size: 0.9rem; padding: 10px 14px; resize: vertical; min-height: 40px; }
.cm-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ============================================
   Lightbox
   ============================================ */
.lightbox-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; font-size: 2.2rem; color: #fff; cursor: pointer; z-index: 10; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-counter { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 600; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; color: rgba(255,255,255,0.7); cursor: pointer; width: 56px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: var(--transition); user-select: none; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ============================================
   Toast
   ============================================ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; z-index: 9998; display: flex; align-items: center; gap: 10px; max-width: 400px; transition: opacity 0.3s; box-shadow: var(--shadow-lg); }
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--error); color: #fff; }
.toast-info { background: var(--info); color: #fff; }
.toast-warning { background: var(--warning); color: #1a1a2e; }
.toast button { background: none; border: none; color: inherit; font-size: 1.2rem; cursor: pointer; opacity: 0.7; }

/* ============================================
   Video Card
   ============================================ */
.video-card { display: flex; align-items: center; gap: 14px; padding: 14px; cursor: pointer; }
.video-card:hover { transform: translateX(4px); }
.video-thumb { width: 60px; height: 44px; background: var(--bg-surface); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.video-info { flex: 1; min-width: 0; }
.video-title { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-top: 2px; }

/* Scroll horizontal */
.scroll-horizontal { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.scroll-horizontal::-webkit-scrollbar { height: 4px; }
.scroll-horizontal::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
.lutteur-card-mini { min-width: 110px; text-align: center; cursor: pointer; flex-shrink: 0; }
.lutteur-mini-name { font-size: 0.8rem; font-weight: 700; margin-top: 4px; }
.lutteur-mini-stats { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: 60px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; font-weight: 700; font-size: 1.1rem; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   Utilities
   ============================================ */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-md { margin-bottom: 16px; }
.mb-sm { margin-bottom: 8px; }
.loading-more { text-align: center; padding: 16px; }
.loader-spinner { width: 28px; height: 28px; border: 3px solid var(--border-color); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-surface) 25%, rgba(255,255,255,0.06) 50%, var(--bg-surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); height: 60px; margin-bottom: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 100px; }

/* ============================================
   Responsive: Tablet (768-1024)
   ============================================ */
@media (max-width: 1024px) {
    .topnav-search input { width: 120px; }
    .layout-main-sidebar { grid-template-columns: 1fr; }
    .layout-sidebar { position: static; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .topnav-links { gap: 2px; }
    .nav-link { padding: 6px 10px; font-size: 0.8rem; }
}

/* ============================================
   Responsive: Mobile (max 768)
   ============================================ */
@media (max-width: 768px) {
    :root { --nav-height: 56px; }

    .topnav-inner { padding: 0 12px; gap: 12px; }
    .topnav-links { display: none; }
    .topnav-search { display: none; }
    .topnav-name { font-size: 1rem; }

    /* Mobile: show bottom nav instead */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(19,19,40,0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        z-index: 100;
        padding: 6px 0;
        padding-bottom: env(safe-area-inset-bottom, 6px);
    }
    .mobile-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 0;
        color: var(--text-muted);
        font-size: 0.65rem;
        text-decoration: none;
        transition: var(--transition);
    }
    .mobile-nav a.active { color: var(--primary); }

    .main-container { padding: 16px 12px 80px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .layout-main-sidebar { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-links { gap: 12px; }
    .lutteur-cover { height: 160px; }
    .lutteur-avatar-main { width: 90px; height: 90px; }
    .notif-panel-web { right: 8px; left: 8px; width: auto; }
}

/* ============================================
   Print
   ============================================ */
@media print {
    .topnav, .site-footer, .mobile-nav { display: none; }
    body { background: #fff; color: #000; }
    .card { border: 1px solid #ccc; box-shadow: none; }
}
