/* app.css — componentes do app de placares (carregado só no index/web app). Depende de core.css (tokens). */


/* ---- Header do app ---- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.app-header__inner { display: flex; align-items: center; gap: var(--space-4); height: var(--header-h); }
.app-nav { display: flex; gap: var(--space-2); margin-left: auto; overflow-x: auto; }
.app-nav a {
  color: var(--color-text-secondary); font-weight: 600; font-size: .95rem;
  padding: 6px 10px; border-radius: var(--radius-sm); white-space: nowrap;
}
.app-nav a:hover { text-decoration: none; color: var(--color-text); background: var(--color-surface-alt); }
.app-nav a[aria-current] { color: var(--color-primary); }
.theme-toggle {
  flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--color-border);
  background: var(--color-surface); border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--color-text);
}
.theme-toggle:hover { background: var(--color-surface-alt); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.app-main { min-height: 60vh; padding: var(--space-5) 0 var(--space-8); }

/* ---- Cabeçalho de view ---- */
.view-head { margin-bottom: var(--space-4); }
.view-head--row { display: flex; align-items: center; gap: var(--space-3); }
.view-title { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0; }
.view-sub { margin: 2px 0 0; text-transform: capitalize; }

/* ---- Barras de chips / filtros / data ---- */
.chip-bar { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); margin-bottom: var(--space-3); -webkit-overflow-scrolling: touch; }
.chip {
  flex-shrink: 0; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font-size: .9rem; font-weight: 500; white-space: nowrap;
}
.chip:hover { border-color: var(--color-primary); }
.chip.is-active { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }

.date-bar { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.date-nav {
  width: 36px; height: 36px; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); border-radius: var(--radius-sm); cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.date-nav:hover { background: var(--color-surface-alt); }
.date-bar__label { font-weight: 700; min-width: 86px; text-align: center; }
.date-input {
  margin-left: auto; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); border-radius: var(--radius-sm); padding: 7px 10px; font: inherit;
}

.filter-bar { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); flex-wrap: wrap; }
.filter-pill {
  border: 0; background: var(--color-surface-alt); color: var(--color-text-secondary);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600;
}
.filter-pill.is-active { background: var(--color-text); color: var(--color-bg); }
.filter-pill--live.is-active { background: var(--color-danger); color: #fff; }

/* ---- Grupos de jogos ---- */
.match-groups { display: flex; flex-direction: column; gap: var(--space-5); }
.match-group { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.league-head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface-alt); }
.league-head__logo { width: 22px; height: 22px; object-fit: contain; }
.league-head__name { font-weight: 700; color: var(--color-text); }
.league-head__name:hover { color: var(--color-primary); }
.league-head .star { margin-left: auto; }

