/* HeroStats V7.1.1 · legibilidad global y ranking de mejores partidos */

/* Escala tipográfica revisada: liga */
.league-hero-kicker{font-size:12px}
.league-hero-copy p{font-size:13px;line-height:1.55}
.league-hero-meta span{font-size:12px;padding:7px 11px}
.league-progress-card small{font-size:12px}.league-progress-card p{font-size:12px}
.league-scope-toggle button,.league-anchor-nav button{height:40px;font-size:12px}.league-scope-toggle button{min-width:72px}.league-anchor-nav button{padding:0 14px}
.league-section-head>div>span,.league-section-title>div>span,.league-ranking-panel header small,.league-player-panel header small{font-size:12px}
.league-section-head h2,.league-section-title h2{font-size:21px}
.league-section-head small,.league-section-title p{font-size:12px;line-height:1.5}
.league-section-title>a{font-size:12px}
.league-kpi small{font-size:12px}.league-kpi span{font-size:12px;line-height:1.45}
.league-coverage .panel-head small{font-size:12px}.league-coverage-grid span{font-size:12px}.league-coverage-grid b{font-size:12px}
.league-switchbar button,.league-inline-switch button{min-height:44px;padding:0 18px;font-size:12px;border-radius:9px}
.league-inline-switch{display:grid;grid-template-columns:repeat(2,minmax(112px,1fr));gap:8px;min-width:240px}
.league-switchbar select,.league-evolution-head select{height:43px;font-size:12px}
.league-stat-row>div b{font-size:14px}.league-stat-row>div small{font-size:12px}.league-stat-row>strong{font-size:18px}
.league-match-state strong{font-size:12px}.league-match-state small{font-size:12px}.league-match-teams b{font-size:12px}.league-match-quick small{font-size:12px}.league-match-quick b{font-size:12px}
.league-probability-card small{font-size:12px}.league-probability-card span{font-size:12px}.league-probability-card strong{font-size:26px}
.league-goals-lower h3,.league-market-layout aside h3{font-size:15px}.league-scorelines span{font-size:12px}.league-scorelines b{font-size:13px}
.league-evolution-head p,.league-evolution-summary p{font-size:12px}.league-evolution-summary small{font-size:12px}.league-evolution-head b{font-size:12px}
.league-half-card small{font-size:12px}.league-half-card strong{font-size:24px}
.league-market-layout aside p{font-size:12px;line-height:1.5}
.league-market-average{display:flex;min-height:110px;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:18px}
.league-market-average small{font-size:12px}.league-market-average strong{order:2;grid-column:auto;grid-row:auto;color:#e7edef;font-size:31px;line-height:1}.league-market-average span{order:3;font-size:12px}
.league-compact-ranking b{font-size:12px}.league-compact-ranking strong{font-size:12px}.league-compact-ranking>a>span{font-size:12px}
.league-ranking-panel h3,.league-player-panel h3{font-size:16px}.league-ranking-panel header>span,.league-player-panel header>span{font-size:12px}
.league-ranking-row b,.league-player-panel>div>a b{font-size:12px}.league-ranking-row small,.league-player-panel>div>a small{font-size:12px}.league-ranking-row>span,.league-player-panel>div>a>span{font-size:12px}.league-player-panel>div>a>strong{font-size:14px}
.league-data-note{font-size:12px;line-height:1.55}

/* Escala tipográfica revisada: hub y páginas Stats */
.market-hub-title>p:last-child,.market-page-title>div>p:last-child{font-size:13px;line-height:1.65}
.market-breadcrumbs{font-size:12px}
.market-page-title dt{font-size:12px}.market-page-title dd{font-size:12px}
.market-controls{gap:12px;padding:18px}.market-controls>label{gap:8px;font-size:12px;letter-spacing:.25px}
.market-controls select,.market-controls input,.market-controls button{height:46px;font-size:12px}.market-team-search button{padding:0 18px}
.market-summary small{font-size:12px}.market-summary strong{font-size:21px}
.market-ranking-section h2,.market-competition-section h2,.market-upcoming-section h2{font-size:22px}
.market-ranking-section header>p:last-child,.market-competition-section header>p:last-child,.market-upcoming-section header>p:last-child{font-size:12px;line-height:1.5}
.market-ranking-table th,.market-competition-table th{font-size:12px}.market-ranking-table td,.market-competition-table td{font-size:12px}
.market-ranked-team b{font-size:15px}.market-ranked-team small{font-size:12px}.market-ranked-primary small,.market-ranked-details small{font-size:12px}.market-ranked-details b{font-size:13px}.market-trend{font-size:12px}.market-trend small{font-size:12px}
.sample-state{font-size:12px;padding:5px 8px}.market-row-actions a{font-size:12px;min-height:34px;display:inline-flex;align-items:center}
.market-competition-table td a b{font-size:12px}.market-competition-table td a small{font-size:12px}
.market-methodology>summary{font-size:15px}.market-methodology p{font-size:12px}.market-page-footer{font-size:12px}
.market-hub-summary span{font-size:12px}.market-hub-item b{font-size:13px}.market-hub-item small{font-size:12px}.market-hub-item em{font-size:12px}

/* Barra fija Equipos / Partidos */
.market-ranking-switchbar{position:sticky;top:68px;z-index:23;display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:8px;margin:15px 0;padding:8px;border:1px solid #2a3f49;background:rgba(8,18,26,.96);box-shadow:0 12px 28px rgba(0,0,0,.28);backdrop-filter:blur(12px)}
.market-ranking-switchbar button{height:44px;border:1px solid #2c424d;border-radius:9px;background:#0c1922;color:#9aa8af;font-size:12px;font-weight:900;cursor:pointer}
.market-ranking-switchbar button:hover{background:#13252e;color:#dde5e7}.market-ranking-switchbar button.active{border-color:#4d853f;background:#183221;color:#c6ebbd}
#market-team-rankings,#market-match-rankings{scroll-margin-top:138px}

/* Ranking de mejores partidos */
.market-best-match-list{display:grid;background:#1b2d37}
.market-best-match-row{display:grid;grid-template-columns:52px minmax(260px,1.2fr) minmax(260px,.9fr) 170px 22px;align-items:center;gap:15px;min-height:104px;padding:14px 18px;border-top:1px solid #1b2d37;border-left:4px solid var(--signal-color);background:linear-gradient(90deg,var(--signal-bg),#0b1720 24%)}
.market-best-match-row:first-child{border-top:0}.market-best-match-row:hover{background:linear-gradient(90deg,var(--signal-bg),#10222c 46%)}
.market-best-match-rank{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--signal-border);border-radius:11px;color:var(--signal-color);font-size:16px;font-weight:950}
.market-best-match-main>small{display:block;margin-bottom:9px;color:#7c8b93;font-size:12px;line-height:1.4}
.market-best-match-teams{display:flex;align-items:center;gap:10px;min-width:0}.market-best-match-teams>span{display:flex;align-items:center;gap:8px;min-width:0}.market-best-match-teams b{overflow:hidden;color:#e0e7e9;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.market-best-match-teams>em{color:#677780;font-size:14px;font-style:normal}
.market-match-team-badge{width:31px;height:31px;flex:0 0 31px;border-radius:9px}.market-match-team-badge b{font-size:12px}
.market-best-match-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.market-best-match-sides>span{padding:10px;border:1px solid #263b46;border-radius:9px;background:#0e1c25}.market-best-match-sides small,.market-best-match-sides b,.market-best-match-sides em{display:block}.market-best-match-sides small{color:#75858d;font-size:12px}.market-best-match-sides b{margin-top:5px;color:#d4dde0;font-size:14px}.market-best-match-sides em{margin-top:3px;color:#718089;font-size:12px;font-style:normal}
.market-best-match-score small,.market-best-match-score strong,.market-best-match-score i{display:block}.market-best-match-score small{color:#718089;font-size:12px;text-transform:uppercase}.market-best-match-score strong{margin-top:5px;color:var(--signal-color);font-size:25px;line-height:1}.market-best-match-score i{height:7px;margin:9px 0;border-radius:999px;background:#1b2c36;overflow:hidden}.market-best-match-score i>em{display:block;height:100%;border-radius:inherit;background:var(--signal-color)}
.market-best-match-arrow{color:var(--signal-color);font-size:24px}

@media(max-width:1180px){
  .market-best-match-row{grid-template-columns:48px minmax(230px,1fr) minmax(210px,.8fr) 145px 20px}
}
@media(max-width:900px){
  .market-best-match-row{grid-template-columns:44px minmax(0,1fr) 145px 20px;grid-template-areas:"rank main score arrow" "sides sides sides sides"}
  .market-best-match-rank{grid-area:rank}.market-best-match-main{grid-area:main}.market-best-match-sides{grid-area:sides;padding-top:10px;border-top:1px solid #1b2d37}.market-best-match-score{grid-area:score}.market-best-match-arrow{grid-area:arrow}
}
@media(max-width:700px){
  .league-inline-switch{width:100%;min-width:0}.league-inline-switch button{min-width:0}
  .market-ranking-switchbar{top:64px;margin-right:-8px;margin-left:-8px;border-right:0;border-left:0;border-radius:0}
  .market-best-match-row{grid-template-columns:40px minmax(0,1fr) 105px;grid-template-areas:"rank main score" "sides sides sides";gap:10px;padding:13px 11px}
  .market-best-match-arrow{display:none}.market-best-match-teams{align-items:flex-start;flex-direction:column;gap:7px}.market-best-match-teams>em{display:none}.market-best-match-main>small{font-size:12px}.market-best-match-teams b{font-size:13px}.market-best-match-score strong{font-size:21px}.market-best-match-score .sample-state{display:none}
  .market-controls>label{font-size:12px}.market-controls select,.market-controls input,.market-controls button{font-size:13px}
}
@media(max-width:480px){
  .market-ranking-switchbar{grid-template-columns:1fr 1fr}.market-ranking-switchbar button{font-size:12px}
  .market-best-match-sides{grid-template-columns:1fr}.market-best-match-rank{width:34px;height:34px;font-size:14px}
}
