/* HeroStats V6.7 · tablas generales y reparación real del bloque de goles */

.v67-badge{margin-left:3px;padding:4px 7px;border:1px solid #4d873f;border-radius:999px;background:#173020;color:#bfe8b6;font-size:12px;font-weight:950;letter-spacing:.4px}

/* Reparación completa: en V6.6 faltaban las reglas estructurales de estos componentes. */
.analysis-goal-profile-card{margin-top:12px;padding:0!important;overflow:hidden!important}
.analysis-goal-profile-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px!important;border-bottom:1px solid #20313c;background:#0e1b24}
.analysis-goal-profile-card h3{margin:0;color:#e3eaec;font-size:20px!important;line-height:1.25}
.analysis-goal-profile-card p{margin:7px 0 0;color:#82919a;font-size:12px!important;line-height:1.55!important}
.analysis-goal-bars{display:grid!important;gap:12px;padding:18px 20px 16px!important;border-bottom:1px solid #20313c;background:#0b1720}
.analysis-goal-bar-row{display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(220px,1.6fr) 68px!important;align-items:center;gap:14px!important}
.analysis-goal-bar-row>div{min-width:0}
.analysis-goal-bar-row b,.analysis-goal-bar-row small{display:block}
.analysis-goal-bar-row b{overflow:hidden;color:#e1e8ea;font-size:14px!important;text-overflow:ellipsis;white-space:nowrap}
.analysis-goal-bar-row small{margin-top:4px;color:#788891;font-size:12px!important}
.analysis-goal-bar-row>span{display:block;height:18px;border:1px solid #28404a;border-radius:999px;background:#10202a;overflow:hidden}
.analysis-goal-bar-row>span>i{display:block;height:100%;min-width:4px;border-radius:inherit;background:linear-gradient(90deg,#65d455,#2f8a38)}
.analysis-goal-bar-row strong{color:#ddf1d9;font-size:21px!important;text-align:right}
.analysis-goal-profile-card>.table-wrap{width:100%;overflow-x:hidden!important}
.analysis-goal-profile-table{width:100%!important;border-collapse:collapse;table-layout:fixed}
.analysis-goal-profile-table th{height:44px!important;padding:7px 14px;background:#0a141c;color:#7e8d95;border-bottom:1px solid #20313c;font-size:12px!important;text-align:center;text-transform:none}
.analysis-goal-profile-table th:first-child,.analysis-goal-profile-table td:first-child{width:44%;text-align:left}
.analysis-goal-profile-table td{height:48px!important;padding:8px 14px;border-top:1px solid #172832;color:#d7e0e3;font-size:14px!important;text-align:center}
.analysis-goal-profile-table td:first-child{color:#bdc8cd;font-weight:750}
.analysis-goal-profile-table tbody tr:hover td{background:#101e27}

/* Tablas generales: total de córners, tarjetas, tiros y tiros a puerta. */
[data-analysis-general-market]+[data-analysis-general-market]{margin-top:14px}
.analysis-general-market-card{margin-top:12px;padding:0;overflow:hidden}
.analysis-general-market-head{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(315px,1fr) auto;align-items:center;gap:18px;padding:18px 20px;border-bottom:1px solid #20313c;background:linear-gradient(120deg,#0e1b24,#0b1720)}
.analysis-general-market-title{min-width:0}
.analysis-general-market-title h3{margin:4px 0 0;color:#e2e9eb;font-size:20px;line-height:1.25}
.analysis-general-market-title>p:last-child{max-width:620px;margin:7px 0 0;color:#82919a;font-size:12px;line-height:1.55}
.analysis-general-market-summary{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:8px;min-width:0}
.analysis-general-market-summary>div{display:grid;align-content:center;min-height:68px;padding:10px 12px;border:1px solid #263b46;border-radius:10px;background:#0f1e27}
.analysis-general-market-summary strong,.analysis-general-market-summary span,.analysis-general-market-summary small{display:block}
.analysis-general-market-summary strong{color:#dce8df;font-size:19px;line-height:1.15}
.analysis-general-market-summary span,.analysis-general-market-summary small{overflow:hidden;margin-top:5px;color:#7f8f97;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.analysis-general-market-main{border-color:#3c6b38!important;background:#14281b!important}
.analysis-general-market-main strong{color:#bfeab6;font-size:25px}
.analysis-general-market-card>.table-wrap{max-width:100%;overflow-x:hidden}
.analysis-general-market-table{width:100%;border-collapse:collapse;table-layout:fixed}
.analysis-general-market-table th{height:42px;padding:7px 11px;background:#0a141c;color:#7a8992;border-bottom:1px solid #20313c;font-size:12px;text-align:center;text-transform:uppercase}
.analysis-general-market-table th:first-child,.analysis-general-market-table td:first-child{width:22%;text-align:left}
.analysis-general-market-table th:last-child,.analysis-general-market-table td:last-child{width:118px}
.analysis-general-market-table td{height:50px;padding:7px 11px;border-top:1px solid #172832;color:#d2dcdf;font-size:13px;text-align:center}
.analysis-general-market-table td:first-child b{font-size:13px}
.analysis-general-market-table td strong{color:#bde9b4;font-size:15px}
.analysis-general-market-table tbody tr:hover td{background:#101e27}
.analysis-general-market-table .hs-select-market{min-width:96px}

/* Los toggles se mantienen compactos y visibles en cabecera. */
.analysis-general-market-head>.analysis-inline-toggle{justify-self:end}

@media(max-width:1180px){
  .analysis-general-market-head{grid-template-columns:minmax(220px,1fr) minmax(300px,1fr)}
  .analysis-general-market-head>.analysis-inline-toggle{grid-column:1/-1;justify-self:start}
}
@media(max-width:820px){
  .analysis-general-market-head{grid-template-columns:1fr}
  .analysis-general-market-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .analysis-general-market-head>.analysis-inline-toggle{grid-column:auto;width:100%}
  .analysis-general-market-head>.analysis-inline-toggle button{min-width:0}
  .analysis-general-market-card>.table-wrap{overflow-x:auto}
  .analysis-general-market-table{min-width:680px}
  .analysis-goal-profile-card>.table-wrap{overflow-x:auto!important}
  .analysis-goal-profile-table{min-width:600px}
}
@media(max-width:640px){
  .analysis-goal-bar-row{grid-template-columns:1fr!important;gap:8px!important}
  .analysis-goal-bar-row strong{text-align:left}
  .analysis-general-market-summary{grid-template-columns:1fr 1fr}
  .analysis-general-market-main{grid-column:1/-1}
}