.match-list { display: flex; flex-direction: column; }
.match-row { display: flex; align-items: stretch; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border-light); color: var(--color-text); }
.match-row:first-child { border-top: 0; }
.match-row:hover { background: var(--color-surface-alt); text-decoration: none; }
.match-row__status { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 54px; border-right: 1px solid var(--color-border-light); }
.match-row__time { font-size: .82rem; color: var(--color-muted); font-weight: 600; }
.match-row__time.live { color: var(--color-danger); }
.match-row__teams { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.match-team { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.match-team__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-team--win .match-team__name { font-weight: 700; }
.match-team__score { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.match-row.is-live .match-team__score { color: var(--color-danger); }

/* ---- Logo de time / iniciais ---- */
.team-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--color-surface-alt); }
.team-logo img { width: 100%; height: 100%; object-fit: contain; }
.team-logo__initials { font-size: .7rem; font-weight: 700; color: var(--color-text-secondary); }

/* ---- Estrela favoritar ---- */
.star { border: 0; background: transparent; cursor: pointer; color: var(--color-border-light); font-size: 1.2rem; line-height: 1; padding: 2px 4px; }
.star:hover { color: #f5a623; }
.star.is-on { color: #f5a623; }

/* ---- Abas ---- */
.tab-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--color-border); margin: var(--space-4) 0; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--color-text-secondary); padding: 10px 16px; cursor: pointer; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--color-text); }
.tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* ---- Detalhe da partida ---- */
.detail-topbar { margin-bottom: var(--space-3); }
.back-link { font-weight: 600; color: var(--color-text-secondary); }
.match-header { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); text-align: center; }
.match-header__league { margin: 0 0 var(--space-4); }
.match-header__score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); color: var(--color-text); min-width: 0; }
.mh-team__name { font-weight: 600; font-size: .95rem; }
.mh-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mh-numbers { display: flex; align-items: center; gap: var(--space-2); font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mh-sep { color: var(--color-muted); }
.mh-status { font-size: .85rem; font-weight: 700; color: var(--color-muted); }
.mh-status.live, .match-header__score.is-live .mh-numbers { color: var(--color-danger); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline__item { display: flex; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border-light); }
.timeline__clock { min-width: 42px; font-weight: 700; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.timeline__item.is-goal { font-weight: 600; }
.timeline__item.is-goal .timeline__clock { color: var(--color-primary); }

.info-grid { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.info-grid__row { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border-light); }
.info-grid__v { font-weight: 600; text-align: right; }

.lineups { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 720px) { .lineups { grid-template-columns: 1fr 1fr; } }
.lineup__head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.lineup__formation { margin-left: auto; }
.lineup__label { margin: var(--space-3) 0 var(--space-1); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.lineup-list { list-style: none; padding: 0; margin: 0; }
.lineup-list__item, .roster-list__item { display: flex; align-items: center; gap: var(--space-3); padding: 7px 0; border-bottom: 1px solid var(--color-border-light); }
.lineup-list__num, .roster-list__num { min-width: 22px; text-align: center; font-weight: 700; color: var(--color-muted); font-size: .85rem; }
.lineup-list__name, .roster-list__name { flex: 1; }
.lineup-list__pos, .roster-list__pos { font-size: .8rem; }

.stats-compare { display: flex; flex-direction: column; gap: 2px; }
.stats-compare__head { display: grid; grid-template-columns: 1fr 2fr 1fr; text-align: center; font-weight: 800; padding: var(--space-2) 0; }
.stat-row { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--color-border-light); }
.stat-row__a, .stat-row__b { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-row__label { text-align: center; font-size: .85rem; }

/* ---- Classificação ---- */
.standings__group { font-size: 1rem; margin: var(--space-4) 0 var(--space-2); }
.table-scroll { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.standings-table th, .standings-table td { padding: 9px 6px; border-bottom: 1px solid var(--color-border-light); }
.standings-table thead th { color: var(--color-muted); font-size: .78rem; text-transform: uppercase; text-align: center; }
.st-pos { width: 28px; text-align: center; color: var(--color-muted); font-weight: 700; }
.st-team { text-align: left; }
.st-team__link { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text); }
.st-team__link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-num { text-align: center; font-variant-numeric: tabular-nums; }
.st-num--strong { font-weight: 800; }

/* ---- Eventos individuais (golfe/tênis/MMA/F1) ---- */
.event-list { display: flex; flex-direction: column; gap: var(--space-3); }
.event-card { display: block; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); color: var(--color-text); }
.event-card:hover { text-decoration: none; border-color: var(--color-primary); }
.event-card.is-live { border-color: var(--color-danger); }
.event-card__head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; }
.event-card__title { font-weight: 700; }
.event-card__status { font-size: .82rem; font-weight: 700; color: var(--color-muted); }
.event-card__status.live { color: var(--color-danger); }
.event-card__date { margin: 2px 0 0; font-size: .85rem; text-transform: capitalize; }
.event-card__body { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 4px; }
.event-card__row { display: flex; justify-content: space-between; gap: var(--space-3); font-size: .9rem; }
.event-card__val { font-variant-numeric: tabular-nums; }

/* Card de torneio (tênis): atleta vs atleta + sets */
.tn-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.tn-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface-alt); }
.tn-card__title { font-weight: 700; }
.tn-card__meta { font-size: .82rem; }
.tn-card__matches { display: flex; flex-direction: column; }
.tn-draw__title { padding: 6px 16px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); font-weight: 700; background: var(--color-surface-alt); border-top: 1px solid var(--color-border); }
.tn-card__head + .tn-card__matches .tn-draw:first-child .tn-draw__title { border-top: 0; }
.tn-card__empty, .tn-card__more { padding: var(--space-3) var(--space-4); margin: 0; font-size: .85rem; }
.tn-match { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border-light); }
.tn-match:first-child { border-top: 0; }
.tn-match.is-live { background: linear-gradient(90deg, rgba(229,64,58,.06), transparent 40%); }
.tn-row { display: flex; align-items: center; gap: var(--space-2); }
.tn-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.tn-flag--ph { background: var(--color-surface-alt); }
.tn-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-row--win .tn-name { font-weight: 700; }
.tn-sets { font-variant-numeric: tabular-nums; letter-spacing: 2px; color: var(--color-text-secondary); min-width: 64px; text-align: right; }
.tn-row--win .tn-sets { color: var(--color-text); font-weight: 700; }
.tn-match__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: 2px; }
.tn-round { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--color-muted); }
.tn-match__live { font-size: .62rem; font-weight: 800; color: var(--color-danger); }

/* página do torneio: cada rodada vira um card */
.tn-rounds .tn-draw { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-3); box-shadow: var(--shadow-card); }
.tn-rounds .tn-draw__title { border-top: 0; }
.tn-rounds .tn-round { display: none; } /* redundante: já há cabeçalho de rodada */

/* tabela de ranking */
.rank-table .st-pos { white-space: nowrap; }
.rank-table .st-pos .rank-trend { margin-left: 3px; font-size: .6rem; }
.rank-trend--up { color: #3ddc84; }
.rank-trend--down { color: var(--color-danger); }
.rank-flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; display: block; flex-shrink: 0; }
.rank-flag--ph { background: var(--color-surface-alt); }
.rank-entity { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text); min-width: 0; }
.rank-entity span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.rank-entity:hover { color: var(--color-primary); text-decoration: none; }

