/* Fontes Barlow (licença livre OFL), guardadas no próprio app para funcionar sem internet */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
/* RubroNegro+ — visual de placar de estádio: preto profundo, vermelho rubro, tipografia condensada esportiva. */
:root {
  --fundo: #09090B;
  --cartao: #131316;
  --cartao2: #1C1C21;
  --borda: #26262D;
  --texto: #F6F5F4;
  --suave: #A1A1AB;
  --apagado: #9494A0;
  --vermelho: #E3141B;
  --vermelho-escuro: #8E0A0F;
  --verde: #22C55E;
  --ambar: #FBBF24;
  --raio: 18px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --corpo: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cartao-topo: #17171B;
  --forte: #FFFFFF;
  --time-nome: #D8D8DE;
  --linha: #ffffff0d;
  --anel: #ffffff1f;
  --veu1: rgba(9,9,11,.55);
  --veu2: rgba(9,9,11,.97);
  --sombra-escudo: rgba(0,0,0,.6);
  --aviso-fundo: #2a2006;
  --aviso-texto: #fcd677;
  --gratis-borda: #166534;
  --gratis-fundo: #052e1699;
  --gratis-texto: #86efac;
  --v-fundo: #14532d; --v-texto: #bbf7d0;
  --e-fundo: #3f3f46; --e-texto: #e4e4e7;
  --d-fundo: #7f1d1d; --d-texto: #fecaca;
  --destaque-fundo: #1d0a0c;
  --destaque-borda: #5c1418;
  --destaque-rotulo: #fca5a5;
  --cx-fundo: #00000066;
  color-scheme: dark;
}
/* Modo claro: segue o celular, a menos que a pessoa escolha no botão */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --fundo: #F5F4F2;
    --cartao: #FFFFFF;
    --cartao2: #F1F0EE;
    --borda: #E4E2DE;
    --texto: #18181B;
    --suave: #5B5B66;
    --apagado: #6A6A74;
    --cartao-topo: #FFFFFF;
    --forte: #0B0B0D;
    --time-nome: #33333B;
    --linha: #0000000f;
    --anel: #0000001f;
    --veu1: rgba(245,244,242,.6);
    --veu2: rgba(245,244,242,.97);
    --sombra-escudo: rgba(0,0,0,.18);
    --aviso-fundo: #FEF3C7;
    --aviso-texto: #92400E;
    --gratis-borda: #86EFAC;
    --gratis-fundo: #DCFCE7;
    --gratis-texto: #15803D;
    --v-fundo: #DCFCE7; --v-texto: #166534;
    --e-fundo: #E4E4E7; --e-texto: #3F3F46;
    --d-fundo: #FEE2E2; --d-texto: #991B1B;
    --destaque-fundo: #FFE4E6;
    --destaque-borda: #FECACA;
    --destaque-rotulo: #B91C1C;
    --cx-fundo: #FFFFFFB3;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --fundo: #F5F4F2;
  --cartao: #FFFFFF;
  --cartao2: #F1F0EE;
  --borda: #E4E2DE;
  --texto: #18181B;
  --suave: #5B5B66;
  --apagado: #6A6A74;
  --cartao-topo: #FFFFFF;
  --forte: #0B0B0D;
  --time-nome: #33333B;
  --linha: #0000000f;
  --anel: #0000001f;
  --veu1: rgba(245,244,242,.6);
  --veu2: rgba(245,244,242,.97);
  --sombra-escudo: rgba(0,0,0,.18);
  --aviso-fundo: #FEF3C7;
  --aviso-texto: #92400E;
  --gratis-borda: #86EFAC;
  --gratis-fundo: #DCFCE7;
  --gratis-texto: #15803D;
  --v-fundo: #DCFCE7; --v-texto: #166534;
  --e-fundo: #E4E4E7; --e-texto: #3F3F46;
  --d-fundo: #FEE2E2; --d-texto: #991B1B;
  --destaque-fundo: #FFE4E6;
  --destaque-borda: #FECACA;
  --destaque-rotulo: #B91C1C;
  --cx-fundo: #FFFFFFB3;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--fundo); }
body {
  margin: 0 auto; max-width: 640px; min-height: 100vh;
  background: var(--fundo); color: var(--texto);
  font-family: var(--corpo); font-size: 16px; line-height: 1.4;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button, select, a { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 2px; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background:
    linear-gradient(180deg, var(--veu1), var(--veu2) 85%),
    repeating-linear-gradient(180deg, rgba(227,20,27,.22) 0 9px, transparent 9px 18px),
    var(--fundo);
  border-bottom: 1px solid var(--linha);
  backdrop-filter: blur(10px);
}
.topo-icone { border-radius: 12px; box-shadow: 0 0 0 1px var(--anel), 0 6px 18px rgba(227,20,27,.35); }
.marca-bloco { flex: 1; min-width: 0; }
.marca { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 30px; line-height: .9; letter-spacing: -.3px; }
.marca .fla { color: var(--forte); }
.marca .fan { color: var(--vermelho); }
.marca-sub { font-size: 12px; color: var(--suave); letter-spacing: .04em; margin-top: 3px; }
.btn-icone {
  border: 1px solid var(--borda); background: var(--cartao2); width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.btn-icone:active { transform: scale(.95); }

.aviso { margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--aviso-fundo); color: var(--aviso-texto); font-size: 14px; }

/* ---------- abas ---------- */
.abas {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  margin: 14px 16px 12px; background: var(--cartao); padding: 4px; border-radius: 16px; border: 1px solid var(--borda);
}
.aba {
  border: 0; background: transparent; padding: 10px 6px; border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; color: var(--suave);
  transition: background .2s, color .2s;
}
.aba.ativa { background: linear-gradient(180deg, #F0262D, var(--vermelho) 60%, #C30F15); color: #fff; box-shadow: 0 4px 14px rgba(227,20,27,.35); }

/* ---------- filtros ---------- */
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.filtros::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; scroll-snap-align: start;
  border: 1px solid var(--borda); background: var(--cartao);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--texto);
}
.chip .ic { width: 17px; height: 17px; color: var(--suave); }
.chip[aria-pressed="true"] { background: var(--forte); color: var(--fundo); border-color: var(--forte); }
.chip[aria-pressed="true"] .ic { color: var(--vermelho); }

/* ---------- lista ---------- */
main { padding: 0 16px 16px; }
.dia {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 2px 10px; font-family: var(--display); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--suave);
}
.dia::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--vermelho); flex: none; }
.dia::after { content: ""; flex: 1; height: 1px; background: var(--borda); }
.dia:first-child { margin-top: 6px; }

/* ---------- cartão de jogo ---------- */
.jogo {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--cartao-topo), var(--cartao));
  border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 14px 16px 14px; margin-bottom: 12px;
}
.jogo::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--cor), transparent 75%); }
.jogo-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  color: var(--cor); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
}
.competicao { font-size: 13px; color: var(--suave); margin-top: 2px; }

