/* Específico do Forte Bets, por cima dos estilos copiados do fdjm. */
.brand img, .login-box img { object-fit: cover; }
.brand-sub { white-space: nowrap; }

.search {
  height: 36px; min-width: 220px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 13.5px;
}
.search:focus-visible { outline: 2px solid var(--brand-line); outline-offset: 1px; border-color: var(--brand); }

.table tr.league-row td {
  background: var(--surface-2); color: var(--text-muted);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 12px;
}
.table tbody tr.league-row:hover td { background: var(--surface-2); }
.table td.team-h { text-align: right; }
.table td.team-h, .table td.team-a { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.table td.score {
  text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em; min-width: 64px;
}
.table td.score.live { color: var(--negative); }
.lead { font-weight: 650; color: var(--text); }
.trail { color: var(--text-muted); }

.min { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 56px; display: inline-block; }
.min.live { color: var(--negative); }
.min.live .tick { animation: tick 1s steps(1) infinite; }
.min.ht { color: var(--warning); }
.min.sched { color: var(--text-muted); font-weight: 500; }
.min.done { color: var(--text-faint); font-weight: 500; }
@keyframes tick { 50% { opacity: 0; } }

.odd b { font-variant-numeric: tabular-nums; font-weight: 600; }
.odd .cell-sub { display: inline; margin-left: 4px; }
.pm-link { color: var(--brand); text-decoration: none; font-weight: 600; }
.pm-link:hover { text-decoration: underline; }

/* Golo: a linha acende durante uns segundos. */
.table tbody tr.goal td { animation: goal-flash 8s ease-out; }
.table tbody tr.goal td.score { color: var(--positive); }
@keyframes goal-flash {
  0%, 12% { background: color-mix(in srgb, var(--positive) 26%, transparent); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .min.live .tick { animation: none; }
  .table tbody tr.goal td { animation: none; background: color-mix(in srgb, var(--positive) 16%, transparent); }
}

#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--alert-ok-line);
  color: var(--text); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px;
  box-shadow: var(--shadow-pop); max-width: min(360px, calc(100vw - 32px));
}
.toast b { color: var(--positive); }

.status-list { display: grid; gap: 10px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.status-row span:first-child { color: var(--text-muted); }

@media (max-width: 640px) {
  .search { min-width: 0; width: 100%; }
  .table td.team-h, .table td.team-a { max-width: 120px; }
  .topbar .chip-text-long { display: none; }
}

/* Cada grupo do menu é um <div> próprio: o :first-of-type do fdjm apanhava todos. */
.sidebar nav > div + div .nav-section { margin-top: 20px; }

/* ---- Detalhe do jogo ---- */
.table tbody tr.clickable { cursor: pointer; }
.back-link { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.back-link:hover { color: var(--text); }
.match-head { text-align: center; }
.mh-league { color: var(--text-muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mh-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 14px 0 6px; border-radius: var(--radius-sm); }
.mh-grid.goal { animation: goal-flash 8s ease-out; }
.mh-team { font-size: 18px; font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.mh-team:first-child { text-align: right; }
.mh-team:last-child { text-align: left; }
.mh-score { font-size: 38px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; line-height: 1.1; }
.mh-score.live { color: var(--negative); }
.mh-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.mh-facts b { color: var(--text); font-variant-numeric: tabular-nums; }
.content > .detail-tabs { margin: 16px 0 0; }
.tab.empty { opacity: 0.55; }

.ev-period {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface-2); color: var(--text-muted); border-radius: var(--radius-sm);
  padding: 7px 12px; margin: 14px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.ev-period:first-child { margin-top: 0; }
.ev-period b { color: var(--text); font-size: 13px; letter-spacing: 0.02em; }
.ev-none { color: var(--text-faint); font-size: 13px; padding: 6px 12px; }
.ev { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.ev:last-child { border-bottom: 0; }
.ev.away { flex-direction: row-reverse; text-align: right; }
.ev-min { min-width: 38px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ev-txt { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.ev.away .ev-txt { flex-direction: row-reverse; }
.ev-sub { color: var(--text-muted); font-size: 12.5px; }
.ev-score { font-weight: 700; color: var(--positive); font-variant-numeric: tabular-nums; }
.ev-ic { width: 18px; text-align: center; flex: none; }
.ev-ic.og { filter: hue-rotate(140deg) saturate(2); }
.ev-ic.miss { color: var(--negative); font-weight: 700; }
.ev-ic.sub { color: var(--positive); font-weight: 700; }
.card { display: inline-block; width: 11px; height: 15px; border-radius: 2px; flex: none; margin: 0 3.5px; vertical-align: middle; }
.card.y { background: #f5c518; }
.card.r { background: #e5383b; }
.card.yr { background: linear-gradient(135deg, #f5c518 50%, #e5383b 50%); }

.stat-periods { margin-bottom: 12px; }
.src-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; color: var(--text-muted); }
.src-now b { color: var(--text); font-weight: 600; }
.src-pick .tab { font-size: 12px; padding: 3px 9px; }
.lu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.lu-col.away { text-align: right; }
.lu-form { font-weight: 700; color: var(--brand); font-size: 13px; margin-bottom: 4px; }
.lu-p { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.lu-col.away .lu-p { flex-direction: row-reverse; }
.lu-num { min-width: 22px; color: var(--text-muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.lu-col.away .lu-num { text-align: right; }
.lu-p .pill { padding: 0 6px; font-size: 10.5px; }

.cm-list { display: grid; }
.cm { display: grid; grid-template-columns: 40px 22px 1fr; gap: 8px; padding: 9px 4px; font-size: 13.5px; border-bottom: 1px solid var(--border); line-height: 1.45; }
.cm:last-child { border-bottom: 0; }
.cm-min { font-weight: 650; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cm-ic { text-align: center; }

@media (max-width: 640px) {
  .mh-team { font-size: 14.5px; }
  .mh-score { font-size: 28px; }
  .mh-grid { gap: 10px; }
  .lu-grid { gap: 0 12px; }
  .lu-p { font-size: 12.5px; gap: 6px; }
  .stat-top b { min-width: 48px; }
}
.table tbody tr.clickable:focus-visible { outline: 2px solid var(--brand-line); outline-offset: -2px; }

/* ---- Cores fixas por equipa (casa = azul da marca, fora = rosa; o amarelo fica para a estrela) ---- */
:root { --c-home: var(--brand); --c-away: #ec6fae; }
.c-home { background: var(--c-home); fill: var(--c-home); }
.c-away { background: var(--c-away); fill: var(--c-away); }
.c-home-t { color: var(--c-home) !important; }
.c-away-t { color: var(--c-away) !important; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.team-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.team-legend span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.split { display: flex; gap: 3px; height: 8px; flex: 1; min-width: 0; }
.split i { display: block; height: 100%; border-radius: 99px; min-width: 3px; transition: width .4s ease; }

/* ---- Estatísticas ---- */
.stats-wrap { width: 100%; max-width: 760px; margin: 0 auto; }
.stats-wrap > .team-legend { margin-bottom: 14px; }
.key-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.ks { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 6px; }
.ks-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.ks-vals { display: flex; justify-content: space-between; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ks .split { height: 6px; }
.stat-sec { color: var(--text-muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 22px 0 6px; text-align: center; }
.stat { padding: 7px 0; }
.stat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; }
.stat-top span { color: var(--text-muted); text-align: center; }
.stat-top b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; color: var(--text-muted); }
.stat-top b:last-child { text-align: right; }
.stat-top b.lead { font-weight: 750; }
.stat-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 5px; }
.bar { height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; display: flex; }
.bar.home { justify-content: flex-end; }
.bar i { display: block; height: 100%; border-radius: 99px; opacity: .35; transition: width .4s ease; }
.bar.home i { background: var(--c-home); }
.bar.away i { background: var(--c-away); }
.bar.lead i { opacity: 1; }

/* ---- Cabeçalho do jogo ---- */
.mh-top { position: relative; display: flex; justify-content: center; align-items: center; min-height: 30px; }
.mh-top .fav-btn { position: absolute; right: 0; top: 0; }
.mh-pos { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; box-sizing: border-box; margin: 12px auto 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.mh-pos b { min-width: 34px; color: var(--text); }
.mh-pos b:first-child { text-align: right; }

/* ---- Pressão ofensiva / linha do tempo ---- */
.mo-card-wrap { width: 100%; max-width: 900px; margin: 0 auto 18px; }
.mo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mo-head > span { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.mo-head .team-legend { font-size: 12px; gap: 16px; justify-content: flex-end; min-width: 0; }
.mo-box { position: relative; height: 150px; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; }
.mo { display: block; width: 100%; height: 100%; }
.mo-axis { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mo-ht { stroke: var(--text-faint); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .6; }
.mo-mark { position: absolute; transform: translateX(-50%); display: grid; place-items: center; font-size: 10px; line-height: 1; font-weight: 700; color: #fff; }
.mo-mark.up { top: 4px; } .mo-mark.down { bottom: 4px; }
.mo-mark.goal, .mo-mark.og { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-2); }
.mo-mark.og { background: var(--negative); font-size: 8.5px; }
.mo-mark.y, .mo-mark.r { width: 8px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--surface-2); }
.mo-mark.y { background: #f5c518; } .mo-mark.r { background: #e5383b; }
.mo-axis-labels { position: relative; height: 16px; margin-top: 3px; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.mo-axis-labels span { position: absolute; transform: translateX(-50%); }
.mo-axis-labels span:first-child { transform: none; }
.mo-axis-labels span:last-child { transform: translateX(-100%); }
.mo-src { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

/* ---- Seguir (favoritos) ---- */
.fav-col { width: 34px; padding-right: 0 !important; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text-faint); border-radius: var(--radius-sm); }
.fav-btn:hover { color: var(--warning); }
.fav-btn:focus-visible { outline: 2px solid var(--brand-line); outline-offset: 1px; }
.fav-ic { width: 17px; height: 17px; }
.fav-btn.on { color: #fbbf24; }
.fav-btn.on .fav-ic { fill: currentColor; }
.fav-btn.big { border: 1px solid var(--border); padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.fav-btn.big.on { color: #fbbf24; border-color: color-mix(in srgb, #fbbf24 45%, transparent); background: color-mix(in srgb, #fbbf24 10%, transparent); }
.table tr.league-row.fav-group td { color: #fbbf24; }
.table tbody tr.is-fav td:first-child { box-shadow: inset 3px 0 0 #fbbf24; }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 700; color: #fbbf24; font-variant-numeric: tabular-nums; }
.toast.fav { border-color: color-mix(in srgb, #fbbf24 55%, transparent); }
.toast-star { color: #fbbf24; margin-right: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .stat-top b { min-width: 48px; }
  .key-stats { grid-template-columns: repeat(2, 1fr); }
  .ks-vals { font-size: 17px; }
  .mo-box { height: 120px; }
  .mo-head { flex-direction: column; align-items: stretch; gap: 6px; }
  .mo-head .team-legend { justify-content: space-between; }
  .mh-top { justify-content: flex-start; }
  .fav-btn.big span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .split i, .bar i { transition: none; } }
.mh-pos-bar { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mh-pos-label { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
