/* Core 5.19.568 — Exclusivo de Resumen > Últimos 10 partidos.
   Misma tarjeta PHP del Main, sin duplicar la vista móvil. */
.ms-team-profile .ms-team-recent-main-519568{margin:0 0 18px;min-width:0;font-family:"Nunito",sans-serif;}
.ms-team-profile .ms-team-recent-main-519568 .ms-match-groups,
.ms-team-profile .ms-team-recent-main-519568 .ms-match-group{width:100%;min-width:0;}
.ms-team-profile .ms-team-recent-main-519568 .ms-compact-match{border-radius:10px;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline{
  display:grid!important;align-items:start!important;min-width:0!important;
}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-home,
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-away{
  display:grid!important;grid-template-rows:auto auto!important;align-items:start!important;
  align-self:start!important;width:100%!important;min-width:0!important;row-gap:3px!important;
}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-home{grid-template-columns:minmax(0,1fr) 30px!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-away{grid-template-columns:30px minmax(0,1fr)!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-home>.ms-compact-team-copy{grid-column:1!important;grid-row:1!important;align-items:flex-end!important;text-align:right!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-away>.ms-compact-team-copy{grid-column:2!important;grid-row:1!important;align-items:flex-start!important;text-align:left!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-home>.ms-compact-crest-wrap{grid-column:2!important;grid-row:1!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-away>.ms-compact-crest-wrap{grid-column:1!important;grid-row:1!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-home>.ms-compact-team-copy>strong{justify-content:flex-end!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-away>.ms-compact-team-copy>strong{justify-content:flex-start!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-team-name{font-family:"Nunito",sans-serif!important;font-weight:550!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span>.ms-compact-team-goals{
  display:flex!important;grid-row:2!important;position:static!important;inset:auto!important;transform:none!important;
  flex-direction:column!important;flex-wrap:nowrap!important;gap:2px!important;min-width:0!important;
  width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-home>.ms-compact-team-goals{
  grid-column:1!important;align-items:flex-end!important;justify-content:flex-start!important;justify-self:end!important;text-align:right!important;
}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{
  grid-column:2!important;align-items:flex-start!important;justify-content:flex-start!important;justify-self:start!important;text-align:left!important;
}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-team-goals .ms-compact-goal-row{
  display:flex!important;position:static!important;transform:none!important;flex-wrap:nowrap!important;width:auto!important;max-width:100%!important;min-width:0!important;
}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-team-goals.is-home .ms-compact-goal-row{justify-content:flex-end!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-team-goals.is-away .ms-compact-goal-row{justify-content:flex-start!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-goal-item{display:inline-flex!important;flex-direction:row!important;align-items:baseline!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;gap:2px!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-goal-item b{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-goal-item small{flex:none!important;white-space:nowrap!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-goal-item .ms-compact-goal-icon{display:none!important;}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-goal-row::after{content:none!important;}
/* Los goles ya se muestran en la tarjeta; no duplicarlos en el desplegable. */
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-match .ms-compact-mobile-events,
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-match .ms-compact-mobile-toggle{display:none!important;}
@media(max-width:680px){
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-home{grid-template-columns:minmax(0,1fr) 25px!important;}
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-away{grid-template-columns:25px minmax(0,1fr)!important;}
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span>.ms-compact-crest-wrap{width:25px!important;min-width:25px!important;max-width:25px!important;align-self:center!important;justify-self:center!important;}
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span>.ms-compact-team-copy>strong,
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline .ms-compact-team-name{font-size:clamp(11px,3.2vw,14px)!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.15!important;}
  /* El nombre y minuto siguen juntos, con el ancho de todo el lado para evitar cortes. */
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-home>.ms-compact-team-goals,
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>span.is-away>.ms-compact-team-goals{grid-column:1/-1!important;}
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-goal-item b{font-size:10px!important;line-height:1.12!important;}
  .ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-goal-item small{font-size:9px!important;line-height:1.12!important;}
}
/* En la tarjeta común el stack puede heredar una columna lateral de la agenda.
   Aquí ocupa el centro real en todos los casos, también sin tarjetas/VAR. */
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-scoreline>.ms-compact-center{
  display:flex!important;flex-direction:column!important;grid-column:2!important;align-items:center!important;
  justify-content:flex-start!important;justify-self:stretch!important;align-self:start!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
}
.ms-team-profile .ms-team-recent-main-519568.ms-home-today .ms-compact-center>.ms-compact-center-stack{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  width:auto!important;min-width:0!important;max-width:100%!important; margin-inline:auto!important;
}
