/* v599 - Home: forma recente sotto G/V/N/P, badge soft e squadre piu vicine al VS.
   Base v598. */

/* v598 - Home: prossima partita + stato formazione nella stessa card;
   seconda card = classifica personale con forma recente. Desktop only. */
@media (min-width:801px){
  body.page-home .lofe-v598-hero-cards{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    padding-bottom:22px!important;
  }

  body.page-home .lofe-v598-match-card,
  body.page-home .lofe-v598-rank-card{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    overflow:hidden!important;
    border:1px solid rgba(255,255,255,.82)!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 8px 24px rgba(0,0,0,.16)!important;
  }

  body.page-home .lofe-v598-match-card{
    padding:16px 18px 0!important;
  }
  body.page-home .lofe-v598-match-card>header,
  body.page-home .lofe-v598-rank-card>header{
    display:flex!important;
    min-height:24px!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0!important;
    padding:0!important;
    color:#4f6780!important;
    font-size:12px!important;
    font-weight:850!important;
    letter-spacing:.03em!important;
    text-transform:uppercase!important;
  }
  body.page-home .lofe-v598-match-card>header strong,
  body.page-home .lofe-v598-rank-card>header strong{
    color:#4f6780!important;
    font-size:12px!important;
    font-weight:850!important;
  }
  body.page-home .lofe-v598-match-card>header span,
  body.page-home .lofe-v598-rank-card>header span{
    color:#4f6780!important;
    font-size:10px!important;
    font-weight:800!important;
    text-transform:none!important;
  }

  body.page-home .lofe-v598-match-card .lofe-v500-match-card__teams{
    grid-template-columns:auto 38px auto!important;
    justify-content:center!important;
    column-gap:18px!important;
    margin:12px 0 13px!important;
  }
  body.page-home .lofe-v598-match-card .lofe-v500-match-card__teams span{
    width:auto!important;
    min-width:0!important;
    font-size:16px!important;
  }
  body.page-home .lofe-v598-match-card .lofe-v500-match-card__teams .is-away{
    justify-content:flex-start!important;
    text-align:left!important;
  }

  body.page-home .lofe-v598-lineup-state{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:14px!important;
    min-height:58px!important;
    margin:0 -18px!important;
    padding:10px 18px!important;
    border-top:1px solid #dce7f0!important;
    background:#f7fafc!important;
  }
  body.page-home .lofe-v598-lineup-state__copy{
    display:flex!important;
    min-width:0!important;
    align-items:center!important;
    gap:10px!important;
  }
  body.page-home .lofe-v598-lineup-state__icon{
    display:grid!important;
    flex:0 0 30px!important;
    width:30px!important;
    height:30px!important;
    place-items:center!important;
    border-radius:50%!important;
    background:#ffb32e!important;
    color:#12314d!important;
    font-size:14px!important;
    font-weight:900!important;
  }
  body.page-home .lofe-v598-lineup-state.is-sent .lofe-v598-lineup-state__icon{
    background:#dff5e9!important;
    color:#158a56!important;
  }
  body.page-home .lofe-v598-lineup-state__copy>span:last-child{
    min-width:0!important;
  }
  body.page-home .lofe-v598-lineup-state__copy strong{
    display:block!important;
    color:#102f4f!important;
    font-size:12.5px!important;
    font-weight:850!important;
    line-height:1.15!important;
  }
  body.page-home .lofe-v598-lineup-state__copy small{
    display:block!important;
    margin-top:2px!important;
    overflow:hidden!important;
    color:#708399!important;
    font-size:10.5px!important;
    line-height:1.2!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.page-home .lofe-v598-lineup-action{
    display:inline-flex!important;
    min-height:36px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 14px!important;
    border:0!important;
    border-radius:10px!important;
    background:#0d2c49!important;
    color:#fff!important;
    font:800 11.5px/1 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    cursor:pointer!important;
  }
  body.page-home .lofe-v598-lineup-action.is-sent{
    background:#1684f6!important;
  }

  body.page-home .lofe-v598-rank-card{
    padding:0!important;
  }
  body.page-home .lofe-v598-rank-card>header{
    min-height:42px!important;
    padding:0 18px!important;
    border-bottom:1px solid #dce7f0!important;
  }
  body.page-home .lofe-v598-rank-row{
    display:grid!important;
    grid-template-columns:34px minmax(150px,1fr) auto 52px!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    column-gap:12px!important;
    row-gap:6px!important;
    min-height:84px!important;
    padding:10px 18px 12px!important;
  }
  body.page-home .lofe-v598-rank-pos{grid-column:1!important;grid-row:1 / span 2!important}
  body.page-home .lofe-v598-rank-team{grid-column:2!important;grid-row:1 / span 2!important}
  body.page-home .lofe-v598-rank-stats{grid-column:3!important;grid-row:1!important}
  body.page-home .lofe-v598-form{grid-column:3!important;grid-row:2!important}
  body.page-home .lofe-v598-rank-points{grid-column:4!important;grid-row:1 / span 2!important}
  body.page-home .lofe-v598-rank-pos{
    color:#61768a!important;
    font-size:26px!important;
    font-weight:750!important;
    line-height:1!important;
    text-align:center!important;
  }
  body.page-home .lofe-v598-rank-team{
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr)!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0!important;
  }
  body.page-home .lofe-v598-rank-team img{
    width:36px!important;
    height:36px!important;
    object-fit:contain!important;
  }
  body.page-home .lofe-v598-rank-team>span{
    min-width:0!important;
  }
  body.page-home .lofe-v598-rank-team b{
    display:block!important;
    overflow:hidden!important;
    color:#102f4f!important;
    font-size:14px!important;
    font-weight:850!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.page-home .lofe-v598-rank-team small{
    display:block!important;
    margin-top:2px!important;
    color:#75899d!important;
    font-size:9px!important;
  }
  body.page-home .lofe-v598-form{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    white-space:nowrap!important;
  }
  body.page-home .lofe-v598-form b{
    display:grid!important;
    width:24px!important;
    height:24px!important;
    place-items:center!important;
    border:1px solid transparent!important;
    border-radius:7px!important;
    font-size:10px!important;
    font-weight:900!important;
  }
  body.page-home .lofe-v598-form .is-v{background:rgba(40,173,105,.10)!important;border-color:rgba(40,173,105,.20)!important;color:#218657!important}
  body.page-home .lofe-v598-form .is-n{background:rgba(208,165,45,.11)!important;border-color:rgba(208,165,45,.22)!important;color:#9a7718!important}
  body.page-home .lofe-v598-form .is-p{background:rgba(216,88,95,.10)!important;border-color:rgba(216,88,95,.20)!important;color:#b2474d!important}
  body.page-home .lofe-v598-form-empty{color:#8ca0b2!important}

  body.page-home .lofe-v598-rank-stats{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
  }
  body.page-home .lofe-v598-rank-stats span{
    display:grid!important;
    grid-template-columns:auto auto!important;
    align-items:baseline!important;
    gap:3px!important;
  }
  body.page-home .lofe-v598-rank-stats small{
    color:#8294a5!important;
    font-size:8.5px!important;
    font-weight:800!important;
  }
  body.page-home .lofe-v598-rank-stats b{
    color:#183b59!important;
    font-size:11px!important;
    font-weight:850!important;
  }
  body.page-home .lofe-v598-rank-points{
    text-align:right!important;
  }
  body.page-home .lofe-v598-rank-points small{
    display:block!important;
    margin-bottom:2px!important;
    color:#75899d!important;
    font-size:8.5px!important;
    font-weight:800!important;
  }
  body.page-home .lofe-v598-rank-points strong{
    color:#102f4f!important;
    font-size:24px!important;
    font-weight:900!important;
    line-height:1!important;
  }
  body.page-home .lofe-v598-rank-empty{
    margin:0!important;
    padding:18px!important;
    color:#708399!important;
    font-size:11px!important;
  }
}

/* v600 - Classifica personale: contenuto piu centrato e forma limitata alle ultime 5 gare. */
@media (min-width:801px){
  body.page-home .lofe-v598-rank-row{
    grid-template-columns:42px minmax(180px,auto) auto 48px!important;
    grid-template-rows:auto auto!important;
    justify-content:center!important;
    align-items:center!important;
    column-gap:22px!important;
    row-gap:5px!important;
    min-height:86px!important;
    padding:11px 24px 12px!important;
  }
  body.page-home .lofe-v598-rank-pos{
    align-self:center!important;
    justify-self:center!important;
  }
  body.page-home .lofe-v598-rank-team{
    align-self:center!important;
    justify-self:start!important;
  }
  body.page-home .lofe-v598-rank-stats{
    justify-self:center!important;
    justify-content:center!important;
    gap:11px!important;
  }
  body.page-home .lofe-v598-form{
    justify-self:center!important;
    justify-content:center!important;
    min-width:100%!important;
    gap:5px!important;
  }
  body.page-home .lofe-v598-rank-points{
    align-self:center!important;
    justify-self:center!important;
    text-align:center!important;
  }
  body.page-home .lofe-v598-rank-team small{
    margin-top:3px!important;
  }
}


/* v602 - La tua classifica: variante B reale, adattata alla colonna Home. */
@media (min-width:801px){
  body.page-home .lofe-v598-rank-row{
    display:grid!important;
    grid-template-columns:46px minmax(175px,1fr) 112px 58px 44px!important;
    grid-template-rows:1fr!important;
    align-items:center!important;
    justify-content:stretch!important;
    column-gap:10px!important;
    min-height:88px!important;
    padding:12px 16px!important;
  }
  body.page-home .lofe-v598-rank-pos{
    grid-column:1!important;grid-row:1!important;
    align-self:center!important;justify-self:center!important;
    font-size:30px!important;line-height:1!important;
  }
  body.page-home .lofe-v598-rank-pos sup{font-size:13px!important;vertical-align:super!important}
  body.page-home .lofe-v598-rank-team{
    grid-column:2!important;grid-row:1!important;
    display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;
    align-items:center!important;gap:10px!important;min-width:0!important;
  }
  body.page-home .lofe-v598-rank-team img{width:40px!important;height:40px!important}
  body.page-home .lofe-v598-rank-team>span{display:block!important;min-width:0!important}
  body.page-home .lofe-v598-rank-team b{font-size:13px!important;line-height:1.15!important}
  body.page-home .lofe-v601-form-line{
    display:flex!important;align-items:center!important;gap:6px!important;
    margin-top:7px!important;min-width:0!important;white-space:nowrap!important;
  }
  body.page-home .lofe-v601-form-line>small{
    display:inline-block!important;margin:0!important;color:#75899d!important;
    font-size:8.5px!important;font-weight:650!important;white-space:nowrap!important;
  }
  body.page-home .lofe-v598-form{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    gap:3px!important;min-width:0!important;width:auto!important;white-space:nowrap!important;
  }
  body.page-home .lofe-v598-form b{
    display:grid!important;width:20px!important;height:20px!important;place-items:center!important;
    border-radius:6px!important;font-size:8.5px!important;
  }
  body.page-home .lofe-v598-rank-stats{
    grid-column:3!important;grid-row:1!important;
    display:grid!important;grid-template-columns:repeat(4,1fr)!important;
    align-items:center!important;gap:2px!important;
    padding-left:10px!important;border-left:1px solid #dce7f0!important;
  }
  body.page-home .lofe-v598-rank-stats span,
  body.page-home .lofe-v601-goals span{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  }
  body.page-home .lofe-v598-rank-stats small,
  body.page-home .lofe-v601-goals small{
    color:#75899d!important;font-size:8px!important;font-weight:850!important;line-height:1!important;
  }
  body.page-home .lofe-v598-rank-stats b,
  body.page-home .lofe-v601-goals b{
    color:#102f4f!important;font-size:13px!important;font-weight:900!important;line-height:1!important;
  }
  body.page-home .lofe-v601-goals{
    grid-column:4!important;grid-row:1!important;
    display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:4px!important;
    padding:0 8px!important;border-left:1px solid #dce7f0!important;border-right:1px solid #dce7f0!important;
  }
  body.page-home .lofe-v598-rank-points{
    grid-column:5!important;grid-row:1!important;
    align-self:center!important;justify-self:center!important;text-align:center!important;min-width:38px!important;
  }
  body.page-home .lofe-v598-rank-points small{margin-bottom:5px!important;font-size:8px!important}
  body.page-home .lofe-v598-rank-points strong{font-size:25px!important;line-height:1!important}
}

/* v603 - La tua classifica: spazi esterni uniformi e statistiche regolari. */
@media (min-width:801px){
  body.page-home .lofe-v598-rank-row{
    grid-template-columns:42px minmax(185px,1fr) 124px 66px 46px!important;
    column-gap:8px!important;
    min-height:78px!important;
    padding:8px 10px!important;
  }

  body.page-home .lofe-v598-rank-stats{
    grid-template-columns:repeat(4,24px)!important;
    justify-content:center!important;
    column-gap:5px!important;
    padding:0 8px!important;
    border-left:1px solid #dce7f0!important;
    border-right:1px solid #dce7f0!important;
  }
  body.page-home .lofe-v598-rank-stats span{
    width:24px!important;
    min-width:24px!important;
    gap:4px!important;
  }

  body.page-home .lofe-v601-goals{
    grid-template-columns:repeat(2,24px)!important;
    justify-content:center!important;
    column-gap:6px!important;
    padding:0 7px!important;
    border-left:0!important;
    border-right:1px solid #dce7f0!important;
  }
  body.page-home .lofe-v601-goals span{
    width:24px!important;
    min-width:24px!important;
  }

  body.page-home .lofe-v598-rank-pos,
  body.page-home .lofe-v598-rank-team,
  body.page-home .lofe-v598-rank-stats,
  body.page-home .lofe-v601-goals,
  body.page-home .lofe-v598-rank-points{
    align-self:center!important;
  }
}

/* v604 - La tua classifica: corpo piu compatto, margini uniformi e blocchi raccolti. */
@media (min-width:801px){
  body.page-home .lofe-v598-rank-row{
    grid-template-columns:38px 190px 116px 60px 44px!important;
    justify-content:center!important;
    column-gap:8px!important;
    min-height:66px!important;
    padding:6px 10px!important;
  }
  body.page-home .lofe-v598-rank-pos{
    font-size:27px!important;
  }
  body.page-home .lofe-v598-rank-team{
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:8px!important;
  }
  body.page-home .lofe-v598-rank-team img{
    width:36px!important;
    height:36px!important;
  }
  body.page-home .lofe-v601-form-line{
    margin-top:4px!important;
    gap:5px!important;
  }
  body.page-home .lofe-v598-rank-stats{
    grid-template-columns:repeat(4,23px)!important;
    column-gap:4px!important;
    padding:0 6px!important;
  }
  body.page-home .lofe-v598-rank-stats span{
    width:23px!important;
    min-width:23px!important;
  }
  body.page-home .lofe-v601-goals{
    grid-template-columns:repeat(2,23px)!important;
    column-gap:4px!important;
    padding:0 5px!important;
  }
  body.page-home .lofe-v601-goals span{
    width:23px!important;
    min-width:23px!important;
  }
  body.page-home .lofe-v598-rank-points{
    min-width:36px!important;
  }
  body.page-home .lofe-v598-rank-points small{
    margin-bottom:4px!important;
  }
  body.page-home .lofe-v598-rank-points strong{
    font-size:23px!important;
  }
}

/* v605 - Classifica personale: compattazione evidente e spazi esterni simmetrici. */
@media (min-width:801px){
  html body.page-home #lofe-main .lofe-v598-rank-row{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:36px 172px 108px 54px 38px!important;
    align-items:center!important;
    justify-content:space-between!important;
    column-gap:4px!important;
    width:100%!important;
    min-height:56px!important;
    padding:4px 8px!important;
    margin:0!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-pos{
    font-size:25px!important;
    line-height:1!important;
    justify-self:start!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-team{
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:6px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-team img{
    width:32px!important;
    height:32px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-team b{
    font-size:12.5px!important;
  }
  html body.page-home #lofe-main .lofe-v601-form-line{
    margin-top:2px!important;
    gap:4px!important;
  }
  html body.page-home #lofe-main .lofe-v601-form-line>small{
    font-size:8px!important;
  }
  html body.page-home #lofe-main .lofe-v598-form{
    gap:2px!important;
  }
  html body.page-home #lofe-main .lofe-v598-form b{
    width:18px!important;
    height:18px!important;
    border-radius:5px!important;
    font-size:8px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-stats{
    grid-template-columns:repeat(4,22px)!important;
    column-gap:3px!important;
    padding:0 5px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-stats span,
  html body.page-home #lofe-main .lofe-v601-goals span{
    width:22px!important;
    min-width:22px!important;
    gap:3px!important;
  }
  html body.page-home #lofe-main .lofe-v601-goals{
    grid-template-columns:repeat(2,22px)!important;
    column-gap:3px!important;
    padding:0 4px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-stats small,
  html body.page-home #lofe-main .lofe-v601-goals small{
    font-size:7.5px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-stats b,
  html body.page-home #lofe-main .lofe-v601-goals b{
    font-size:12.5px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-points{
    min-width:34px!important;
    justify-self:end!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-points small{
    margin-bottom:2px!important;
    font-size:7.5px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-points strong{
    font-size:22px!important;
  }
}

/* v606 - Classifica personale: rifinitura variante B, spazi regolari e forma piu leggibile. */
@media (min-width:801px){
  html body.page-home #lofe-main .lofe-v598-rank-row{
    grid-template-columns:42px 176px 112px 58px 42px!important;
    justify-content:center!important;
    column-gap:10px!important;
    min-height:62px!important;
    padding:7px 10px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-pos{
    justify-self:center!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-team{
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:7px!important;
  }
  html body.page-home #lofe-main .lofe-v601-form-line{
    margin-top:4px!important;
    gap:5px!important;
  }
  html body.page-home #lofe-main .lofe-v601-form-line>small{
    font-size:8.8px!important;
  }
  html body.page-home #lofe-main .lofe-v598-form{
    gap:3px!important;
  }
  html body.page-home #lofe-main .lofe-v598-form b{
    width:20px!important;
    height:20px!important;
    border-radius:6px!important;
    font-size:9px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-stats{
    grid-template-columns:repeat(4,24px)!important;
    column-gap:4px!important;
    padding:0 6px!important;
  }
  html body.page-home #lofe-main .lofe-v601-goals{
    grid-template-columns:repeat(2,24px)!important;
    column-gap:4px!important;
    padding:0 6px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-stats span,
  html body.page-home #lofe-main .lofe-v601-goals span{
    width:24px!important;
    min-width:24px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-stats small,
  html body.page-home #lofe-main .lofe-v601-goals small,
  html body.page-home #lofe-main .lofe-v598-rank-points small{
    font-size:8px!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-points{
    min-width:38px!important;
    justify-self:center!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-points strong{
    font-size:23px!important;
  }
}


/* v607 - rifinitura finale punti classifica personale */
@media (min-width:801px){
  html body.page-home #lofe-main .lofe-v598-rank-points{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:38px!important;
    min-width:38px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0!important;
    border:1px solid #d9e1e6!important;
    border-radius:8px!important;
    background:#f1f4f6!important;
    box-shadow:none!important;
  }
  html body.page-home #lofe-main .lofe-v598-rank-points small{display:none!important}
  html body.page-home #lofe-main .lofe-v598-rank-points strong{
    margin:0!important;
    font-size:14px!important;
    line-height:1!important;
    font-weight:700!important;
    color:#123653!important;
  }
}