/* ---- Notícias ---- */
.news-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.news-item__link { display: flex; gap: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; color: var(--color-text); }
.news-item__link:hover { text-decoration: none; border-color: var(--color-primary); }
.news-item__img { width: 110px; height: 90px; object-fit: cover; flex-shrink: 0; }
.news-item__body { padding: var(--space-3); min-width: 0; }
.news-item__title { font-size: 1rem; margin: 0 0 4px; }
.news-item__desc { margin: 0; font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Time ---- */
.team-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.team-head__name { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.team-head .star { margin-left: auto; font-size: 1.5rem; }
.roster-list { list-style: none; padding: 0; margin: 0; }

/* ---- Favoritos / Browse ---- */
.fav-section { margin-bottom: var(--space-5); }
.fav-list, .browse-leagues { list-style: none; padding: 0; margin: 0; }
.fav-list__item, .browse-leagues__item { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-2); background: var(--color-surface); }
.fav-list__link, .browse-leagues__link { display: flex; align-items: center; gap: var(--space-2); flex: 1; color: var(--color-text); }
.fav-list__icon, .browse-sport__icon { font-size: 1.2rem; }
.fav-list__item .star, .browse-leagues__item .star { margin-left: auto; }
.browse-sport { margin-bottom: var(--space-5); }
.browse-sport__title { display: flex; align-items: center; gap: var(--space-2); font-size: 1.1rem; margin: 0 0 var(--space-3); }
.browse-leagues__country { font-size: .82rem; }
.browse-leagues__link { justify-content: flex-start; gap: var(--space-3); }
.search-bar { margin-bottom: var(--space-4); }
.search-input { width: 100%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-md); padding: 11px 14px; font: inherit; }

