:root {
    --bg: #0f1117;
    --bg2: #1a1d2e;
    --bg3: #252840;
    --accent: #7c6ff7;
    --accent2: #5865f2;
    --green: #3ba55d;
    --yellow: #faa61a;
    --red: #ed4245;
    --text: #e0e0f0;
    --muted: #8e8ea8;
    --border: #2e3150;
    --radius: 12px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}
.hero-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: .3rem;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text); font-size: .95rem; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* LAYOUT */
.container { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; }

/* CARDS */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* SCORE BADGE */
.score {
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    padding: .3rem .8rem;
    border-radius: 8px;
    color: #fff;
}
.score-green  { background: var(--green); }
.score-yellow { background: var(--yellow); color: #000; }
.score-red    { background: var(--red); }
.score-none   { background: var(--bg3); color: var(--muted); }

/* TYPE BADGE */
.badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 6px;
    background: var(--bg3);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* FORMS */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .9rem; color: var(--muted); }

input[type=text], input[type=email], input[type=password],
input[type=number], select, textarea {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: .7rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: .7rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--bg3); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }

/* ALERTS */
.alert {
    padding: .8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .95rem;
}
.alert-error   { background: rgba(237,66,69,.15); border: 1px solid var(--red);    color: #ff8080; }
.alert-success { background: rgba(59,165,93,.15);  border: 1px solid var(--green);  color: #6ddc96; }

/* HERO */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}
.hero h1 { font-size: 2.5rem; margin-bottom: .5rem; }
.hero p   { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* RATING CARD */
.rating-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.rating-poster {
    width: 60px;
    min-width: 60px;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.rating-card .info { flex: 1; }
.rating-card .title { font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.rating-card .meta  { color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.rating-card .review { font-size: .9rem; color: var(--text); margin-top: .5rem; line-height: 1.5; }

/* SECTION TITLE */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* SCORE INPUT PREVIEW */
.score-preview {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: .5rem 0;
}

/* PAGE AUTH */
.auth-box {
    max-width: 420px;
    margin: 4rem auto;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.auth-box h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }

/* PROFILE */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.avatar {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.badge-founder {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #f5a623, #f7971e);
    color: #1a1000;
    letter-spacing: .3px;
    vertical-align: middle;
    margin-left: .3rem;
}

/* TABS */
.tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab {
    padding: .5rem 1.2rem;
    border-radius: 8px;
    background: var(--bg3);
    color: var(--muted);
    cursor: pointer;
    font-size: .9rem;
    border: 1px solid var(--border);
    text-decoration: none;
}
.tab.active, .tab:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* EMPTY STATE */
.empty { text-align: center; color: var(--muted); padding: 3rem; }
.empty p { margin-top: .5rem; }

/* LIVE TWITCH */
.live-block {
    background: var(--bg2);
    border: 2px solid #9146FF;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(145,70,255,.25);
}
.live-header {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 1.2rem;
    flex-wrap: wrap;
}
.live-badge {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    padding: .25rem .7rem;
    border-radius: 20px;
    animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .55; }
}
.live-title  { font-weight: 700; flex: 1; min-width: 150px; }
.live-game   { color: var(--accent); font-size: .85rem; background: var(--bg3); padding: .2rem .6rem; border-radius: 6px; }
.live-viewers{ color: var(--muted); font-size: .85rem; }
.live-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.live-player {
    position: relative;
    flex: 1;
    aspect-ratio: 16 / 9;
}
.live-player iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.live-chat {
    width: 320px;
    min-width: 320px;
    border-left: 1px solid var(--border);
}
.live-chat iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}
@media (max-width: 800px) {
    .live-layout { flex-direction: column; }
    .live-chat {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        height: 380px;
    }
}

/* WIDGET DISCORD */
.discord-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg2);
    border: 1px solid #5865F2;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
}
.discord-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.discord-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.discord-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    margin-right: .2rem;
    vertical-align: middle;
}
.discord-btn {
    background: #5865F2;
    color: #fff;
}
.discord-btn:hover { background: #4752c4; }

/* TABLEAU MEMBRES */
.members-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg2);
    border-radius: var(--radius);
    overflow: hidden;
}
.members-table th,
.members-table td {
    padding: .8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.members-table th {
    background: var(--bg3);
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.members-table tr:last-child td { border-bottom: none; }
.members-table tr:hover td { background: var(--bg3); }

/* RÉSULTATS DE RECHERCHE */
.user-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .2s;
}
.user-result:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }

/* NEWS */
.news-card {
    display: flex;
    gap: 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    color: var(--text);
    text-decoration: none;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.news-thumb {
    width: 180px;
    min-width: 180px;
    height: 110px;
    object-fit: cover;
}
.news-card-info { padding: 1rem; flex: 1; }
.news-card-title { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.news-card-excerpt { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.news-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
}
.news-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 1.2rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.news-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.news-content { font-size: 1rem; line-height: 1.7; color: var(--text); }

@media (max-width: 600px) {
    .news-card { flex-direction: column; }
    .news-thumb { width: 100%; min-width: 0; height: 160px; }
}

/* DERNIÈRES SORTIES */
.releases-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .8rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.releases-scroll::-webkit-scrollbar { height: 5px; }
.releases-scroll::-webkit-scrollbar-track { background: transparent; }
.releases-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.release-card {
    flex-shrink: 0;
    width: 130px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}
.release-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.release-poster {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.release-no-poster {
    height: 180px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.release-info {
    padding: .6rem .7rem;
}
.release-title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* LISTES */
.lists-grid {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.list-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color .2s;
}
.list-card:hover { border-color: var(--accent); }
.hidden { display: none !important; }

/* RESPONSIVE */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    nav { padding: 0 1rem; }
    .nav-brand { font-size: 1rem; }
    .release-card { width: 110px; }
    .release-poster, .release-no-poster { height: 150px; }
}