.confronto { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 14px; }
.time { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.time-nome { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.05; color: var(--time-nome); overflow-wrap: anywhere; }
.time.eh-fla .time-nome { color: var(--forte); }
.escudo {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .04em;
}
.escudo.fla {
  background: repeating-linear-gradient(180deg, var(--vermelho) 0 7px, #0B0B0D 7px 14px);
  box-shadow: 0 0 0 2px var(--anel), 0 6px 16px rgba(227,20,27,.3);
}
.escudo.adv { background: var(--cartao2); color: var(--texto); box-shadow: inset 0 0 0 1px var(--anel); }
.escudo-box { position: relative; display: grid; place-items: center; width: 50px; height: 50px; flex: none; }
.escudo-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px var(--sombra-escudo)); }
.escudo-box > .escudo { display: none; }
.escudo-box.falhou > .escudo-img { display: none; }
.escudo-box.falhou > .escudo { display: grid; }
.jogo.destaque .escudo-box { width: 60px; height: 60px; }
.centro { text-align: center; min-width: 92px; }
.hora-grande { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hora-grande.a-definir { color: var(--apagado); }
.placar { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.placar i { font-style: normal; color: var(--apagado); font-size: 28px; }
.centro-legenda { margin-top: 5px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); }

.detalhes { display: grid; gap: 9px; padding-top: 12px; border-top: 1px dashed var(--borda); }
.linha { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--suave); }
.linha > .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--apagado); }
.canais { display: flex; flex-wrap: wrap; gap: 6px; }
.canal {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cartao2); border: 1px solid var(--borda); border-radius: 999px;
  padding: 3px 11px; font-size: 13px; font-weight: 700; color: var(--texto);
}
.canal em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gratis-texto); }
.canal.gratis { border-color: var(--gratis-borda); background: var(--gratis-fundo); }
.canal.confirmar { color: var(--apagado); font-weight: 500; font-style: italic; }

.obs {
  margin-top: 10px; padding: 8px 11px; border-radius: 10px;
  background: var(--aviso-fundo); color: var(--aviso-texto); font-size: 13px; line-height: 1.35;
}
.resultado { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; flex: none; }
.resultado.v { background: var(--v-fundo); color: var(--v-texto); }
.resultado.e { background: var(--e-fundo); color: var(--e-texto); }
.resultado.d { background: var(--d-fundo); color: var(--d-texto); }
.status { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--e-fundo); color: var(--e-texto); }
.status.ao-vivo { background: var(--vermelho); color: #fff; animation: pisca 1.4s infinite; }
.status.adiado, .status.cancelado { background: var(--aviso-fundo); color: var(--aviso-texto); }
@keyframes pisca { 50% { opacity: .55; } }

/* destaque: o próximo jogo */
.jogo.destaque {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(227,20,27,.38), transparent 60%),
    linear-gradient(180deg, var(--destaque-fundo), var(--cartao) 70%);
  border-color: var(--destaque-borda);
  padding-top: 16px;
}
.jogo.destaque::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background: repeating-linear-gradient(180deg, var(--forte) 0 10px, transparent 10px 20px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%);
}
.jogo.destaque > * { position: relative; z-index: 1; }
.destaque-rotulo { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--destaque-rotulo); margin-bottom: 8px; }
.jogo.destaque .escudo { width: 60px; height: 60px; font-size: 19px; }
.jogo.destaque .time-nome { font-size: 21px; }
.jogo.destaque .hora-grande { font-size: 46px; }
.contagem { display: flex; justify-content: center; gap: 8px; margin: -2px 0 14px; }
.cx { display: grid; justify-items: center; min-width: 64px; padding: 7px 10px; border-radius: 12px; background: var(--cx-fundo); border: 1px solid var(--anel); }
.cx b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.cx small { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); margin-top: 3px; }

.vazio { text-align: center; color: var(--suave); padding: 40px 10px; }
.vazio.pequeno { padding: 18px 10px; }
.rodape { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 30px; font-size: 12px; color: var(--apagado); text-align: center; }