/* ---- Banner de download ---- */
.download-banner { background: var(--color-surface-alt); border-top: 1px solid var(--color-border); }
.download-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-4); }
.download-banner h2 { margin: 0 0 4px; }
.download-banner__ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---- Skeletons / estados ---- */
.skeleton-wrap { display: flex; flex-direction: column; gap: var(--space-3); }
.skeleton { background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border-light) 50%, var(--color-surface-alt) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-md); }
.skeleton-row { height: 48px; }
.skeleton-match { height: 96px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty-state { text-align: center; padding: var(--space-8) var(--space-4); color: var(--color-text-secondary); }
.empty-state__msg { font-weight: 600; margin-bottom: 4px; }
.empty-state .btn { margin-top: var(--space-3); }

@media (max-width: 560px) {
  .app-nav a { padding: 6px 8px; font-size: .9rem; }
  .news-item__img { width: 84px; height: 72px; }
}

/* =========================================================================
   POLIMENTO VISUAL v2 — scorebar, week strip, timeline, campo, barras,
   forma, H2H, artilheiros, transmissão
   ========================================================================= */

/* Marca / logo */
.brand { font-size: 1.05rem; }
.brand__mark { display: inline-flex; line-height: 0; }
.brand__mark { display: inline-flex; line-height: 0; }
.brand__mark img { border-radius: 8px; display: block; box-shadow: 0 2px 8px rgba(31,143,224,.35); }
.brand__mark svg { border-radius: 9px; box-shadow: 0 2px 8px rgba(31,143,224,.35); }
.app-header { box-shadow: 0 1px 0 var(--color-border); }

/* Chip ativo com leve gradiente */
.chip.is-active { background: linear-gradient(135deg, #4db5f5, var(--color-primary)); box-shadow: 0 2px 8px rgba(31,143,224,.3); }

/* Week strip de datas */
.date-bar { gap: var(--space-2); flex-wrap: nowrap; }
.week-strip { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 2px; }
.week-strip::-webkit-scrollbar { display: none; }
.week-day {
  flex: 1 0 auto; min-width: 46px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text);
  border-radius: var(--radius-md); padding: 7px 6px; cursor: pointer; line-height: 1.1;
}
.week-day:hover { border-color: var(--color-primary); }
.week-day__wd { font-size: .68rem; text-transform: uppercase; color: var(--color-muted); font-weight: 600; }
.week-day__num { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.week-day.is-today .week-day__num { color: var(--color-primary); }
.week-day.is-active { background: linear-gradient(135deg, #4db5f5, var(--color-primary)); border-color: var(--color-primary); }
.week-day.is-active .week-day__wd, .week-day.is-active .week-day__num { color: #fff; }
.date-bar .date-input { margin-left: 0; flex-shrink: 0; max-width: 42px; padding: 7px; overflow: hidden; }

/* Match row — pequeno polimento */
.match-group { box-shadow: var(--shadow-card); border: 0; }
.match-row.is-live { background: linear-gradient(90deg, rgba(229,57,53,.06), transparent 40%); }

/* Scorebar (cabeçalho do jogo) */
.match-header {
  background: linear-gradient(165deg, var(--color-surface), var(--color-surface-alt));
  box-shadow: var(--shadow-card);
}
.match-header.is-live { border: 1px solid var(--color-danger); animation: liveglow 1.9s ease-in-out infinite; }
@keyframes liveglow { 0%,100% { box-shadow: var(--shadow-card); } 50% { box-shadow: 0 0 0 3px rgba(229,57,53,.25), var(--shadow-card); } }
.mh-numbers { font-size: clamp(2rem, 8vw, 2.8rem); }
.mh-team__name { font-size: .9rem; }
.match-header .team-logo { box-shadow: 0 2px 10px rgba(0,0,0,.12); }

/* Filtros de lances */
.lance-filters { display: flex; gap: 6px; margin-bottom: var(--space-3); flex-wrap: wrap; }
.lance-filter { border: 0; background: var(--color-surface-alt); color: var(--color-text-secondary); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.lance-filter.is-active { background: var(--color-primary); color: #fff; }

/* Timeline alinhada home/away com linha central */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); transform: translateX(-50%); }
.timeline__item.lance { display: grid; grid-template-columns: 1fr 46px 1fr; align-items: start; gap: var(--space-2); padding: 8px 0; border: 0; }
.lance__content { display: flex; align-items: flex-start; gap: 8px; min-width: 0; line-height: 1.25; }
/* eixo invertido (row-reverse): flex-start empacota junto à linha central */
.lance--home > .lance__content:first-child { justify-content: flex-start; text-align: right; flex-direction: row-reverse; }
.lance__icon { font-size: 1.05rem; flex-shrink: 0; }
.lance__txt { display: flex; flex-direction: column; min-width: 0; }
.lance__main { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lance__sub { font-size: .78rem; }
.lance__clock { justify-self: center; z-index: 1; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; padding: 2px 7px; font-size: .72rem; font-weight: 800; color: var(--color-muted); min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.lance--goal .lance__clock { color: var(--color-primary); border-color: var(--color-primary); }
.lance.is-latest .lance__icon { animation: goalpulse 1.5s ease-in-out infinite; }
@keyframes goalpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.45); } }
.timeline__period { text-align: center; margin: var(--space-3) 0; position: relative; z-index: 1; }
.timeline__period span { background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: 999px; padding: 3px 12px; font-size: .76rem; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: .03em; }

/* Blocos de detalhe */
.detail-block { margin-top: var(--space-5); }
.block-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); font-weight: 700; margin: var(--space-5) 0 var(--space-2); }

/* Narração (commentary) */
.commentary { list-style: none; padding: 0; margin: 0; }
.commentary__item { display: flex; gap: var(--space-3); padding: 9px 2px; border-bottom: 1px solid var(--color-border-light); }
.commentary__clock { min-width: 38px; flex-shrink: 0; text-align: center; font-weight: 800; font-size: .8rem; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.commentary__text { font-size: .9rem; }
.commentary__item--note .commentary__clock { color: var(--color-muted); }
.commentary__item--note .commentary__text { color: var(--color-text-secondary); }

/* Onde assistir */
.tv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-chip { background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 600; }

/* Campo tático */
.pitch {
  position: relative; aspect-ratio: 3/4; max-width: 360px; margin: 0 auto var(--space-3);
  background: repeating-linear-gradient(0deg, #2f8e47 0 12.5%, #2a8341 12.5% 25%);
  border-radius: 14px; padding: 18px 10px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-around; gap: 8px;
}
.pitch::before { content: ''; position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,.3); border-radius: 8px; }
.pitch::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: rgba(255,255,255,.3); }
.pitch-row { display: flex; justify-content: space-evenly; gap: 6px; position: relative; z-index: 1; }
.pp { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; text-decoration: none; }
.pp:hover { text-decoration: none; }
.pp__num { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.4); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 800; }
.pp:hover .pp__num { border-color: var(--color-primary); }
.pp__name { font-size: .66rem; max-width: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.bench { margin-top: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0 var(--space-3); background: var(--color-surface); }
.bench summary { cursor: pointer; padding: var(--space-3) 0; font-weight: 600; }
.lineup__formation { margin-left: auto; background: var(--color-surface-alt); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; color: var(--color-text-secondary); }

/* Estatísticas em barras */
.stats-bars__head { display: flex; justify-content: space-between; font-weight: 800; padding: var(--space-2) 0 var(--space-3); }
.stat-bar { margin-bottom: 12px; }
.stat-bar__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; margin-bottom: 5px; }
.stat-bar__va, .stat-bar__vb { font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-bar__label { font-size: .82rem; }
.stat-bar__track { display: flex; gap: 2px; height: 7px; background: var(--color-surface-alt); border-radius: 4px; overflow: hidden; }
.stat-bar__fill { display: block; height: 100%; }
.stat-bar__fill--a { background: var(--color-primary); border-radius: 4px 0 0 4px; }
.stat-bar__fill--b { background: #5b8def; border-radius: 0 4px 4px 0; }

/* Forma recente + comparação */
.form-badges { display: flex; gap: 4px; }
.form-badge { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: #fff; }
.form-badge--w { background: #3ddc84; }
.form-badge--d { background: #8da2c0; }
.form-badge--l { background: #ff4d4d; }
.form-compare { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--space-4); }
.form-compare__team { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.form-compare__name { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }

/* Head-to-head */
.h2h-list { list-style: none; padding: 0; margin: 0; }
.h2h-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-3); align-items: center; padding: 9px 0; border-bottom: 1px solid var(--color-border-light); font-size: .88rem; }
.h2h-row__score { font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.h2h-row__comp { text-align: right; }

/* Artilheiros / líderes */
.leaders { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .leaders { grid-template-columns: 1fr 1fr; } }
.leaders__list { list-style: none; padding: 0; margin: 0; }
.leaders__item { display: flex; align-items: center; gap: var(--space-3); padding: 9px 0; border-bottom: 1px solid var(--color-border-light); }
.leaders__rank { width: 20px; text-align: center; font-weight: 800; color: var(--color-muted); }
.leaders__photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--color-surface-alt); flex-shrink: 0; }
.leaders__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.leaders__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaders__team { font-size: .8rem; }
.leaders__val { font-weight: 800; font-size: 1.15rem; color: var(--color-primary); font-variant-numeric: tabular-nums; }

/* Classificação — zebra + líder */
.standings-table tbody tr:nth-child(even) { background: var(--color-surface-alt); }
.standings-table tbody tr.is-leader { box-shadow: inset 3px 0 0 var(--color-primary); }
.standings-table tbody tr:hover { background: var(--color-border-light); }

/* Cards de evento individual — leve hover-lift */
.event-card, .match-group, .news-item__link { transition: transform .12s ease, border-color .15s ease; }
.event-card:hover, .news-item__link:hover { transform: translateY(-2px); }

@media (max-width: 560px) {
  .brand span { display: none; }
  .week-day { min-width: 42px; }
  .lance__main { font-size: .85rem; }
  .pitch { max-width: 100%; }
}

/* Seletor de idioma (bandeiras) */
.lang-switch { position: relative; }
.lang-btn {
  width: 38px; height: 38px; border: 1px solid var(--color-border); background: var(--color-surface);
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.lang-btn:hover { background: var(--color-surface-alt); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 6px; min-width: 168px; display: flex; flex-direction: column; gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--color-text); cursor: pointer;
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500;
}
.lang-item:hover { background: var(--color-surface-alt); }
.lang-item.is-active { color: var(--color-primary); font-weight: 700; }
@media (max-width: 560px) {
  .lang-btn { width: 34px; height: 34px; }
}

/* =========================================================================
   v3 — forma, pênaltis/agregado, classificação por zona, chaveamento,
   jogador, busca, time
   ========================================================================= */

/* Forma pequena (header/time) */
.form-badges--sm .form-badge { width: 16px; height: 16px; font-size: .6rem; border-radius: 4px; }
.mh-team .form-badges { margin-top: 6px; justify-content: center; }
.mh-extra { font-size: .78rem; font-weight: 600; }

/* Pênaltis na lista */
.match-team__pens { font-size: .78rem; color: var(--color-muted); font-weight: 700; margin-right: 2px; }

/* Classificação: zonas + legenda */
.standings-table tbody tr.has-zone { /* cor aplicada inline via box-shadow */ }
.standings-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); font-size: .82rem; color: var(--color-text-secondary); }
.standings-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.standings-legend__dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* Chaveamento (bracket) — árvore estilo "draw" com conectores */
.bracket-scroll { overflow-x: auto; padding-bottom: var(--space-3); }
.bracket-draw { display: flex; min-width: max-content; align-items: stretch; }
.bk-round { display: flex; flex-direction: column; width: 208px; }
.bk-round__title { height: 26px; text-align: center; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); font-weight: 700; }
.bk-round__body { flex: 1; display: flex; flex-direction: column; }
.bk-cell { flex: 1; display: flex; align-items: center; position: relative; padding-right: 18px; min-height: 64px; }

/* card do confronto */
.bk-match { display: block; width: 100%; position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 7px 10px; color: var(--color-text); box-shadow: var(--shadow-card); }
.bk-match:hover { border-color: var(--color-primary); text-decoration: none; }
.bk-match__date { display: block; font-size: .68rem; margin-bottom: 3px; }
.bk-team { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: .88rem; }
.bk-team__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-team--win { font-weight: 800; }
.bk-team--win .bk-team__score { color: var(--color-primary); }
.bk-team__pen { font-size: .72rem; color: var(--color-muted); }
.bk-team__score { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 14px; text-align: right; }

/* conectores: stub horizontal de cada confronto + ponte vertical unindo o par */
.bk-round:not(:last-child) .bk-cell::after { content: ''; position: absolute; right: 0; top: 50%; width: 18px; height: 2px; background: var(--color-border-light); }
.bk-round:not(:last-child) .bk-cell:nth-child(odd)::before { content: ''; position: absolute; right: 0; top: 50%; height: 100%; width: 2px; background: var(--color-border-light); }
/* stub de entrada do confronto seguinte (liga a ponte ao card) */
.bk-round:not(:first-child) .bk-match::before { content: ''; position: absolute; right: 100%; top: 50%; width: 18px; height: 2px; background: var(--color-border-light); }

/* disputa de 3º lugar (fora da árvore) */
.bracket-third { margin-top: var(--space-5); max-width: 240px; }

/* Link do lance/jogador */
.lance__main--link:hover { color: var(--color-primary); text-decoration: none; }
.leaders__link { display: flex; align-items: center; gap: var(--space-3); flex: 1; color: var(--color-text); min-width: 0; }
.leaders__link:hover { text-decoration: none; }
.leaders__link:hover .leaders__name { color: var(--color-primary); }

/* Página de jogador */
.player-head { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-3) 0 var(--space-4); }
.player-avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--color-surface-alt); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-avatar img.is-flag { object-fit: contain; padding: 14px; }
.player-avatar__initials { font-size: 1.6rem; font-weight: 800; color: var(--color-text-secondary); }
.player-head__name { margin: 0 0 2px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.player-head__jersey { font-weight: 800; color: var(--color-primary); margin-right: 8px; }
.player-stats { margin-top: var(--space-5); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-3); }
.stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); text-align: center; }
.stat-card__val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.stat-card__label { display: block; font-size: .76rem; margin-top: 2px; }

