/* =========================================================================
   THE GOAT - Liga Ecuatoriana de Dota 2
   Estilos globales | estilo esports gaming
   ========================================================================= */

:root {
    --gold:        #f0b429;
    --gold-bright: #ffd35c;
    --gold-deep:   #b8860b;
    --black:       #0a0a0c;
    --bg:          #0c0d11;
    --bg-2:        #121319;
    --panel:       #16181f;
    --panel-2:     #1c1f29;
    --line:        rgba(240, 180, 41, 0.18);
    --text:        #e9e9ee;
    --muted:       #9aa0ac;
    --ec-blue:     #1e4fd6;
    --ec-red:      #d52b1e;
    --ec-yellow:   #ffd400;
    --win:         #36d399;
    --loss:        #f05a5a;
    --radius:      14px;
    --shadow:      0 18px 50px rgba(0,0,0,.55);
    --glow:        0 0 24px rgba(240,180,41,.35);
    --maxw:        1240px;
    --ease:        cubic-bezier(.2,.7,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(240,180,41,.10), transparent 60%),
        radial-gradient(900px 500px at 0% 0%, rgba(30,79,214,.10), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }

h1,h2,h3,h4 { font-family: 'Teko', sans-serif; font-weight: 600; line-height: 1; letter-spacing: .5px; }

img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Brasas de fondo ---------- */
.embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.embers span {
    position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
    background: var(--gold); opacity: 0; filter: blur(.5px);
    box-shadow: 0 0 8px 2px rgba(240,180,41,.6);
    animation: rise linear infinite;
}
.embers span:nth-child(1){left:5%;animation-duration:11s;animation-delay:0s}
.embers span:nth-child(2){left:14%;animation-duration:14s;animation-delay:2s}
.embers span:nth-child(3){left:23%;animation-duration:9s;animation-delay:1s;width:3px;height:3px}
.embers span:nth-child(4){left:33%;animation-duration:13s;animation-delay:4s}
.embers span:nth-child(5){left:42%;animation-duration:16s;animation-delay:1.5s;width:5px;height:5px}
.embers span:nth-child(6){left:51%;animation-duration:10s;animation-delay:3s}
.embers span:nth-child(7){left:60%;animation-duration:15s;animation-delay:.5s}
.embers span:nth-child(8){left:68%;animation-duration:12s;animation-delay:2.5s;width:3px;height:3px}
.embers span:nth-child(9){left:76%;animation-duration:9s;animation-delay:5s}
.embers span:nth-child(10){left:84%;animation-duration:14s;animation-delay:1s;width:5px;height:5px}
.embers span:nth-child(11){left:90%;animation-duration:11s;animation-delay:3.5s}
.embers span:nth-child(12){left:30%;animation-duration:17s;animation-delay:6s}
.embers span:nth-child(13){left:58%;animation-duration:13s;animation-delay:7s;width:3px;height:3px}
.embers span:nth-child(14){left:46%;animation-duration:10s;animation-delay:4.5s}
.embers span:nth-child(15){left:72%;animation-duration:16s;animation-delay:8s}
@keyframes rise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: .9; }
    90%  { opacity: .7; }
    100% { transform: translateY(-105vh) scale(.4); opacity: 0; }
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,12,.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(8,8,10,.92); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 12px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(240,180,41,.4)); }
.brand-text strong { font-family: 'Teko'; font-size: 1.7rem; line-height: .9; display: block; letter-spacing: 1px;
    background: linear-gradient(180deg,#fff,#cfcfcf); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-text strong { white-space: nowrap; }
.brand-text small { color: var(--gold); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: .96rem;
    color: var(--muted); text-transform: uppercase; letter-spacing: .6px;
    position: relative; transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover { color: #fff; background: rgba(240,180,41,.08); }
.main-nav a.active { color: var(--gold-bright); }
.main-nav a.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.nav-cta {
    margin-left: 8px; padding: 10px 18px !important; border-radius: 9px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #1a1300 !important; font-weight: 700;
    box-shadow: var(--glow); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(240,180,41,.6); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--gold); border-radius: 3px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    padding: 14px 26px; border-radius: 10px; border: 0; font-family: 'Rajdhani';
    font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .8px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #1a1300; box-shadow: var(--glow); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(240,180,41,.5); }
.btn-ghost { background: transparent; color: var(--gold-bright); border: 1.5px solid var(--gold); }
.btn-ghost:hover { background: rgba(240,180,41,.12); transform: translateY(-3px); }

/* ---------- Secciones ---------- */
.section { position: relative; z-index: 1; padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
    display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; font-size: .82rem; margin-bottom: 10px;
    padding: 5px 16px; border: 1px solid var(--line); border-radius: 30px; background: rgba(240,180,41,.05);
}
.section-head h2 {
    font-size: clamp(2.4rem, 5vw, 3.8rem); text-transform: uppercase;
    background: linear-gradient(180deg, #fff 30%, #b9b9c2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-head h2 .hl { -webkit-text-fill-color: var(--gold); }
.section-head p { color: var(--muted); max-width: 620px; margin: 8px auto 0; font-size: 1.08rem; }

/* ---------- HERO (Home) ---------- */
.hero {
    position: relative; z-index: 1; min-height: 92vh; display: flex; align-items: center;
    text-align: center; padding: 90px 0 60px; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,12,.55), rgba(10,10,12,.92) 75%, var(--bg)),
                url('../img/hero-banner.jpg') center/cover no-repeat;
    z-index: -1; transform: scale(1.05); animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }
.hero-content { max-width: 940px; margin: 0 auto; animation: fadeUp 1s var(--ease) both; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    padding: 8px 18px; border-radius: 40px; border: 1px solid var(--line);
    background: rgba(0,0,0,.4); backdrop-filter: blur(6px); color: var(--gold-bright);
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .82rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 10px var(--win); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 {
    font-size: clamp(3.6rem, 11vw, 8.5rem); text-transform: uppercase; line-height: .82;
    letter-spacing: 2px; margin-bottom: 6px;
    background: linear-gradient(180deg, #fff 35%, #c9c9d2 70%, var(--gold-deep));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(240,180,41,.25);
}
.hero h1 .goat { -webkit-text-fill-color: transparent; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; }
.hero-sub {
    font-family: 'Teko'; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: 4px;
    text-transform: uppercase; color: var(--text); margin-bottom: 8px;
}
.hero-tag { color: var(--muted); font-size: 1.15rem; margin-bottom: 34px; }
.hero-tag b { color: var(--gold-bright); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 14px; justify-content: center; margin: 38px 0 0; flex-wrap: wrap; }
.cd-box {
    min-width: 92px; padding: 16px 10px; border-radius: 12px;
    background: rgba(14,15,20,.7); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.cd-box .num { font-family: 'Teko'; font-size: 2.8rem; line-height: 1; color: var(--gold-bright); display: block; }
.cd-box .lbl { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.cd-live { color: var(--win); font-family: 'Teko'; font-size: 2rem; letter-spacing: 3px; }

/* ---------- Stats strip ---------- */
.stats-strip {
    position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { background: var(--bg-2); padding: 28px 16px; text-align: center; }
.stat .big { font-family: 'Teko'; font-size: 2.8rem; color: var(--gold-bright); line-height: 1; }
.stat .cap { color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; font-weight: 600; }

/* ---------- Cards genericas ---------- */
.card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* feature cards (home) */
.feature { text-align: center; }
.feature .ico {
    width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center;
    border-radius: 16px; background: rgba(240,180,41,.1); border: 1px solid var(--line);
    font-size: 1.9rem; color: var(--gold-bright);
}
.feature h3 { font-size: 1.9rem; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* ---------- RANKING / Player cards ---------- */
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.player-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: var(--panel); border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.player-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.6), var(--glow); }
.player-rank-badge {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
    font-family: 'Teko'; font-size: 1.6rem; color: #1a1300;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); box-shadow: var(--glow);
}
.player-level {
    position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
    border: 1px solid var(--line); font-weight: 700; font-size: .82rem; color: var(--gold-bright);
}
.player-level img { width: 18px; height: 18px; }
.player-photo { position: relative; aspect-ratio: 1 / 1.04; overflow: hidden; }
.player-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    filter: grayscale(85%) contrast(1.05) brightness(.85);
    transform: scale(1.02); transition: filter .5s var(--ease), transform .6s var(--ease);
}
.player-card:hover .player-photo img { filter: grayscale(0%) contrast(1.05) brightness(1); transform: scale(1.1); }
.player-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,10,12,.55) 72%, var(--panel) 100%);
}
.player-role {
    position: absolute; bottom: 10px; left: 12px; z-index: 2;
    font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
    color: var(--gold-bright); padding: 3px 10px; border-radius: 20px;
    background: rgba(0,0,0,.55); border: 1px solid var(--line);
}
.player-body { padding: 16px 18px 20px; }
.player-name { font-family: 'Teko'; font-size: 1.85rem; color: #fff; line-height: 1; }
.player-real { color: var(--muted); font-size: .92rem; margin-bottom: 2px; }
.player-city { color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.player-city::before { content: "\1F4CD  "; }

/* bio + heroes (siempre visibles) */
.player-extra { margin-top: 12px; }
.player-bio { color: #c3c7d0; font-size: .9rem; border-top: 1px dashed var(--line); padding-top: 12px; }
.player-heroes { display: flex; gap: 6px; margin-top: 12px; align-items: flex-start; }
.player-heroes .htile {
    position: relative; flex: 1 1 0; min-width: 0; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--line); background: #0a0a0c;
}
.player-heroes .htile::before { content: ""; display: block; padding-top: 100%; } /* fuerza cuadrado perfecto */
.player-heroes .htile img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center;
    display: block; transition: transform .3s var(--ease);
}
.player-heroes .htile:hover img { transform: scale(1.12); }
.player-heroes .htile span {
    position: absolute; inset: auto 0 0 0; z-index: 2; font-size: .56rem; line-height: 1.1; text-align: center; padding: 3px 2px;
    background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.55) 70%, transparent);
    color: var(--gold-bright); text-transform: uppercase; letter-spacing: .4px; font-weight: 600;
}

/* ---------- Emperadores (capitanes) ---------- */
.emperors-section {
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(240,180,41,.10), transparent 70%);
    border-bottom: 1px solid var(--line);
}
.eyebrow-gold { color: #1a1300 !important; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)) !important; border-color: transparent !important; }
.emperor-card { border: 1.5px solid rgba(240,180,41,.55); box-shadow: 0 0 0 1px rgba(240,180,41,.15), 0 16px 40px rgba(0,0,0,.5); }
.emperor-card::before {
    content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255,211,92,.5), inset 0 30px 60px rgba(240,180,41,.10);
}
.emperor-card:hover { border-color: var(--gold-bright); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 34px rgba(240,180,41,.45); }
.emperor-crown {
    position: absolute; top: 10px; left: 12px; z-index: 5; font-size: 1.5rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
    animation: crownFloat 3s ease-in-out infinite;
}
@keyframes crownFloat { 0%,100%{ transform: translateY(0) rotate(-4deg);} 50%{ transform: translateY(-4px) rotate(4deg);} }
.emperor-tag {
    position: absolute; top: 14px; left: 46px; z-index: 5;
    padding: 4px 11px; border-radius: 7px; font-family: 'Teko'; font-size: 1rem; letter-spacing: 2px;
    text-transform: uppercase; color: #1a1300; font-weight: 600;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); box-shadow: var(--glow);
}
.player-title { color: var(--gold-bright); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.player-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pstat { font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); white-space: nowrap; }
.pstat-mmr { color: #1a1300; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); border-color: transparent; }
.pstat-mmr b { font-weight: 800; }
.pstat-rank { color: var(--gold-bright); background: rgba(240,180,41,.08); }
.emperor-note {
    display: flex; align-items: center; gap: 18px; max-width: 640px; margin: 0 auto;
    padding: 22px 26px; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(240,180,41,.12), rgba(20,21,28,.6));
    border: 1px solid rgba(240,180,41,.45);
}
.emperor-note-crown { font-size: 2.4rem; }
.emperor-note strong { font-family: 'Teko'; font-size: 1.7rem; color: var(--gold-bright); text-transform: uppercase; letter-spacing: 1px; }
.emperor-note p { color: var(--muted); margin: 0; }

/* heroe por definir (placeholder) */
.htile-unknown { background: repeating-linear-gradient(45deg, #16181f, #16181f 8px, #1c1f29 8px, #1c1f29 16px); }
.htile-unknown::after {
    content: "?"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
    font-family: 'Teko'; font-size: 1.8rem; font-weight: 600; color: var(--gold);
}

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn {
    padding: 9px 18px; border-radius: 30px; border: 1px solid var(--line); cursor: pointer;
    background: var(--panel); color: var(--muted); font-family: 'Rajdhani'; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; font-size: .88rem; transition: .25s var(--ease);
}
.filter-btn:hover { color: #fff; border-color: var(--gold); }
.filter-btn.active { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #1a1300; border-color: transparent; }

/* ---------- Tabla de posiciones ---------- */
.standings-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table.standings { width: 100%; border-collapse: collapse; min-width: 720px; }
.standings thead th {
    text-align: left; padding: 16px 14px; font-family: 'Teko'; font-weight: 500; font-size: 1.15rem;
    letter-spacing: 1px; text-transform: uppercase; color: var(--gold-bright);
    background: var(--bg-2); border-bottom: 2px solid var(--line); position: sticky; top: 70px;
}
.standings tbody td { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.standings tbody tr { transition: background .2s var(--ease); }
.standings tbody tr:hover { background: rgba(240,180,41,.06); }
.st-rank { font-family: 'Teko'; font-size: 1.5rem; width: 56px; text-align: center; color: var(--muted); }
.st-player { display: flex; align-items: center; gap: 12px; }
.st-player img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
.st-player .nick { font-weight: 700; color: #fff; font-size: 1.05rem; }
.st-player .city { color: var(--muted); font-size: .8rem; }
.st-points { font-family: 'Teko'; font-size: 1.6rem; color: var(--gold-bright); }
.st-wl b { color: var(--win); } .st-wl s { color: var(--loss); text-decoration: none; }
.streak { font-weight: 700; padding: 3px 10px; border-radius: 6px; font-size: .85rem; }
.streak.w { color: var(--win); background: rgba(54,211,153,.12); }
.streak.l { color: var(--loss); background: rgba(240,90,90,.12); }
.streak.neutral { color: var(--muted); background: rgba(255,255,255,.05); }
.row-top .st-rank { color: var(--gold-bright); }
.row-top { background: linear-gradient(90deg, rgba(240,180,41,.10), transparent 60%); }
.medal { font-size: 1.3rem; }

/* ---------- Reglas ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rule-card { display: flex; gap: 18px; align-items: flex-start; }
.rule-num {
    flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px;
    font-family: 'Teko'; font-size: 2rem; color: #1a1300;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); box-shadow: var(--glow);
}
.rule-card .ico { font-size: 1.5rem; color: var(--gold-bright); margin-bottom: 4px; }
.rule-card h3 { font-size: 1.55rem; text-transform: uppercase; color: #fff; }
.rule-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Streams ---------- */
.stream-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.stream-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.stream-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.stream-player iframe { width: 100%; height: 100%; border: 0; }
.stream-meta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--panel); border-top: 1px solid var(--line); }
.stream-meta img { width: 50px; height: 50px; border-radius: 10px; border: 2px solid var(--gold); }
.stream-meta .nm { font-family: 'Teko'; font-size: 1.6rem; color: #fff; line-height: 1; }
.stream-meta .tt { color: var(--muted); font-size: .9rem; }
.live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 30px; background: var(--ec-red); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }

.stream-chat { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 620px; background: #18181b; }
.stream-chat iframe { width: 100%; height: 100%; border: 0; }

.stream-list { display: grid; gap: 12px; margin-top: 26px; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.stream-item {
    display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--line); transition: .25s var(--ease);
}
.stream-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.stream-item.active { border-color: var(--gold); background: rgba(240,180,41,.08); box-shadow: var(--glow); }
.stream-item img { width: 46px; height: 46px; border-radius: 9px; border: 1px solid var(--line); }
.stream-item .nm { font-weight: 700; color: #fff; line-height: 1.1; }
.stream-item .lb { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 700; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.blog-featured { grid-column: 1 / -1; flex-direction: row; }
.blog-featured .blog-thumb { flex: 0 0 48%; }
.blog-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.blog-featured .blog-thumb { aspect-ratio: auto; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.post-cat {
    position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #1a1300;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); box-shadow: var(--glow);
}
.blog-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.blog-featured .blog-body { justify-content: center; }
.blog-date { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.blog-body h3 { font-size: 1.9rem; line-height: 1; color: #fff; text-transform: uppercase; }
.blog-featured .blog-body h3 { font-size: 2.6rem; }
.blog-body h3 a:hover { color: var(--gold-bright); }
.blog-body p { color: var(--muted); font-size: .98rem; }
.blog-more { color: var(--gold-bright); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; margin-top: 4px; }
.blog-more:hover { color: #fff; }

/* Post individual */
.post-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 22px; box-shadow: var(--shadow); }
.post-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.post-meta .post-cat { position: static; }
.post-title { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; color: #fff; line-height: .95; margin-bottom: 24px; }
.post-content p { color: #c8ccd6; font-size: 1.12rem; line-height: 1.75; margin-bottom: 18px; }
.post-content p:first-letter { }

/* ---------- Banda CTA ---------- */
.cta-band {
    position: relative; z-index: 1; text-align: center; padding: 70px 22px; margin-top: 10px;
    background: linear-gradient(135deg, rgba(240,180,41,.12), rgba(30,79,214,.08));
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(2.2rem,5vw,3.4rem); text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }

/* ---------- Poster / sponsor blocks ---------- */
.poster-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.poster-row img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.poster-text h2 { font-size: clamp(2rem,4vw,3rem); text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.poster-text h2 .hl { color: var(--gold-bright); }
.poster-text p { color: var(--muted); margin-bottom: 14px; font-size: 1.05rem; }
.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.check-list li::before { content: "\2714"; color: var(--gold-bright); font-weight: 700; }

/* ---------- Sponsors ---------- */
.sponsor-spot {
    position: relative; aspect-ratio: 4/3; border-radius: var(--radius);
    border: 2px dashed rgba(240,180,41,.5);
    background: radial-gradient(600px 300px at 50% 30%, rgba(240,180,41,.10), transparent 70%), var(--panel);
    display: grid; place-items: center; overflow: hidden;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.sponsor-spot:hover { border-color: var(--gold-bright); box-shadow: var(--glow); }
.sponsor-spot-label {
    position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #1a1300;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}
.sponsor-spot-inner { text-align: center; color: var(--muted); }
.sponsor-q { display: block; font-family: 'Teko'; font-size: 6rem; line-height: .8; color: var(--gold); opacity: .65; }
.sponsor-spot-inner p { text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--black); border-top: 1px solid var(--line); margin-top: 20px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 54px 22px 28px; display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-logo { width: 76px; height: 76px; object-fit: contain; }
.footer-brand strong { font-family: 'Teko'; font-size: 1.5rem; color: #fff; letter-spacing: 1px; display: block; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-col h4 { color: var(--gold-bright); text-transform: uppercase; letter-spacing: 1.5px; font-size: 1.25rem; margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 7px; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); text-align: center; padding: 18px; color: var(--muted); font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .stream-layout { grid-template-columns: 1fr; }
    .stream-chat { height: 420px; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
        background: rgba(8,8,10,.98); padding: 16px 18px 24px; border-bottom: 1px solid var(--line);
        transform: translateY(-130%); transition: transform .35s var(--ease); backdrop-filter: blur(14px);
    }
    .main-nav.open { transform: none; }
    .main-nav a { padding: 13px 14px; }
    .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
    .grid-3, .grid-2, .rules-grid, .poster-row, .blog-grid { grid-template-columns: 1fr; }
    .blog-featured { flex-direction: column; }
    .blog-featured .blog-thumb { flex: none; aspect-ratio: 16/9; }
    .blog-featured .blog-body h3 { font-size: 1.9rem; }
    .stats-strip { grid-template-columns: repeat(2,1fr); }
    .standings thead th { top: 0; }
}
@media (max-width: 480px) {
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .hero h1 { letter-spacing: 0; }
    .countdown { gap: 8px; }
    .cd-box { min-width: 70px; }
}
