/*
 * Jogos Futebol — padrão visual da HOME (versão de avaliação).
 * Paleta e acabamento herdados da antiga página de login: fundo #F6F8F6,
 * cartões brancos com borda suave, verde #3DDC46 com texto escuro.
 *
 * Raios: --radius (14px) em cartões e contêineres, --radius-sm (10px) em
 * controles, --radius-xs (6px) em etiquetas pequenas.
 * Tema escuro: html[data-theme='dark'] redefine apenas os tokens de cor.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
    --green: #3DDC46;
    --green-hover: #33C93C;
    --green-strong: #1FA62A;
    --green-ink: #0E5E16;
    --green-soft: #E7F9E8;
    --on-green: #06200A;

    --bg: #F6F8F6;
    --card: #FFFFFF;
    --ink: #14201A;
    --ink-2: #33423A;
    --muted: #5B6B62;
    --faint: #8A978F;
    --line: #DFE6E1;
    --line-soft: #EDF1EE;
    --hover: #F8FBF8;
    --line-strong: #C5D0C8;
    --chevron: #B9C4BD;
    --control: #FFFFFF;
    --glass: rgba(255, 255, 255, .92);

    --live: #E0313B;
    --live-soft: #FDEEEF;
    --warn: #A15C00;
    --warn-soft: #FFF3DC;
    --amber: #E9A23B;
    --live-tint: rgba(224, 49, 59, .045);
    --ht-tint: rgba(233, 162, 59, .06);
    --hero-from: #EAF7EB;
    --hero-logo-opacity: .14;
    --score-tint: #EEF9EF;
    --score-shape: rgba(61, 220, 70, .07);
    --shape: #3DDC46;
    --shape-alt: #9BE7A0;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 2px rgba(16, 25, 21, .05), 0 3px 10px rgba(16, 25, 21, .035);
    --focus: 0 0 0 3px rgba(61, 220, 70, .45);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    color-scheme: light;
}

:root[data-theme='dark'] {
    --green-strong: #4FD957;
    --green-ink: #86E98D;
    --green-soft: rgba(61, 220, 70, .13);

    /* Superfícies em cinza neutro; o verde fica só nos acentos. */
    --bg: #111214;
    --card: #1A1B1E;
    --ink: #ECEDEF;
    --ink-2: #CDCFD3;
    --muted: #A0A3A9;
    --faint: #74777E;
    --line: #2A2C30;
    --line-soft: #222428;
    --hover: #202226;
    --line-strong: #3A3D42;
    --chevron: #4D5056;
    --control: #1A1B1E;
    --glass: rgba(17, 18, 20, .88);

    --live: #FF5C64;
    --live-soft: rgba(255, 92, 100, .15);
    --warn: #F2B65A;
    --warn-soft: rgba(242, 182, 90, .14);
    --live-tint: rgba(255, 92, 100, .09);
    --ht-tint: rgba(242, 182, 90, .08);
    --hero-from: #15191A;
    --hero-logo-opacity: .1;
    --score-tint: #17221B;
    --score-shape: rgba(61, 220, 70, .06);
    --shape: #3DDC46;
    --shape-alt: #2E8F36;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 10px rgba(0, 0, 0, .18);

    color-scheme: dark;
}

/* Logotipos escuros no tema escuro: monocromáticos são invertidos; os coloridos ganham base clara. */
:root[data-theme='dark'] .league__logo--invert { filter: invert(1); }
:root[data-theme='dark'] .league__logo--plate { padding: 2px; border-radius: var(--radius-xs); background: #ECEDEF; }
/* Logos de competição no escuro (quais e como: partials/comp-logo-img). Sem placa: marca monocromática vira a versão clara;
   logo colorido com letras escuras troca pela variante clareada, e o original some só no escuro. */
:root[data-theme='dark'] .comp-logo-mono { filter: brightness(0) invert(.9); }
:root[data-theme='dark'] .hero-watermark.comp-logo-mono { filter: blur(var(--watermark-blur)) brightness(0) invert(.9); }
:root[data-theme='dark'] .comp-logo-light, :root:not([data-theme='dark']) .comp-logo-dark { display: none; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background-color: var(--bg); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-xs); }

.icon { flex: none; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    padding: 8px 12px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Fundo decorativo (todas as páginas) ---------- */

/* Camada atrás do conteúdo: pinta logo acima da cor de fundo e abaixo de cartões e textos. */
/* A página ocupa ao menos a altura da tela: o rodapé fica embaixo e o fundo decorativo cobre tudo. */
body { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.page-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-bg span { position: absolute; border-radius: 50%; background: var(--shape); opacity: var(--o); }
/* Alguns círculos são só contorno, para variar a textura. */
.page-bg .page-bg__c2, .page-bg .page-bg__c6 { background: none; border: 1.5px solid var(--shape); }

.page-bg__c1 { --o: .07; width: 560px; height: 560px; top: 18%; left: -230px; }
.page-bg__c2 { --o: .16; width: 300px; height: 300px; top: 25%; left: 9%; }
.page-bg__c3 { --o: .06; width: 440px; height: 440px; top: 33%; right: -170px; }
.page-bg__c4 { --o: .07; width: 170px; height: 170px; top: 47%; right: 14%; background: var(--shape-alt); }
.page-bg__c5 { --o: .05; width: 660px; height: 660px; top: 56%; left: -280px; }
.page-bg__c6 { --o: .14; width: 240px; height: 240px; top: 67%; right: -50px; }
.page-bg__c7 { --o: .06; width: 210px; height: 210px; top: 79%; left: 32%; background: var(--shape-alt); }
.page-bg__c8 { --o: .06; width: 500px; height: 500px; top: 85%; right: -210px; }

/* ---------- Cabeçalho ---------- */

.topbar {
    position: sticky; top: 0; z-index: 20;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--glass);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar__inner { display: flex; align-items: center; gap: 12px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand em { font-style: normal; color: var(--green-strong); }

.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 550; color: var(--muted);
    transition: background .15s, color .15s;
}
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a.is-active { color: var(--green-ink); background: var(--green-soft); }

.search {
    position: relative;
    margin-left: auto;
    display: flex; align-items: center; gap: 8px;
    width: 300px; height: 40px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--faint);
    transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--green-strong); background: var(--control); box-shadow: var(--focus); }
/* 16px: no iOS (Safari e Chrome) um input menor que isso dá zoom ao focar. A caixa continua com 40px. */
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
/* O destaque de foco fica só na caixa externa. */
.search input:focus-visible { box-shadow: none; }
.search__panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
    display: grid; gap: 8px; max-height: min(70vh, 420px); overflow: auto;
    padding: 10px; text-align: left;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 25, 21, .14), var(--shadow);
    color: var(--ink);
}
.search__group { display: grid; gap: 4px; }
.search__label {
    margin: 0; padding: 4px 8px 2px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint);
}
.search__option {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 8px; border: 0; border-radius: var(--radius-sm);
    background: none; color: inherit; text-align: left; cursor: pointer;
}
.search__option:hover, .search__option[aria-selected='true'] { background: var(--green-soft); }
.search__option span { display: grid; gap: 2px; min-width: 0; }
.search__option strong { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: 14px; font-weight: 650; }
.search__option small { display: block; font-size: 12px; font-weight: 450; color: var(--muted); }
.search__empty { margin: 0; padding: 12px 8px; font-size: 13.5px; color: var(--muted); }

.search-results { display: grid; gap: 10px; margin-top: 22px; }
.search-results h2 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.search-results__list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.search-results__hit {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--card); box-shadow: var(--shadow);
}
.search-results__hit:hover { border-color: var(--green-strong); background: var(--hover); }
.search-results__hit span { display: grid; gap: 2px; min-width: 0; }
.search-results__hit strong { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: 15px; }
.search-results__hit small { font-size: 12.5px; color: var(--muted); }

.topbar__actions { display: flex; gap: 8px; }

.iconbtn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--control); color: var(--ink-2); cursor: pointer;
    transition: border-color .15s, color .15s;
}
.iconbtn:hover { border-color: var(--line-strong); color: var(--ink); }
.iconbtn--search, .iconbtn--menu, .menu { display: none; }
.iconbtn[aria-expanded='true'] { border-color: var(--green-strong); color: var(--green-ink); background: var(--green-soft); }
.icon-close, .iconbtn[aria-expanded='true'] .icon-open { display: none; }
.iconbtn[aria-expanded='true'] .icon-close { display: block; }

/* Menu experimental: abre como uma linha abaixo do cabeçalho (≤ 1080px). */
.menu a {
    display: flex; align-items: center; gap: 10px;
    height: 42px; padding: 0 12px; border-radius: var(--radius-sm);
    font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.menu a:hover { background: var(--hover); }
.menu a.is-active { color: var(--green-ink); background: var(--green-soft); }
.menu a.socials__item { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; gap: 0; }
.socials { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.socials__item {
    display: inline-grid; place-items: center; width: 36px; height: 36px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--control); color: var(--ink-2);
}
a.socials__item:hover { border-color: var(--line-strong); color: var(--ink); background: var(--hover); }
span.socials__item { cursor: default; }
:root[data-theme='dark'] .socials__item--youtube,
:root[data-theme='dark'] a.socials__item--youtube:hover { color: #fff; }
:root[data-theme='dark'] .socials__item--youtube svg path:last-child { fill: #4A524E; }
.menu__socials { padding: 8px 4px 4px; }

/* Configurações (engrenagem): painel suspenso com notificações e tema. */
.settings { position: relative; }
.settings__panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
    display: grid; gap: 14px; width: 300px; padding: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 25, 21, .14), var(--shadow);
}
:root[data-theme='dark'] .settings__panel { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.settings__title { font-size: 14.5px; font-weight: 700; }
.settings__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.settings__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); }
.settings__label { display: grid; gap: 1px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.settings__label small { font-size: 12px; font-weight: 450; color: var(--faint); }
.settings__group { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.switch {
    position: relative; width: 40px; height: 24px; padding: 0;
    border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer;
    transition: background .15s;
}
.switch span {
    position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s;
}
.switch[aria-checked='true'] { background: var(--green); }
.switch[aria-checked='true'] span { transform: translateX(16px); }

.seg {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.seg__item {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 6px;
    border: 0; border-radius: var(--radius-xs); background: none; color: var(--muted);
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.seg__item:hover { color: var(--ink); }
.seg__item[aria-checked='true'] { background: var(--card); color: var(--green-ink); box-shadow: var(--shadow); }

/* Notificações desligadas: nenhum toast aparece. */
:root[data-notifications='off'] .toasts { display: none; }

/* ---------- Hero da HOME ---------- */

.hero {
    position: relative;
    background: linear-gradient(180deg, var(--hero-from), var(--bg));
    border-bottom: 1px solid var(--line-soft);
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center; gap: 40px;
    padding-top: 36px; padding-bottom: 36px;
}

/* Logo decorativo recortado na borda direita (camada de fundo própria, com o recorte). */
.hero__deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__logo {
    position: absolute; right: -70px; top: 50%; width: 400px; height: 400px;
    transform: translateY(-50%) rotate(-14deg);
    opacity: var(--hero-logo-opacity);
}

.hero__title { font-size: 46px; font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.hero__title em { font-style: normal; color: var(--green-strong); }
.hero__lead { max-width: 570px; margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--muted); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 46px; padding: 0 20px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 650; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.hero__btn--primary { background: var(--green); border-color: var(--green); color: var(--on-green); box-shadow: 0 6px 16px rgba(31, 166, 42, .18); }
.hero__btn--primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.hero__btn--ghost { background: var(--card); border-color: var(--green-strong); color: var(--green-ink); }
.hero__btn--ghost:hover { background: var(--green-soft); }

.hero__aside { display: grid; gap: 12px; justify-self: end; width: 100%; max-width: 470px; }

.hero__stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero__stat { display: grid; align-content: start; justify-items: center; gap: 4px; padding: 16px 10px 14px; text-align: center; }
.hero__stat + .hero__stat { border-left: 1px solid var(--line-soft); }
.hero__stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); }
.hero__stat strong { margin-top: 4px; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--green-strong); font-variant-numeric: tabular-nums; }
.hero__stat-label { display: grid; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.hero__stat-label small { font-size: 11.5px; font-weight: 450; color: var(--faint); }


/* ---------- Estrutura ---------- */

.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    padding-top: 22px;
    padding-bottom: 32px;
}

/* Páginas de jogos: sem lateral, a lista ocupa toda a largura do conteúdo. */
.page--single { grid-template-columns: minmax(0, 1fr); }

/* ---------- Barra de data e filtros ---------- */

.toolbar { margin-bottom: 16px; }

.toolbar__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-bottom: 16px; border-bottom: 1px solid var(--line);
}

.toolbar__title h1, .toolbar__title h2 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.toolbar__title p { margin-top: 2px; font-size: 13px; color: var(--muted); }

.days {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 4px; gap: 2px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.days__item {
    display: grid; justify-items: center; gap: 1px;
    min-width: 92px; padding: 6px 14px;
    border: 0; border-radius: var(--radius-sm); background: none; cursor: pointer;
    transition: background .15s, color .15s;
}
.days__item strong { font-size: 14px; font-weight: 650; }
.days__item span { font-size: 11px; font-weight: 550; color: var(--faint); letter-spacing: .02em; }
.days__item:hover { background: var(--bg); }
.days__item[aria-selected='true'], .days__item[aria-current='page'], .days__item.is-selected { background: var(--green-soft); color: var(--green-ink); }
.days__item[aria-selected='true'] span, .days__item[aria-current='page'] span, .days__item.is-selected span { color: var(--green-strong); }

/* Páginas de jogos: Ontem | Hoje | Amanhã como links + calendário. */
.days--nav { position: relative; grid-template-columns: repeat(3, 1fr) auto; }
.days--nav a.days__item { color: inherit; }
/* <details> como item da grade (display: contents cria um item extra para o conteúdo no Firefox). */
.days__cal { display: grid; }
.days__item--cal { list-style: none; min-width: 64px; padding: 6px 12px; color: var(--ink-2); }
.days__item--cal::-webkit-details-marker { display: none; }
.days__item--cal .icon { color: var(--muted); }
.days__item--cal.is-selected .icon, .days__cal[open] .days__item--cal .icon { color: var(--green-ink); }
.days__cal[open] .days__item--cal { background: var(--bg); }

/* Calendário (referência: projeto antigo), alinhado à direita da navegação de datas. */
.cal {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 15;
    width: 304px; padding: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(16, 25, 21, .12), var(--shadow);
}
.cal__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px; margin-bottom: 8px; }
.cal__title { font-size: 14.5px; font-weight: 700; text-align: center; }
.cal__nav {
    display: inline-grid; place-items: center; width: 32px; height: 32px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--control); color: var(--ink-2); cursor: pointer;
}
.cal__nav:hover { border-color: var(--line-strong); color: var(--ink); }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal__dow { padding: 4px 0; font-size: 10.5px; font-weight: 650; letter-spacing: .04em; color: var(--faint); text-align: center; }
.cal__day {
    position: relative; display: grid; place-items: center; aspect-ratio: 1;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 550; color: var(--ink); font-variant-numeric: tabular-nums;
}
a.cal__day:hover { background: var(--hover); border-color: var(--line); }
.cal__day.is-today { border-color: var(--green); color: var(--green-ink); font-weight: 700; }
.cal__day.is-selected { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 700; }
.cal__day.is-disabled { color: var(--line-strong); }
.cal__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.cal__foot a {
    display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.cal__foot a:hover { border-color: var(--line-strong); color: var(--ink); }
.cal__note { font-size: 13px; color: var(--muted); }

/* Quatro filtros fixos: dividem a largura toda (4 colunas; 2 por linha no celular). */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }

.chip {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 36px; padding: 0 8px 0 13px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--control); color: var(--ink-2);
    font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--line-strong); }
.chip .icon { color: var(--faint); }
.chip__count {
    min-width: 24px; padding: 2px 7px; border-radius: var(--radius-xs);
    background: var(--bg); color: var(--muted);
    font-size: 12px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums;
}
.chip[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chip[aria-pressed='true'] .icon { color: var(--on-green); }
.chip[aria-pressed='true'] .chip__count { background: rgba(255, 255, 255, .5); color: var(--on-green); }
.chip--ao-vivo .chip__count { background: var(--live-soft); color: var(--live); }

.live-dot {
    position: relative; flex: none;
    width: 7px; height: 7px; border-radius: 50%; background: var(--live);
}
.live-dot::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    background: var(--live); opacity: .35;
    animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Competição ---------- */

.league {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.league + .league { margin-top: 14px; }

.league__head { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px 0 16px; }
[data-timeline] > .league__head { border-bottom: 1px solid var(--line-soft); }
.league__head h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.league__logo { width: 26px; height: 26px; object-fit: contain; flex: none; }
.league__logo--icon {
    display: grid; place-items: center; border-radius: var(--radius-xs);
    background: var(--green-soft); color: var(--green-ink);
}

.league__region { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.league__region::before { content: '·'; margin-right: 8px; }

.league__more {
    margin-left: auto; display: inline-flex; align-items: center; gap: 2px;
    padding: 6px 4px 6px 10px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; color: var(--green-ink); white-space: nowrap;
}
.league__more:hover { background: var(--green-soft); }

/* Compartilhar no cabeçalho do placar: o markup é um <button>, então precisa
   do acabamento de controle (borda, fundo, cursor) — sem isso o UA pinta o botão nativo. */
button.league__more { border: 0; background: none; cursor: pointer; }
.league__share {
    height: 34px; padding: 0 12px; gap: 6px;
    border: 1px solid var(--line); background: var(--control); cursor: pointer;
}
.league__share:hover { border-color: var(--green-strong); background: var(--green-soft); color: var(--green-ink); }
.league__share .icon { color: var(--green-ink); }

/* Recolher/expandir (páginas completas de jogos). */
[data-league-head] { cursor: pointer; user-select: none; }
.league__count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.league__more + .league__count { margin-left: 0; }
.league:not(.is-collapsed) .league__count { display: none; }
.league__toggle {
    display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: auto;
    border: 0; border-radius: var(--radius-sm); background: none; color: var(--faint); cursor: pointer;
}
.league__count + .league__toggle { margin-left: 0; }
.league__toggle:hover { background: var(--hover); color: var(--ink); }
.league__toggle .icon { transform: rotate(90deg); transition: transform .15s; }
.league.is-collapsed .league__toggle .icon { transform: rotate(0deg); }
.league:not(.is-collapsed) .league__toggle { margin-left: auto; }
.league .league__more ~ .league__toggle { margin-left: 0; }

/* ---------- Partida ---------- */

.match {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 84px minmax(0, 1fr) 28px;
    align-items: center;
    height: 50px;
    padding: 0 10px 0 16px;
    border-top: 1px solid var(--line-soft);
    transition: background .12s;
}
a.match:hover { background: var(--hover); }
a.match:hover .match__go { color: var(--green-strong); transform: translateX(2px); }

.match__status { display: flex; align-items: center; gap: 7px; }
.match__clock { font-size: 13px; font-weight: 550; color: var(--muted); font-variant-numeric: tabular-nums; }

.is-finished .match__clock {
    padding: 2px 7px; border-radius: var(--radius-xs); background: var(--bg);
    font-size: 11.5px; font-weight: 650; color: var(--faint); letter-spacing: .02em;
}

.is-live .match__clock { color: var(--live); font-weight: 700; }
/* Minuto das partidas em andamento piscando (HOME e /jogos); no intervalo fica parado. */
.match.is-live:not(.is-ht) .match__clock { animation: clock-blink 1.4s ease-in-out infinite; }
@keyframes clock-blink { 0%, 55% { opacity: 1; } 75%, 90% { opacity: .25; } 100% { opacity: 1; } }
.is-ht .match__clock {
    padding: 2px 7px; border-radius: var(--radius-xs); background: var(--warn-soft);
    color: var(--warn); font-size: 11.5px; letter-spacing: .02em;
}

.match__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match__team--home { justify-content: flex-end; text-align: right; }
.match__name { font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match__team.is-winner .match__name { font-weight: 700; }
.match__team.is-loser .match__name { color: var(--muted); }

.crest { width: 24px; height: 24px; object-fit: contain; flex: none; }

.match__score {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-variant-numeric: tabular-nums;
}
.match__score { flex-wrap: wrap; }
/* Disputa de pênaltis (partials/penalty-score): abaixo do placar oficial, números vermelhos entre parênteses e legenda discreta. */
.pens {
    --pens-num: 12px; --pens-x: 10px; --pens-label: 10px;
    display: inline-grid; justify-items: center; gap: 1px; line-height: 1.15;
    font-variant-numeric: tabular-nums; white-space: nowrap; text-transform: none; letter-spacing: 0;
}
.pens__score { display: inline-flex; align-items: baseline; gap: 4px; }
.pens__score b { font-size: var(--pens-num); font-weight: 750; color: var(--live); }
.pens__score i { font-style: normal; font-size: var(--pens-x); font-weight: 500; color: var(--faint); }
.pens__label { font-size: var(--pens-label); font-weight: 600; color: var(--faint); }
.pens--md { --pens-num: 15px; --pens-x: 12px; --pens-label: 11px; gap: 2px; }
.pens--lg { --pens-num: 20px; --pens-x: 15px; --pens-label: 12px; gap: 3px; margin-top: 2px; }
.pens--lg .pens__score { gap: 8px; }
/* Linhas de partida com pênaltis ganham altura para o placar e a disputa não se sobreporem. */
.match.has-pens { height: auto; min-height: 50px; padding-top: 7px; padding-bottom: 7px; }
.match.has-pens .match__score { row-gap: 2px; }
.match__score .pens { flex: 1 0 100%; }
.h2h-row__score .pens { display: grid; margin-top: 3px; font-weight: 400; }
.match__pens-mobile { display: none; }
.match__score b { min-width: 12px; font-size: 17px; font-weight: 750; text-align: center; }
.match__score i { font-style: normal; font-size: 12px; color: var(--faint); }
.is-live .match__score b { color: var(--live); }

.match__goal { display: none; }

.match__go { display: grid; place-items: center; color: var(--chevron); transition: color .15s, transform .15s; }

/* Partida em andamento: destaque discreto. */
.match.is-live { background: linear-gradient(90deg, var(--live-tint), transparent 45%); }
.match.is-ht { background: linear-gradient(90deg, var(--ht-tint), transparent 45%); }
.is-ht .match__score b { color: var(--ink); }
.is-ht .live-dot, .is-ht .live-dot::after { background: var(--amber); }

/* Cabeçalho de competição feminina: degradê só nesta faixa, da direita para o centro. */
.league__head.is-feminine { --fem-tint: rgba(232, 62, 140, .06); background: linear-gradient(270deg, var(--fem-tint), transparent 55%); }
:root[data-theme='dark'] .league__head.is-feminine { --fem-tint: rgba(255, 112, 180, .12); }
/* Na home, a partida feminina leva a bolinha imediatamente antes da seta. */
.featured .match.is-feminine { grid-template-columns: 76px minmax(0, 1fr) 84px minmax(0, 1fr) auto; }
.featured .match.is-feminine .match__go { display: inline-flex; align-items: center; gap: 8px; }
.featured .match.is-feminine .match__go .league__fem { display: block; margin-left: 0; }
.match__go .league__fem { display: none; }
/* Marcador da competição feminina no título do cartão (/jogos): ponto rosa com halo, sem animação. */
.league__fem { --fem-dot: #E0408C; flex: none; width: 8px; height: 8px; margin-left: -2px; border-radius: 50%; background: var(--fem-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fem-dot) 22%, transparent); }
:root[data-theme='dark'] .league__fem { --fem-dot: #FF70B4; }

/* ---------- Estado vazio ---------- */

.empty {
    display: grid; justify-items: center; gap: 10px;
    padding: 48px 16px;
    background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
    color: var(--faint); text-align: center;
}
.empty p { font-size: 14px; color: var(--muted); }

/* ---------- Jogos para acompanhar (HOME) ---------- */

.featured__empty { padding: 20px 16px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }

/* "Ver todos" abaixo do cartão: estilo da barra de datas, um único botão na largura toda, centralizado. */
.days.days--home { grid-template-columns: minmax(0, 1fr); }
.days__item--all { position: relative; color: var(--green-ink); }
.days__item-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.days__item--all:hover { background: var(--green-soft); }

/* O botão fica logo abaixo da tabela, na altura dela, sem descer até a lateral. */
.page--home .feed { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- Lateral ---------- */

.side { display: grid; gap: 14px; }

/* Acompanha a rolagem só quando a janela tem altura para o painel inteiro. */
@media (min-width: 1081px) and (min-height: 760px) {
    .side { position: sticky; top: 86px; }
}

.panel {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.panel__head { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.panel__head h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; }

/* ---------- Eventos ao vivo (HOME, lateral) ---------- */

.events__list { margin: 0; padding: 0; list-style: none; }
.events__list li + li { border-top: 1px solid var(--line-soft); }
.event {
    position: relative;
    display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px;
    padding: 10px 14px 10px 16px;
}
a.event__link, a.toast__link {
    position: absolute; inset: 0; z-index: 1; overflow: hidden;
    color: transparent; font-size: 0; text-decoration: none; cursor: pointer;
}
a.event__link:focus-visible, a.toast__link:focus-visible { outline: 2px solid var(--green-ink); outline-offset: -2px; }
.event__icon {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg); color: var(--muted);
}
.event--goal .event__icon { background: var(--green-soft); color: var(--green-ink); }
.event__card { width: 10px; height: 14px; border-radius: 2px; background: #F2C230; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); transform: rotate(8deg); }
.event--red .event__card { background: var(--live); }
.event__body { display: grid; gap: 1px; min-width: 0; }
.event__title { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event__team { font-weight: 650; color: var(--ink-2); }
.event__match { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event__match b { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.event__when { display: grid; justify-items: end; gap: 1px; white-space: nowrap; }
.event__when b { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.event--goal .event__when b { color: var(--green-strong); }
.event__when time { font-size: 11.5px; color: var(--faint); }
.events__empty { padding: 14px 16px; font-size: 13px; color: var(--faint); }

/* Acontecimento recém-chegado: realce suave que some sozinho. */
.event.is-new { animation: event-new 2.4s ease-out; }
@keyframes event-new { from { background: var(--green-soft); } to { background: transparent; } }

/* ---------- Notificações (toasts) de eventos ao vivo ---------- */

.toasts {
    position: fixed; right: 24px; bottom: 24px; z-index: 40;
    display: grid; gap: 10px; width: 340px;
    pointer-events: none;
}
.toast {
    position: relative;
    display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 10px;
    padding: 12px 8px 12px 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 25, 21, .14), var(--shadow);
    pointer-events: auto;
    animation: toast-in .22s ease-out;
}
:root[data-theme='dark'] .toast { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.toast.is-leaving { animation: toast-out .2s ease-in forwards; }
.toast .event__icon { margin-top: 2px; }
.toast__body { display: grid; gap: 1px; min-width: 0; }
.toast__eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--live); }
.toast__title { font-size: 14px; font-weight: 700; }
.toast.event--goal .toast__title { color: var(--green-strong); }
.toast__close {
    position: relative; z-index: 2;
    display: grid; place-items: center; width: 28px; height: 28px;
    border: 0; border-radius: var(--radius-sm); background: none; color: var(--faint); cursor: pointer;
}
.toast__close:hover { background: var(--hover); color: var(--ink); }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Página da partida (/jogos/{confronto}) ---------- */

.match-page { display: grid; gap: 16px; margin-top: 18px; margin-bottom: 32px; }
.match-page .league + .league { margin-top: 0; }

.match-page__nav { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.match-page__nav .crumbs { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.match-edit {
    flex: 0 0 auto; margin-left: auto;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 650;
}
.match-edit:hover { color: var(--green-ink); border-color: var(--green); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-ink); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }
/* Na matéria, o título atual cabe numa linha e o restante vira reticências. */
.story .crumbs { flex-wrap: nowrap; min-width: 0; }
.story .crumbs > a, .story .crumbs > .icon { flex: none; }
.story .crumbs [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Placar */
.scoreboard__body {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); align-items: start;
    padding: 22px 24px 20px; border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, var(--card) 0%, var(--score-tint) 100%);
}
/* Um único círculo translúcido atrás do centro do placar. */
.scoreboard__body::before {
    content: ''; position: absolute; z-index: -1; left: 50%; top: 50%;
    width: 420px; height: 420px; border-radius: 50%;
    background: var(--score-shape); transform: translate(-50%, -42%);
}
.scoreboard__team { display: grid; justify-items: center; gap: 8px; text-align: center; }
.scoreboard__crest { width: 72px; height: 72px; object-fit: contain; }
.scoreboard__team > strong { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.scoreboard__scorers { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.scoreboard__scorers li { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.scoreboard__center { display: grid; justify-items: center; gap: 4px; padding-top: 6px; }
.scoreboard__status {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-xs);
    background: var(--live-soft); color: var(--live); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.scoreboard__status--done, .scoreboard__status--soon { background: var(--bg); color: var(--muted); }
.scoreboard__clock { font-size: 15px; }
.scoreboard__score { display: flex; align-items: center; gap: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.scoreboard__score b { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.scoreboard__score i { font-style: normal; font-size: 22px; color: var(--faint); }
.scoreboard__center.is-live .scoreboard__score b { color: var(--live); }
.scoreboard__score b.scoreboard__time { font-size: 40px; letter-spacing: -.02em; }

.match-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; margin: 0; border-top: 1px solid var(--line-soft); }
.match-info > div {
    display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: max-content max-content; column-gap: 10px; row-gap: 2px;
    min-width: 0; align-items: start; align-content: start; align-self: start; justify-items: start;
    padding: 14px 16px;
}
.match-info > div + div { border-left: 1px solid var(--line-soft); }
.match-info__icon { grid-column: 1; grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); }
.match-info dt { grid-column: 2; grid-row: 1; font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.match-info dd { grid-column: 2; grid-row: 2; display: grid; margin: 0; min-width: 0; overflow-wrap: break-word; align-content: start; justify-items: start; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.match-info dd small { font-size: 12px; font-weight: 450; color: var(--muted); }

/* Atalhos das seções */
/* Abas: mesmo estilo dos filtros de /jogos (botões que dividem a largura; ativa em verde). */
.match-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.match-tabs .chip { padding: 0 12px; }
.chip[aria-selected='true'] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chip[aria-selected='true'] .icon { color: var(--on-green); }
.match-panel[hidden] { display: none; }
/* Sem transição até o JS aplicar a aba do endereço, para não piscar a aba padrão. */
.match-tabs:not(.is-ready) .chip { transition: none; }
/* Na aba de estatísticas o cartão ocupa a largura toda; as barras ficam numa coluna central legível. */
.match-panel .stats { padding-inline: max(18px, calc((100% - 760px) / 2)); }

/* Linha do tempo: linha central, mandante à esquerda e visitante à direita */
.timeline-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 4px; border-top: 1px solid var(--line-soft); }
.timeline-filters .chip { height: 32px; font-size: 12.5px; }
.timeline__teams { display: flex; justify-content: space-between; padding: 10px 16px 0; font-size: 12px; font-weight: 650; color: var(--muted); }
.timeline__teams span { display: inline-flex; align-items: center; gap: 6px; }
.timeline__teams { border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.timeline { position: relative; margin: 0; padding: 8px 16px 14px; list-style: none; }
/* "Ver todos os acontecimentos": acima da lista, onde entram os lances mais antigos ao expandir. */
.timeline__more {
    display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 40px;
    border: 0; border-bottom: 1px solid var(--line-soft); background: var(--bg); cursor: pointer;
    font-size: 13px; font-weight: 650; color: var(--green-ink);
}
.timeline__more:hover { background: var(--green-soft); }
.timeline__more .icon { transform: rotate(-90deg); transition: transform .15s; }
.timeline__more[aria-expanded='true'] .icon { transform: rotate(90deg); }
.tl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: center; min-height: 52px; }
/* Linha central desenhada em cada item; começa e termina no primeiro e no último lance visíveis. */
.tl::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.tl.is-first::before { top: 50%; }
.tl.is-last::before { bottom: 50%; }
.tl__minute {
    grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
    min-width: 38px; padding: 3px 6px; border-radius: var(--radius-xs);
    background: var(--card); border: 1px solid var(--line);
    font-size: 12px; font-weight: 700; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.tl__event { grid-row: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tl--home .tl__event { grid-column: 1; flex-direction: row-reverse; text-align: right; }
.tl--away .tl__event { grid-column: 3; }
.tl__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--muted); }
.tl--goal .tl__icon { background: var(--green-soft); color: var(--green-ink); }
.tl--goal .tl__minute { border-color: var(--green); color: var(--green-ink); }
.tl--red .event__card { background: var(--live); }
.tl--var .tl__icon { background: var(--warn-soft); color: var(--warn); }
.tl__body { display: grid; gap: 1px; min-width: 0; }
.tl__body strong { font-size: 13.5px; font-weight: 650; }
.tl__body small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.tl__in, .tl__out { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tl__in { color: var(--green-strong); }
.tl__out { color: var(--live); }
.timeline__empty { padding: 20px 0; text-align: center; color: var(--muted); }
/* Aviso "Aguardando atualização da partida": cartão âmbar de atenção, exclusivo deste estado da linha do tempo. */
.timeline__wait {
    display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 2px; padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--warn) 26%, transparent); border-radius: var(--radius-sm);
    background: var(--warn-soft); text-align: left; color: var(--ink-2);
}
.timeline__wait-icon { margin-top: 1px; color: var(--warn); }
.timeline__wait-body { min-width: 0; }
.timeline__wait-title { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.timeline__wait-text { display: block; font-size: 13.5px; line-height: 1.5; }
/* Seção sem dados (antes do jogo ou partida sem cobertura). */
.match-empty { padding: 28px 16px; border-top: 1px solid var(--line-soft); text-align: center; font-size: 14px; color: var(--muted); }

/* Estatísticas comparativas */
.stats { display: grid; gap: 14px; padding: 14px 18px 20px; border-top: 1px solid var(--line-soft); }
.stats__teams { display: flex; justify-content: space-between; }
.stats__teams img { width: 26px; height: 26px; object-fit: contain; }
.stat { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; row-gap: 6px; }
.stat b { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.stat b:last-of-type { text-align: right; }
.stat b.is-lead { font-weight: 800; color: var(--ink); }
.stat__label { font-size: 12.5px; font-weight: 550; text-align: center; color: var(--ink-2); }
.stat__bar { grid-column: 1 / -1; display: flex; gap: 3px; height: 6px; }
.stat__home { border-radius: 3px; background: var(--green-strong); }
.stat__away { border-radius: 3px; background: var(--line-strong); }

/* Escalações */
.lineups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; border-top: 1px solid var(--line-soft); }
.lineup { display: grid; gap: 12px; align-content: start; }
.lineup__head { display: flex; align-items: center; gap: 10px; }
.lineup__head img { width: 32px; height: 32px; object-fit: contain; }
.lineup__team { display: grid; }
.lineup__team strong { font-size: 14.5px; }
.lineup__team small { font-size: 12px; color: var(--muted); }
.lineup__formation { margin-left: auto; padding: 4px 9px; border-radius: var(--radius-xs); background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }

.pitch {
    position: relative; display: flex; flex-direction: column; justify-content: space-around;
    aspect-ratio: 1 / 1; padding: 14px 6px; border-radius: var(--radius-sm); overflow: hidden;
    background: repeating-linear-gradient(180deg, #2E9B52 0 10%, #2A9149 10% 20%);
}
:root[data-theme='dark'] .pitch { background: repeating-linear-gradient(180deg, #1F6E3A 0 10%, #1C6535 10% 20%); }
.pitch::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 4px; }
.pitch::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 1.5px solid rgba(255, 255, 255, .55); }
.pitch__lines i { position: absolute; border: 1.5px solid rgba(255, 255, 255, .55); }
.pitch__lines i:nth-child(1) { left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch__lines i:nth-child(2) { left: 28%; right: 28%; bottom: 8px; height: 14%; border-bottom: 0; }
.pitch__lines i:nth-child(3) { left: 28%; right: 28%; top: 8px; height: 14%; border-top: 0; }
.pitch__row { position: relative; z-index: 1; display: flex; justify-content: space-evenly; }
.pitch__player { display: grid; justify-items: center; gap: 3px; width: 100px; }
.pitch__number {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: #fff; color: #14201A; border: 2px solid rgba(0, 0, 0, .12);
    font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.pitch__player.is-gk .pitch__number { background: #F2C230; }
.pitch__name {
    max-width: 100px; padding: 2px 6px; border-radius: 5px; background: rgba(6, 30, 16, .55); color: #fff;
    font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.squad h3 { margin: 4px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.squad ul { margin-bottom: 10px; }
.squad li { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.squad li b { min-width: 22px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.squad li em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 650; color: var(--faint); }
.squad__marks { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.squad__marks:empty { display: none; }
.mark { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--muted); }
.mark .event__card { width: 8px; height: 11px; }
.mark--red .event__card { background: var(--live); }
.mark--goal { color: var(--green-ink); }
.mark--in { color: var(--green-strong); }
.mark--out { color: var(--live); }

/* Vídeos */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; border-top: 1px solid var(--line-soft); background: var(--bg); }
.videos[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.videos[data-count="1"] > .video { width: 50%; justify-self: center; }
.videos[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video {
    display: grid; gap: 5px; align-content: start; overflow: hidden;
    border-radius: var(--radius-sm); background: var(--card);
    box-shadow: 0 1px 2px rgba(16, 25, 21, .08), 0 8px 22px rgba(16, 25, 21, .12);
}
:root[data-theme='dark'] .video { box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 24px rgba(0, 0, 0, .35); }
.video__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
/* Miniatura: imagem do YouTube ou composição demonstrativa com os escudos; play no centro e duração no canto. */
.video__thumb {
    position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
    border: 0; border-radius: var(--radius-sm); cursor: pointer; color: inherit; text-decoration: none;
    background: radial-gradient(120% 120% at 50% 0%, #1A7A44 0%, #0B3D2C 70%);
}
.video__thumb[aria-disabled='true'] { cursor: default; }
.video__thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Escudos dos dois lados do botão de play. */
.video__art { display: flex; align-items: center; gap: 92px; opacity: .6; }
.video__art img { width: 44px; height: 44px; object-fit: contain; }
.video__caption {
    position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, .16); color: #fff; font-size: 11.5px; font-weight: 700;
}
.video__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #0B3D2C; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .15s;
}
.video__play .icon { margin-left: 3px; }
.video__thumb:not([aria-disabled='true']):hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video__duration {
    position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: var(--radius-xs);
    background: rgba(0, 0, 0, .72); color: #fff; font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.video__meta { font-size: 12px; color: var(--faint); }
.video__kind { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-strong); }
.video__title { font-size: 14px; font-weight: 650; }
.video__media { position: relative; }
.video__tag {
    position: absolute; z-index: 2; left: 8px; top: 8px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 999px;
    background: rgba(8, 18, 12, .78); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.video--highlights .video__tag { background: #1FA62A; }
.video--press .video__tag { background: #2F7FD8; }
.video--broadcast .video__tag { background: #7B4CD6; }
.video:has(.video__yt) { gap: 0; }
.video:has(.video__yt) .video__thumb,
.video:has(.video__yt) .video__frame { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.video__yt {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 9px 12px; background: var(--card); color: var(--ink);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 13.5px; font-weight: 650; text-decoration: none;
}
.video__yt > .icon:not(.video__yt-ext) { color: #FF0033; flex: none; }
.video__yt > span { flex: 1; min-width: 0; }
.video__yt-ext { margin-left: auto; color: color-mix(in srgb, var(--ink) 45%, transparent); flex: none; }
.video__yt:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, var(--card)); }
:root[data-theme='dark'] .video__yt { background: #111; color: #fff; }
:root[data-theme='dark'] .video__yt-ext { color: rgba(255, 255, 255, .72); }
:root[data-theme='dark'] .video__yt:hover { color: #fff; background: #1c1c1c; }


/* ---------- Cores das equipes: gradientes suaves e marcas-d'água ---------- */
/* Intensidades da mistura com o fundo do cartão (mais baixas no escuro). */
/* --watermark-blur: escudos costumam vir em baixa resolução; o desfoque evita que a ampliação fique pixelizada. */
:root { --tint-strong: 13%; --tint-soft: 7%; --watermark: .07; --watermark-blur: 6px; }
:root[data-theme='dark'] { --tint-strong: 16%; --tint-soft: 8%; --watermark: .07; }

/* Página do time: gradiente diagonal com a cor primária e um toque da secundária; branco predominante. */
.h2h-hero__body.is-tinted {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--team-primary) var(--tint-strong), var(--card)) 0%,
            var(--card) 48%,
            var(--card) 62%,
            color-mix(in srgb, var(--team-secondary) var(--tint-soft), var(--card)) 100%);
}
.h2h-hero__body.is-tinted::before, .h2h-hero__body.is-tinted::after { display: none; }
/* Sem cor editorial: lavagem neutra e a marca-d'água, no lugar dos círculos verdes. */
.h2h-hero__body.is-neutral, .scoreboard__body.is-neutral {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--ink) 5%, var(--card)) 0%,
        var(--card) 48%,
        var(--card) 62%,
        color-mix(in srgb, var(--muted) 12%, var(--card)) 100%);
}
.h2h-hero__body.is-neutral::before, .h2h-hero__body.is-neutral::after,
.scoreboard__body.is-neutral::before { display: none; }
/* Primária quase branca some no cartão claro. A cor gravada permanece; só a mistura ganha contraste. */
:root:not([data-theme='dark']) .h2h-hero__body.is-tinted.is-pale {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--team-primary) 28%, #b9c1cb) 0%,
        var(--card) 48%,
        var(--card) 62%,
        color-mix(in srgb, var(--team-secondary) var(--tint-soft), var(--card)) 100%);
}
:root:not([data-theme='dark']) .has-home-tint.is-home-pale { --score-home: color-mix(in srgb, var(--home-primary) 28%, #b9c1cb); }
:root:not([data-theme='dark']) .has-away-tint.is-away-pale { --score-away: color-mix(in srgb, var(--away-primary) 28%, #b9c1cb); }
.hero-watermark {
    position: absolute; z-index: -1; right: -70px; top: 50%;
    width: 340px; height: 340px; object-fit: contain;
    opacity: var(--watermark); transform: translateY(-50%) rotate(-12deg); pointer-events: none;
    filter: blur(var(--watermark-blur));
}
.hero-watermark--flag { height: auto; aspect-ratio: 30 / 21; border-radius: 12px; }

/* Placar da partida e cabeçalho do confronto: mandante (ou 1º clube) à esquerda, o outro à direita, centro neutro. */
.scoreboard__body.has-home-tint, .scoreboard__body.has-away-tint,
.tint-sides.has-home-tint, .tint-sides.has-away-tint {
    background: linear-gradient(90deg,
        var(--score-home, var(--card)) 0%, var(--card) 36%, var(--card) 64%, var(--score-away, var(--card)) 100%);
}
.has-home-tint { --score-home: color-mix(in srgb, var(--home-primary) var(--tint-strong), var(--card)); }
.has-away-tint { --score-away: color-mix(in srgb, var(--away-primary) var(--tint-strong), var(--card)); }
/* No confronto, os escudos translúcidos substituem os círculos genéricos. */
.tint-sides.has-home-tint::before, .tint-sides.has-home-tint::after,
.tint-sides.has-away-tint::before, .tint-sides.has-away-tint::after { display: none; }
.score-watermark {
    position: absolute; z-index: -1; top: 50%; width: 260px; height: 260px; object-fit: contain;
    opacity: var(--watermark); pointer-events: none;
    filter: blur(var(--watermark-blur));
}
.score-watermark--home { left: -70px; transform: translateY(-50%) rotate(-12deg); }
.score-watermark--away { right: -70px; transform: translateY(-50%) rotate(12deg); }

/* ---------- Página do confronto (/jogos/{clube}-x-{clube}) ---------- */

.h2h-hero__body {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; justify-items: center; gap: 10px; padding: 26px 20px 28px; text-align: center;
    background: linear-gradient(180deg, var(--card) 0%, var(--score-tint) 100%);
}
/* Dois círculos discretos, nas laterais. */
.h2h-hero__body::before, .h2h-hero__body::after {
    content: ''; position: absolute; z-index: -1; border-radius: 50%; background: var(--score-shape);
}
.h2h-hero__body::before { width: 340px; height: 340px; left: -120px; top: -150px; }
.h2h-hero__body::after { width: 260px; height: 260px; right: -80px; bottom: -150px; }
.h2h-hero__tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: var(--green-soft); color: var(--green-ink); font-size: 12px; font-weight: 700;
}
.h2h-hero__tag.is-feminine {
    --fem: #E0408C;
    background: color-mix(in srgb, var(--fem) 12%, var(--card));
    color: #9D245C;
}
:root[data-theme='dark'] .h2h-hero__tag.is-feminine {
    --fem: #FF70B4;
    background: color-mix(in srgb, var(--fem) 16%, transparent);
    color: var(--fem);
}
.h2h-hero__teams { display: flex; align-items: center; gap: 28px; margin-top: 6px; }
.h2h-hero__team { display: grid; justify-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.h2h-hero__team img { width: 64px; height: 64px; object-fit: contain; }
.h2h-hero__x { font-size: 22px; color: var(--faint); }
.h2h-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.h2h-hero p { font-size: 14px; color: var(--muted); }

.h2h-live {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px;
    border-color: color-mix(in srgb, var(--live) 35%, var(--line));
}
.h2h-live:hover { background: var(--hover); }
.h2h-live__score { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.h2h-live__score img { width: 26px; height: 26px; object-fit: contain; }
.h2h-live__score b { font-size: 18px; color: var(--live); font-variant-numeric: tabular-nums; }
.h2h-live__meta { font-size: 12.5px; color: var(--muted); }
.h2h-link { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 650; color: var(--green-ink); }

.h2h-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.h2h-card { display: flex; flex-direction: column; }
.h2h-card__body { display: grid; justify-items: center; gap: 8px; padding: 18px 16px; border-top: 1px solid var(--line-soft); text-align: center; flex: 1; }
.h2h-card__comp { font-size: 12px; font-weight: 650; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.h2h-card__teams { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.h2h-card__teams img { width: 30px; height: 30px; object-fit: contain; }
.h2h-card__teams strong { font-size: 15px; font-weight: 700; }
.h2h-card__teams strong.is-loser { color: var(--muted); font-weight: 600; }
.h2h-card__time { padding: 3px 10px; border-radius: var(--radius-xs); background: var(--bg); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.h2h-card__score { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.h2h-card__score i { font-style: normal; font-size: 14px; color: var(--faint); }
.h2h-card__result { display: inline-grid; justify-items: center; gap: 4px; }
.h2h-card__date { font-size: 13px; color: var(--muted); }
.h2h-card__more {
    display: flex; align-items: center; justify-content: center; gap: 2px; height: 44px;
    border-top: 1px solid var(--line); background: var(--bg); font-size: 13.5px; font-weight: 650; color: var(--green-ink);
}
.h2h-card__more:hover { background: var(--green-soft); }
.h2h-card .match-empty { flex: 1; display: grid; place-items: center; }

.h2h-record__numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 16px 4px; border-top: 1px solid var(--line-soft); }
.h2h-record__numbers > div { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: var(--radius-sm); background: var(--bg); text-align: center; }
.h2h-record__numbers img { width: 28px; height: 28px; object-fit: contain; }
.h2h-record__numbers b { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.h2h-record__numbers span { font-size: 12px; color: var(--muted); }
.h2h-record__draw { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); font-weight: 800; color: var(--faint); }
.h2h-record__bar { display: flex; gap: 3px; height: 8px; margin: 14px 16px 0; }
.h2h-record__bar span { border-radius: 4px; }
.h2h-record__bar .is-first { background: var(--green-strong); }
.h2h-record__bar .is-draw { background: var(--line-strong); }
.h2h-record__bar .is-second { background: var(--ink-2); }
.h2h-record__note { padding: 12px 16px 16px; font-size: 12.5px; color: var(--faint); }

.h2h-results ol { margin: 0; padding: 0; list-style: none; }
.h2h-row {
    display: grid; grid-template-columns: 86px minmax(0, 1fr) 58px minmax(0, 1fr) 150px 18px; align-items: center; gap: 10px;
    padding: 11px 14px 11px 16px; border-top: 1px solid var(--line-soft); font-size: 14px;
}
.h2h-row:hover { background: var(--hover); }
.h2h-row__date { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.h2h-row__team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; white-space: nowrap; }
.h2h-row__team--home { justify-content: flex-end; }
.h2h-row__team.is-loser { color: var(--muted); font-weight: 500; }
.h2h-row__team img { width: 20px; height: 20px; object-fit: contain; }
.h2h-row__score { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.h2h-row__comp { font-size: 12px; color: var(--faint); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2h-row > .icon { color: var(--chevron); }

/* ---------- Times (/times e /times/{slug}) ---------- */

.team-crest { flex: none; object-fit: contain; }
/* Nome de equipe com link para /times/{slug}, sem mudar o visual do texto. */
.team-link { color: inherit; }
.team-link:hover { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.team-crest--flag { object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); aspect-ratio: 30 / 21; height: auto !important; }
.team-crest--badge {
    display: inline-grid; place-items: center; border-radius: 50%;
    background: var(--badge-bg); color: var(--badge-fg);
    font-weight: 800; letter-spacing: -.02em; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08);
}

/* O cabeçalho do diretório já tem o espaço da grade da página; dispensa a margem do toolbar de /jogos. */
.teams-toolbar { margin-bottom: 0; }
/* A descrição é longa: quebra linha (em /jogos a data fica numa linha só). */
.teams-toolbar .toolbar__title { display: block; }
.teams-toolbar .toolbar__title p { white-space: normal; }

.team-filters form { display: grid; gap: 12px; padding: 16px; }
.team-filters__search {
    display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--faint);
}
.team-filters__search:focus-within { border-color: var(--green-strong); background: var(--control); box-shadow: var(--focus); }
.team-filters__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
/* O destaque de foco fica só na caixa externa (como na busca do cabeçalho). */
.team-filters__search input:focus-visible { box-shadow: none; }
.team-filters__submit, .team-filters__apply {
    height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-sm);
    background: var(--green); color: var(--on-green); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}
.team-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.team-filters__row .chip { height: 32px; padding: 0 12px; font-size: 13px; }
.team-filters__row--section { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.team-filters__label { min-width: 58px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.team-filters__selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 10px; }
.team-filters__selects label { display: grid; gap: 4px; min-width: 0; }
.team-filters__selects label span { font-size: 12px; font-weight: 700; color: var(--faint); }
.team-filters__selects select {
    width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--control); color: var(--ink); font: inherit; font-size: 14px;
}
.team-filters__actions { display: flex; align-items: center; gap: 12px; }
.team-filters__clear {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--control);
    font-size: 13.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap;
    transition: border-color .15s, color .15s;
}
.team-filters__clear:hover { border-color: var(--line-strong); color: var(--ink); }
/* Com JavaScript os seletores aplicam sozinhos; o botão fica só como alternativa. */
.js .team-filters__apply { display: none; }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; border-top: 1px solid var(--line-soft); }
.team-card {
    display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px;
    border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--card);
    transition: border-color .15s, background .15s;
}
.team-card:hover { border-color: var(--line-strong); background: var(--hover); }
.team-card__body { display: grid; min-width: 0; }
.team-card__body strong { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 650; }
.search__option strong > span:not(.league__fem),
.search-results__hit strong > span:not(.league__fem),
.team-card__body strong > span:not(.league__fem),
.team-feature strong > span:not(.league__fem) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card__body small { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Times em destaque: carrossel horizontal (setas no desktop, deslizar no celular). */
/* min-width: 0 impede que a faixa rolável alargue a coluna da página. */
.featured-teams { min-width: 0; }
.carousel__nav { display: flex; gap: 6px; margin-left: auto; }
.carousel__btn {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--control); color: var(--ink-2); cursor: pointer;
}
.carousel__btn:hover:not(:disabled) { border-color: var(--line-strong); color: var(--ink); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel-wrap { padding: 14px 16px 16px; border-top: 1px solid var(--line-soft); }
/* Quantos times cabem inteiros por linha (--per-view, por resolução); cada seta avança exatamente uma "página". */
.carousel {
    --per-view: 6; --gap: 10px;
    display: flex; gap: var(--gap); margin: 0; padding: 0; list-style: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel li { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); min-width: 0; scroll-snap-align: start; }
.team-feature {
    display: grid; justify-items: center; gap: 8px; padding: 12px 8px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft); text-align: center; font-size: 13.5px; transition: background .15s, border-color .15s;
}
.team-feature strong { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 650; max-width: 100%; min-width: 0; }
.team-feature:hover { background: var(--green-soft); border-color: transparent; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px 16px 18px; }
.pager a {
    display: inline-flex; align-items: center; gap: 4px; min-width: 36px; height: 36px; padding: 0 10px; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.pager a:hover { border-color: var(--line-strong); }
.pager a[aria-current] { background: var(--green); border-color: var(--green); color: var(--on-green); }

.team-hero .h2h-hero__body { gap: 8px; }
.team-hero h1 { font-size: 30px; }
.team-hero__full { font-size: 14px; color: var(--muted); }
.team-hero__place { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px !important; color: var(--ink-2) !important; }
.comp-coverage { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.team-hero__comps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.team-hero__comps li { padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* Paginação da lista de jogos: rodapé do card, mesmo estilo da paginação do diretório. */
.pager--games { align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.pager__gap { min-width: 20px; text-align: center; color: var(--faint); }
/* Botão de ordenação no canto direito do cabeçalho de uma lista. */
.sort-toggle {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-left: auto; padding: 0 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--control);
    font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
    transition: border-color .15s, color .15s;
}
.sort-toggle:hover { border-color: var(--line-strong); color: var(--ink); }
.sort-toggle .icon { color: var(--green-ink); }
[data-games-busy] { opacity: .55; pointer-events: none; transition: opacity .15s; }
.team-subhead { margin: 0; padding: 10px 16px 6px; border-top: 1px solid var(--line-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.related > .league__head { border-bottom: 1px solid var(--line-soft); }
.related .team-subhead { border-top: 0; }
.team-row .h2h-row__date { display: grid; gap: 1px; }
.team-row__status { font-size: 11px; font-weight: 650; color: var(--faint); }
.team-row__status.is-live { color: var(--live); }
.h2h-row__score.is-time { font-weight: 700; color: var(--muted); }

.team-comps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; border-top: 1px solid var(--line-soft); }
.team-comps li span { display: grid; }
.team-comps strong { font-size: 14px; font-weight: 650; }
.team-comps small { font-size: 12px; color: var(--faint); }

.standing { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.standing caption { caption-side: bottom; padding: 10px 16px 14px; font-size: 12px; color: var(--faint); text-align: left; }
.standing th { padding: 8px 16px; border-top: 1px solid var(--line-soft); font-size: 11.5px; font-weight: 700; text-align: left; color: var(--faint); text-transform: uppercase; }
.standing td { padding: 9px 16px; border-top: 1px solid var(--line-soft); }
.standing th:nth-child(n + 3), .standing td:nth-child(n + 3) { text-align: right; width: 56px; }
.standing th:first-child, .standing td:first-child { width: 44px; color: var(--muted); }
.standing td a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.standing td img { width: 20px; height: 20px; object-fit: contain; }
.standing tr.is-current td { background: var(--green-soft); }
.standing tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--green-strong); color: var(--green-ink); font-weight: 800; }

.team-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.team-info > div { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.team-info dt { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.team-info dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }

/* Seção editorial (Sobre, Como foi, Estatísticas) e perguntas frequentes */
.editorial { padding: 4px 0; }
.editorial__block { padding: 18px 20px; }
.editorial__block + .editorial__block { border-top: 1px solid var(--line-soft); }
.editorial__block h2 { margin-bottom: 8px; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.editorial__block p { max-width: 78ch; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.editorial__block p + p { margin-top: 10px; }
/* Períodos do resumo (Primeiro tempo, Segundo tempo, Prorrogação). */
.editorial__period {
    display: inline-flex; margin: 12px 0 6px; padding: 3px 9px; border-radius: var(--radius-xs);
    background: var(--green-soft); color: var(--green-ink);
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.editorial__block h2 + .editorial__period { margin-top: 2px; }

/* Títulos longos do FAQ (com data) quebram linha em vez de cortar. */
.faq .league__head { height: auto; min-height: 50px; padding-top: 10px; padding-bottom: 10px; }
.faq .league__head h2 { white-space: normal; }
.faq__item { border-top: 1px solid var(--line-soft); }
.faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px 14px 20px; list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--hover); }
.faq__item h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.faq__item summary .icon { flex: none; color: var(--faint); transform: rotate(90deg); transition: transform .15s; }
.faq__item[open] summary .icon { transform: rotate(-90deg); color: var(--green-ink); }
.faq__item p { max-width: 78ch; padding: 0 20px 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
/* Desktop: o texto da partida acompanha a largura útil do container. O limite de 78ch permanece nas telas menores. */
@media (min-width: 1081px) {
    .match-page .editorial__block p,
    .match-page .faq__item p { max-width: none; }
}

@media (max-width: 1080px) {
    .match-page { max-width: 860px; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .carousel { --per-view: 4; }
    .team-filters__selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .videos[data-count="3"],
    .videos[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .match-page { gap: 12px; margin-top: 16px; margin-bottom: 24px; }
    .scoreboard__body { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); padding: 18px 10px 16px; }
    .scoreboard__crest { width: 52px; height: 52px; }
    .scoreboard__team > strong { font-size: 15px; }
    .scoreboard__scorers { font-size: 11.5px; }
    .scoreboard__score b { font-size: 34px; }
    .scoreboard__score b.scoreboard__time { font-size: 28px; }
    .scoreboard__score { gap: 8px; }
    .match-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .match-info > div { padding: 12px; }
    .match-info > div:nth-child(3) { border-left: 0; }
    .match-info > div:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
    .tl { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); padding: 6px 0; }
    .pitch { aspect-ratio: 1 / 1.15; }
    .tl__icon { width: 26px; height: 26px; }
    .tl__event { gap: 7px; }
    .tl__body strong { font-size: 12.5px; }
    .tl__body small { font-size: 11px; }
    .timeline { padding: 8px 10px 12px; }
    .timeline__wait { gap: 10px; padding: 12px 13px; }
    .timeline__wait-title { font-size: 14px; }
    .timeline__wait-text { font-size: 13px; }
    /* Três abas numa linha só, com ícone e texto compactos. */
    .match-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .match-tabs .chip { padding: 0 6px; gap: 5px; font-size: 12.5px; }
    .match-tabs .chip .icon { width: 14px; height: 14px; }
    .lineups { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .pitch__player { width: 78px; }
    .pitch__name { max-width: 78px; font-size: 10.5px; }
    .pitch__number { width: 28px; height: 28px; font-size: 12px; }
    .videos,
    .videos[data-count="1"],
    .videos[data-count="2"],
    .videos[data-count="3"],
    .videos[data-count="4"] { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 18px; }
    .videos[data-count="1"] > .video { width: 100%; }
    .h2h-hero h1 { font-size: 23px; }
    /* Marcas-d'água menores e mais discretas no celular. */
    :root { --watermark-blur: 4px; }
    .hero-watermark { width: 220px; height: 220px; right: -80px; opacity: calc(var(--watermark) * .8); }
    .score-watermark { width: 150px; height: 150px; opacity: calc(var(--watermark) * .8); }
    .score-watermark--home { left: -60px; }
    .score-watermark--away { right: -60px; }
    .team-filters form { padding: 12px; }
    .team-filters__label { width: 100%; }
    .team-filters__selects { grid-template-columns: minmax(0, 1fr); }
    .team-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 8px; }
    /* Celular: sem setas, desliza com o dedo e deixa o próximo item aparecendo. */
    .carousel-wrap { padding: 12px; }
    .carousel { --per-view: 3; --gap: 8px; }
    .team-filters__row--section { padding: 10px 12px; }
    .team-info { grid-template-columns: minmax(0, 1fr); }
    /* No celular o botão de ordenação fica só com o ícone. */
    .sort-toggle { width: 32px; padding: 0; justify-content: center; }
    .sort-toggle span { display: none; }
    /* O contador de confrontos continua visível no celular. */
    .h2h-results .league__region { display: inline; }
    .h2h-hero__teams { gap: 18px; }
    .h2h-hero__team img { width: 52px; height: 52px; }
    .h2h-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .h2h-link { margin-left: 0; }
    .h2h-record__numbers { gap: 6px; padding: 12px 12px 2px; }
    .h2h-record__numbers b { font-size: 22px; }
    .h2h-record__bar { margin: 12px 12px 0; }
    .h2h-record__note { padding: 10px 12px 14px; }
    /* Resultado em duas linhas: data e competição em cima, confronto embaixo. */
    .h2h-row {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 14px; grid-template-areas: 'date date comp comp' 'home score away go';
        row-gap: 6px; column-gap: 8px; padding: 10px 10px 10px 12px; font-size: 13px;
    }
    .h2h-row__date { grid-area: date; }
    .h2h-row__comp { grid-area: comp; }
    .h2h-row__team--home { grid-area: home; }
    .h2h-row__score { grid-area: score; }
    .h2h-row__team:not(.h2h-row__team--home) { grid-area: away; }
    .h2h-row > .icon { grid-area: go; }
    .editorial__block { padding: 16px; }
    .editorial__block h2 { font-size: 16px; }
    .editorial__block p { font-size: 14px; }
    .faq__item summary { padding: 13px 14px 13px 16px; }
    .faq__item h3 { font-size: 14px; }
    .faq__item p { padding: 0 16px 14px; }
}

/* ---------- Sobre (fim da HOME) ---------- */

.about { margin-bottom: 28px; }
.about__card {
    display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: center; gap: 24px;
    padding: 20px 20px 20px 24px;
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about__title { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; white-space: nowrap; }
.about__title strong { font-weight: 800; }
.about__text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.about__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about__feature {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 12px;
    padding: 14px 12px; border-radius: var(--radius-sm);
    background: var(--tone-bg);
}
.about__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tone-circle); color: var(--tone-ink); }
.about__feature-body { display: grid; gap: 4px; }
.about__feature-body strong { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.about__feature-body span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.about__feature--green { --tone-bg: #F1FAF2; --tone-circle: #DDF4DF; --tone-ink: #1FA62A; }
.about__feature--blue { --tone-bg: #F0F5FD; --tone-circle: #DCE9FB; --tone-ink: #2F7BE0; }
.about__feature--orange { --tone-bg: #FFF7EC; --tone-circle: #FDEACF; --tone-ink: #D9831B; }
:root[data-theme='dark'] .about__feature--green { --tone-bg: rgba(61, 220, 70, .07); --tone-circle: rgba(61, 220, 70, .14); --tone-ink: #4FD957; }
:root[data-theme='dark'] .about__feature--blue { --tone-bg: rgba(80, 150, 240, .08); --tone-circle: rgba(80, 150, 240, .16); --tone-ink: #6EA8F2; }
:root[data-theme='dark'] .about__feature--orange { --tone-bg: rgba(240, 160, 60, .08); --tone-circle: rgba(240, 160, 60, .16); --tone-ink: #F0A94E; }

@media (max-width: 1080px) {
    .about { max-width: 860px; }
    .about__card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 720px) {
    .about { margin-bottom: 20px; }
    .about__card { padding: 18px 16px; }
    .about__title { font-size: 19px; white-space: normal; }
    .about__text { font-size: 13.5px; }
    .about__features { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .about__feature { padding: 12px; align-items: center; }
}

/* ---------- Rodapé ---------- */

.foot {
    margin-top: auto;
    display: flex; align-items: center; gap: 8px;
    padding-top: 8px; padding-bottom: 32px;
    font-size: 12.5px; color: var(--faint);
}

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
    .page { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
    .foot { max-width: 860px; }
    .nav { display: none; }

    /* Linhas extras do cabeçalho (menu e busca) quebram para baixo da barra. */
    .topbar__inner { flex-wrap: wrap; height: auto; min-height: 64px; row-gap: 0; }
    .brand, .topbar__actions { min-height: 64px; }
    .topbar__actions { align-items: center; }
    .iconbtn--menu { display: inline-grid; }
    .topbar.is-menu-open .menu { display: grid; gap: 2px; order: 10; flex: 0 0 100%; padding: 0 0 12px; }
}

/* ---------- Celular ---------- */

@media (max-width: 720px) {
    .wrap { padding: 0 12px; }

    .topbar__inner { min-height: 56px; gap: 8px; }
    .brand, .topbar__actions { min-height: 56px; }
    .brand { font-size: 18px; gap: 9px; }
    .brand img { width: 30px; height: 30px; }
    .search { display: none; }
    .topbar__actions { margin-left: auto; }
    .iconbtn--search { display: inline-grid; }
    .settings__panel { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; width: auto; }
    .topbar.is-search-open .search { display: flex; order: 10; flex: 0 0 100%; width: auto; margin: 0 0 12px; }
    .search__panel { left: 0; right: 0; }

    .page { padding-top: 14px; padding-bottom: 20px; gap: 16px; }

    .toolbar { margin-bottom: 12px; }
    .toolbar__head { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 14px; }
    .toolbar__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
    .toolbar__title p { white-space: nowrap; }
    .toolbar__title h1, .toolbar__title h2 { font-size: 19px; }
    .toolbar__title p { font-size: 12.5px; }

    .days__item { min-width: 0; padding: 6px 4px; }
    .days__item--cal { min-width: 58px; }
    .cal { left: 0; right: 0; width: auto; }

    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
    .chip { height: 34px; font-size: 13px; padding: 0 7px 0 11px; gap: 6px; }

    .league + .league { margin-top: 12px; }
    .league__head { height: 46px; padding: 0 8px 0 12px; gap: 9px; }
    .league__head h2 { font-size: 14.5px; }
    .league__logo { width: 24px; height: 24px; }
    .league__region { display: none; }
    .league__more { font-size: 12.5px; }

    /* Linha em duas alturas: mandante sobre visitante, placar à direita de cada time. */
    .match {
        grid-template-columns: 54px minmax(0, 1fr) 22px;
        grid-template-areas: 'status home go' 'status away go';
        row-gap: 6px;
        height: auto;
        padding: 9px 6px 9px 12px;
    }
    .match__status {
        grid-area: status; align-self: stretch;
        flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
        margin-right: 10px; border-right: 1px solid var(--line-soft);
    }
    .match__clock { font-size: 12.5px; }
    .is-live .match__status { flex-direction: row; align-items: center; gap: 6px; }

    .match__team, .match__team--home { justify-content: flex-start; text-align: left; gap: 9px; }
    .match__team--home { grid-area: home; }
    .match__team--away { grid-area: away; }
    .match__team--home .crest { order: -1; }
    .crest { width: 21px; height: 21px; }
    .match__name { font-size: 14px; }

    .match__score { display: none; }
    .match__goal {
        display: block; margin-left: auto; min-width: 18px; padding-right: 2px;
        font-size: 15px; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums;
    }
    .match__team.is-loser .match__goal { color: var(--muted); font-weight: 600; }
    .is-live .match__goal { color: var(--live); }
    .is-ht .match__goal { color: var(--ink); }
    .match.has-pens { grid-template-areas: 'status home go' 'status away go' 'status pens go'; min-height: 0; padding-top: 9px; padding-bottom: 9px; }
    .match__pens-mobile { display: flex; grid-area: pens; justify-content: flex-end; padding-right: 2px; }

    .match__go { grid-area: go; }
    .featured .match.is-feminine { grid-template-columns: 54px minmax(0, 1fr) auto; }
    .featured .match.is-feminine .match__go { gap: 6px; }

    .foot { justify-content: center; padding-bottom: 20px; font-size: 12px; text-align: center; }

    /* Toasts na largura da tela. */
    .toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
}

/* Fundo decorativo no celular: menos círculos, menores e mais suaves. */
@media (max-width: 720px) {
    .page-bg .page-bg__c2, .page-bg .page-bg__c4, .page-bg .page-bg__c6, .page-bg .page-bg__c7 { display: none; }
    .page-bg span { opacity: calc(var(--o) * .7); }
    .page-bg__c1 { width: 320px; height: 320px; left: -170px; }
    .page-bg__c3 { width: 260px; height: 260px; right: -130px; }
    .page-bg__c5 { width: 360px; height: 360px; left: -200px; }
    .page-bg__c8 { width: 300px; height: 300px; right: -160px; }
}

/* Hero: tablet e celular. */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 860px; }
    .hero__aside { justify-self: stretch; max-width: none; }
    .hero__logo { right: -120px; width: 360px; height: 360px; }
}

@media (max-width: 720px) {
    .hero__inner { padding: 22px 24px; gap: 18px; }
    .hero__logo { right: -90px; top: 40px; width: 240px; height: 240px; transform: rotate(-14deg); }
    .hero__title { font-size: 30px; line-height: 1.1; }
    .hero__lead { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
    .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
    .hero__btn { height: 46px; padding: 0 10px; font-size: 14px; gap: 7px; }
    .hero__stat { padding: 12px 6px 10px; gap: 3px; }
    .hero__stat-icon { width: 30px; height: 30px; }
    .hero__stat strong { font-size: 22px; }
    .hero__stat-label { font-size: 12px; }
    .hero__stat-label small { font-size: 11px; }
}

/* Telas muito estreitas (≤ 360px): logo e botões cabem na mesma linha. */
@media (max-width: 360px) {
    .carousel { --per-view: 2; }
    .brand { font-size: 16px; gap: 8px; }
    .brand img { width: 28px; height: 28px; }
    .topbar__actions { gap: 6px; }
    .iconbtn { width: 36px; height: 36px; }
    .chip { font-size: 12.5px; padding: 0 6px 0 9px; gap: 5px; }
    .hero__title { font-size: 27px; }
    .hero__actions { grid-template-columns: 1fr; }
}

/* ---------- Competições (/competicoes e /competicoes/{slug}) ---------- */

.team-filters__selects--two { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.team-feature__meta { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Cabeçalho: gradiente com a cor da competição e o logo translúcido. */
.comp-hero .league__logo { border-radius: var(--radius-sm); }
.season-select { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.season-select label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.season-select select, .comp-round select {
    height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--control); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600;
}
.comp-live { border-color: color-mix(in srgb, var(--live) 35%, var(--line)); }
.comp-live .league__head .scoreboard__status { color: var(--live); font-weight: 700; }

/* Barra de jogos: abas à esquerda, filtro de rodada/fase à direita. */
.comp-games-bar { justify-content: space-between; gap: 10px; }
.comp-tabs { display: flex; gap: 6px; }
.comp-round { display: flex; align-items: center; gap: 8px; min-width: 0; }
.comp-round label { min-width: 0; }
.comp-round select { max-width: 100%; }

/* Tabela completa: rola dentro do card no celular, nunca a página. */
.table-scroll { scrollbar-color: var(--line-strong) transparent; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll { max-width: 100%; }
.standing--full { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; }
.standing--full th, .standing--full td { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.standing--full th:nth-child(n + 3), .standing--full td:nth-child(n + 3) { width: 44px; text-align: center; }
.standing--full th:first-child, .standing--full td:first-child { left: 0; z-index: 1; width: 44px; padding-left: 16px; }
.standing--full th:nth-child(2), .standing--full td:nth-child(2) { left: 44px; z-index: 1; width: auto; text-align: left; }
.standing--full th:first-child, .standing--full td:first-child,
.standing--full th:nth-child(2), .standing--full td:nth-child(2) { position: sticky; background: var(--card); }
.standing--full th:last-child, .standing--full td:last-child { width: 150px; padding-right: 16px; text-align: left; }
.standing__name { min-width: 0; }
.standing tr[class*='zone-'] td:first-child { box-shadow: inset 3px 0 0 var(--zone); color: var(--ink); font-weight: 700; }
.zone-libertadores { --zone: #1FA62A; }
.zone-pre-libertadores { --zone: #7FCF6A; }
.zone-sul-americana { --zone: #2F7FD8; }
.zone-rebaixamento { --zone: #E0313B; }
.zone-acesso { --zone: #1FA62A; }
.zone-playoffs-acesso { --zone: #2F7FD8; }
.zone-oitavas { --zone: #1FA62A; }
.zone-playoffs-eliminatorios { --zone: #2F7FD8; }
.zone-eliminados { --zone: #E0313B; }
.zone-champions { --zone: #1FA62A; }
.zone-europa-league { --zone: #2F7FD8; }
.zone-conference { --zone: #7B4CD6; }
.zone-relegation-playoffs { --zone: #E67700; }
.zone-playoffs { --zone: #1FA62A; }
.zone-inconfidencia { --zone: #7B4CD6; }
.zone-semifinais { --zone: #1FA62A; }
.zone-semifinais-1-turno { --zone: #1FA62A; }
.zone-semifinais-2-turno { --zone: #2F7FD8; }
.zone-quartas { --zone: #2F7FD8; }
.zone-quartas-1-turno { --zone: #7FCF6A; }
.zone-quartas-2-turno { --zone: #7B4CD6; }
.zone-mata-mata { --zone: #2F7FD8; }
.zone-playoffs-rebaixamento { --zone: #E67700; }
.zone-grupo-rebaixamento { --zone: #E67700; }
.zone-qualifying { --zone: #7FCF6A; }
.zone-champions-qualifying { --zone: #7FCF6A; }
.zone-europa-qualifying { --zone: #7FB4E8; }
.zone-fase-32 { --zone: #1FA62A; }
.zone-afc-champions { --zone: #1FA62A; }
.zone-afc-champions-qualifying { --zone: #7FCF6A; }
.zone-afc-champions-2 { --zone: #2F7FD8; }
.zone-gulf-champions { --zone: #7B4CD6; }
.champion-mark { color: #C4A035; display: inline-flex; vertical-align: -2px; }
.comp-champion { font-weight: 700; }
.comp-champion .champion-mark { margin-right: 2px; }
.ko-tie.is-champion-final { border-color: color-mix(in srgb, #C4A035 50%, var(--line)); }
.ko-tie__status.is-champion { background: color-mix(in srgb, #C4A035 16%, var(--card)); color: #8A6D12; }
.ko-tie__status.is-champion strong { color: #8A6D12; }
.form { white-space: nowrap; }
.form__dot {
    display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 3px; border-radius: 50%;
    font-size: 10.5px; font-weight: 800; color: #fff;
}
/* .standing td a (inline-flex com gap) não pode valer para as bolinhas: o texto ficava deslocado. */
.standing td a.form__dot { display: inline-grid; place-items: center; gap: 0; font-weight: 800; line-height: 1; }
.form__dot--V { background: #1FA62A; }
.form__dot--E { background: #8A978F; }
.form__dot--D { background: #E0313B; }
.zones-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 0; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }
.zones-legend li { display: inline-flex; align-items: center; gap: 6px; }
.zones-legend li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--zone); }
.standing-note { padding: 10px 16px 14px; font-size: 12px; color: var(--faint); }

/* Grupos: tabela completa. 720px é o mínimo para as onze colunas; abaixo disso cada grupo ocupa a linha inteira. */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 720px), 1fr)); gap: 16px; align-items: start; padding: 14px 16px 0; border-top: 1px solid var(--line-soft); }
.group { min-width: 0; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
/* margin: 0 — o reset global cobre só h1, h2, p e ul; a margem padrão do h3 abria faixas brancas acima e abaixo do cabeçalho. */
.group h3 { margin: 0; padding: 10px 14px; font-size: 13px; font-weight: 750; background: var(--hover); }
.group .table-scroll { border-top: 1px solid var(--line-soft); }

/* Mata-mata: uma fase por vez (seletor), confrontos em grade de cards. */
.ko { border-top: 1px solid var(--line-soft); }
.ko__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; }
.ko__phase { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ko__phase label { min-width: 0; }
.ko__phase select {
    max-width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--control); color: var(--ink); font: inherit; font-size: 14px; font-weight: 650;
}
.ko__title { font-size: 15px; font-weight: 750; }
.ko__count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.ko__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; }

.ko-tie {
    display: flex; flex-direction: column; min-width: 0;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden;
}
.ko-tie__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ko-tie__table th, .ko-tie__table td { padding: 0; }
.ko-tie__table thead th { padding: 8px 4px 6px; border-bottom: 1px solid var(--line-soft); background: var(--hover); font-weight: 400; }
.ko-tie__table thead th:first-child { padding-left: 14px; }
.ko-tie__table thead th:last-child { padding-right: 10px; }
/* Colunas dos jogos e do agregado: largura fixa, alinhadas com os placares. */
.ko-tie__table thead th:not(:first-child), .ko-tie__table td { width: 54px; text-align: center; }
.ko-tie__leg { display: grid; justify-items: center; gap: 1px; padding: 2px 0; border-radius: var(--radius-xs); color: var(--faint); transition: background .15s, color .15s; }
.ko-tie__leg span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ko-tie__leg small { font-size: 11.5px; color: var(--muted); }
.ko-tie__leg:hover { background: var(--green-soft); color: var(--green-ink); }
.ko-tie__leg:hover small { color: var(--green-ink); }
.ko-tie__leg.is-live small { color: var(--live); font-weight: 700; }
.ko-tie__agg span { display: inline-block; padding-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.ko-tie__table tbody tr + tr > * { border-top: 1px solid var(--line-soft); }
.ko-tie__table tbody th { text-align: left; font-weight: 400; }
.ko-tie__team { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 8px 10px 14px; font-size: 14.5px; font-weight: 650; }
.ko-tie__team span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ko-tie__team .icon { flex: none; color: var(--green-strong); }
.ko-tie__team:hover span { color: var(--green-ink); }
.ko-tie__table tbody td { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.ko-tie__table tbody td.ko-tie__agg { font-size: 16px; font-weight: 800; color: var(--ink); background: var(--hover); }
.ko-tie__table tbody td.is-live { color: var(--live); }
.ko-tie__none { color: var(--faint); font-weight: 500; }
.ko-tie__table tr.is-winner .ko-tie__team { color: var(--green-ink); }
.ko-tie__table tr.is-out .ko-tie__team, .ko-tie__table tr.is-out td { color: var(--muted); font-weight: 500; }
.ko-tie__status {
    display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 9px 14px;
    border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted);
}
.ko-tie__status strong { font-weight: 700; color: var(--ink); }
.ko-tie__status.is-decided { background: var(--green-soft); color: var(--green-ink); }
.ko-tie__status.is-decided strong { color: var(--green-ink); }
.ko-tie__status.is-live { color: var(--live); font-weight: 650; }
.ko-tie__table thead th.ko-tie__pens, .ko-tie__table td.ko-tie__pens { width: 64px; }
.ko-tie__pens span { display: inline-block; padding-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); }
.ko-tie__table tbody td.ko-tie__pens b { font-size: 13.5px; font-weight: 750; color: var(--live); }

/* Participantes e números. */
.participants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.participants li { min-width: 0; }
.participants a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.participants a:hover { background: var(--hover); }
.participants-more summary { padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 13.5px; font-weight: 650; color: var(--green-ink); cursor: pointer; }
.participants-more[open] summary { color: var(--muted); }
.comp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; flex: 1; }
.comp-stats > div { display: grid; align-content: center; gap: 4px; padding: 16px; border-top: 1px solid var(--line-soft); }
.comp-stats > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.comp-stats dt { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.comp-stats dd { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Página do clube: desempenho nas competições e relacionados */
.perf__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.perf__select { min-width: 0; }
.perf__select select {
    max-width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--control); color: var(--ink); font: inherit; font-size: 14px; font-weight: 650;
}
.perf__select select:disabled { opacity: 1; color: var(--ink); }
.perf__body { display: grid; gap: 14px; padding: 0 16px 16px; }
.perf__body--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.perf__body > .match-empty { padding: 18px 0 4px; }
.perf__block { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }
.perf__title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 11px 14px; background: var(--hover); border-bottom: 1px solid var(--line-soft); }
.perf__title h3 { margin: 0; font-size: 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perf__title p { grid-column: 1; font-size: 12px; color: var(--faint); }
.perf__badge {
    grid-column: 2; grid-row: 1 / span 2; padding: 4px 10px; border-radius: 999px;
    background: var(--green-soft); color: var(--green-ink); font-size: 12px; font-weight: 650; white-space: nowrap;
}
.perf__scroll { max-height: 404px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.perf__scroll:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.perf__table { table-layout: fixed; }
.perf__table thead th { position: sticky; top: 0; z-index: 1; background: var(--card); border-top: 0; box-shadow: inset 0 -1px 0 var(--line-soft); }
.perf__table th, .perf__table td { padding-top: 8px; padding-bottom: 8px; }
.perf__table th:first-child, .perf__table td:first-child { width: 42px; padding-left: 14px; padding-right: 0; }
.perf__table th:nth-child(2), .perf__table td:nth-child(2) { padding-left: 8px; padding-right: 8px; }
.perf__table th:nth-child(n + 3), .perf__table td:nth-child(n + 3) { width: 38px; padding-left: 0; padding-right: 0; text-align: center; }
.perf__table th:last-child, .perf__table td:last-child { width: 46px; padding-right: 8px; }
.perf__table td a { max-width: 100%; }
.perf__table td a span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perf__ties { display: grid; }
.perf__tie + .perf__tie { border-top: 1px solid var(--line-soft); }
.perf__phase { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 12px 14px; }
.perf__phase > span:first-child { min-width: 0; line-height: 1.3; }
.perf__outcome {
    flex: none; padding: 3px 9px; border-radius: 999px;
    background: var(--hover); color: var(--muted);
    font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.perf__outcome.is-won { background: var(--green-soft); color: var(--green-ink); }
.perf__outcome.is-out { background: var(--live-soft); color: var(--live); }
.perf__champion { flex: none; width: auto; margin: 0; border: 0; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; }
/* Uma linha só. Data, placar e rótulo não encolhem; o nome longo quebra em até duas linhas na própria coluna. */
.perf .h2h-row {
    grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr) max-content 14px;
    align-items: center; column-gap: 8px; padding: 8px 12px; font-size: 13px;
}
.perf .h2h-row__date,
.perf .h2h-row__score,
.perf .h2h-row__comp { white-space: nowrap; }
.perf .h2h-row__team { min-width: 0; overflow: hidden; white-space: normal; }
.perf .h2h-row__name {
    min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; white-space: normal; line-height: 1.15; overflow-wrap: anywhere;
}
.perf .h2h-row__team--home .h2h-row__name { text-align: right; }
.related__match { margin: 0; padding: 10px 16px 4px; font-size: 13px; color: var(--muted); }
.related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related__grid li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 16px; }
.related__number {
    flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
    background: var(--green-soft); color: var(--green-ink);
    font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.related__grid.is-reserve .related__number { background: var(--line); color: var(--ink-2); }
.related__name { display: grid; min-width: 0; }
.related__name strong { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related__name small { font-size: 11.5px; color: var(--faint); }

@media (max-width: 1080px) {
    .ko__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .team-filters__selects--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .groups { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 12px 0; }
    .ko__bar { padding: 12px; }
    .ko__phase, .ko__phase label, .ko__phase select { flex: 1 1 auto; width: 100%; }
    .ko__count { margin-left: 0; }
    .ko__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 12px 12px; }
    .participants { grid-template-columns: minmax(0, 1fr); }
    .comp-stats dd { font-size: 22px; }
    .comp-round { flex: 1 1 100%; }
    .comp-round label, .comp-round select { width: 100%; }
    .perf__body--split { grid-template-columns: minmax(0, 1fr); }
    .perf__badge { grid-column: 1; grid-row: auto; justify-self: start; }
    .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Lightbox de compartilhar a partida (dialog nativo + canvas 1080×1350). */
html.share-open { overflow: hidden; }
.share-dialog {
    width: min(400px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0; border: 0; background: transparent; color: inherit;
}
.share-dialog::backdrop { background: rgba(10, 16, 12, .56); }
:root[data-theme='dark'] .share-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.share-dialog__box {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100dvh - 24px); overflow: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(16, 25, 21, .22), var(--shadow);
}
:root[data-theme='dark'] .share-dialog__box { box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.share-dialog__head {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px 8px 18px;
    border-bottom: 1px solid var(--line-soft);
}
.share-dialog__head h2 { flex: 1; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.share-dialog__close {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: var(--radius-sm); background: none; color: var(--faint); cursor: pointer;
}
.share-dialog__close:hover { background: var(--hover); color: var(--ink); }
.share-dialog__stage {
    position: relative; margin: 14px 16px 4px; overflow: hidden;
    border-radius: var(--radius-sm); background: #07110C;
    aspect-ratio: 1080 / 1350;
}
.share-dialog__canvas {
    display: block; width: 100%; height: 100%;
}
.share-dialog__loading, .share-dialog__error {
    display: none; place-items: center; align-content: center; gap: 12px;
    position: absolute; inset: 0; padding: 24px; text-align: center;
    background: rgba(7, 17, 12, .72); color: #E8EEE9; font-size: 14px; font-weight: 600;
}
.share-dialog[data-state='loading'] .share-dialog__loading,
.share-dialog[data-state='error'] .share-dialog__error { display: grid; }
.share-dialog[data-state='loading'] .share-dialog__canvas,
.share-dialog[data-state='error'] .share-dialog__canvas { opacity: .18; }
.share-dialog__error p { margin: 0; max-width: 22ch; }
.share-spinner {
    width: 26px; height: 26px; border: 2.5px solid rgba(255, 255, 255, .22);
    border-top-color: var(--green); border-radius: 50%;
    animation: share-spin .7s linear infinite;
}
@keyframes share-spin { to { transform: rotate(360deg); } }
.share-dialog__actions { display: grid; gap: 10px; padding: 14px 16px 16px; }
.share-dialog__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--control); color: var(--ink); cursor: pointer;
    font-size: 14px; font-weight: 650; white-space: nowrap;
}
.share-btn:hover { border-color: var(--line-strong); background: var(--hover); }
.share-btn:disabled { opacity: .45; cursor: not-allowed; }
.share-btn .icon { color: var(--ink-2); }
.share-btn--primary {
    background: var(--green); border-color: var(--green); color: var(--on-green);
}
.share-btn--primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.share-btn--primary .icon { color: var(--on-green); }
.share-dialog__msg { min-height: 1.3em; margin: 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 720px) {
    .league__share { height: 32px; padding: 0 10px; font-size: 12.5px; }
    .share-dialog { width: calc(100vw - 16px); }
    .share-dialog__stage { margin: 12px 12px 0; }
    .share-dialog__actions { padding: 12px; }
    .share-dialog__row { grid-template-columns: 1fr; }
    .share-btn { min-height: 42px; }
}

/* Linha de 2px na borda inferior do cabeçalho e o ponto vermelho à direita.
   Só com .has-live (partida em andamento). A linha fica fora do fluxo. */
.league__head[data-live-track] { position: relative; }
.league__live { display: none; margin-left: auto; margin-right: 4px; }
.has-live > .league__live { display: block; }
.live-track {
    position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: 2px;
    overflow: hidden; pointer-events: none;
    background: color-mix(in srgb, var(--green) 14%, transparent);
    opacity: 0; transition: opacity .4s ease;
}
.live-track::after {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 22%;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--green) 75%, transparent) 70%, var(--green));
    border-radius: 2px;
    transform: translateX(-100%);
}
.has-live > .live-track { opacity: 1; }
.has-live > .live-track::after { animation: live-track 2.6s linear infinite; }
@keyframes live-track { from { transform: translateX(-100%); } to { transform: translateX(455%); } }

@media (prefers-reduced-motion: reduce) {
    .has-live > .live-track::after { animation: none; display: none; }
    .has-live > .live-track { background: color-mix(in srgb, var(--green) 45%, transparent); }
    .live-dot::after, .event.is-new, .toast, .toast.is-leaving, .match.is-live .match__clock, .share-spinner { animation: none; }
    * { transition: none !important; }
}

/* ---------- Notícias (/noticias, /noticias/{slug} e carrossel da Home) ----------
 * Composição editorial herdada do Futegols: foto 16:9 no topo do card, sem texto sobre a imagem;
 * no arquivo, todas na mesma grade de três colunas; matéria em coluna de leitura de ~720px. */
.news-page { padding-top: 18px; padding-bottom: 56px; }
.news-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink);
}
.news-eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--green); }
.news-head { margin: 14px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.news-head h1 { margin-top: 8px; font-size: clamp(34px, 1.6rem + 2.2vw, 52px); font-weight: 850; letter-spacing: -.04em; line-height: 1.02; }
.news-head p { max-width: 60ch; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Card: foto em cima, corpo embaixo. Variantes: grid | rail. */
.news-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card__link { display: flex; flex: 1; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.news-card__link:hover { color: inherit; text-decoration: none; }
.news-card:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: 0 14px 30px rgba(16, 25, 21, .1); transform: translateY(-2px); }
.news-card:focus-visible { box-shadow: var(--focus); border-radius: var(--radius); }
.news-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line-soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-card__media img { transform: scale(1.03); }
/* Chapéu da matéria (kicker), sobre a capa. */
.news-kicker {
    position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 20px);
    padding: 4px 9px; border-radius: 999px; background: var(--green); color: var(--on-green);
    font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    text-decoration: none;
}
a.news-kicker:hover { color: var(--on-green); text-decoration: none; }
.news-eyebrow a { color: inherit; text-decoration: none; }
.news-eyebrow a:hover { text-decoration: underline; }
.news-card__placeholder {
    display: grid; place-items: center; width: 100%; height: 100%; color: var(--green-ink);
    background: linear-gradient(135deg, var(--green-soft), var(--line-soft));
}
.news-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px 16px; }
.news-card__title { font-size: 16px; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; text-wrap: pretty; transition: color .15s; }
.news-card:hover .news-card__title { color: var(--green-ink); }
.news-card__excerpt {
    color: var(--muted); font-size: 14px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; width: 100%; margin-top: auto; }
.news-card__foot time { color: var(--faint); font-size: 12.5px; }

/* Arquivo e "Mais notícias" na matéria: grade de três colunas, com título, resumo de duas linhas e data. */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-grid .news-card__excerpt { -webkit-line-clamp: 2; }

.news-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.news-section__title {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.news-section__title::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--green); }
.news-section__all { display: inline-flex; align-items: center; gap: 2px; color: var(--green-ink); font-size: 13.5px; font-weight: 700; }

/* Paginação: o mesmo PageNavi dos jogos do clube e do confronto (partials/pager), solto no fundo da página. */
.news-pager { margin-top: 30px; padding: 0; }
.news-empty {
    display: grid; justify-items: center; gap: 8px; padding: 56px 16px; text-align: center; color: var(--muted);
    border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card);
}
.news-empty h2 { color: var(--ink); font-size: 18px; }

/* Matéria */
.story { padding: 18px 0 56px; }
.story__narrow { max-width: 768px; margin: 0 auto; padding: 0 24px; }
.story__head { display: grid; justify-items: start; gap: 16px; margin-top: 16px; }
.story__kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.story__kicker .match-edit { margin-left: auto; }
.story__head h1 { font-size: clamp(30px, 1.3rem + 2.6vw, 50px); font-weight: 850; letter-spacing: -.035em; line-height: 1.08; }
.story__lead { color: var(--muted); font-size: clamp(18px, 1rem + .45vw, 21px); line-height: 1.55; text-wrap: pretty; }
.story__meta { width: 100%; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.story__byline { display: flex; align-items: center; gap: 12px; }
.story__byline img, .story__signature img { flex: none; border-radius: 10px; object-fit: cover; }
.story__byline a, .story__signature a { color: inherit; }
.story__byline a:hover, .story__signature a:hover { color: var(--green-ink); }
.author-hero { display: flex; align-items: flex-start; gap: 18px; }
.author-hero__photo { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; background: var(--line-soft); flex: none; }
.author-hero__role { margin-top: 6px; color: var(--muted); font-size: 15px; }
.author-hero__bio { white-space: pre-line; }
.author-list { margin-top: 8px; }
.author-list > h2 { margin-bottom: 16px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.story__byline > span { display: grid; gap: 2px; }
.story__byline strong { font-size: 14.5px; font-weight: 700; }
.story__byline > span > span { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; }
.story__cover { max-width: 768px; margin: 30px auto 0; padding: 0 24px; }
.story__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--line-soft); }
.story__cover figcaption { max-width: 720px; margin: 10px auto 0; color: var(--faint); font-size: 13px; line-height: 1.45; }

.news-prose { margin-top: 34px; color: var(--ink-2); font-size: clamp(17px, 1rem + .2vw, 18.5px); line-height: 1.75; overflow-wrap: break-word; }
.news-prose > * + * { margin-top: 1.1em; }
.news-prose h2, .news-prose h3 { color: var(--ink); font-weight: 800; letter-spacing: -.025em; }
.news-prose h2 { margin-top: 2em; font-size: clamp(22px, 1.1rem + .7vw, 28px); line-height: 1.2; }
.news-prose h3 { margin-top: 1.7em; font-size: clamp(19px, 1rem + .4vw, 22px); line-height: 1.3; }
.news-prose h2 + *, .news-prose h3 + * { margin-top: .6em; }
.news-prose strong { color: var(--ink); font-weight: 750; }
.news-prose a {
    color: var(--green-ink); font-weight: 650; text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--green) 55%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.news-prose a:hover { text-decoration-color: var(--green); }
.news-prose ul, .news-prose ol { padding: 0; list-style: none; }
.news-prose li { position: relative; padding-left: 1.7em; }
.news-prose li + li { margin-top: .5em; }
.news-prose ul > li::before { content: ''; position: absolute; top: .72em; left: .35em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.news-prose ol { counter-reset: prose-ol; }
.news-prose ol > li { counter-increment: prose-ol; padding-left: 2.2em; }
.news-prose ol > li::before {
    content: counter(prose-ol); position: absolute; top: .2em; left: 0; display: grid; place-items: center;
    width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); font-size: .82em; font-weight: 800;
}
.news-prose blockquote {
    margin: 1.8em 0; padding: 20px 24px 20px 26px; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, var(--green-soft), transparent); color: var(--ink);
    font-size: clamp(19px, 1.05rem + .4vw, 22px); font-weight: 650; line-height: 1.5;
}
.news-prose blockquote > * + * { margin-top: .6em; }
/* Aviso de demonstração no início do texto: nota discreta, não citação. */
.news-prose > blockquote:first-child {
    margin: 0; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--warn) 26%, transparent); border-radius: var(--radius-sm);
    background: var(--warn-soft); color: var(--ink-2); font-size: 15px; font-weight: 450; line-height: 1.55;
}
.news-prose img { width: 100%; height: auto; border-radius: 14px; background: var(--line-soft); }
.news-prose h4 { margin-top: 1.5em; color: var(--ink); font-size: clamp(17px, 1rem + .2vw, 19px); font-weight: 800; line-height: 1.35; }
.news-prose h4 + * { margin-top: .5em; }
.news-prose li > p { margin: 0; }
.news-prose u { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-prose pre {
    padding: 16px 18px; overflow-x: auto; border-radius: 12px; background: #111A15; color: #E6EDE9;
    font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 4;
}
.news-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.news-prose figure { margin: 1.8em 0; }
.news-prose figcaption { margin-top: 8px; color: var(--faint); font-size: 13.5px; line-height: 1.45; }
/* Bloco editorial personalizado (<div class="news-custom">), só dentro do texto da matéria. */
.news-prose .news-custom {
    margin: 1.8em 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--green);
    border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
}
.news-prose .news-custom > :first-child { margin-top: 0; }
.news-prose .news-custom > * + * { margin-top: .7em; }
.news-prose .news-custom h2, .news-prose .news-custom h3, .news-prose .news-custom h4 { font-size: 19px; }
.news-prose hr { border: 0; border-top: 1px solid var(--line); }
.news-prose code { padding: 1px 6px; border-radius: 6px; background: var(--line-soft); font-size: .9em; }
/* Âncoras do índice (<h2 id>): o destino não fica escondido sob a barra fixa do topo (.topbar, 64px). */
.news-prose [id] { scroll-margin-top: 84px; }
/* Índice da reportagem (<nav>). */
.news-prose nav { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 15.5px; line-height: 1.5; }
.news-prose nav > :first-child:not(ol):not(ul) { display: block; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-prose nav > * + * { margin-top: .8em; }
.news-prose nav li + li { margin-top: .35em; }
/* Tabelas do texto: desenho das tabelas de classificação (.standing) dentro de um cartão que rola sozinho (.table-scroll). */
.news-prose .table-wrap {
    max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-color: var(--line-strong) transparent;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.news-prose > table { display: block; max-width: 100%; overflow-x: auto; }
.news-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.news-prose caption { caption-side: bottom; padding: 10px 16px 14px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12.5px; text-align: left; }
.news-prose th, .news-prose td { padding: 9px 16px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.news-prose thead th { border-top: 0; background: var(--hover); color: var(--faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.news-prose tbody th { color: var(--ink); font-weight: 650; }
.news-prose tbody tr:hover > * { background: var(--hover); }
.news-prose td a, .news-prose th a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.news-prose td a:hover, .news-prose th a:hover { color: var(--green-ink); }
.news-prose td img, .news-prose th img { flex: none; width: 20px; height: 20px; object-fit: contain; border-radius: 0; background: none; vertical-align: middle; }
/* Lista de definições (termo em destaque + resposta). */
.news-prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .45em 1.2em; }
.news-prose dt { color: var(--ink); font-weight: 750; }
.news-prose dd { margin: 0; }
/* Perguntas frequentes (<section class="news-faq"> + <details>): mesmo cartão do FAQ dos campeonatos (.league.faq / .faq__item). */
.news-prose .news-faq { margin-top: 2em; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.news-prose .news-faq > * + * { margin-top: 0; }
.news-prose .news-faq > h2 {
    position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 10px 14px 10px 16px;
    font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35;
}
/* Ícone "list" do cabeçalho (.league__logo--icon): quadrado verde claro + traço na cor do tema. */
.news-prose .news-faq > h2::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: var(--radius-xs); background: var(--green-soft); }
.news-prose .news-faq > h2::after {
    content: ''; position: absolute; left: 21.5px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; background: var(--green-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4.5' cy='6' r='.8'/%3E%3Ccircle cx='4.5' cy='12' r='.8'/%3E%3Ccircle cx='4.5' cy='18' r='.8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4.5' cy='6' r='.8'/%3E%3Ccircle cx='4.5' cy='12' r='.8'/%3E%3Ccircle cx='4.5' cy='18' r='.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.news-prose .news-faq details { border-top: 1px solid var(--line-soft); }
.news-prose .news-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px 14px 20px; list-style: none; cursor: pointer; color: var(--ink); font-size: 14.5px; font-weight: 650; line-height: 1.45;
}
.news-prose .news-faq summary::-webkit-details-marker { display: none; }
.news-prose .news-faq summary:hover { background: var(--hover); }
.news-prose .news-faq summary h3 { margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: 0; line-height: 1.45; }
.news-prose .news-faq summary::after {
    content: ''; flex: none; width: 16px; height: 16px; background: var(--faint); transform: rotate(90deg); transition: transform .15s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.news-prose .news-faq details[open] summary::after { transform: rotate(-90deg); background: var(--green-ink); }
.news-prose .news-faq details > :not(summary) { max-width: 78ch; margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* "Nesta reportagem" */
.story-facts { margin-top: 48px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.story-facts__title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.story-facts__title::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--green); }
.story-facts__group { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.story-facts__group h3 { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 650; }
.story-facts__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.news-topic {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2);
    font-size: 13.5px; font-weight: 650; text-decoration: none;
}
.news-topic::before { content: '#'; margin-right: 6px; color: var(--green); font-weight: 800; }
.news-topic:hover { color: var(--green-ink); border-color: color-mix(in srgb, var(--green) 60%, transparent); text-decoration: none; }
.story-facts__entities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.story-entity {
    display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none;
    transition: border-color .15s, background .15s;
}
.story-entity:hover { text-decoration: none; border-color: color-mix(in srgb, var(--green) 55%, transparent); background: var(--green-soft); }
.story-entity .team-crest, .story-entity__logo { flex: none; width: 34px; height: 34px; object-fit: contain; }
.story-entity__logo--icon { display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); }
.story-entity__text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.story-entity__text strong { font-size: 14.5px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-entity__text small { color: var(--faint); font-size: 12px; }
.story-entity__go { color: var(--chevron); }
.story-entity:hover .story-entity__go { color: var(--green-ink); }
.story-facts__matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.news-match {
    display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s;
}
.news-match:hover { text-decoration: none; border-color: color-mix(in srgb, var(--green) 55%, transparent); background: var(--green-soft); }
.news-match.is-live { border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.news-match__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.news-match__comp { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.news-match__comp > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-match__logo { flex: none; width: 18px; height: 18px; object-fit: contain; }
.news-match__state {
    display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 2px 8px; border-radius: 999px;
    background: var(--line-soft); color: var(--ink-2); font-size: 11.5px; font-weight: 700;
}
.news-match.is-live .news-match__state { background: var(--live-soft); color: var(--live); }
.news-match__team { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.news-match__team .team-crest { width: 26px; height: 26px; object-fit: contain; }
.news-match__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; }
.news-match__goals { min-width: 1.4ch; text-align: right; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.news-match__team.is-loser .news-match__name, .news-match__team.is-loser .news-match__goals { color: var(--muted); font-weight: 600; }
.news-match__pens { color: var(--muted); font-size: 12.5px; }
.news-match__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; }
.news-match__go { display: inline-flex; align-items: center; gap: 2px; color: var(--green-ink); font-weight: 700; }

.story__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
}
.story__signature { display: flex; align-items: center; gap: 12px; }
.story__signature > span { display: grid; gap: 2px; }
.story__signature strong { font-size: 15px; }
.story__signature small, .story__signature time { color: var(--muted); font-size: 13px; }
.story__back {
    display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); color: var(--green-ink); font-size: 14px; font-weight: 700;
}
.story__back:hover { border-color: var(--green); text-decoration: none; }
.story-more { margin-top: 56px; }

/* Home: carrossel de notícias acima de "Acompanhe futebol em tempo real". Três por vez no desktop, dois no tablet, um no celular;
 * setas: [data-carousel] em home.js (avançam uma "página"); toque: rolagem com snap. */
/* Mesmo respiro acima (o padding de .page--home) e abaixo, até "Acompanhe futebol em tempo real". */
.news-rail { margin-bottom: 32px; }
.match-page > .news-rail { margin-bottom: 0; }
.news-rail__panel { padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.news-rail__head { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.news-rail__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.news-rail__head .news-section__all { margin-left: auto; }
.news-rail__head .carousel__nav { margin-left: 0; }
/* Tudo cabe na tela: setas somem. */
.news-rail__head .carousel__nav:has(button:disabled + button:disabled) { display: none; }
.news-rail .carousel { --per-view: 3; --gap: 18px; }
.news-rail .carousel li { display: flex; }
.news-card--rail { flex: 1; border: 0; box-shadow: none; background: none; }
.news-card--rail:hover { box-shadow: none; transform: none; }
.news-card--rail .news-card__media { border-radius: 14px; }
.news-card--rail .news-card__body { flex: none; gap: 6px; padding: 10px 2px 0; }
.news-card--rail .news-card__title { font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card--rail .news-card__foot { margin-top: 0; }
.news-card--rail:focus-visible { box-shadow: var(--focus); }

@media (max-width: 1080px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-rail .carousel { --per-view: 2; }
}
@media (max-width: 720px) {
    .news-page { padding-top: 12px; padding-bottom: 40px; }
    .news-head { margin: 10px 0 18px; padding-bottom: 16px; }
    .news-head p { font-size: 15px; }
    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    /* Celular: card inteiro, uma coluna, com resumo de três linhas; título maior para leitura. */
    .news-card--grid .news-card__body { gap: 8px; padding: 14px 16px 16px; }
    .news-card--grid .news-card__title { font-size: 18px; line-height: 1.28; }
    .news-card--grid .news-card__excerpt { -webkit-line-clamp: 3; font-size: 14.5px; }
    .news-kicker { top: 12px; left: 12px; padding: 4px 9px; font-size: 11px; }
    .author-hero { gap: 14px; }
    .author-hero__photo { width: 72px; height: 72px; border-radius: 16px; }
    .story__narrow, .story__cover { padding: 0 16px; }
    .story__cover { margin-top: 22px; }
    .story__cover img { border-radius: 12px; }
    .news-prose { margin-top: 26px; }
    .news-prose table { font-size: 13.5px; }
    .news-prose th, .news-prose td { padding: 8px 12px; }
    .news-prose dl { grid-template-columns: 1fr; gap: .15em; }
    .news-prose dd + dt { margin-top: .6em; }
    .news-prose .news-faq summary { padding: 13px 14px 13px 16px; }
    .news-prose .news-faq summary h3 { font-size: 14px; }
    .news-prose .news-faq details > :not(summary) { padding: 0 16px 14px; }
    .story-facts { margin-top: 36px; padding: 16px; border-radius: 14px; }
    .story-facts__entities, .story-facts__matches { grid-template-columns: 1fr; }
    .story__foot { flex-direction: column; align-items: flex-start; }
    .story-more { margin-top: 40px; }
    .news-rail { margin-bottom: 20px; }
    .news-rail__panel { padding: 14px 12px 16px; border-radius: 14px; }
    .news-rail .carousel { --per-view: 1; --gap: 12px; }
    .news-card--rail .news-card__title { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .news-rail .carousel { scroll-behavior: auto; }
    .news-card, .news-card:hover, .news-card__media img, .news-card:hover .news-card__media img { transform: none; }
}

/* Convite de instalação: faixa inferior, sem cobrir o restante da página. */
.pwa-install {
    position: fixed; z-index: 35;
    left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 12px;
    width: min(420px, calc(100% - 32px));
    padding: 14px;
    background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 25, 21, .14), var(--shadow);
}
.pwa-install[hidden] { display: none; }
:root[data-theme='dark'] .pwa-install { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.pwa-install__icon { width: 48px; height: 48px; border-radius: 12px; }
.pwa-install__copy { min-width: 0; }
.pwa-install__title { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.pwa-install__text { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pwa-install__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.pwa-install__later,
.pwa-install__go {
    min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.pwa-install__later { border: 0; background: none; color: var(--muted); }
.pwa-install__later:hover { color: var(--ink); background: var(--hover); }
.pwa-install__go { border: 0; background: #3DDC46; color: var(--on-green); }
.pwa-install__go:hover { background: var(--green-hover); }
body.has-pwa-install .toasts { bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 124px); }
@media (max-width: 720px) {
    .pwa-install { left: 12px; width: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    body.has-pwa-install .toasts { bottom: calc(12px + env(safe-area-inset-bottom, 0px) + 132px); }
}
@media (prefers-reduced-motion: reduce) {
    .pwa-install { animation: none; }
}
