/* SerieAGoal v1.65 — mobile: simmetria dei margini e squadre terminate.
   Intervento mirato: non altera pronostico, esito, percentuale o colonne. */
@media screen and (max-width:760px){
  /* La riga definisce il riferimento assoluto del tasto preferiti. */
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap > .sg-match-row{
    position:relative!important;
  }
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone,
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone.has-features,
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone.is-empty{
    position:static!important;
  }
  /* La stella, in future/live/terminate, ha lo stesso rientro visivo
     dal lato destro che l'orario/stato ha sul lato sinistro. La centratura
     verticale resta indipendente dall'altezza del blocco pronostico. */
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone .sg108-row-actions,
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone.has-features .sg108-row-actions,
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone.is-empty .sg108-row-actions{
    position:absolute!important;
    top:50%!important;
    right:5px!important;
    left:auto!important;
    bottom:auto!important;
    transform:translateY(-50%)!important;
    width:27px!important;
    min-width:27px!important;
    max-width:27px!important;
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:auto!important;
    justify-self:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    z-index:3!important;
  }
  /* SOLO finite: le squadre avanzano verso "Finita" di circa 7 px;
     la posizione del risultato e il blocco Doppia Chance non cambiano. */
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap.is-finished .sg-match-main-link{
    grid-template-columns:37px minmax(0,1fr)!important;
    column-gap:6px!important;
  }
}
@media screen and (max-width:390px){
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone .sg108-row-actions,
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone.has-features .sg108-row-actions,
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap .sg-match-feature-zone.is-empty .sg108-row-actions{
    right:2px!important;
  }
  html[data-sg-theme] body.sg-body .sg-main .sg-match-row-wrap.is-finished .sg-match-main-link{
    grid-template-columns:36px minmax(0,1fr)!important;
  }
}