/* Busca */
.search-results { margin-top: var(--space-2); }
.search-section { margin-bottom: var(--space-5); }
.search-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.search-item__link { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); }
.search-item__link:hover { border-color: var(--color-primary); text-decoration: none; }
.search-item__icon { font-size: 1.3rem; width: 26px; text-align: center; }
.search-item__photo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--color-surface-alt); }
.search-item__name { flex: 1; font-weight: 600; }
.search-item__sub { font-size: .82rem; }

/* Próximo jogo (time) */
.next-match { display: block; background: linear-gradient(160deg, var(--color-surface), var(--color-surface-alt)); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-4); color: var(--color-text); box-shadow: var(--shadow-card); }
.next-match:hover { border-color: var(--color-primary); text-decoration: none; }
.next-match__label { display: block; text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--space-3); }
.next-match__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); }
.nm-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; text-align: center; }
.next-match__when { text-align: center; }
.next-match__date { display: block; font-weight: 700; }
.next-match__time { font-size: .85rem; }

/* Elenco por posição */
.roster-groups section { margin-bottom: var(--space-4); }
.roster-list__name { color: var(--color-text); }
.roster-list__name:hover { color: var(--color-primary); }

@media (max-width: 560px) {
  .bk-round { width: 168px; }
  .bk-cell { padding-right: 14px; }
  .bk-round:not(:last-child) .bk-cell::after,
  .bk-round:not(:first-child) .bk-match::before { width: 14px; }
  .player-avatar { width: 64px; height: 64px; }
}

