/* FULBO 3.38: alineación de fixtures, tablas y estadísticas argentinas.
   Sólo se modifican dimensiones y disposición de los paneles de competición. */

/* Fixture AFA: dos equipos equilibrados, VS legible y fecha sin invadir los nombres. */
#liga-fixture .afa-c-matches{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 gap:0!important;
 width:100%;
 min-width:0;
}
#liga-fixture .afa-c-match{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) 27px minmax(0,1fr) minmax(82px,112px)!important;
 align-items:center!important;
 gap:clamp(5px,.8vw,10px)!important;
 min-height:42px!important;
 padding:9px 10px!important;
 box-sizing:border-box!important;
 font-size:12px!important;
 line-height:1.4!important;
 width:100%;
 min-width:0;
}
#liga-fixture .afa-c-match>span{
 display:block;
 min-width:0;
 overflow:visible!important;
 text-overflow:clip!important;
 white-space:normal!important;
 overflow-wrap:break-word!important;
 word-break:normal!important;
}
#liga-fixture .afa-c-match>span:first-child{text-align:right!important}
#liga-fixture .afa-c-match>span:nth-child(3){text-align:left!important}
#liga-fixture .afa-c-match .afa-c-vs{
 text-align:center!important;
 font-size:11px!important;
 font-weight:750;
 opacity:.78;
 white-space:nowrap!important;
}
#liga-fixture .afa-c-match>time{
 display:block!important;
 grid-column:auto!important;
 justify-self:end!important;
 max-width:112px;
 min-width:0;
 font-size:10.5px!important;
 line-height:1.25!important;
 text-align:right!important;
 white-space:normal!important;
 overflow-wrap:break-word;
 opacity:.83;
}
#liga-fixture .fixture-side-head{
 display:flex;gap:8px;flex-wrap:wrap;
 align-items:baseline;justify-content:space-between;
}
#liga-fixture .fixture-side-head strong{line-height:1.3}
#liga-fixture .fixture-side-controls{width:100%;min-width:0;align-items:stretch}
#liga-fixture .fixture-side-controls select{
 min-width:0;max-width:100%;flex:1 1 0;
}
#liga-fixture .fixture-side-meta{
 line-height:1.4!important;
 margin:3px 0 6px;
}

/* Estadísticas: las tarjetas sin datos NO deben quedar estiradas. */
#liga-lideres .argentina-ranking-four{
 align-items:start!important;
 gap:12px!important;
 max-width:100%!important;
}
#liga-lideres .argentina-ranking-four .arg-ranking-card{
 display:flex!important;
 flex-direction:column!important;
 align-self:start!important;
 min-width:0!important;
 min-height:0!important;
 height:auto!important;
 gap:7px!important;
}
#liga-lideres .argentina-ranking-four .arg-ranking-card .arg-leader-title{
 min-height:0!important;
 margin-bottom:3px!important;
}
#liga-lideres .argentina-ranking-four .arg-ranking-card ol{
 list-style:none;
 margin:0!important;
 padding:0!important;
 min-width:0;
}
#liga-lideres .argentina-ranking-four .arg-ranking-card li{
 display:grid!important;
 grid-template-columns:17px 22px minmax(0,1fr) 30px!important;
 align-items:center!important;
 gap:6px!important;
 width:100%;
 min-width:0;
 box-sizing:border-box;
 min-height:45px!important;
 padding:7px 2px!important;
}
#liga-lideres .arg-ranking-card .leader-club-crest{
 width:22px!important;
 height:22px!important;
 display:grid!important;
 place-items:center!important;
}
#liga-lideres .arg-ranking-card .leader-club-crest :is(img,.tiny-crest-fallback){
 width:20px!important;height:20px!important;
 min-width:20px!important;max-width:20px!important;
 object-fit:contain!important;
 background:transparent!important;
 box-shadow:none!important;
 border:0!important;
}
#liga-lideres .arg-ranking-card .leader-name{
 display:flex!important;
 flex-direction:column!important;
 gap:2px!important;
 min-width:0!important;
 width:auto!important;
 overflow:visible!important;
}
#liga-lideres .arg-ranking-card .leader-person{
 display:block!important;
 min-width:0!important;
 max-width:100%!important;
 width:100%!important;
 height:auto!important;
 padding:0!important;
 margin:0!important;
 background:transparent!important;
 background-image:none!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 text-align:left!important;
 white-space:normal!important;
 overflow-wrap:break-word;
 line-height:1.2!important;
 cursor:pointer;
}
#liga-lideres .arg-ranking-card .leader-name small{
 display:block!important;
 width:100%;
 margin:0!important;
 padding:0!important;
 background:transparent!important;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
 line-height:1.25!important;
}
#liga-lideres .arg-ranking-card li>strong{
 justify-self:end!important;
 align-self:center!important;
 text-align:right!important;
 font-variant-numeric:tabular-nums;
 min-width:0;
}
#liga-lideres .arg-ranking-card>.data-clarification{
 margin:0!important;
 min-height:0!important;
 height:auto!important;
 padding:5px 0!important;
 line-height:1.4!important;
}
#liga-lideres .arg-ranking-card .arg-ranking-link{
 margin-top:9px!important;
 min-height:37px!important;
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
}
#liga-lideres .argentina-ranking-four .arg-ranking-card:has(> .data-clarification){
 min-height:0!important;
}
#liga-lideres .argentina-ranking-four .arg-ranking-card:has(> .data-clarification) .arg-ranking-link{
 margin-top:6px!important;
}

