/* ==========================================================================
   esport.css — E-sport
   Thème : compétitif, dark purple Twitch-like, néon vert, agressif
   ========================================================================== */

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

body {
    font-family: 'Rajdhani', 'Oswald', 'Inter', system-ui, sans-serif;
    line-height: 1.65;
    color: #e8e6f5;
    background: #0e0a1f;
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(108, 30, 209, .35) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(0, 255, 136, .12) 0%, transparent 55%),
        linear-gradient(180deg, #0e0a1f 0%, #18122B 100%);
    min-height: 100vh;
}

.es-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 22px 60px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: #00ff88;
    text-decoration: none;
    font-size: 0.92em;
    border-bottom: 1px solid rgba(0, 255, 136, .4);
    padding: 2px 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}
.back-link:hover { color: #fff; border-color: #fff; }

/* HERO ====================================================================== */
.es-hero {
    background:
        linear-gradient(135deg, rgba(24, 18, 43, .92), rgba(108, 30, 209, .55) 60%, rgba(0, 255, 136, .35) 100%),
        repeating-linear-gradient(135deg, transparent 0 30px, rgba(255,255,255,.03) 30px 31px);
    padding: 70px 40px;
    border: 2px solid rgba(0, 255, 136, .3);
    border-radius: 8px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(108, 30, 209, .35),
                0 0 60px rgba(0, 255, 136, .08) inset;
}

.es-hero::before {
    /* Bandeau LIVE rouge style stream */
    content: '● LIVE';
    position: absolute;
    top: 22px; right: 28px;
    background: #ff0040;
    color: #fff;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 2px;
    border-radius: 3px;
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 64, .5); }
    50%      { opacity: 0.85; box-shadow: 0 0 0 10px rgba(255, 0, 64, 0); }
}

.es-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 255, 136, .4);
}

.es-hero h1 .glitch {
    color: #00ff88;
    text-shadow: 2px 0 #ff0040, -2px 0 #00d9ff;
}

.es-hero .tagline {
    font-size: 1.2em;
    color: rgba(255, 255, 255, .85);
    max-width: 720px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* SECTIONS ================================================================== */
.section {
    background: rgba(24, 18, 43, .65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(108, 30, 209, .35);
    border-left: 4px solid #00ff88;
    border-radius: 6px;
    padding: 30px 36px;
    margin-bottom: 26px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.85em;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}
.section h2::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, transparent);
}

.section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25em;
    color: #00ff88;
    margin: 18px 0 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.section p { margin-bottom: 12px; color: #c8c4dc; }
.section ul, .section ol { margin: 10px 0 14px 26px; }
.section li { margin-bottom: 6px; color: #c8c4dc; }
.section strong { color: #fff; }
.section em { color: #00ff88; font-style: normal; }

/* GAMES GRID ================================================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.game-pill {
    background: rgba(108, 30, 209, .15);
    border: 1px solid rgba(108, 30, 209, .4);
    padding: 16px 18px;
    border-radius: 6px;
    transition: all 0.2s;
    border-left: 3px solid #00ff88;
}
.game-pill:hover {
    background: rgba(108, 30, 209, .3);
    transform: translateX(3px);
}
.game-pill h4 {
    color: #fff;
    font-size: 1.05em;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.game-pill .meta {
    color: #00ff88;
    font-size: 0.82em;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}
.game-pill p {
    font-size: 0.88em;
    color: #a8a4bc;
    margin: 0;
}

/* BRACKET =================================================================== */
.bracket-wrap {
    margin: 22px 0;
    overflow-x: auto;
}

.bracket {
    display: flex;
    gap: 30px;
    min-width: 720px;
    padding: 14px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 10px;
}

.bracket-round-title {
    text-align: center;
    color: #00ff88;
    font-size: 0.85em;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 700;
}

.match {
    background: rgba(20, 14, 35, .8);
    border: 1px solid rgba(108, 30, 209, .4);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}

.team {
    padding: 9px 12px;
    cursor: pointer;
    color: #c8c4dc;
    border-bottom: 1px solid rgba(108, 30, 209, .25);
    transition: all 0.18s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.93em;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.team:last-child { border-bottom: none; }
.team:hover {
    background: rgba(108, 30, 209, .25);
    color: #fff;
}
.team.winner {
    background: linear-gradient(90deg, rgba(0, 255, 136, .2), rgba(0, 255, 136, .05));
    color: #00ff88;
    border-left: 3px solid #00ff88;
}
.team.loser {
    color: #6a6480;
    text-decoration: line-through;
    background: rgba(0, 0, 0, .25);
}
.team.empty {
    color: #555066;
    font-style: italic;
    cursor: default;
}
.team .seed {
    color: #6a6480;
    font-size: 0.78em;
    margin-right: 8px;
}

#bracket-msg {
    text-align: center;
    color: #00ff88;
    font-size: 1.1em;
    margin-top: 14px;
    min-height: 1.4em;
    letter-spacing: 1px;
    font-weight: 600;
}

#bracket-reset {
    display: block;
    margin: 14px auto 0;
    background: transparent;
    color: #00ff88;
    border: 1px solid #00ff88;
    padding: 8px 22px;
    font-family: inherit;
    font-size: 0.95em;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
#bracket-reset:hover { background: #00ff88; color: #18122B; }

/* PLAYERS LIST ============================================================== */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.player-card {
    background: rgba(0, 0, 0, .25);
    border-left: 3px solid #00ff88;
    padding: 12px 16px;
    border-radius: 4px;
}
.player-card .nick {
    font-weight: 700;
    color: #fff;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}
.player-card .real {
    color: #a8a4bc;
    font-size: 0.85em;
    margin-bottom: 4px;
}
.player-card .game {
    color: #00ff88;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TABLE ===================================================================== */
.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.93em;
    background: rgba(0, 0, 0, .3);
    border-radius: 4px;
    overflow: hidden;
}
.section th {
    background: rgba(108, 30, 209, .4);
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
}
.section td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(108, 30, 209, .2);
}
.section tr:last-child td { border-bottom: none; }
.section tr:hover td { background: rgba(108, 30, 209, .1); }

/* STATS ROW ================================================================ */
.es-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.es-stat {
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(0, 255, 136, .3);
    padding: 18px 14px;
    border-radius: 4px;
    text-align: center;
}
.es-stat .v {
    font-family: 'Oswald', sans-serif;
    font-size: 2em;
    color: #00ff88;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;
}
.es-stat .l {
    color: #a8a4bc;
    font-size: 0.82em;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* RESPONSIVE =============================================================== */
@media (max-width: 700px) {
    .es-hero h1 { font-size: 2.3em; letter-spacing: 2px; }
    .es-hero { padding: 44px 24px; }
    .section { padding: 22px 22px; }
    .section h2 { font-size: 1.4em; letter-spacing: 1.5px; }
}