/* =========================================================================
   v4 — box score, probabilidade, destaques, scoring plays, situação,
   lesões, recap, game log
   ========================================================================= */

/* Probabilidade (barra) */
.wp-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--color-surface-alt); }
.wp-bar__fill { height: 100%; }
.wp-bar__fill--h { background: var(--color-primary); }
.wp-bar__fill--a { background: var(--color-accent); }
.wp-bar__legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--color-text-secondary); }

/* Gráfico de probabilidade */
.wp-graph { width: 100%; }
.wp-svg { width: 100%; height: 64px; display: block; }
.wp-svg .wp-area { fill: rgba(31,143,224,.15); stroke: none; }
.wp-svg .wp-line { fill: none; stroke: var(--color-primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wp-svg .wp-mid { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }

/* Destaques (leaders) */
.dq { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) { .dq { grid-template-columns: 1fr 1fr; } }
.dq-team__name { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2); }
.dq-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px var(--space-3); padding: 5px 0; border-bottom: 1px solid var(--color-border-light); }
.dq-cat { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.dq-ath { font-weight: 600; font-size: .9rem; }
.dq-val { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Lances de pontuação */
.score-plays { list-style: none; padding: 0; margin: 0; }
.score-play { display: grid; grid-template-columns: 52px 46px 1fr; align-items: baseline; gap: var(--space-2); padding: 8px 0; border-bottom: 1px solid var(--color-border-light); font-size: .9rem; }
.score-play__when { font-size: .78rem; }
.score-play__score { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Situação ao vivo */
.situation { border: 1px solid var(--color-danger); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.situation .block-title { color: var(--color-danger); }
.situation__line { font-weight: 700; margin: 0 0 4px; }
.situation__bases, .situation__last { margin: 2px 0 0; font-size: .88rem; }

/* Lesões */
.inj { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) { .inj { grid-template-columns: 1fr 1fr; } }
.inj-team__name { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2); }
.inj-row { display: flex; justify-content: space-between; gap: var(--space-3); padding: 5px 0; border-bottom: 1px solid var(--color-border-light); font-size: .88rem; }
.inj-status { color: var(--color-danger); font-weight: 600; flex-shrink: 0; }

/* Recap */
.recap__headline { font-weight: 700; margin: 0 0 6px; }
.recap__desc { margin: 0; }

/* Box score por jogador / game log */
.boxscore__team { margin-bottom: var(--space-5); }
.box-group { margin-top: var(--space-3); }
.box-group__title { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); font-weight: 700; margin: 0 0 var(--space-2); }
.box-table { width: 100%; border-collapse: collapse; font-size: .82rem; white-space: nowrap; }
.box-table th, .box-table td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--color-border-light); font-variant-numeric: tabular-nums; }
.box-table thead th { color: var(--color-muted); font-size: .72rem; text-transform: uppercase; }
.box-table .box-name { text-align: left; position: sticky; left: 0; background: var(--color-bg); min-width: 130px; white-space: nowrap; }
.box-table tbody tr:hover td { background: var(--color-surface-alt); }
.player-gamelog { margin-top: var(--space-5); }
.gl-res { font-weight: 800; font-size: .72rem; }
.gl-res--w { color: #3ddc84; }
.gl-res--l { color: var(--color-danger); }
.gl-res--d, .gl-res--t { color: var(--color-muted); }

/* =========================================================================
   Menu de esportes (estilo Flashscore): principais + "Mais"
   ========================================================================= */
.sports-bar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.sports-bar__inner { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.sports-bar__inner::-webkit-scrollbar { display: none; }
.sport-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 11px 14px; white-space: nowrap;
  color: var(--color-text-secondary); font-weight: 600; font-size: .9rem;
  background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.sport-link:hover { color: var(--color-text); background: var(--color-surface-alt); text-decoration: none; }
.sport-link.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.sport-link__icon { font-size: 1.05rem; line-height: 1; }
.sport-more__btn { gap: 4px; }
.sport-more__menu {
  position: absolute; right: var(--space-4); top: 100%; z-index: 60;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 6px; min-width: 200px; max-height: 70vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.sport-more__menu[hidden] { display: none; }
.sport-more__item { border-bottom: 0; border-radius: var(--radius-sm); padding: 9px 10px; font-weight: 500; }
.sport-more__item:hover { background: var(--color-surface-alt); }
.sport-more__item.is-active { color: var(--color-primary); }
@media (max-width: 560px) {
  .sport-link { padding: 10px 11px; font-size: .85rem; }
  .sport-more__menu { grid-template-columns: 1fr; min-width: 170px; }
}

/* Fallback "últimos jogos" quando o dia não tem partidas */
.recent-note { text-align: center; padding: var(--space-5) var(--space-4) var(--space-3); }
.recent-day__title { font-size: .95rem; margin: var(--space-5) 0 var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); text-transform: capitalize; color: var(--color-text-secondary); }
.recent-day__title:first-of-type { margin-top: var(--space-2); }

/* Card compacto de torneio (lista de tênis) */
.tn-card--link { display: block; padding: var(--space-3) var(--space-4); color: var(--color-text); }
.tn-card--link:hover { border-color: var(--color-primary); text-decoration: none; }
.tn-card--link.is-live { border-color: var(--color-danger); }
.tn-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.tn-card__live { color: var(--color-danger); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.tn-card__count { font-size: .8rem; white-space: nowrap; }
.tn-card--link .tn-card__meta { margin: 3px 0 0; font-size: .82rem; }

/* Chaveamento de tênis (reusa estrutura do bracket de futebol) */
.bracket-tennis .bk-team { gap: 5px; }
.bracket-tennis .bk-team__score { min-width: 46px; letter-spacing: 1px; font-size: .82rem; }
.bk-flag { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.bk-flag--ph { background: var(--color-surface-alt); }

/* Menu de esportes: link "Ao vivo" + badge de contagem ao vivo */
.sport-link--live { color: var(--color-danger); }
.sport-link--live.is-active { color: var(--color-danger); border-bottom-color: var(--color-danger); }
.sport-badge {
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-danger); color: #fff; border-radius: 999px;
  font-size: .66rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}

/* View "Ao vivo" global */
.live-title { display: inline-flex; align-items: center; gap: 8px; }
.live-title .live-dot { width: 10px; height: 10px; }
.live-sport { display: flex; align-items: center; gap: 8px; margin: var(--space-5) 0 var(--space-2); }
.live-sport:first-of-type { margin-top: var(--space-2); }
.live-sport__icon { font-size: 1.15rem; line-height: 1; }
.live-sport > strong { font-size: 1rem; }

/* Flash de placar ao mudar (gol/ponto) no auto-refresh */
@keyframes scoreflash {
  0% { background: var(--color-primary); color: #fff; }
  100% { background: transparent; }
}
.match-row.score-flash { animation: scoreflash 2.5s ease-out; }
.match-row.score-flash .match-team__score { color: var(--color-primary); }

/* Card de lutas (MMA) */
.fightcard { display: flex; flex-direction: column; gap: var(--space-3); }
.fc-bout {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); padding: var(--space-3) var(--space-4);
}
.fc-bout__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
.fc-wc { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--color-text-secondary); }
.fc-result { font-size: .78rem; white-space: nowrap; }
.fc-result.live { color: var(--color-danger); font-weight: 800; }
.fc-fighter { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.fc-fighter--win .fc-name { font-weight: 800; color: var(--color-primary); }
.fc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-rec { font-size: .76rem; white-space: nowrap; }


/* Barra de placar/abas fixa ao rolar o detalhe (item 9) */
.match-sticky { position: sticky; z-index: 39; background: var(--color-bg); margin-top: var(--space-4); }
.match-sticky .tab-bar { margin: 0; }
.mh-mini { display: none; align-items: center; justify-content: center; gap: var(--space-4); padding: 7px var(--space-2); border-bottom: 1px solid var(--color-border); }
.match-sticky.is-stuck { box-shadow: 0 6px 16px rgba(0,0,0,.10); }
.match-sticky.is-stuck .mh-mini { display: flex; }
.mh-mini__side { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-width: 0; }
.mh-mini__ab { font-size: .92rem; }
.mh-mini__score { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 58px; text-align: center; }

/* Estado 404 / página não encontrada (item 7) */
.empty-state--page { text-align: center; padding: var(--space-10) var(--space-4); }
.empty-state__big { font-size: clamp(3rem, 12vw, 5rem); font-weight: 800; line-height: 1; margin: 0 0 var(--space-3); background: linear-gradient(100deg, var(--color-primary), var(--color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty-state--page .btn { margin-top: var(--space-4); }

/* Home agrupada por esporte (item: todos os jogos da data por esporte) */
.sport-block__head { display: flex; align-items: center; gap: 8px; margin: var(--space-6) 0 var(--space-2); padding-bottom: var(--space-2); border-bottom: 2px solid var(--color-border); }
.match-groups > .sport-block__head:first-child { margin-top: 0; }
.sport-block__icon { font-size: 1.3rem; line-height: 1; }
.sport-block__title { font-size: 1.15rem; margin: 0; }
.sport-block__live { margin-left: auto; font-size: .72rem; font-weight: 800; color: var(--color-danger); text-transform: uppercase; }

/* Estrela no item Favoritos do menu */
.app-nav a[data-nav="favorites"]::before { content: "★ "; color: var(--color-accent); }

/* Tênis: horário + sets em colunas alinhadas (melhor leitura, inclusive mobile) */
.tn-when { font-size: .72rem; color: var(--color-text-secondary); font-weight: 600; }
.tn-when.live { color: var(--color-danger); font-weight: 800; text-transform: uppercase; }
.tn-row { gap: 8px; }
.tn-name { min-width: 0; font-size: .95rem; }
.tn-sets { display: flex; gap: 0; letter-spacing: 0; min-width: 0; flex-shrink: 0; }
.tn-set { width: 22px; text-align: center; font-variant-numeric: tabular-nums; color: var(--color-text-secondary); }
.tn-row--win .tn-set { color: var(--color-text); }
.tn-set--win { font-weight: 800; color: var(--color-text); }
@media (max-width: 480px) { .tn-set { width: 18px; font-size: .9rem; } .tn-name { font-size: .9rem; } }

/* Tênis no mobile: troca a árvore (cramped) pela lista legível da chave principal */
.tn-draw--mobile { display: none; }
@media (max-width: 640px) {
  .bracket-tennis { display: none; }
  .tn-draw--mobile { display: block; }
}

/* Árvore de tênis: colunas mais largas (nomes não cortam) + horário/live + clicável */
.bracket-tennis .bk-round { width: 244px; }
.bracket-tennis .bk-cell { min-height: 80px; }
.bracket-tennis .bk-team__score { min-width: 32px; letter-spacing: 0; }
.bk-match.is-live { border-color: var(--color-danger); }
.bk-match__date { color: var(--color-text-secondary); }
.bk-match__date.live { color: var(--color-danger); font-weight: 800; text-transform: uppercase; }
a.bk-match { cursor: pointer; }

/* lista de rodadas: jogo clicável */
.tn-match--link { display: block; cursor: pointer; color: var(--color-text); }
.tn-match--link:hover { background: var(--color-surface-alt); text-decoration: none; }

/* Detalhe da partida de tênis (montado do scoreboard) */
.tnd-head { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-card); margin-bottom: var(--space-4); }
.tnd-head.is-live { border-color: var(--color-danger); }
.tnd-meta { margin: 0 0 var(--space-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.tnd-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--color-border-light); }
.tnd-row--head, .tnd-row:first-of-type { border-top: 0; }
.tnd-row--head { padding: 0 0 2px; }
.tnd-flag { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.tnd-flag--ph { background: var(--color-surface-alt); }
.tnd-name { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnd-row--win .tnd-name { font-weight: 800; color: var(--color-primary); }
.tnd-seed { font-size: .8rem; flex-shrink: 0; }
.tnd-sets { display: flex; gap: 0; flex-shrink: 0; }
.tnd-set { width: 30px; text-align: center; font-variant-numeric: tabular-nums; font-size: 1.1rem; color: var(--color-text-secondary); }
.tnd-set--win { font-weight: 800; color: var(--color-text); }
.tnd-set--label { font-size: .66rem; color: var(--color-muted); font-weight: 700; }
.tnd-row--win .tnd-set { color: var(--color-text); }
.tnd-status { margin: var(--space-3) 0 0; font-weight: 700; }
.tnd-status.live { color: var(--color-danger); }
.tnd-refresh { margin-top: var(--space-3); font-size: .8rem; text-align: center; }