/* Clasificaciones: escudo y nombre en la misma línea, sin botones sobredimensionados. */
#liga-tablas .standings-head{
 display:flex!important;
 flex-wrap:wrap!important;
 justify-content:space-between!important;
 align-items:center!important;
 gap:6px 10px!important;
}
#liga-tablas .standings-head strong{
 min-width:0;
 line-height:1.35!important;
 overflow-wrap:break-word;
}
#liga-tablas .standings-head .group-hint{
 flex:0 0 auto;
 margin-left:auto;
 white-space:normal!important;
 text-align:right;
 line-height:1.3;
}
#liga-tablas .standings-table .v2-team-cell{
 display:flex!important;
 align-items:center!important;
 justify-content:flex-start!important;
 gap:6px!important;
 min-width:0!important;
 max-width:100%!important;
 width:100%!important;
 border:0!important;
 background:transparent!important;
 background-image:none!important;
 box-shadow:none!important;
 padding:0!important;
 text-align:left!important;
}
#liga-tablas .standings-table .v2-team-cell :is(img.tiny-crest,span.tiny-crest-fallback){
 display:inline-flex!important;
 flex:0 0 20px!important;
 width:20px!important;
 height:20px!important;
 min-width:20px!important;
 max-width:20px!important;
 padding:0!important;
 border:0!important;
 background:transparent!important;
 box-shadow:none!important;
 object-fit:contain!important;
}
#liga-tablas .standings-table .v2-team-cell>span:not(.tiny-crest-fallback){
 display:block!important;
 flex:1 1 0!important;
 width:auto!important;
 min-width:0!important;
 max-width:100%!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
 white-space:nowrap!important;
 text-align:left!important;
}

/* Móvil: conservar equipos a los costados del VS y bajar sólo la fecha. */
@media(max-width:560px){
 #liga-fixture .afa-c-match{
  grid-template-columns:minmax(0,1fr) 27px minmax(0,1fr)!important;
  gap:5px!important;
  padding:10px 7px!important;
  font-size:12px!important;
 }
 #liga-fixture .afa-c-match>time{
  grid-column:1/-1!important;
  justify-self:end!important;
  max-width:100%;
  font-size:10.5px!important;
  margin-top:1px!important;
 }
 #liga-lideres .argentina-ranking-four{
  grid-template-columns:minmax(0,1fr)!important;
 }
 #liga-lideres .argentina-ranking-four .arg-ranking-card li{
  grid-template-columns:18px 23px minmax(0,1fr) 32px!important;
 }
}
