/* ============================================================
   NA MOSCA — dashboard
   Tema claro com masthead escuro. Topo fixo + conteúdo | rail.
   Sem emojis: a iconografia é o sprite SVG inline do index.html.

   TIPOGRAFIA
   Barlow Condensed (títulos, marcadores, navegação) + Inter (texto e números).
   Ambas SIL Open Font License. Servidas localmente a partir de /fonts — não
   dependem de CDN externo, por isso o site funciona isolado e não expõe os
   visitantes a pedidos a terceiros.
   ============================================================ */
@font-face {
    font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600;
    src: url('fonts/barlow-600.woff2') format('woff2'); font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700;
    src: url('fonts/barlow-700.woff2') format('woff2'); font-display: swap;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400;
    src: url('fonts/inter-400.woff2') format('woff2'); font-display: swap;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 600;
    src: url('fonts/inter-600.woff2') format('woff2'); font-display: swap;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 700;
    src: url('fonts/inter-700.woff2') format('woff2'); font-display: swap;
}

:root {
    /* famílias */
    --font-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    color-scheme: light;

    /* superfícies */
    --plane:      #f4f5f7;   /* fundo da página */
    --surface:    #ffffff;   /* cartões */
    --surface-2:  #f0f2f5;   /* hover / cartões alternados */
    --surface-3:  #e6e9ee;   /* inputs, chips */

    /* texto */
    --ink:        #111418;
    --ink-2:      #4a5260;
    --muted:      #7a8496;

    /* linhas */
    --border:     rgba(17,20,24,.10);
    --border-2:   rgba(17,20,24,.16);

    /* marca / semântica — escurecidas para contrastar sobre branco */
    --accent:     #6aa80f;   /* verde-lima da marca (escurecido p/ contraste) */
    --accent-2:   #558a09;
    --lime:       #a6e22e;   /* o verde do logótipo, para fundos escuros */
    --red:        #d92b3e;
    --blue:       #1d63d8;
    --green:      #12833f;
    --gold:       #a16a00;
    --bad:        #c22a2a;

    --radius:     14px;
    --radius-sm:  10px;
    --shadow:     0 1px 2px rgba(17,20,24,.06), 0 10px 30px rgba(17,20,24,.10);

    --sidebar-w:  228px;
    --rail-w:     320px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--plane);
    color: var(--ink);
    font: 400 14px/1.5 var(--font-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    margin: 0; font-family: var(--font-display);
    font-weight: 700; letter-spacing: .005em; line-height: 1.15;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code {
    background: var(--surface-3); padding: 1px 6px; border-radius: 6px;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em;
}
.muted { color: var(--muted); }
.hint  { color: var(--ink-2); font-size: 12.5px; margin: 0 0 12px; }

/* o sprite de ícones não ocupa espaço */
.sprite { display: none; }

/* ícones: herdam a cor do texto */
svg:not(.sprite) {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
/* ícones cheios (play, pause, raio, estrela) */
[href="#i-play"], [href="#i-pause"], [href="#i-bolt"], [href="#i-star"], [href="#i-thumb"] { fill: currentColor; stroke: none; }
h3 svg.ic { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; color: var(--accent-2); }

/* ============================ MASTHEAD (barra de topo) ============================ */
.masthead {
    position: sticky; top: 0; z-index: 40;
    background: #0d1117;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.mast-inner {
    max-width: 1400px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; gap: 26px;
    padding: 0 22px; height: 58px;
}
.mast-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* o masthead mantem-se escuro: o texto dentro dele inverte */
.masthead .brand-text strong { color: #fff; }
.masthead .brand-text .sub { color: rgba(255,255,255,.55); }
.masthead .tab { color: rgba(255,255,255,.62); }
.masthead .tab:hover, .masthead .tab.active { color: #fff; }
.masthead .season-bar { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }
.masthead .live-badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.masthead .live-badge.on { background: rgba(34,197,94,.16); border-color: rgba(34,197,94,.4); color: #4ade80; }

/* ============================ SHELL ============================ */
.shell {
    max-width: 1400px; margin: 0 auto; width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail-w);
    gap: 22px;
    padding: 22px;
    align-items: start;
}

.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo {
    height: 30px; width: auto; display: block;
}
.brand .sub {
    font-size: 10px; letter-spacing: .04em;
    color: rgba(255,255,255,.45);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 190px;
}
.brand .logo {
    width: 38px; height: 38px; flex: none;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--accent), #7c3aed);
    border-radius: 11px;
    font-family: var(--font-display);
    font-weight: 700; font-size: 17px; letter-spacing: .04em; color: #fff;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; }
.brand-text .tag {
    font-size: 10px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--accent-2);
}
.brand-text .sub {
    font-size: 11.5px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* navegação horizontal, sublinhado no ativo (como a FIFA) */
.tabs { display: flex; gap: 2px; height: 100%; }
.tab {
    position: relative;
    display: flex; align-items: center;
    padding: 0 15px; height: 100%;
    background: none; border: 0;
    color: var(--ink-2); font-family: var(--font-display);
    font-size: 15px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    transition: color .15s;
}
.tab::after {
    content: ''; position: absolute; left: 15px; right: 15px; bottom: 0;
    height: 3px; background: transparent; transition: background .15s;
}
/* separador Admin: escondido por CSS (nao so por [hidden], que uma cache
   antiga do JS podia desfazer). So aparece com data-admin="on" no <html>. */
#tabAdmin { display: none; }
html[data-admin="on"] #tabAdmin { display: flex; }

.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); }
.tab.active::after { background: var(--lime); }

.join-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--lime); color: #16210a;
    font-weight: 700; font-size: 12.5px; text-decoration: none;
    letter-spacing: .02em;
}
.join-btn:hover { filter: brightness(.9); }
.join-btn svg { width: 15px; height: 15px; }