/* ---------- ícones ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic-sexo { width: 1em; height: 1em; opacity: .9; }
.tag .ic { width: 18px; height: 18px; }
.tag .ic-sexo { width: 15px; height: 15px; margin-left: -3px; }

/* ---------- calendário ---------- */
.cal { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px; }
.cal-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-topo .btn-icone { font-size: 24px; line-height: 1; }
.cal-titulo { display: grid; text-align: center; }
.cal-titulo strong { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.cal-titulo span { font-size: 12px; color: var(--suave); }
.cal-semana, .cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-semana span { text-align: center; font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--apagado); padding: 4px 0; }
.cal-dia {
  aspect-ratio: 1; max-width: 100%; border: 1px solid transparent; border-radius: 12px; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  color: var(--apagado); padding: 0;
}
.cal-dia.tem { background: var(--cartao2); color: var(--texto); }
.cal-dia.hoje .cal-num { color: var(--vermelho); }
.cal-dia.hoje::after { content: ""; }
.cal-dia.sel { border-color: var(--vermelho); background: #e3141b1f; color: var(--forte); }
.cal-num { font-family: var(--display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.cal-pontos { display: flex; gap: 3px; height: 7px; align-items: center; }
.cal-pontos i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.cal-pontos b { font-size: 10px; line-height: 7px; }

/* ---------- painel de lembretes ---------- */
.painel { border: 0; padding: 0; background: transparent; width: 100%; max-width: 640px; margin: auto auto 0; max-height: 92vh; }
.painel::backdrop { background: #000b; backdrop-filter: blur(3px); }
.painel-conteudo { background: var(--cartao); border-top: 1px solid var(--borda); border-radius: 24px 24px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); color: var(--texto); }
.painel-topo { display: flex; align-items: center; justify-content: space-between; }
.painel h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .02em; }
.painel h3 { font-size: 16px; margin: 22px 0 6px; }
.ajuda { color: var(--suave); font-size: 14px; margin: 0 0 10px; }
.pequena { font-size: 12px; margin-top: 8px; }
.campo { display: grid; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
select { background: var(--cartao2); border: 1px solid var(--borda); border-radius: 12px; padding: 11px; }
.botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-block; border: 0; background: var(--vermelho); color: #fff; padding: 11px 15px; border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 14px; }
.btn.sec { background: var(--cartao2); border: 1px solid var(--borda); color: var(--texto); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.checks { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.checks label { display: flex; gap: 10px; align-items: center; background: var(--cartao2); border: 1px solid var(--borda); border-radius: 12px; padding: 11px 12px; font-size: 15px; }
.checks input { accent-color: var(--vermelho); width: 18px; height: 18px; }
.pref-nome { display: inline-flex; gap: 2px; }
.pref-nome .ic { width: 19px; height: 19px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- tabela de classificação ---------- */
.tabela-camp { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 0 10px; margin-bottom: 14px; position: relative; overflow: hidden; }
.tabela-camp::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--cor), transparent 75%); }
.tabela-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding: 0 14px 10px; }
.tabela-cab small { color: var(--apagado); font-size: 12px; }
.tabela-rolagem { overflow-x: auto; }
.tabela-camp table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.tabela-camp th { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--apagado); text-align: center; padding: 6px 6px; border-bottom: 1px solid var(--borda); }
.tabela-camp td { text-align: center; padding: 7px 6px; border-bottom: 1px solid var(--linha); color: var(--suave); }
.tabela-camp th.t-time, .tabela-camp td.t-time { text-align: left; width: 100%; }
.tabela-camp .t-pos { width: 34px; padding-left: 14px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--texto); position: relative; }
.tabela-camp td.t-time { max-width: 0; color: var(--texto); font-weight: 600; }
.tabela-camp .t-time-in { display: flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap; }
.tabela-camp .t-time-in > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tabela-camp .t-time-in > :not(span) { flex: none; }
.tabela-camp .t-pts { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--texto); }
.tabela-camp tr:last-child td { border-bottom: 0; }
.tabela-camp tr.eh-fla td { background: rgba(227,20,27,.14); color: var(--forte); }
.tabela-camp tr.eh-fla td.t-time { font-weight: 800; }
.tabela-camp tr td.t-pos::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.tabela-camp tr.z-liberta td.t-pos::before, .lg.z-liberta::before { background: #3B82F6; }
.tabela-camp tr.z-pre td.t-pos::before, .lg.z-pre::before { background: #22D3EE; }
.tabela-camp tr.z-rebaixa td.t-pos::before, .lg.z-rebaixa::before { background: #EF4444; }
.escudo-box.mini { width: 24px; height: 24px; }
.escudo-box.mini .escudo { width: 24px; height: 24px; font-size: 9px; letter-spacing: 0; }
.escudo-box.mini .escudo.fla { background: repeating-linear-gradient(180deg, var(--vermelho) 0 4px, #0B0B0D 4px 8px); box-shadow: 0 0 0 1px var(--anel); }
.tabela-legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px 2px; font-size: 12px; color: var(--apagado); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }

.tabela-nota { display: grid; gap: 10px; padding: 12px 14px 4px; font-size: 13px; color: var(--aviso-texto); }
.tabela-nota .btn { justify-self: start; color: var(--texto); font-size: 13px; padding: 9px 13px; }

.escudo-img.claro { background: #F4F4F5; border-radius: 22%; padding: 7%; filter: none; box-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* botão de tema */
.topo-botoes { display: flex; gap: 8px; }
.btn-icone .ic-tema { width: 22px; height: 22px; }
.tema-sol { display: none; }
:root[data-theme="dark"] .tema-sol { display: block; }
:root[data-theme="dark"] .tema-lua { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tema-sol { display: block; } :root:not([data-theme="light"]) .tema-lua { display: none; } }
/* no claro, o destaque fica mais suave e o escudo listrado ganha contorno */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .jogo.destaque { background: radial-gradient(120% 90% at 50% 0%, rgba(227,20,27,.16), transparent 60%), linear-gradient(180deg, var(--destaque-fundo), var(--cartao) 70%); } }
:root[data-theme="light"] .jogo.destaque { background: radial-gradient(120% 90% at 50% 0%, rgba(227,20,27,.16), transparent 60%), linear-gradient(180deg, var(--destaque-fundo), var(--cartao) 70%); }
/* no claro, as cores das modalidades ficam um pouco mais escuras para dar leitura no branco */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .tag { color: color-mix(in srgb, var(--cor) 70%, #000); } }
:root[data-theme="light"] .tag { color: color-mix(in srgb, var(--cor) 70%, #000); }

/* eventos olímpicos */
.evento-nome { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.05; margin: 10px 0 8px; color: var(--forte); text-wrap: balance; }
.evento-quando, .evento-atletas { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--texto); margin-bottom: 8px; }
.evento-quando .ic, .evento-atletas .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--cor); }
.evento-atletas { color: var(--suave); font-size: 14px; }
.evento-lista { list-style: none; margin: 4px 0 10px; padding: 10px 12px; display: grid; gap: 6px; background: var(--aviso-fundo); border-radius: 12px; }
.evento-lista li { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--aviso-texto); font-size: 14px; }
.evento-lista .ic { width: 18px; height: 18px; flex: none; }
.fonte-info { margin-top: 8px; font-size: 11px; color: var(--apagado); letter-spacing: .02em; }
.btn.ingresso { display: block; text-align: center; margin-top: 12px; }

/* ---------- chave do visual compacto ---------- */
.visual-barra { display: flex; justify-content: flex-end; padding: 0 16px 10px; margin-top: -4px; }
.chave { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--suave); cursor: pointer; user-select: none; }
.chave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chave-trilho { width: 42px; height: 24px; border-radius: 999px; background: var(--cartao2); border: 1px solid var(--borda); position: relative; transition: background .2s; flex: none; }
.chave-bola { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--suave); transition: transform .2s, background .2s; }
.chave input:checked + .chave-trilho { background: var(--vermelho); border-color: var(--vermelho); }
.chave input:checked + .chave-trilho .chave-bola { transform: translateX(18px); background: #fff; }
.chave input:focus-visible + .chave-trilho { outline: 2px solid var(--vermelho); outline-offset: 2px; }

/* ---------- lista compacta (estilo placar) ---------- */
.painel-compacto { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; margin-bottom: 6px; }
.lc { border-bottom: 1px solid var(--linha); }
.lc:last-child { border-bottom: 0; }
.lc { position: relative; padding: 12px 12px 10px; }
.lc::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cor); }
.lc-placa { display: grid; grid-template-columns: 1fr minmax(118px, auto) 1fr; align-items: center; gap: 6px; }
.lc-time { display: grid; justify-items: center; gap: 5px; text-align: center; min-width: 0; }
.lc-time .escudo-box.mini { width: 36px; height: 36px; }
.lc-time .escudo-box.mini .escudo { width: 36px; height: 36px; font-size: 12px; }
.lc-nome { font-size: 13px; font-weight: 600; color: var(--suave); line-height: 1.15; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-time.eh-fla .lc-nome { color: var(--forte); }
.lc-time.venc .lc-nome { color: var(--forte); font-weight: 800; }
.lc-ic .ic { width: 30px; height: 30px; }
.lc-trofeu { color: var(--ambar); }
.lc-centro { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.lc-comp { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--apagado); max-width: 160px; line-height: 1.2; text-wrap: balance; }
.lc-comp .ic { width: 12px; height: 12px; flex: none; }
.lc-hora { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--forte); }
.lc-hora.apagado { color: var(--apagado); }
.lc-placar { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.lc-placar b { color: var(--suave); font-weight: 800; }
.lc-placar b.mais { color: var(--forte); }
.lc-placar i { font-style: normal; color: var(--apagado); font-size: 20px; }
.lc-evento { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.1; color: var(--forte); text-wrap: balance; max-width: 170px; }
.lc-leg { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--apagado); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-leg.v { color: var(--gratis-texto); }
.lc-leg.d { color: var(--d-texto); }
.lc-leg.ao-vivo { color: var(--vermelho); }
#lista.compacto .dia { justify-content: center; font-size: 13px; letter-spacing: .06em; margin: 16px 2px 8px; }
#lista.compacto .dia::before, #lista.compacto .dia::after { display: none; }

/* informações completas na linha compacta */
.lc-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--suave); text-align: center; }
.lc-item { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.lc-item .ic { width: 14px; height: 14px; color: var(--apagado); flex: none; }
.lc-item b { font-weight: 700; color: var(--texto); }
.lc-item b.gratis { color: var(--gratis-texto); }
.lc-item i { font-style: italic; color: var(--apagado); }
.lc-obs { margin: 8px auto 0; max-width: 46ch; padding: 5px 10px; border-radius: 8px; background: var(--aviso-fundo); color: var(--aviso-texto); font-size: 12px; text-align: center; }
.lc-resultado { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--aviso-texto); }
.lc-resultado span { display: inline-flex; align-items: center; gap: 4px; }
.lc-resultado .ic { width: 14px; height: 14px; }
.lc-rodape { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; margin-top: 8px; }
.lc-fonte { font-size: 10.5px; color: var(--apagado); letter-spacing: .02em; }
.lc-ingresso { font-size: 12px; font-weight: 700; color: #fff; background: var(--vermelho); padding: 4px 10px; border-radius: 999px; text-decoration: none; }

/* nomes compridos não invadem o logo nem quebram no meio da palavra */
.time { gap: 12px; }
.time-nome { overflow-wrap: normal; word-break: normal; hyphens: manual; max-width: 100%; }
.time-nome.longo { font-size: 16px; }
.jogo.destaque .time-nome.longo { font-size: 18px; }
.lc-time { gap: 8px; }
.lc-nome { overflow-wrap: normal; word-break: normal; }
.lc-nome.longo { font-size: 11.5px; }

/* ---------- letra do sistema (no iPhone, a mesma do Apple Sports) ---------- */
:root {
  --display: -apple-system, "Inter RubroNegro+", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --corpo: -apple-system, "Inter RubroNegro+", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.marca { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }
.aba { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.dia { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.tag { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; }
.time-nome, .evento-nome, .lc-evento { font-weight: 600; letter-spacing: -.01em; }
.time-nome { font-size: 17px; }
.time-nome.longo { font-size: 14.5px; }
.hora-grande, .lc-hora { font-weight: 600; letter-spacing: -.02em; }
.placar, .lc-placar, .cx b { font-weight: 700; letter-spacing: -.02em; }
.cal-titulo strong, .painel h2 { text-transform: none; letter-spacing: -.01em; font-weight: 700; }
.cal-num, .cal-semana span { font-weight: 600; }
.tabela-camp th { letter-spacing: 0; font-weight: 600; }
.tabela-camp .t-pos, .tabela-camp .t-pts { font-weight: 600; }
.resultado, .status { text-transform: none; letter-spacing: 0; font-weight: 700; }
.destaque-rotulo { letter-spacing: .06em; font-weight: 700; }
#lista.compacto .dia { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ---------- tela do jogo (folha que sobe de baixo) ---------- */
.folha { border: 0; padding: 0; background: transparent; width: 100%; max-width: 640px; max-height: 94vh; margin: auto auto 0; }
.folha::backdrop { background: #000c; backdrop-filter: blur(4px); }
.folha[open] .folha-conteudo { animation: subir .28s ease-out; }
@keyframes subir { from { transform: translateY(40px); opacity: .4; } }
.folha-conteudo { position: relative; background: linear-gradient(#2a0a0d, #2a0a0d) top / 100% 80px no-repeat, var(--fundo); color: var(--texto); border-radius: 26px 26px 0 0; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); overflow: hidden; }
.folha-alca { width: 44px; height: 5px; border-radius: 3px; background: #ffffff55; position: absolute; top: 8px; left: 50%; margin-left: -20px; z-index: 3; }
.folha-fechar { position: absolute; top: 16px; right: 16px; padding: 0; display: grid; place-items: center; font-size: 15px; line-height: 1; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: #00000055; border-color: #ffffff22; color: #fff; }
.fj-topo { padding: 30px 18px 22px; margin-top: -1px; text-align: center; color: #fff;
  background: radial-gradient(90% 120% at 15% 0%, rgba(227,20,27,.75), transparent 60%), radial-gradient(90% 120% at 90% 10%, color-mix(in srgb, var(--cor) 55%, transparent), transparent 60%), linear-gradient(180deg, #2a0a0d, #0d0d10); }
.fj-comp { font-size: 14px; font-weight: 600; color: #ffffffb3; margin: 6px 0 14px; }
.fj-confronto { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fj-time { display: grid; justify-items: center; gap: 12px; min-width: 0; font-size: 17px; font-weight: 600; }
.fj-time .longo { font-size: 15px; }
.fj-time .escudo-box { width: 84px; height: 84px; }
.fj-time .escudo-box .escudo { width: 84px; height: 84px; font-size: 22px; }
.fj-centro { min-width: 96px; }
.fj-hora { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fj-placar { display: flex; gap: 10px; justify-content: center; font-size: 44px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fj-placar i { font-style: normal; opacity: .5; }
.fj-leg { font-size: 13px; font-weight: 600; color: #ffffffb3; margin-top: 4px; }
.fj-evento { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; text-wrap: balance; }
.fj-info { padding: 14px 16px 0; }
.fj-info .lc-info { font-size: 13.5px; gap: 6px 16px; }
.fj-info .lc-obs { font-size: 13px; }
.fj-titulo { text-align: center; font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.folha .tabela-camp { margin: 0 12px; }
.folha-conteudo { overflow-y: auto; max-height: 94vh; }
.tabela-camp tr.eh-adv td { background: color-mix(in srgb, var(--texto) 8%, transparent); color: var(--forte); }
.tabela-camp tr.eh-adv td.t-time { font-weight: 800; }
#lista [data-id] { cursor: pointer; }
#lista .lc[data-id]:active, #lista .jogo[data-id]:active { transform: scale(.995); }

/* o logo nunca passa do tamanho da caixa (logos altos, como Athletico e Vasco, estouravam) */
.escudo-box { position: relative; }
.escudo-box > .escudo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.folha, .folha:focus, .folha:focus-visible, .folha-conteudo:focus { outline: none; box-shadow: none; }
/* tabelas com muitas colunas (CBF): rola para o lado, # e Time ficam parados */
.tabela-camp table.larga { width: max-content; min-width: 100%; }
.tabela-camp table.larga td.t-time { max-width: none; width: auto; }
.tabela-camp table.larga .t-time-in { width: 150px; }
.tabela-camp table.larga .t-pos, .tabela-camp table.larga .t-time { position: sticky; z-index: 1; background: var(--cartao); }
.tabela-camp table.larga .t-pos { left: 0; }
.tabela-camp table.larga .t-time { left: 34px; box-shadow: 6px 0 8px -6px rgba(0,0,0,.25); }
.tabela-camp table.larga tr.eh-fla td.t-pos, .tabela-camp table.larga tr.eh-fla td.t-time { background: color-mix(in srgb, #E3141B 14%, var(--cartao)); }
.tabela-camp table.larga tr.eh-adv td.t-pos, .tabela-camp table.larga tr.eh-adv td.t-time { background: color-mix(in srgb, var(--texto) 8%, var(--cartao)); }
.tabela-camp td.c-ap:not(:empty)::after { content: "%"; opacity: .6; }
.tabela-camp .c-ca, .tabela-camp .c-cv { color: var(--apagado); }
.tabela-camp .ult { display: inline-flex; gap: 3px; }
.tabela-camp .ult i { font-style: normal; font-size: 10px; font-weight: 700; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.tabela-camp .ult-V { background: #16A34A; } .tabela-camp .ult-E { background: #8A8F98; } .tabela-camp .ult-D { background: #DC2626; }
.tabela-dica { font-size: 12px; color: var(--apagado); padding: 8px 14px 0; text-align: right; }
.folha-conteudo { min-height: 88vh; min-height: 88dvh; }

/* ---------- ficha do jogo flutuando (como no Apple Sports) ---------- */
.folha { width: calc(100% - 20px); max-width: 620px; max-height: calc(100dvh - 50px); margin: auto auto 0; }
.folha::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px) saturate(.8); -webkit-backdrop-filter: blur(6px) saturate(.8); }
.folha-conteudo {
  /* a ficha é sempre escura, nos dois temas */
  --fundo: #0e0d10; --cartao: #1b1519; --cartao2: #241c21; --borda: rgba(255,255,255,.09); --texto: #F6F5F4; --suave: #c9c6cc;
  --apagado: #8f8a94; --forte: #fff; --time-nome: #e4e1e6; --linha: rgba(255,255,255,.07); --anel: rgba(255,255,255,.14); --aviso-texto: #fcd677;
  color: var(--texto);
  background:
    radial-gradient(130% 95% at 0% 0%, rgba(227,20,27,.6), transparent 70%),
    radial-gradient(130% 95% at 100% 0%, color-mix(in srgb, var(--cor, #555) 58%, transparent), transparent 70%),
    linear-gradient(180deg, #1a1216 0%, #121014 45%, #0c0b0e 100%);
  border-radius: 34px 34px 0 0; max-height: calc(100dvh - 50px); min-height: calc(100dvh - 50px);
  box-shadow: 0 -10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
.fj-topo { background: none !important; padding-top: 34px; }
.fj-info .lc-info, .fj-info .lc-obs, .fj-info { color: var(--suave); }
.fj-titulo { margin: 26px 0 0; padding: 14px 0 6px; font-size: 16px; }
.folha .tabela-camp { margin: 0 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding-top: 10px; }
.folha .tabela-camp::before { display: none; }
.folha .tabela-camp th, .folha .tabela-camp td { border-bottom-color: rgba(255,255,255,.06); }
.folha .tabela-camp tr.eh-fla td { background: rgba(255,255,255,.10); }
.folha .tabela-camp tr.eh-adv td { background: rgba(255,255,255,.06); }
.folha .tabela-camp table.larga .t-pos, .folha .tabela-camp table.larga .t-time { background: #22171b; }
.folha .tabela-camp table.larga tr.eh-fla td.t-pos, .folha .tabela-camp table.larga tr.eh-fla td.t-time { background: #33262a; }
/* telas estreitas (iPhone SE/mini): as 4 abas cabem sem empurrar a última para fora */
.aba { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 430px) { .aba { font-size: 14px; letter-spacing: -.01em; padding: 10px 2px; } }
@media (max-width: 380px) { .aba { font-size: 12.5px; letter-spacing: -.01em; padding: 10px 1px; } .abas { margin-left: 12px; margin-right: 12px; } }

/* ---------- ficha: a janela ocupa a tela toda (transparente) e o cartão fica dentro, sem "quadrado" atrás dos cantos ---------- */
.folha {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; inset: 0;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px) saturate(.8); -webkit-backdrop-filter: blur(6px) saturate(.8);
  overflow: hidden;
}
.folha[open] { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.folha::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.folha-conteudo {
  width: calc(100% - 20px); max-width: 620px; margin: 0 auto;
  max-height: calc(100dvh - 50px); min-height: calc(100dvh - 50px);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
/* ficha: colunas mais justas para o nome do time caber */
.folha .tabela-camp th, .folha .tabela-camp td { padding-left: 3px; padding-right: 3px; }
.folha .tabela-camp .t-pos { width: 26px; padding-left: 10px; }
.folha .tabela-camp td.c-ap, .folha .tabela-camp th.c-ap { padding-right: 10px; }
.folha .tabela-camp .t-time-in { gap: 7px; }
.folha .tabela-camp .t-time-in .escudo-box.mini, .folha .tabela-camp .t-time-in .escudo-box.mini .escudo { width: 24px; height: 24px; }
/* ficha flutuando por inteiro: cantos de baixo arredondados e um respiro até o fim da tela */
.folha-conteudo {
  border-radius: 34px;
  margin-bottom: max(10px, env(safe-area-inset-bottom));
  max-height: calc(100dvh - 50px - max(10px, env(safe-area-inset-bottom)));
  min-height: calc(100dvh - 50px - max(10px, env(safe-area-inset-bottom)));
  padding-bottom: 14px;
}

/* filtros alinhados com as abas (o "encaixe" ao rolar respeita a margem) */
.filtros { scroll-padding-inline: 16px; }
@media (max-width: 380px) { .filtros { padding-left: 12px; padding-right: 12px; scroll-padding-inline: 12px; } }

/* abas: destaque vermelho que desliza até a aba escolhida */
.abas { position: relative; isolation: isolate; }
.abas::before {
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px - 12px) / 4); border-radius: 12px;
  background: linear-gradient(180deg, #F0262D, var(--vermelho) 60%, #C30F15); box-shadow: 0 4px 14px rgba(227,20,27,.35);
  transform: translateX(calc(var(--i, 0) * (100% + 4px)));
}
.abas.anima::before { transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.aba.ativa { background: transparent !important; box-shadow: none !important; color: #fff; }
.aba { transition: color .25s; position: relative; }

/* ---------- ficha "instalar o app" ---------- */
.instalar-app { display: flex; gap: 14px; align-items: center; margin: 16px 0 8px; padding: 12px; border-radius: 16px; background: var(--cartao2, var(--cartao)); border: 1px solid var(--borda); }
.instalar-app img { border-radius: 14px; flex: none; }
.instalar-app div { display: grid; gap: 3px; }
.instalar-app b { font-size: 17px; }
.instalar-app span { font-size: 13.5px; color: var(--suave); line-height: 1.35; }
.instalar-direto { width: 100%; margin: 8px 0 4px; justify-content: center; background: var(--vermelho); color: #fff; border: 0; font-weight: 700; font-size: 16px; padding: 13px; border-radius: 14px; }
.passos h3 { font-size: 16px; margin: 18px 0 8px; }
.passos ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
.passos .ic-passo { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--cartao2, var(--cartao)); border: 1px solid var(--borda); vertical-align: middle; color: #0A84FF; margin: 0 2px; }
.passos.outro { opacity: .75; }
.passos.outro h3::before { content: "Outro celular: "; font-weight: 500; color: var(--suave); }

/* ---------- ficha: "Neste campeonato" ---------- */
.nc { margin: 0 12px; padding: 6px 0; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nc-rotulo { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--apagado); padding: 10px 16px 4px; }
.nc-vazio { margin: 4px 16px 10px; font-size: 14px; color: var(--suave); }
.nc-jogo { width: 100%; display: grid; grid-template-columns: 66px 26px 1fr auto; align-items: center; gap: 10px; padding: 9px 16px; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.06); color: var(--texto); text-align: left; font: inherit; cursor: pointer; }
.nc-rotulo + .nc-jogo { border-top: 0; }
.nc-jogo:active { background: rgba(255,255,255,.06); }
.nc-data { font-size: 13px; color: var(--suave); text-transform: capitalize; font-variant-numeric: tabular-nums; }
.nc-jogo .escudo-box.mini, .nc-jogo .escudo-box.mini .escudo { width: 26px; height: 26px; }
.nc-nome { display: grid; min-width: 0; }
.nc-nome b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-nome small { font-size: 12px; color: var(--apagado); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-hora { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nc-placar { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nc-placar i { font-style: normal; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.nc-v i { background: #16A34A; } .nc-e i { background: #8A8F98; } .nc-d i { background: #DC2626; }
.instalar-direto[hidden], #abrir-instalar[hidden] { display: none !important; }
/* topo com 3 botões: o subtítulo continua numa linha só */
.marca-sub { white-space: nowrap; }
@media (max-width: 430px) { .topo-botoes { gap: 6px; } .topo-botoes .btn-icone { width: 40px; height: 40px; border-radius: 13px; } .marca-sub { font-size: 11.5px; letter-spacing: .02em; } }
@media (max-width: 380px) { .topo-botoes .btn-icone { width: 36px; height: 36px; border-radius: 12px; } .marca-sub { font-size: 10.5px; letter-spacing: 0; } }
.nc-jogo { grid-template-columns: auto 26px 1fr auto; }
.nc-data { white-space: nowrap; min-width: 62px; }
/* observação (faixa amarela) legível dentro da ficha escura, nos dois temas */
.folha-conteudo { --aviso-fundo: rgba(252,214,119,.14); --aviso-texto: #fcd677; }
.folha .lc-obs { background: rgba(252,214,119,.14) !important; color: #fcd677 !important; border-color: rgba(252,214,119,.25) !important; }
/* ficha: sem contorno de foco nos jogos da lista (a ficha seleciona o primeiro botão ao abrir) */
.folha button:focus, .folha button:focus-visible, .nc-jogo:focus, .nc-jogo:focus-visible { outline: none; box-shadow: none; }
#compartilhar[hidden] { display: none !important; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: #111; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: calc(100% - 32px); text-align: center; }
.toast[hidden] { display: none; }
/* ficha instalar: sem "Outro celular", e botão de compartilhar com amigos no fim */
.passos.outro { opacity: 1; }
.passos.outro h3::before { content: none; }
.compartilhar-amigos { width: 100%; margin: 22px 0 6px; justify-content: center; gap: 8px; display: flex; align-items: center;
  background: var(--cartao2, var(--cartao)); color: var(--texto); border: 1px solid var(--borda); font-weight: 700; font-size: 16px; padding: 13px; border-radius: 14px; }
.ajuda.centro { text-align: center; margin-top: 4px; }

/* ---------- fichas "Instalar o app" e "Lembretes": cartão flutuante, como a ficha do jogo ---------- */
.painel {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px) saturate(.8); -webkit-backdrop-filter: blur(6px) saturate(.8); overflow: hidden;
}
.painel[open] { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.painel::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.painel-conteudo {
  width: calc(100% - 20px); max-width: 620px; margin: 0 auto max(10px, env(safe-area-inset-bottom));
  max-height: calc(100dvh - 50px - max(10px, env(safe-area-inset-bottom))); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 34px; border: 1px solid var(--borda); padding: 20px 18px 18px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.35);
}
.painel[open] .painel-conteudo { animation: subir .28s ease-out; }
/* topo com 4 botões: o nome nunca fica por baixo dos botões */
.marca-bloco { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.marca-sub { overflow: hidden; text-overflow: ellipsis; }
.topo-botoes { flex: none; }
@media (max-width: 430px) {
  .topo-botoes { gap: 5px; }
  .topo-botoes .btn-icone { width: 36px; height: 36px; border-radius: 12px; }
  .topo-botoes .btn-icone svg { width: 20px; height: 20px; }
  .marca-sub { font-size: 11px; letter-spacing: 0; }
}
@media (max-width: 380px) {
  .topo-botoes { gap: 4px; }
  .topo-botoes .btn-icone { width: 33px; height: 33px; border-radius: 11px; }
  .topo-botoes .btn-icone svg { width: 18px; height: 18px; }
  .marca-sub { font-size: 10px; }
}
@media (max-width: 400px) {
  .topo-botoes { gap: 4px; }
  .topo-botoes .btn-icone { width: 33px; height: 33px; border-radius: 11px; }
  .topo-botoes .btn-icone svg { width: 18px; height: 18px; }
  .marca-sub { font-size: 10.5px; }
}
@media (max-width: 365px) {
  .topo-icone { width: 34px; height: 34px; }
  .topo { gap: 8px; }
  .topo-botoes .btn-icone { width: 31px; height: 31px; }
  .marca-sub { font-size: 9.5px; }
}
.lc-canais { display: inline; }

/* ---------- fichas: a janela sempre cobre a tela inteira e o cartão mede a partir dela (mesma régua no iPhone) ---------- */
.folha, .painel {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw; height: 100vh; height: 100dvh; max-height: none; min-height: 0;
}
.folha-conteudo, .painel-conteudo {
  max-height: calc(100% - 50px - max(10px, env(safe-area-inset-bottom)));
  flex-shrink: 1;
}
.folha-conteudo { min-height: calc(100% - 50px - max(10px, env(safe-area-inset-bottom))); }
.painel-conteudo { min-height: 0; }
html:has(dialog[open]) { overflow: hidden; } /* a página atrás não rola enquanto a ficha está aberta */
/* "Neste campeonato": coluna da data com largura fixa, para escudos e nomes ficarem alinhados em todas as linhas */
.nc-jogo { grid-template-columns: 86px 26px minmax(0, 1fr) auto; }
.nc-data { min-width: 0; width: 86px; overflow: hidden; text-overflow: clip; font-variant-numeric: tabular-nums; }
.nc-nome { justify-items: start; }

/* ---------- "Fale com a gente" ---------- */
.fale-conosco { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center; margin: 6px 0 2px;
  background: var(--cartao); color: var(--texto); border: 1px solid var(--borda); font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 999px; }
.rodape-chamada { font-size: 12.5px; color: var(--suave); margin-bottom: 8px; }
.btn-link { display: block; margin: 14px auto 2px; background: none; border: 0; color: var(--vermelho); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.contato-corpo { display: grid; gap: 14px; margin-top: 10px; }
.contato-corpo[hidden], .contato-ok[hidden], .campo-empresa[hidden], .contato-erro[hidden] { display: none !important; }
.contato-tipos { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contato-tipos legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.contato-tipos label { position: relative; }
.contato-tipos input { position: absolute; opacity: 0; pointer-events: none; }
.contato-tipos span { display: block; text-align: center; padding: 11px 6px; border-radius: 14px; border: 1px solid var(--borda); background: var(--cartao2, var(--cartao)); font-size: 14px; font-weight: 600; cursor: pointer; }
.contato-tipos input:checked + span { border-color: var(--vermelho); background: color-mix(in srgb, var(--vermelho) 14%, var(--cartao)); color: var(--texto); }
.contato-tipos input:focus-visible + span { outline: 2px solid var(--vermelho); outline-offset: 2px; }
.contato .campo { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.contato .campo small { font-weight: 400; color: var(--apagado); }
.contato .campo input, .contato .campo textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--texto); background: var(--cartao2, var(--cartao));
  border: 1px solid var(--borda); border-radius: 12px; padding: 11px 12px; resize: vertical; }
.contato .campo input:focus, .contato .campo textarea:focus { outline: 2px solid color-mix(in srgb, var(--vermelho) 60%, transparent); border-color: transparent; }
.isca { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contato-erro { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #DC2626 14%, transparent); color: #DC2626; font-size: 14px; font-weight: 600; }
.contato-enviar { width: 100%; justify-content: center; background: var(--vermelho); color: #fff; border: 0; font-weight: 700; font-size: 16px; padding: 14px; border-radius: 14px; }
.contato-enviar:disabled { opacity: .6; }
.contato-ok { text-align: center; padding: 20px 6px 6px; display: grid; gap: 10px; justify-items: center; }
.contato-ok-icone { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #16A34A; color: #fff; font-size: 28px; font-weight: 800; }
.contato-ok h3 { margin: 0; font-size: 20px; }
.contato-ok p { margin: 0 0 6px; color: var(--suave); font-size: 15px; }
/* emoji da modalidade nos filtros e selos */
.emoji-mod { font-size: 1.15em; line-height: 1; display: inline-block; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.chip .emoji-mod { font-size: 18px; margin-right: 1px; }
.tag .emoji-mod { font-size: 15px; }
.lc-comp .emoji-mod { font-size: 13px; margin-right: 3px; } .lc-ic .emoji-mod { font-size: 30px; }
/* emoji do campeonato no cartão compacto: do tamanho do texto e com respiro até o horário */
.lc-comp { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; line-height: 1.25; }
.lc-comp .emoji-mod { font-size: 12px; margin: 0; line-height: 1; flex: none; }

/* ================= VERSÃO PARA COMPUTADOR E TABLET ================= */
.folha-x { display: none; }
@media (min-width: 760px) {
  body { max-width: none; }
  .topo, .abas, .filtros, .visual-barra, main, .rodape, .aviso { max-width: 1180px; margin-left: auto; margin-right: auto; }
  .topo { padding-left: 24px; padding-right: 24px; border-radius: 0 0 22px 22px; }
  .topo-icone { width: 48px; height: 48px; }
  .marca { font-size: 30px; }
  .marca-sub { font-size: 13.5px; }
  .topo-botoes { gap: 10px; }
  .topo-botoes .btn-icone { width: 44px; height: 44px; }
  .abas { max-width: 640px; margin-top: 22px; margin-bottom: 16px; }
  .aba { font-size: 16px; padding: 12px 8px; cursor: pointer; }
  .filtros { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 2px 24px 12px; }
  .visual-barra { padding-left: 24px; padding-right: 24px; }
  main { padding: 0 24px 24px; }

  /* jogos: dias lado a lado, em duas colunas */
  #lista[data-vista="jogos"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; align-items: start; }
  #lista[data-vista="jogos"] .dia-bloco { min-width: 0; }
  /* tabelas: duas por linha, com todas as colunas à vista */
  #lista[data-vista="tabelas"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(540px, 1fr)); gap: 18px 24px; align-items: start; }
  #lista[data-vista="tabelas"] .tabela-camp { margin-bottom: 0; min-width: 0; }
  .tabela-camp table.larga .t-time-in { width: 190px; }
  /* calendário: mês à esquerda, jogos do dia à direita */
  #lista[data-vista="calendario"] { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px; align-items: start; }
  #lista[data-vista="calendario"] .cal { position: sticky; top: 96px; }
  #lista[data-vista="calendario"] .cal-lista .dia:first-child { margin-top: 4px; }

  /* mouse: realce ao passar e mão nos itens clicáveis */
  #lista [data-id] { cursor: pointer; transition: background .15s, transform .15s; }
  #lista [data-id]:hover { background: color-mix(in srgb, var(--texto) 4%, var(--cartao)); }
  .chip, .cal-dia, .nc-jogo, .btn-icone, .fale-conosco { cursor: pointer; }
  .chip:hover, .btn-icone:hover, .fale-conosco:hover { filter: brightness(.96); }
  .nc-jogo:hover { background: rgba(255,255,255,.06); }

  /* fichas: janela no centro da tela, com ✕ para fechar */
  .folha[open], .painel[open] { justify-content: center; }
  .folha-conteudo, .painel-conteudo { max-width: 700px; margin-bottom: 0; max-height: min(880px, calc(100% - 64px)); }
  .folha-conteudo { min-height: min(640px, calc(100% - 64px)); }
  .painel-conteudo { max-width: 560px; }
  .folha[open] .folha-conteudo, .painel[open] .painel-conteudo { animation: surgir .22s ease-out; }
  .folha-alca { display: none; }
  .folha-x { display: grid; place-items: center; position: sticky; top: 14px; margin: 14px 14px -52px auto; z-index: 4; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 15px; padding: 0; }
  .folha-x:hover { background: rgba(0,0,0,.55); }
  .rodape { padding-bottom: 40px; }
}
@media (min-width: 1500px) {
  #lista[data-vista="jogos"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topo, .filtros, .visual-barra, main, .rodape, .aviso { max-width: 1480px; }
}
@keyframes surgir { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .folha[open] .folha-conteudo, .painel[open] .painel-conteudo, .abas.anima::before { animation: none !important; transition: none !important; } }

/* revisão: foco visível só para teclado, botão "ver mais", cartões navegáveis */
.folha button:focus-visible, .nc-jogo:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: -2px; }
#lista [data-id]:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 2px; border-radius: 14px; }
#lista [data-id]:focus:not(:focus-visible) { outline: none; }
.ver-mais { grid-column: 1 / -1; display: flex; justify-content: center; margin: 16px 0 6px; }
.ver-mais .btn { background: var(--cartao); color: var(--texto); border: 1px solid var(--borda); font-weight: 700; padding: 12px 20px; border-radius: 999px; }
#secao-push[hidden] { display: none; }

/* ===== computador: mouse ===== */
/* fichas sem a barra de rolagem do sistema (rola com a rodinha, o touchpad ou o teclado, como no celular) */
.folha-conteudo, .painel-conteudo { scrollbar-width: none; -ms-overflow-style: none; }
.folha-conteudo::-webkit-scrollbar, .painel-conteudo::-webkit-scrollbar { display: none; }
/* barras finas e discretas onde ainda aparecem (página e tabelas largas) */
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--texto) 28%, transparent) transparent; scrollbar-gutter: stable; }
.tabela-rolagem { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--texto) 30%, transparent) transparent; }
.tabela-rolagem::-webkit-scrollbar { height: 8px; }
.tabela-rolagem::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--texto) 28%, transparent); border-radius: 8px; }
.tabela-rolagem::-webkit-scrollbar-track { background: transparent; }
@media (hover: hover) and (pointer: fine) {
  /* com mouse, em qualquer largura: filtros todos à vista (quebram linha) e ✕ para fechar a ficha */
  .filtros { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
  .folha-alca { display: none; }
  .folha-x { display: grid; place-items: center; position: sticky; top: 14px; margin: 14px 14px -52px auto; z-index: 4; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 15px; padding: 0; cursor: pointer; }
  .folha-x:hover { background: rgba(0,0,0,.55); }
  .aba, .chip, .cal-dia, .nc-jogo, .btn, .btn-icone, .chave, #lista [data-id] { cursor: pointer; }
  .aba:not(.ativa):hover { color: var(--texto); }
  .cal-dia.tem:hover { border-color: color-mix(in srgb, var(--vermelho) 50%, transparent); }
}

/* computador: jogos e tabelas em coluna única e contínua (o calendário continua com a lista ao lado) */
@media (min-width: 760px) {
  #lista[data-vista="jogos"] { display: block; max-width: 760px; margin-left: auto; margin-right: auto; }
  #lista[data-vista="tabelas"] { display: block; max-width: 900px; margin-left: auto; margin-right: auto; }
  #lista[data-vista="tabelas"] .tabela-camp { margin-bottom: 18px; }
  #lista[data-vista="vazio"] { max-width: 760px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 940px) {
  /* tabela inteira à vista: sem rolagem para o lado e sem o aviso de arrastar */
  #lista[data-vista="tabelas"] .tabela-rolagem { overflow-x: visible; }
  #lista[data-vista="tabelas"] table.larga { width: 100%; }
  #lista[data-vista="tabelas"] .tabela-dica { display: none; }
}
/* computador: tabela na mesma largura da lista de jogos, com o nome do time perto dos números */
@media (min-width: 760px) { #lista[data-vista="tabelas"] { max-width: 760px; } }
@media (min-width: 940px) {
  #lista[data-vista="tabelas"] .tabela-camp th, #lista[data-vista="tabelas"] .tabela-camp td { padding-left: 5px; padding-right: 5px; }
  #lista[data-vista="tabelas"] table.larga .t-time-in { width: auto; }
}
@media (min-width: 940px) {
  /* sem rolagem, as colunas # e Time não precisam ficar "presas" (evita falha na faixa de destaque) */
  #lista[data-vista="tabelas"] table.larga .t-pos, #lista[data-vista="tabelas"] table.larga .t-time { position: static; box-shadow: none; background: transparent; }
  #lista[data-vista="tabelas"] table.larga tr.eh-fla td.t-pos, #lista[data-vista="tabelas"] table.larga tr.eh-fla td.t-time { background: rgba(227,20,27,.14); }
  #lista[data-vista="tabelas"] .tabela-camp .t-pos { padding-left: 14px; position: relative !important; }
}

/* Inter (licença livre OFL): deixa Windows e Android com letra quase igual à da Apple. Em iPhone/Mac continua a fonte do sistema. */
@font-face { font-family: "Inter RubroNegro+"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-variavel.woff2") format("woff2-variations"), url("fonts/inter-latin-variavel.woff2") format("woff2"); }

/* topo com 5 botões (instalar, compartilhar, fale com a gente, tema, lembretes): tudo cabe numa linha */
@media (max-width: 430px) {
  .topo { gap: 8px; }
  .topo-botoes { gap: 4px; }
  .topo-botoes .btn-icone { width: 34px; height: 34px; border-radius: 11px; }
  .topo-botoes .btn-icone svg { width: 19px; height: 19px; }
}
@media (max-width: 380px) {
  .topo-icone { width: 32px; height: 32px; }
  .topo-botoes { gap: 3px; }
  .topo-botoes .btn-icone { width: 31px; height: 31px; border-radius: 10px; }
  .topo-botoes .btn-icone svg { width: 17px; height: 17px; }
}
@media (max-width: 345px) { .topo-icone { display: none; } }
/* com 5 botões o subtítulo quebra em duas linhas em vez de ser cortado com "…" */
@media (max-width: 430px) {
  .marca-sub { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; font-size: 11px; max-width: 9.5em; }
}

/* botão "Acompanhe ao vivo" (abre a busca do Google com o placar do jogo) */
.lc-aovivo, .btn.aovivo { display: inline-flex; align-items: center; gap: 6px; }
.lc-aovivo { background: #16A34A; }
.btn.aovivo { background: #16A34A; color: #fff; }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulso 1.4s ease-in-out infinite; flex: none; }
@keyframes pulso { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .pulso { animation: none; } }

/* compartilhar um jogo (rodapé do cartão e da ficha) */
.lc-partilhar { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; font-weight: 700; color: var(--texto);
  background: transparent; border: 1px solid var(--borda); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.lc-partilhar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.folha .lc-partilhar { color: #fff; border-color: rgba(255,255,255,.25); }

/* canal na internet (YouTube etc.) vira link */
.canal-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* nome "RubroNegro+" (mais comprido): cabe inteiro ao lado dos 5 botões */
.marca { white-space: nowrap; }
@media (max-width: 430px) { .marca { font-size: 24px; } }
@media (max-width: 400px) { .marca { font-size: 22px; } }
@media (max-width: 345px) { .marca { font-size: 21px; } }

/* subtítulo mais comprido: no celular ele desce para uma linha própria, embaixo do nome e dos botões */
@media (max-width: 759px) {
  .topo { flex-wrap: wrap; row-gap: 4px; }
  .marca-bloco { display: contents; }
  .marca { flex: 1 1 auto; min-width: 0; }
  .marca-sub { order: 9; flex: 0 0 100%; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; margin-top: 0; }
}

/* calendário no computador: o primeiro cartão do dia começa na mesma linha do topo do calendário (o título do dia sobe) */
@media (min-width: 760px) {
  #lista[data-vista="calendario"] { margin-top: 30px; } /* espaço para o título do dia, que fica acima da linha dos cartões */
  #lista[data-vista="calendario"] .cal-lista { position: relative; padding-top: 0; }
  #lista[data-vista="calendario"] .cal-lista .dia:first-child { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0 0 8px; }
}