/* ============================ STORY BAR ============================ */
.stories { position: relative; padding: 2px 0 6px; }
.stories-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }
.story {
    flex: none; width: 74px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: none; border: 0; color: var(--ink-2);
}
.story-ring {
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--accent), #7c3aed);
    padding: 2px; transition: transform .15s;
}
.story.red  .story-ring { background: linear-gradient(140deg, #ef4a5a, #b91c2c); }
.story.blue .story-ring { background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.story:hover .story-ring { transform: scale(1.06); }
.story-face {
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--surface); display: grid; place-items: center;
    border: 2px solid var(--surface);
}
.story-face { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .01em; }
.story-name {
    font-size: 11px; font-weight: 600; color: var(--ink);
    max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.story-meta { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stories-nav {
    position: absolute; top: 20px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--border-2);
    color: var(--ink); display: grid; place-items: center;
}
.stories-nav.prev { left: -8px; }
.stories-nav.next { right: -8px; }
.stories-nav:hover { background: var(--surface-3); }
.stories-nav svg { width: 15px; height: 15px; }

/* ============================ MARCADOR (scoreboard) ============================ */
/* Fundo gerado em CSS (sem imagens externas): gradiente escuro + halo de luz,
   a evocar um estádio à noite. */
.board {
    position: relative; overflow: hidden;
    border-radius: var(--radius);
    padding: 20px 24px 18px;
    background:
        radial-gradient(120% 90% at 50% -20%, rgba(166,226,46,.20), transparent 60%),
        radial-gradient(60% 80% at 12% 110%, rgba(217,43,62,.18), transparent 70%),
        radial-gradient(60% 80% at 88% 110%, rgba(29,99,216,.20), transparent 70%),
        linear-gradient(160deg, #1b2340 0%, #131a2e 55%, #0e1424 100%);
    color: #fff;
    box-shadow: var(--shadow);
}
/* linhas de campo esbatidas no fundo */
.board::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.07) 50%, transparent calc(50% + 1px)),
        radial-gradient(circle at 50% 50%, transparent 68px, rgba(255,255,255,.06) 69px, rgba(255,255,255,.06) 70px, transparent 71px);
}
.board > * { position: relative; z-index: 1; }

.board-head {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 14px;
}
.board-league {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(255,255,255,.62);
}
.board-fmt {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    background: rgba(255,255,255,.12); color: #fff;
    padding: 3px 9px; border-radius: 999px;
}

.board-main {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 18px;
}
.bt { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bt-red { justify-content: flex-end; }
.bt-blue { justify-content: flex-start; }
.bt-crest {
    width: 60px; height: 60px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700; color: #fff;
    border: 3px solid rgba(255,255,255,.9);
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.bt-crest.red  { background: linear-gradient(140deg, #e8404f, #a3182a); }
.bt-crest.blue { background: linear-gradient(140deg, #3b7fe0, #12409c); }
.bt-name {
    font-family: var(--font-display);
    font-size: 21px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.bt-center { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bt-score {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 52px; font-weight: 700; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bt-score i { font-style: normal; color: rgba(255,255,255,.4); }
.bt-clock {
    font-size: 11px; font-weight: 700;
    background: #e11d48; color: #fff;
    padding: 3px 10px; border-radius: 999px;
}
.bt-clock[hidden] { display: none; }
.bt-state { font-size: 11.5px; color: rgba(255,255,255,.6); }
.bt-state.on { color: #4ade80; font-weight: 600; }

.board-goals {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 14px; margin-top: 16px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
    font-size: 12.5px;
}
.board-goals[hidden] { display: none; }
.bg-side { display: flex; flex-direction: column; gap: 3px; color: rgba(255,255,255,.82); }
.bg-side.red { text-align: right; }
.bg-ball { display: grid; place-items: center; color: rgba(255,255,255,.35); }
.bg-ball svg { width: 15px; height: 15px; }

/* ============================ COMPARATIVO ============================ */
.cmp { display: flex; flex-direction: column; gap: 9px; }
.cmp-row {
    display: grid; grid-template-columns: 44px 1fr 190px 1fr 44px;
    align-items: center; gap: 10px;
}
.cmp-label {
    text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.cmp-v {
    font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums;
    color: var(--muted);
}
.cmp-v.red { text-align: right; }
.cmp-v.blue { text-align: left; }
.cmp-v.lead { color: var(--ink); font-weight: 750; }
.cmp-bar {
    height: 8px; border-radius: 999px; background: var(--surface-3);
    display: flex; overflow: hidden;
}
.cmp-bar.red { justify-content: flex-end; }
.cmp-bar i { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.cmp-bar.red i  { background: linear-gradient(90deg, #f08a95, var(--red)); }
.cmp-bar.blue i { background: linear-gradient(90deg, var(--blue), #8ab4f5); }

/* ============================ ALINHAMENTOS ============================ */
.lineup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lineup-col h4 {
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--border);
}
.lineup-col.red h4  { color: var(--red); border-color: var(--red); }
.lineup-col.blue h4 { color: var(--blue); border-color: var(--blue); }
.lineup-col li {
    padding: 7px 9px; border-radius: 7px; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; gap: 7px;
}
.lineup-col li:hover { background: var(--surface-2); }
.lineup-bench { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ============================ HERO ============================ */
.hero {
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    background: linear-gradient(120deg, #ffffff 0%, #eef1f6 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
/* sem jogadores na sala não há painel lateral a mostrar */
.hero.solo { grid-template-columns: 1fr; }
.hero-main { padding: 24px 28px; display: flex; flex-direction: column; }
.hero-kicker {
    font-size: 11px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px;
}
.hero-title {
    font-size: 34px; line-height: 1.05; font-weight: 700;
    letter-spacing: -.02em; margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.hero-sub { color: var(--ink-2); font-size: 13.5px; max-width: 46ch; margin: 0 0 18px; }

.hero-score { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.hs-team { display: flex; align-items: center; gap: 9px; }
.hs-badge {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
}
.hs-badge.red  { background: linear-gradient(140deg, #ef4a5a, #b91c2c); }
.hs-badge.blue { background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.hs-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.hs-nums {
    display: flex; align-items: center; gap: 8px; position: relative;
    font-size: 34px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.hs-nums i { color: var(--muted); font-style: normal; }
.hs-fmt {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    color: var(--accent-2); background: rgba(47,107,255,.14);
    padding: 2px 9px; border-radius: 999px;
}
.hero-state { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.hero-state.on { color: var(--green); font-weight: 600; }

.hero-side {
    background: rgba(17,20,24,.025);
    border-left: 1px solid var(--border);
    padding: 22px 20px; display: flex; flex-direction: column; gap: 8px;
}
.side-label {
    font-size: 10px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.side-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side-col h4 {
    font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid var(--border);
}
.side-col h4.red { color: var(--red); }
.side-col h4.blue { color: var(--blue); }
.side-col li, .side-spec li {
    padding: 4px 6px; border-radius: 6px; font-size: 12.5px;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.side-col li:hover, .side-spec li:hover { background: var(--surface-2); }
.side-spec { display: flex; flex-wrap: wrap; gap: 4px; }
.side-spec li { font-size: 12px; color: var(--ink-2); }

/* ============================ TIRA DE DESTAQUES ============================ */
.strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.strip-cell {
    padding: 15px 18px;
    display: flex; flex-direction: column; gap: 3px;
    border-right: 1px solid var(--border);
}
.strip-cell:last-child { border-right: 0; }
.sc-label {
    font-family: var(--font-display);
    font-size: 12px; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted);
}
.sc-value {
    font-family: var(--font-display);
    font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-meta { font-size: 11.5px; color: var(--ink-2); }
.alfa-note {
    margin: 0; padding: 0 4px;
    color: var(--muted); font-size: 11px; line-height: 1.5;
}
.alfa-note b { color: var(--ink-2); }
.alfa-note svg { width: 15px; height: 15px; color: var(--gold); margin-top: 1px; }
.alfa-note b { color: var(--gold); }

/* ============================ CONTEÚDO ============================ */
.content { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 18px;
}
.topbar h1 { font-size: 21px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.live-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--muted); font-size: 12px; font-weight: 600;
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.live-badge.on { color: var(--green); border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.09); }
.live-badge.on .dot { background: var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.season-bar {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 11.5px; color: var(--ink-2); white-space: nowrap;
}
.season-bar .pill {
    background: var(--accent); color: #fff; padding: 2px 9px;
    border-radius: 999px; font-size: 11px; font-weight: 600;
}

/* vistas */
.view { display: none; flex-direction: column; gap: 14px; }
.view.active { display: flex; }

/* cartões */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
}
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.card-head h3 { font-size: 14.5px; display: flex; align-items: center; }

/* marcador */
.scoreboard {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    background: linear-gradient(135deg, #ffffff, #eef1f6 60%);
    border-color: var(--border-2);
    padding: 22px 18px;
}
.score-team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.team-label {
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    padding: 3px 12px; border-radius: 999px;
}
.score-team.red  .team-label { color: var(--red);  background: rgba(239,74,90,.13); }
.score-team.blue .team-label { color: var(--blue); background: rgba(59,130,246,.13); }
.score { font-size: 46px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.score-team.red  .score { color: var(--red); }
.score-team.blue .score { color: var(--blue); }
.score-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 22px; }
.score-mid .fmt {
    font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent-2);
    background: rgba(47,107,255,.12); padding: 3px 11px; border-radius: 999px;
}
.score-mid .vs { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.score-mid .state { font-size: 11.5px; color: var(--muted); }

/* tiles de estatística */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 13px 15px;
    display: flex; flex-direction: column; gap: 3px;
}
.tile .k { font-size: 11px; color: var(--muted); font-weight: 500; }
.tile .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* jogadores por equipa */
.teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-col h4 {
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--border);
}
.team-col h4.red  { color: var(--red); }
.team-col h4.blue { color: var(--blue); }
.team-col h4.spec { color: var(--muted); }
.team-col li {
    padding: 7px 9px; border-radius: 8px; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; gap: 7px;
    transition: background .12s;
}
.team-col li:hover { background: var(--surface-2); }
.team-col li.muted { cursor: default; }
.team-col li.muted:hover { background: none; }
.adm {
    font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
    color: var(--gold); background: rgba(240,180,41,.14);
    padding: 1px 5px; border-radius: 4px;
}

/* ============================ PÓDIO (ranking) ============================ */
.champions { position: relative; padding: 26px 0 8px; }
/* palavra gigante em marca-d'água por trás do pódio */
.champions-bg {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(52px, 9vw, 108px); font-weight: 700; letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--ink); opacity: .05; white-space: nowrap; pointer-events: none;
    user-select: none; line-height: 1;
}
.podium {
    position: relative;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; align-items: end;
    max-width: 900px; margin: 0 auto;
}
.pod {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.pod:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* o 1º fica mais alto e destacado */
.pod-1 { order: 2; }
.pod-2 { order: 1; }
.pod-3 { order: 3; }
.pod-1 .pod-top { height: 96px; }
.pod-1 { border-color: rgba(161,106,0,.35); }

.pod-top {
    position: relative; height: 76px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #cfe3ff, #e9d9ff 55%, #ffe6cc);
}
.pod-2 .pod-top { background: linear-gradient(135deg, #dfe6ef, #f2f5f9 60%, #cfd8e3); }
.pod-3 .pod-top { background: linear-gradient(135deg, #f3d9c0, #fbeadb 60%, #e8c3a0); }
.pod-pos {
    position: absolute; right: 14px; top: 8px;
    font-size: 30px; font-weight: 800; color: rgba(17,20,24,.28); line-height: 1;
}
.pod-pos i { font-size: 15px; font-style: normal; vertical-align: super; }
.pod-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); border: 3px solid var(--surface);
    box-shadow: 0 3px 10px rgba(17,20,24,.18);
    font-size: 20px; font-weight: 800; color: var(--ink);
    transform: translateY(16px);
}
.pod-body { padding: 24px 16px 16px; text-align: center; }
.pod-name {
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pod-tag { font-size: 11.5px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.pod-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 6px; margin: 14px 0 12px;
}
.pod-stats span { display: flex; flex-direction: column; }
.pod-stats b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pod-stats i { font-size: 10px; font-style: normal; color: var(--muted); }
.pod-btn {
    width: 100%; padding: 8px; border-radius: 9px;
    background: var(--surface); border: 1px solid var(--border-2);
    color: var(--ink); font-size: 12.5px; font-weight: 600;
}
.pod-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- líderes por categoria (homepage) ---- */
.strip.leaders .strip-cell.ld {
    flex-direction: row; align-items: center; gap: 11px;
    transition: background .12s;
}
.strip.leaders .ld:hover { background: var(--surface-2); }
.strip.leaders .ld.vazio { opacity: .5; }
.ld-avatar {
    width: 38px; height: 38px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-3); color: var(--ink-2);
    font-family: var(--font-display);
    font-size: 15px; font-weight: 700;
}
.strip.leaders .ld:first-child .ld-avatar {
    background: linear-gradient(140deg, var(--accent), #4d7c0f); color: #fff;
}
.ld-text { display: flex; flex-direction: column; min-width: 0; }
.ld-name {
    font-size: 13.5px; font-weight: 650;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ld-value {
    margin-left: auto; font-family: var(--font-display);
    font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* destaques do ranking (reaproveita .strip) */
.strip.highlights .strip-cell.hl {
    flex-direction: row; align-items: center; gap: 11px; cursor: pointer;
}
.strip.highlights .hl:hover { background: var(--surface-2); }
.hl-avatar {
    width: 36px; height: 36px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-3); font-size: 13px; font-weight: 800; color: var(--ink-2);
}
.hl-text { display: flex; flex-direction: column; min-width: 0; }
.hl-name {
    font-size: 13.5px; font-weight: 650;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hl-value {
    margin-left: auto; font-size: 19px; font-weight: 750;
    font-variant-numeric: tabular-nums;
}

/* ============================ TABELAS ============================ */
.table-wrap { overflow-x: auto; }
table.lb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.lb th {
    text-align: left; padding: 9px 10px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.lb td { padding: 10px; border-bottom: 1px solid var(--border); }
table.lb tbody tr { cursor: pointer; transition: background .12s; }
table.lb tbody tr:hover { background: var(--surface-2); }
table.lb tbody tr:last-child td { border-bottom: 0; }
table.lb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rankpos {
    font-weight: 700; color: var(--muted); width: 34px;
    font-variant-numeric: tabular-nums;
}
.rankpos.top1 { color: var(--gold); }
.rankpos.top2 { color: #7b8698; }
.rankpos.top3 { color: #b06b2c; }

/* top 3: linha destacada com barra lateral, como na referência.
   Usa classe no <tr> (não :has()) para funcionar em browsers mais antigos. */
table.lb tbody tr.top1,
table.lb tbody tr.top2,
table.lb tbody tr.top3 { background: var(--surface-2); }
table.lb tbody tr.top1 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
table.lb tbody tr.top2 td:first-child { box-shadow: inset 3px 0 0 #7b8698; }
table.lb tbody tr.top3 td:first-child { box-shadow: inset 3px 0 0 #b06b2c; }

.verified {
    display: inline-grid; place-items: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--green); color: #04240f;
    font-size: 9.5px; font-weight: 800; vertical-align: 1px;
}
.streak-fire {
    color: var(--gold); font-weight: 700;
    background: rgba(240,180,41,.13); padding: 1px 7px; border-radius: 999px;
}

/* badges de nota */
.rt { font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.rt-great { color: var(--green); background: rgba(34,197,94,.13); }
.rt-good  { color: #7dd3fc;     background: rgba(125,211,252,.12); }
.rt-mid   { color: var(--gold); background: rgba(240,180,41,.13); }
.rt-bad   { color: var(--bad);  background: rgba(239,68,68,.13); }

/* segmentos (ordenação) */
.seg { display: flex; gap: 3px; background: var(--surface-2); padding: 3px; border-radius: 9px; }
.seg button {
    border: 0; background: none; color: var(--ink-2);
    padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500;
    transition: background .14s, color .14s;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--accent); color: #fff; font-weight: 600; }

/* ============================ PARTIDAS ============================ */
/* Linha ao estilo dos sites de resultados: equipas em espelho à volta do
   marcador, hora à esquerda e indicadores à direita. */
.matches { display: flex; flex-direction: column; }
.match-row {
    display: grid;
    grid-template-columns: 64px 52px minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center; gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    transition: background .12s;
}
.match-row:hover { background: var(--surface-2); }
.match-row:last-child { border-bottom: 0; }

.mr-time { display: flex; flex-direction: column; line-height: 1.25; }
.mr-time b { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mr-time i { font-size: 11px; font-style: normal; color: var(--muted); }

.mr-fmt {
    font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-2); background: rgba(47,107,255,.12);
    padding: 3px 8px; border-radius: 999px; text-align: center;
}

.mr-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mr-team.home { justify-content: flex-end; }
.mr-team.away { justify-content: flex-start; }
.mr-name {
    font-weight: 550; color: var(--ink-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-team.win .mr-name { color: var(--ink); font-weight: 700; }
.mr-crest {
    width: 28px; height: 28px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800; color: #fff;
}
.mr-crest.red  { background: linear-gradient(140deg, #ef4a5a, #b91c2c); }
.mr-crest.blue { background: linear-gradient(140deg, #3b82f6, #1d4ed8); }

.mr-score {
    font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums;
    padding: 4px 12px; border-radius: 8px;
    background: var(--surface-3); white-space: nowrap;
}
.mr-score.draw { color: var(--ink-2); }

.mr-meta { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.mr-chip {
    font-size: 11px; padding: 3px 9px; border-radius: 999px;
    background: var(--surface-3); color: var(--ink-2);
    white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mr-chip.shot { color: var(--gold); background: rgba(240,180,41,.12); }
.mr-chip.mvp  { color: var(--green); background: rgba(34,197,94,.12); }

/* marcadores por baixo, alinhados com cada lado */
.mr-scorers {
    grid-column: 3 / 6; display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: -4px;
}
.mr-scorers .side.red  { text-align: right; }
.mr-scorers .side.blue { grid-column: 3; text-align: left; }

.matches .win-red { color: var(--red); font-weight: 650; }

/* ============================ REPLAYS ============================ */
.replay-stage { display: flex; flex-direction: column; gap: 10px; }

.replay-screen {
    position: relative; width: 100%;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-2); background: #256b43;
    box-shadow: var(--shadow);
}
#replayCanvas { display: block; width: 100%; height: auto; }

/* etiqueta do golo sobre o campo */
.replay-overlay {
    position: absolute; left: 0; top: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    background: linear-gradient(90deg, rgba(29,99,216,.95), rgba(29,99,216,0));
    color: #fff; border-bottom-right-radius: 12px;
    max-width: 70%;
}
.replay-overlay.red { background: linear-gradient(90deg, rgba(217,43,62,.95), rgba(217,43,62,0)); }
.ro-scorer {
    font-weight: 750; font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ro-score { font-size: 12.5px; opacity: .85; font-variant-numeric: tabular-nums; }

.replay-empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(17,20,24,.55); color: #fff; font-size: 13.5px; font-weight: 600;
}
.replay-empty[hidden] { display: none; }

/* barra de controlos */
.replay-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
}
.rp-btn {
    width: 34px; height: 34px; flex: none; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border-2); color: var(--ink-2);
    transition: background .14s, color .14s, border-color .14s;
}
.rp-btn:hover { background: var(--surface-3); color: var(--ink); }
.rp-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.rp-btn.primary:hover { filter: brightness(1.08); background: var(--accent); color: #fff; }
.rp-btn.on { color: var(--accent); border-color: var(--accent); }
.rp-btn.voted { color: var(--green); border-color: var(--green); }
.rp-btn svg { width: 16px; height: 16px; }

.rp-seek {
    flex: 1; min-width: 80px; height: 4px; appearance: none;
    background: var(--surface-3); border-radius: 999px; outline: none;
}
.rp-seek::-webkit-slider-thumb {
    appearance: none; width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent); border: 2px solid var(--surface); cursor: pointer;
}
.rp-seek::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent); border: 2px solid var(--surface); cursor: pointer;
}
.rp-time {
    font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2);
    min-width: 42px; text-align: right;
}
.rp-speeds { display: flex; gap: 2px; background: var(--surface-3); padding: 2px; border-radius: 8px; }
.rp-speeds button {
    border: 0; background: none; color: var(--ink-2);
    padding: 5px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
}
.rp-speeds button.active { background: var(--accent); color: #fff; }

.replay-info { font-size: 12.5px; color: var(--ink-2); }
.replay-controls { display: flex; gap: 8px; }
.replay-controls button, .admin-block button, .admin-token button {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--surface-3); color: var(--ink);
    border: 1px solid var(--border-2); border-radius: 9px;
    padding: 8px 14px; font-size: 13px; font-weight: 550;
    transition: background .14s, border-color .14s;
}
.replay-controls button svg, .admin-block button svg { width: 15px; height: 15px; }
.replay-controls button:hover, .admin-block button:hover, .admin-token button:hover {
    background: var(--accent); border-color: var(--accent);
}
.replay-list { margin-top: 14px; display: flex; flex-direction: column; gap: 5px; }
.replay-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--surface-2); font-size: 12.5px; cursor: pointer;
    border: 1px solid transparent; transition: border-color .14s;
}
.replay-list li:hover { border-color: var(--border-2); }
.replay-list li.active { border-color: var(--accent); background: rgba(47,107,255,.09); }
.replay-list .r-team.red  { color: var(--red); }
.replay-list .r-team.blue { color: var(--blue); }
.replay-list .r-votes { margin-left: auto; color: var(--muted); font-size: 11.5px; }

/* ============================ ADMIN ============================ */
.admin-token { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.admin-token input, .admin-block input {
    background: var(--surface-3); border: 1px solid var(--border-2);
    border-radius: 9px; padding: 9px 12px; font-size: 13px; min-width: 220px;
    outline: none; transition: border-color .14s;
}
.admin-token input:focus, .admin-block input:focus { border-color: var(--accent); }
.admin-actions { display: flex; flex-direction: column; gap: 20px; }
.admin-block h4 {
    font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 10px;
}
.admin-block .row { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-block .row input { flex: 1; }
.admin-players { display: flex; flex-direction: column; gap: 5px; }
.admin-players li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 12px; background: var(--surface-2); border-radius: 9px; font-size: 13px;
}
.admin-players button {
    background: var(--surface-3); border: 1px solid var(--border-2);
    color: var(--ink-2); border-radius: 7px; padding: 4px 11px; font-size: 12px;
}
.admin-players button:hover { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ============================ RAIL (direita) ============================ */
.rail {
    display: flex; flex-direction: column; gap: 14px;
    position: sticky; top: 80px;
}
.rail-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 15px;
}
.rail-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 12px;
}
.rail-head h3 { font-size: 12.5px; letter-spacing: .02em; }
.rail-fmt {
    font-size: 10.5px; font-weight: 700; color: var(--accent-2);
    background: rgba(47,107,255,.13); padding: 2px 9px; border-radius: 999px;
}
.rail-score { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail-team { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; }
.badge-team {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
}
.badge-team.red  { background: linear-gradient(140deg, #ef4a5a, #b91c2c); }
.badge-team.blue { background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.rail-name { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.rail-nums {
    display: flex; align-items: center; gap: 7px;
    font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.rail-nums i { color: var(--muted); font-style: normal; font-size: 19px; }
.rail-state {
    margin-top: 11px; text-align: center; font-size: 11.5px; color: var(--muted);
    padding-top: 10px; border-top: 1px solid var(--border);
}
.rail-state.on { color: var(--green); font-weight: 600; }

.rail-top { display: flex; flex-direction: column; gap: 2px; }
.rail-top li {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 8px; border-radius: 8px; font-size: 12.5px;
    cursor: pointer; transition: background .12s;
}
.rail-top li:hover { background: var(--surface-3); }
.rail-top li.empty { color: var(--muted); cursor: default; justify-content: center; }
.rail-top li.empty:hover { background: none; }
.rail-top .pos {
    width: 20px; text-align: center; font-weight: 700; font-size: 11.5px; color: var(--muted);
}
.rail-top .pos.top1 { color: var(--gold); }
.rail-top .pos.top2 { color: #c8d0de; }
.rail-top .pos.top3 { color: #d08a4a; }
.rail-top .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-top .pts { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* feed */
.rail .feed-card { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.feed { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; max-height: 320px; }
.feed li {
    padding: 8px 10px; border-radius: 8px; font-size: 12px;
    background: var(--surface-3); color: var(--ink-2);
    border-left: 2px solid var(--muted);
}
.feed li.join  { border-left-color: var(--green); }
.feed li.leave { border-left-color: var(--muted); }
.feed li.end   { border-left-color: var(--accent); color: var(--ink); }
.feed li.goal  { border-left-color: var(--gold); color: var(--ink); }

/* ============================ MODAL / PERFIL ============================ */
.modal {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(17,20,24,.45); backdrop-filter: blur(3px);
    display: grid; place-items: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
    background: var(--surface); border: 1px solid var(--border-2);
    border-radius: 16px; padding: 22px;
    width: min(560px, 100%); max-height: 86vh; overflow-y: auto;
    box-shadow: var(--shadow); position: relative;
}
.modal-close {
    position: absolute; top: 14px; right: 14px;
    background: var(--surface-3); border: 1px solid var(--border-2);
    border-radius: 8px; width: 30px; height: 30px;
    display: grid; place-items: center; color: var(--ink-2);
}
.modal-close:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.modal-close svg { width: 15px; height: 15px; }

.prof-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.prof-avatar {
    width: 52px; height: 52px; border-radius: 13px;
    background: linear-gradient(140deg, var(--accent), #7c3aed);
    display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff;
}
.prof-name { font-size: 17px; font-weight: 700; }
.prof-rank { font-size: 12px; color: var(--muted); }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }

.xp-bar { height: 7px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin: 8px 0 5px; }
.xp-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #7c3aed); border-radius: 999px; }

.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 8px; }
.ach {
    display: flex; gap: 10px; align-items: center;
    padding: 10px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 12px;
}
.ach.locked { opacity: .42; }
.ach .em {
    width: 26px; height: 26px; flex: none; border-radius: 7px;
    display: grid; place-items: center;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 12px;
}
.ach.locked .em { background: var(--surface-3); color: var(--muted); }

.fifa-stats { display: flex; flex-direction: column; gap: 7px; }
.fifa-row { display: flex; align-items: center; gap: 11px; font-size: 12.5px; }
.cosmetic { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); font-size: 11.5px; }

.heat-wrap { margin: 12px 0; }
.heat-grid { display: grid; gap: 1px; background: var(--border); border-radius: 8px; overflow: hidden; }
.heat-cell { aspect-ratio: 1; background: var(--surface-2); }

/* ============================ RESPONSIVO ============================ */
@media (max-width: 1100px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .feed { max-height: 240px; }
    .hero { grid-template-columns: 1fr; }
    .hero-side { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
    .mast-inner { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 12px; }
    .tabs { order: 3; width: 100%; overflow-x: auto; }
    .tab { padding: 10px 12px; font-size: 12px; }
    .tab::after { left: 12px; right: 12px; }
    .mast-right { margin-left: auto; }
    .shell { padding: 14px; }
    .hero-main { padding: 22px 18px; }
    .hero-title { font-size: 30px; }
    .hero-score { gap: 14px; }
    .strip-cell { border-right: 0; border-bottom: 1px solid var(--border); }
    .stories-nav { display: none; }
    .teams { grid-template-columns: 1fr; }
    /* partidas: sem hora nem indicadores, só o essencial */
    .match-row {
        grid-template-columns: 44px minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 10px; padding: 12px 10px;
    }
    .board-main { gap: 10px; }
    .bt-crest { width: 46px; height: 46px; font-size: 15px; }
    .bt-name { font-size: 13px; }
    .bt-score { font-size: 30px; }
    .cmp-row { grid-template-columns: 34px 1fr 34px; gap: 6px; }
    .cmp-label { grid-column: 1 / -1; order: -1; text-align: center; font-size: 11.5px; }
    .cmp-bar.blue { display: none; }
    .lineup-grid { grid-template-columns: 1fr; }
    .mr-time, .mr-meta { display: none; }
    .mr-scorers { grid-column: 2 / 5; }
    /* pódio empilhado, 1º primeiro */
    .podium { grid-template-columns: 1fr; gap: 10px; }
    .pod-1 { order: 1; } .pod-2 { order: 2; } .pod-3 { order: 3; }
    .pod-1 .pod-top, .pod-top { height: 68px; }
    .champions-bg { display: none; }
    .champions { padding: 4px 0; }
}
