/*
 * LEGALOFE APP UI - DESKTOP PRODUCTION UI
 * Base grafica: app mobile Legalofe, adattata al PC.
 * Nessun override legacy precedente: questo file e' autonomo.
 */

:root{
  --lofe-navy:#00263d;
  --lofe-navy-2:#06364f;
  --lofe-gold:#D7A062;
  --lofe-green:#41966a;
  --lofe-red:#c94e53;
  --lofe-bg:#d0d9df;
  --lofe-card:#fff;
  --lofe-text:#303030;
  --lofe-muted:#8b8b8b;
  --lofe-line:#d9d9d9;
  --lofe-score:#f4f2f0;
  --lofe-radius:20px;
  --lofe-shadow:0 8px 22px rgba(0,0,0,.09);
}

@media (min-width:801px){

  html,
  body.lofe-app-ui{
    background:var(--lofe-bg)!important;
    color:var(--lofe-text)!important;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  }

  body.lofe-app-ui *{box-sizing:border-box}

  body.lofe-app-ui #lofe-main{
    width:min(980px,calc(100% - 32px))!important;
    max-width:980px!important;
    margin:0 auto!important;
    padding-top:18px!important;
  }

  body.lofe-app-ui.page-home .home-live-mobile,
  body.lofe-app-ui.page-home .home-results-mobile,
  body.lofe-app-ui.page-home .mobile-welcome-first,
  body.lofe-app-ui.page-home .mobile-deadline-quick,
  body.lofe-app-ui.page-home .app-ui-formation-status{
    display:none!important;
  }

  body.lofe-app-ui.page-home .home-old-dashboard{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 360px!important;
    gap:16px!important;
    align-items:start!important;
  }

  body.lofe-app-ui.page-home :is(.home-main-column,.home-side-column,.desktop-sails-extras){
    min-width:0!important;
    display:grid!important;
    gap:14px!important;
  }

  body.lofe-app-ui.page-home :is(.home-live,.home-box){
    background:var(--lofe-card)!important;
    border:1px solid #d4d4d4!important;
    border-radius:var(--lofe-radius)!important;
    box-shadow:var(--lofe-shadow)!important;
    overflow:hidden!important;
  }

  body.lofe-app-ui.page-home :is(.home-live-heading,.home-box>header){
    min-height:52px!important;
    margin:0!important;
    padding:0 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    background:var(--lofe-navy)!important;
    color:#fff!important;
    border:0!important;
  }

  body.lofe-app-ui.page-home :is(.home-live-heading,.home-box>header) h2{
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    color:#fff!important;
    font-size:17px!important;
    line-height:1!important;
    font-weight:900!important;
    text-transform:uppercase!important;
  }

  body.lofe-app-ui.page-home :is(.home-live-heading,.home-box>header)>:is(span,a){
    color:var(--lofe-gold)!important;
    font-size:12px!important;
    font-weight:500!important;
    text-decoration:none!important;
    text-align:right!important;
  }

  body.lofe-app-ui.page-home .home-results-above-topflop>header h2::before{content:"▣";color:var(--lofe-gold);font-size:16px}
  body.lofe-app-ui.page-home .home-day-performance>header h2::before{content:"★";color:var(--lofe-gold);font-size:15px}
  body.lofe-app-ui.page-home .home-scorers-box>header h2::before{content:"●";color:var(--lofe-gold);font-size:12px}
  body.lofe-app-ui.page-home .home-side-column>.lofe-mobile-match-card>header h2::before{content:"◷";color:var(--lofe-gold);font-size:16px}
  body.lofe-app-ui.page-home .home-standings-card>header h2::before{content:"≡";color:var(--lofe-gold);font-size:18px}
  body.lofe-app-ui.page-home .big-match-box>header h2::before{content:"◆";color:var(--lofe-gold);font-size:13px}
  body.lofe-app-ui.page-home .home-top-player-card>header h2::before{content:"★";color:var(--lofe-gold);font-size:15px}
  body.lofe-app-ui.page-home .home-live-heading h2::before{content:"●";color:#ef4d5d;font-size:12px}
  body.lofe-app-ui.page-home .home-live-heading .live-dot{display:none!important}

  body.lofe-app-ui.page-home .home-live{margin-bottom:14px!important}
  body.lofe-app-ui.page-home .home-live-heading{
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
  }
  body.lofe-app-ui.page-home .home-live-selector{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
    padding:9px 10px!important;
    background:#fff!important;
  }
  body.lofe-app-ui.page-home .home-live-selector>a{
    min-height:74px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:1fr 1fr!important;
    align-items:center!important;
    gap:3px 7px!important;
    padding:8px 9px!important;
    background:#fff!important;
    border:1px solid var(--lofe-line)!important;
    border-radius:12px!important;
    text-decoration:none!important;
  }
  body.lofe-app-ui.page-home .home-live-selector>a>span{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
  body.lofe-app-ui.page-home .home-live-selector img{width:24px!important;height:24px!important;object-fit:contain!important;flex:0 0 24px!important}
  body.lofe-app-ui.page-home .home-live-selector strong{color:var(--lofe-text)!important;font-size:11.5px!important;font-weight:500!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.lofe-app-ui.page-home .home-live-selector>a>b{
    grid-column:2!important;grid-row:1/span 2!important;min-width:44px!important;padding:6px 7px!important;
    border:1px solid #d5d0cc!important;border-radius:10px!important;background:var(--lofe-score)!important;
    color:#303030!important;font-size:12px!important;font-weight:900!important;text-align:center!important;
  }
  body.lofe-app-ui.page-home .home-live-events{min-height:34px!important;padding:6px 12px!important;border-top:1px solid var(--lofe-line)!important;background:#fff!important;font-size:11px!important}
  body.lofe-app-ui.page-home .home-live-refresh{padding:6px 10px 8px!important;border-top:1px solid var(--lofe-line)!important;background:#fff!important}

  body.lofe-app-ui.page-home .home-results{margin:8px 10px 10px!important}
  body.lofe-app-ui.page-home .home-results>a{
    min-height:34px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr)!important;
    align-items:center!important;gap:18px!important;padding:2px 18px!important;background:#fff!important;
    border-bottom:1px solid var(--lofe-line)!important;color:var(--lofe-text)!important;text-decoration:none!important;
  }
  body.lofe-app-ui.page-home .home-results>a:last-child{border-bottom:0!important}
  body.lofe-app-ui.page-home .home-result-team{font-size:14px!important;font-weight:400!important;line-height:1!important}
  body.lofe-app-ui.page-home .home-result-team:first-child{text-align:right!important}
  body.lofe-app-ui.page-home .home-result-team.away{text-align:left!important}
  body.lofe-app-ui.page-home .home-results>a>b{
    min-width:50px!important;padding:5px 7px!important;border:1px solid #d5d0cc!important;border-radius:10px!important;
    background:var(--lofe-score)!important;color:#303030!important;font-size:13px!important;line-height:1!important;font-weight:900!important;text-align:center!important;
  }

  body.lofe-app-ui.page-home .home-day-performance>header .home-module-form{display:flex!important;align-items:center!important;gap:7px!important}
  body.lofe-app-ui.page-home .home-day-performance>header .home-module-form label{color:var(--lofe-gold)!important;font-size:11px!important;font-weight:400!important}
  body.lofe-app-ui.page-home .home-day-performance>header .home-module-form select{min-height:30px!important;height:30px!important;padding:2px 8px!important;border:1px solid #c7c7c7!important;border-radius:8px!important;background:#fff!important;color:#333!important;font-size:11px!important}

  body.lofe-app-ui.page-home .home-topflop-columns{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;margin:8px 10px 10px!important;overflow:hidden!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div+div{border-left:1px solid var(--lofe-line)!important}
  body.lofe-app-ui.page-home .home-topflop-columns h3{margin:0!important;padding:8px 10px!important;background:var(--lofe-navy-2)!important;color:#fff!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase!important}
  body.lofe-app-ui.page-home .home-player-row.home-player-row-card{min-height:46px!important;display:grid!important;align-items:center!important;gap:8px!important;padding:5px 9px!important;background:#fff!important;border-bottom:1px solid var(--lofe-line)!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:first-child .home-player-row{grid-template-columns:5px 32px minmax(0,1fr) 44px!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:last-child .home-player-row{grid-template-columns:44px minmax(0,1fr) 32px 5px!important}

  body.lofe-app-ui.page-home .home-topflop-columns>div:first-child .player-role{grid-column:1!important;grid-row:1!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:first-child .home-player-face{grid-column:2!important;grid-row:1!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:first-child .home-player-copy{grid-column:3!important;grid-row:1!important;text-align:left!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:first-child .home-player-vote{grid-column:4!important;grid-row:1!important;text-align:right!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:last-child .home-player-vote{grid-column:1!important;grid-row:1!important;text-align:left!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:last-child .home-player-copy{grid-column:2!important;grid-row:1!important;text-align:right!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:last-child .home-player-face{grid-column:3!important;grid-row:1!important}
  body.lofe-app-ui.page-home .home-topflop-columns>div:last-child .player-role{grid-column:4!important;grid-row:1!important}

  body.lofe-app-ui.page-home .player-role{width:4px!important;height:31px!important;border-radius:3px!important;justify-self:center!important}
  body.lofe-app-ui.page-home .role-p{background:#d2a229!important}
  body.lofe-app-ui.page-home .role-d{background:#41966a!important}
  body.lofe-app-ui.page-home .role-c{background:#4b86bd!important}
  body.lofe-app-ui.page-home .role-a{background:#c95b61!important}
  body.lofe-app-ui.page-home .home-player-face{width:31px!important;height:31px!important;border-radius:50%!important;object-fit:cover!important}
  body.lofe-app-ui.page-home .home-player-copy strong{display:block!important;color:#303030!important;font-size:12px!important;line-height:1.05!important;font-weight:400!important}
  body.lofe-app-ui.page-home .home-player-copy small{display:block!important;margin-top:2px!important;color:var(--lofe-muted)!important;font-size:9px!important;line-height:1.05!important}
  body.lofe-app-ui.page-home .home-player-vote{color:#303030!important;font-size:14px!important;line-height:1!important;font-weight:900!important}

  body.lofe-app-ui.page-home .home-scorers-box>header>span{color:var(--lofe-gold)!important;font-weight:400!important}
  body.lofe-app-ui.page-home .home-scorers-head{min-height:30px!important;display:grid!important;grid-template-columns:5px 32px minmax(0,1fr) 40px!important;align-items:center!important;gap:8px!important;margin:8px 10px 0!important;padding:0 9px!important;background:var(--lofe-navy-2)!important;color:#fff!important}
  body.lofe-app-ui.page-home .home-scorers-head>span{grid-column:2/4!important;color:#fff!important;font-size:10px!important;font-weight:700!important;text-transform:uppercase!important}
  body.lofe-app-ui.page-home .home-scorers-head>b{grid-column:4!important;color:#fff!important;font-size:10px!important;font-weight:700!important;text-align:right!important;text-transform:uppercase!important}
  body.lofe-app-ui.page-home .home-scorers-table{margin:0 10px!important}
  body.lofe-app-ui.page-home .home-scorer-row{min-height:46px!important;display:grid!important;grid-template-columns:5px 32px minmax(0,1fr) 40px!important;align-items:center!important;gap:8px!important;padding:5px 9px!important;background:#fff!important;border-bottom:1px solid var(--lofe-line)!important}
  body.lofe-app-ui.page-home .home-scorer-row[hidden]{display:none!important}
  body.lofe-app-ui.page-home .home-scorer-row:last-child{border-bottom:0!important}
  body.lofe-app-ui.page-home .home-scorer-row::before{content:"";grid-column:1;grid-row:1;width:4px;height:31px;border-radius:3px;background:#4b86bd;justify-self:center}
  body.lofe-app-ui.page-home .home-scorer-row:has(.scorer-role-p)::before{background:#d2a229}
  body.lofe-app-ui.page-home .home-scorer-row:has(.scorer-role-d)::before{background:#41966a}
  body.lofe-app-ui.page-home .home-scorer-row:has(.scorer-role-c)::before{background:#4b86bd}
  body.lofe-app-ui.page-home .home-scorer-row:has(.scorer-role-a)::before{background:#c95b61}
  body.lofe-app-ui.page-home .home-scorer-face{grid-column:2!important;grid-row:1!important;width:31px!important;height:31px!important;border-radius:50%!important;object-fit:cover!important}
  body.lofe-app-ui.page-home .scorer-name{grid-column:3!important;grid-row:1!important;padding:0!important;border:0!important;box-shadow:none!important}
  body.lofe-app-ui.page-home .scorer-name::before,
  body.lofe-app-ui.page-home .scorer-name::after{display:none!important;content:none!important}
  body.lofe-app-ui.page-home .scorer-name strong{display:block!important;color:#303030!important;font-size:12px!important;line-height:1.05!important;font-weight:400!important}
  body.lofe-app-ui.page-home .scorer-name small{display:block!important;margin-top:2px!important;color:var(--lofe-muted)!important;font-size:9px!important;line-height:1.05!important}
  body.lofe-app-ui.page-home .home-scorer-row>b{grid-column:4!important;grid-row:1!important;color:#303030!important;font-size:14px!important;line-height:1!important;font-weight:900!important;text-align:right!important}
  body.lofe-app-ui.page-home .home-scorers-pages{margin:8px 10px 10px!important;display:flex!important;justify-content:center!important;gap:6px!important}

  body.lofe-app-ui.page-home .deadline-box{min-height:108px!important;padding:14px 18px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;text-align:center!important}
  body.lofe-app-ui.page-home .deadline-box h2{margin:0!important;font-size:16px!important;font-weight:600!important}
  body.lofe-app-ui.page-home .deadline-box strong{color:var(--lofe-navy)!important;font-size:20px!important;font-weight:900!important}
  body.lofe-app-ui.page-home .deadline-box small{color:var(--lofe-muted)!important;font-size:10px!important;font-weight:400!important}

  body.lofe-app-ui.page-home .home-side-column>.lofe-mobile-match-card>header .home-seriea-round{display:block!important;margin-top:3px!important;color:#b8c1c9!important;font-size:10px!important;font-weight:500!important}
  body.lofe-app-ui.page-home .next-turn-list{margin:7px 10px 9px!important;padding:0!important}
  body.lofe-app-ui.page-home .next-turn-list>a.lofe-match-row--status{min-height:34px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 20px 14px 20px minmax(0,1fr)!important;align-items:center!important;gap:6px!important;padding:0 8px!important;color:var(--lofe-text)!important;background:#fff!important;border-bottom:1px solid var(--lofe-line)!important;text-decoration:none!important}
  body.lofe-app-ui.page-home .next-turn-list>a:last-child{border-bottom:0!important}
  body.lofe-app-ui.page-home .lofe-match-team{font-size:11.5px!important;font-weight:400!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.lofe-app-ui.page-home .lofe-match-team--home{text-align:right!important}
  body.lofe-app-ui.page-home .lofe-match-team--away{text-align:left!important}
  body.lofe-app-ui.page-home .lofe-match-status{width:19px!important;height:19px!important;display:grid!important;place-items:center!important;border-radius:50%!important;color:#fff!important;font-size:9px!important;font-style:normal!important;font-weight:900!important}
  body.lofe-app-ui.page-home .lofe-match-status.sent{background:var(--lofe-green)!important}
  body.lofe-app-ui.page-home .lofe-match-status.missing{background:var(--lofe-red)!important}
  body.lofe-app-ui.page-home .lofe-match-separator{color:#aaa!important;font-size:11px!important;text-align:center!important}

  body.lofe-app-ui.page-home .home-standings-card>header>a{color:var(--lofe-gold)!important;font-weight:400!important}
  body.lofe-app-ui.page-home .mini-standing{margin:7px 10px 9px!important}
  body.lofe-app-ui.page-home .mini-standing-head,
  body.lofe-app-ui.page-home .mini-standing>div:not(.mini-standing-head){display:grid!important;grid-template-columns:minmax(0,1fr) 36px 28px 28px 28px!important;align-items:center!important;gap:4px!important;padding:0 8px!important}
  body.lofe-app-ui.page-home .mini-standing-head{min-height:28px!important;color:#777!important;font-size:9.5px!important;text-transform:uppercase!important;border-bottom:1px solid var(--lofe-line)!important}
  body.lofe-app-ui.page-home .mini-standing-head>span{font-weight:400!important}
  body.lofe-app-ui.page-home .mini-standing-head>b{font-weight:400!important;text-align:center!important}
  body.lofe-app-ui.page-home .mini-standing-head>b:first-of-type{font-weight:800!important}
  body.lofe-app-ui.page-home .mini-standing>div:not(.mini-standing-head){min-height:32px!important;background:#fff!important;border-bottom:1px solid var(--lofe-line)!important}
  body.lofe-app-ui.page-home .mini-standing>div:last-child{border-bottom:0!important}
  body.lofe-app-ui.page-home .mini-standing>div:not(.mini-standing-head)>span{min-width:0!important;display:grid!important;grid-template-columns:18px 22px minmax(0,1fr)!important;align-items:center!important;gap:6px!important;color:#333!important;font-size:11.5px!important;font-weight:400!important}
  body.lofe-app-ui.page-home .mini-standing em{color:#777!important;font-size:10px!important;font-style:normal!important;font-weight:400!important;text-align:center!important}
  body.lofe-app-ui.page-home .mini-standing img{width:20px!important;height:20px!important;object-fit:contain!important}
  body.lofe-app-ui.page-home .mini-standing>div:not(.mini-standing-head)>strong{font-size:11.5px!important;font-weight:900!important;text-align:center!important}
  body.lofe-app-ui.page-home .mini-standing>div:not(.mini-standing-head)>b{font-size:11px!important;font-weight:400!important;text-align:center!important}

  body.lofe-app-ui.page-home .big-match-box>div{padding:12px 14px!important}
  body.lofe-app-ui.page-home .home-top-player-card>header>span{color:var(--lofe-gold)!important;font-weight:400!important}

  body.lofe-app-ui #lofe-main :is(input,select,textarea){min-height:34px!important;border:1px solid #ccc!important;border-radius:8px!important;background:#fff!important;color:#333!important}
  body.lofe-app-ui #lofe-main :is(.button,button.button,a.button){min-height:34px!important;padding:7px 12px!important;border:1px solid var(--lofe-navy)!important;border-radius:9px!important;background:var(--lofe-navy)!important;color:#fff!important;font-size:11px!important;font-weight:700!important}
}

/* ==========================================================
   CLEAN REBUILD - PASS 2
   Rimuove residui della vecchia grafica desktop.
   ========================================================== */
@media (min-width:801px){

  /* Le card non devono avere il vecchio padding bianco esterno */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-box{
    padding:0!important;
  }

  /* Header navy a filo della card, come nell'app */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-box>header{
    width:100%!important;
    margin:0!important;
    border-radius:0!important;
  }

  /* RISULTATI: niente più righe bianche/grigie alternate */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-results>a,
  html body.lofe-app-ui.page-home main#lofe-main
  .home-results>a:nth-child(odd),
  html body.lofe-app-ui.page-home main#lofe-main
  .home-results>a:nth-child(even){
    background:#fff!important;
  }

  /* TOP/FLOP: elimina il bordo bianco fra card e testata */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance{
    padding:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance>header{
    margin:0!important;
  }

  /* CANNONIERI */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box{
    padding:0!important;
  }

  /* PROSSIMO TURNO / CLASSIFICA / BIG MATCH / TOP PLAYER */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column>.home-box{
    padding:0!important;
  }

  /* Mantiene respiro interno del contenuto senza creare una cornice
     attorno all'intestazione */
  html body.lofe-app-ui.page-home main#lofe-main
  .big-match-box>div,
  html body.lofe-app-ui.page-home main#lofe-main
  .home-top-player-body{
    margin:8px 10px 10px!important;
  }

  /* Riduce leggermente il vuoto verticale tra le card */
  html body.lofe-app-ui.page-home
  :is(.home-main-column,.home-side-column,.desktop-sails-extras){
    gap:12px!important;
  }
}

/* ==========================================================
   CLEAN REBUILD - PASS 3
   Proporzioni desktop: più leggibile, stessa struttura.
   ========================================================== */
@media (min-width:801px){

  /* Manteniamo 980px, ma diamo un po' più spazio alla colonna destra */
  html body.lofe-app-ui.page-home .home-old-dashboard{
    grid-template-columns:minmax(0,1fr) 370px!important;
    gap:16px!important;
  }

  /* Header: leggermente più leggibili */
  html body.lofe-app-ui.page-home
  :is(.home-live-heading,.home-box>header){
    min-height:54px!important;
    padding-left:16px!important;
    padding-right:16px!important;
  }

  html body.lofe-app-ui.page-home
  :is(.home-live-heading,.home-box>header) h2{
    font-size:17.5px!important;
  }

  html body.lofe-app-ui.page-home
  :is(.home-live-heading,.home-box>header)>:is(span,a){
    font-size:12.5px!important;
  }

  /* LIVE */
  html body.lofe-app-ui.page-home .home-live-selector strong{
    font-size:12px!important;
  }

  html body.lofe-app-ui.page-home .home-live-selector>a{
    min-height:78px!important;
  }

  html body.lofe-app-ui.page-home .home-live-selector img{
    width:26px!important;
    height:26px!important;
    flex-basis:26px!important;
  }

  /* RISULTATI */
  html body.lofe-app-ui.page-home .home-results>a{
    min-height:38px!important;
  }

  html body.lofe-app-ui.page-home .home-result-team{
    font-size:14.5px!important;
  }

  html body.lofe-app-ui.page-home .home-results>a>b{
    font-size:13.5px!important;
  }

  /* TOP / FLOP: aumenta leggibilità senza alterare l'impostazione */
  html body.lofe-app-ui.page-home .home-player-row.home-player-row-card{
    min-height:49px!important;
  }

  html body.lofe-app-ui.page-home .home-player-face{
    width:34px!important;
    height:34px!important;
  }

  html body.lofe-app-ui.page-home .home-player-copy strong{
    font-size:12.5px!important;
  }

  html body.lofe-app-ui.page-home .home-player-copy small{
    font-size:9.5px!important;
  }

  html body.lofe-app-ui.page-home .home-player-vote{
    font-size:14.5px!important;
  }

  /* PROSSIMO TURNO */
  html body.lofe-app-ui.page-home .next-turn-list>a.lofe-match-row--status{
    min-height:38px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  html body.lofe-app-ui.page-home .lofe-match-team{
    font-size:12.5px!important;
  }

  html body.lofe-app-ui.page-home .lofe-match-status{
    width:21px!important;
    height:21px!important;
    font-size:9.5px!important;
  }

  /* CLASSIFICA */
  html body.lofe-app-ui.page-home .mini-standing-head{
    min-height:31px!important;
    font-size:10px!important;
  }

  html body.lofe-app-ui.page-home .mini-standing>div:not(.mini-standing-head){
    min-height:35px!important;
  }

  html body.lofe-app-ui.page-home
  .mini-standing>div:not(.mini-standing-head)>span{
    font-size:12.5px!important;
  }

  html body.lofe-app-ui.page-home .mini-standing img{
    width:22px!important;
    height:22px!important;
  }

  html body.lofe-app-ui.page-home
  .mini-standing>div:not(.mini-standing-head)>strong,
  html body.lofe-app-ui.page-home
  .mini-standing>div:not(.mini-standing-head)>b{
    font-size:12px!important;
  }

  /* CANNONIERI */
  html body.lofe-app-ui.page-home .home-scorer-row{
    min-height:49px!important;
  }

  html body.lofe-app-ui.page-home .home-scorer-face{
    width:34px!important;
    height:34px!important;
  }

  html body.lofe-app-ui.page-home .scorer-name strong{
    font-size:12.5px!important;
  }

  html body.lofe-app-ui.page-home .scorer-name small{
    font-size:9.5px!important;
  }

  html body.lofe-app-ui.page-home .home-scorer-row>b{
    font-size:14.5px!important;
  }

  /* TOP TEAM / FLOP TEAM:
     la colonnina centrale acquista respiro e contenuti più leggibili */
  html body.lofe-app-ui.page-home .desktop-sails-extras{
    min-width:0!important;
    gap:12px!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras .home-box{
    min-width:0!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras .home-box>header{
    min-height:44px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras .home-box>header h2{
    font-size:13px!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras .home-box>div{
    padding:12px!important;
  }

  /* BIG MATCH / TOP PLAYER */
  html body.lofe-app-ui.page-home .big-match-box>div{
    padding:16px!important;
  }

  html body.lofe-app-ui.page-home .home-top-player-card .home-player-row{
    min-height:62px!important;
  }

  /* Formazione */
  html body.lofe-app-ui.page-home .deadline-box{
    min-height:118px!important;
  }

  html body.lofe-app-ui.page-home .deadline-box h2{
    font-size:17px!important;
  }

  html body.lofe-app-ui.page-home .deadline-box strong{
    font-size:21px!important;
  }
}

/* ==========================================================
   CLEAN REBUILD - PASS 4
   Parte inferiore: Cannonieri + Top/Flop Team.
   ========================================================== */
@media (min-width:801px){

  /* La zona bassa sinistra usa meglio tutta la larghezza disponibile */
  html body.lofe-app-ui.page-home .desktop-sails-lower{
    display:grid!important;
    grid-template-columns:minmax(0,1.55fr) minmax(150px,.85fr)!important;
    gap:14px!important;
    align-items:start!important;
  }

  /* Cannonieri: più spazio a nome/squadra */
  html body.lofe-app-ui.page-home .home-scorers-box{
    min-width:0!important;
  }

  html body.lofe-app-ui.page-home .home-scorers-head{
    grid-template-columns:5px 36px minmax(0,1fr) 44px!important;
  }

  html body.lofe-app-ui.page-home .home-scorer-row{
    grid-template-columns:5px 36px minmax(0,1fr) 44px!important;
    gap:9px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  html body.lofe-app-ui.page-home .home-scorer-face{
    width:34px!important;
    height:34px!important;
  }

  html body.lofe-app-ui.page-home .scorer-name{
    min-width:0!important;
  }

  html body.lofe-app-ui.page-home .scorer-name strong{
    font-size:13px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.lofe-app-ui.page-home .scorer-name small{
    font-size:10px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.lofe-app-ui.page-home .home-scorer-row>b{
    font-size:15px!important;
  }

  /* Top Team / Flop Team: card più larghe e meno "torrette" */
  html body.lofe-app-ui.page-home .desktop-sails-extras{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    min-width:150px!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras .home-box{
    width:100%!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras .home-box>header{
    min-height:46px!important;
    padding:0 14px!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras .home-box>header h2{
    font-size:13.5px!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras .home-box>div{
    min-height:118px!important;
    padding:12px 14px!important;
  }

  html body.lofe-app-ui.page-home .desktop-sails-extras img{
    max-width:72px!important;
    max-height:72px!important;
    object-fit:contain!important;
  }

  /* Prossimo turno e Classifica: piccolo incremento leggibilità */
  html body.lofe-app-ui.page-home .lofe-match-team{
    font-size:13px!important;
  }

  html body.lofe-app-ui.page-home
  .mini-standing>div:not(.mini-standing-head)>span{
    font-size:13px!important;
  }

  html body.lofe-app-ui.page-home .mini-standing-head{
    font-size:10.5px!important;
  }
}

/* ==========================================================
   CLEAN REBUILD - PASS 5
   CANNONIERI = stessa sequenza visiva del TOP:
   barra ruolo -> foto -> nome/squadra -> gol
   ========================================================== */
@media (min-width:801px){

  html body.lofe-app-ui.page-home .home-scorers-head,
  html body.lofe-app-ui.page-home .home-scorer-row{
    grid-template-columns:5px 34px minmax(0,1fr) 44px!important;
    column-gap:8px!important;
  }

  html body.lofe-app-ui.page-home .home-scorers-head{
    padding-left:9px!important;
    padding-right:9px!important;
  }

  html body.lofe-app-ui.page-home .home-scorer-row{
    padding:5px 9px!important;
  }

  /* 1. barra ruolo */
  html body.lofe-app-ui.page-home .home-scorer-row::before{
    grid-column:1!important;
    grid-row:1!important;
    width:4px!important;
    height:31px!important;
    justify-self:center!important;
  }

  /* 2. foto */
  html body.lofe-app-ui.page-home .home-scorer-face{
    grid-column:2!important;
    grid-row:1!important;
    width:31px!important;
    height:31px!important;
    justify-self:center!important;
  }

  /* 3. nome + squadra */
  html body.lofe-app-ui.page-home .scorer-name{
    grid-column:3!important;
    grid-row:1!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    justify-self:stretch!important;
  }

  html body.lofe-app-ui.page-home .scorer-name strong{
    display:block!important;
    margin:0!important;
    font-size:12.5px!important;
    line-height:1.05!important;
    font-weight:400!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.lofe-app-ui.page-home .scorer-name small{
    display:block!important;
    margin:2px 0 0!important;
    font-size:9.5px!important;
    line-height:1.05!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* 4. gol */
  html body.lofe-app-ui.page-home .home-scorer-row>b{
    grid-column:4!important;
    grid-row:1!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:14.5px!important;
    font-weight:900!important;
    text-align:right!important;
    justify-self:stretch!important;
  }

  /* intestazione allineata alle stesse colonne */
  html body.lofe-app-ui.page-home .home-scorers-head>span{
    grid-column:3!important;
    text-align:left!important;
  }

  html body.lofe-app-ui.page-home .home-scorers-head>b{
    grid-column:4!important;
    text-align:right!important;
  }
}

/* ==========================================================
   CANNONIERI - FIX REALE CON FLEX
   Forza fisicamente l'ordine:
   barra -> foto -> nome/squadra -> gol
   ========================================================== */
@media (min-width:801px){

  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorer-row{
    display:flex!important;
    align-items:center!important;
    min-height:46px!important;
    padding:5px 9px!important;
    gap:8px!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorer-row::before{
    content:""!important;
    display:block!important;
    flex:0 0 4px!important;
    width:4px!important;
    height:31px!important;
    margin:0!important;
    border-radius:3px!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorer-face{
    order:2!important;
    flex:0 0 31px!important;
    width:31px!important;
    height:31px!important;
    margin:0!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .scorer-name{
    order:3!important;
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
    text-align:left!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .scorer-name::before,
  html body.lofe-app-ui.page-home
  .home-scorers-box .scorer-name::after{
    content:none!important;
    display:none!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .scorer-name strong{
    display:block!important;
    margin:0!important;
    padding:0!important;
    font-size:12.5px!important;
    line-height:1.05!important;
    font-weight:400!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .scorer-name small{
    display:block!important;
    margin:2px 0 0!important;
    padding:0!important;
    font-size:9.5px!important;
    line-height:1.05!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorer-row>b{
    order:4!important;
    flex:0 0 34px!important;
    width:34px!important;
    margin:0!important;
    padding:0!important;
    font-size:14.5px!important;
    font-weight:900!important;
    text-align:right!important;
  }

  /* Mantiene i colori ruolo */
  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorer-row:has(.scorer-role-p)::before{background:#d2a229!important}
  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorer-row:has(.scorer-role-d)::before{background:#41966a!important}
  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorer-row:has(.scorer-role-c)::before{background:#4b86bd!important}
  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorer-row:has(.scorer-role-a)::before{background:#c95b61!important}

  /* Header Giocatore/Gol coerente con la riga */
  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorers-head{
    display:flex!important;
    align-items:center!important;
    padding:0 9px!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorers-head>span{
    flex:1 1 auto!important;
    margin-left:47px!important;
    text-align:left!important;
  }

  html body.lofe-app-ui.page-home
  .home-scorers-box .home-scorers-head>b{
    flex:0 0 34px!important;
    text-align:right!important;
  }
}

/* ==========================================================
   CLEAN REBUILD - PASS 7
   CANNONIERI: rimuove l'effetto delle regole generiche
   applicate per errore ai DIV interni della card.
   ========================================================== */
@media (min-width:801px){

  /* Annulla il min-height generico ereditato da .desktop-sails-extras .home-box>div */
  html body.lofe-app-ui.page-home main#lofe-main
  .desktop-sails-extras .home-scorers-box > .home-scorers-head{
    min-height:30px!important;
    height:30px!important;
    padding:0 9px!important;
    margin:8px 10px 0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .desktop-sails-extras .home-scorers-box > .home-scorers-table{
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0 10px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .desktop-sails-extras .home-scorers-box .home-scorer-row{
    min-height:46px!important;
    height:46px!important;
    padding:5px 9px!important;
    margin:0!important;
  }

  /* Header giocatore / gol identico per proporzioni a Top/Flop */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorers-head{
    display:flex!important;
    align-items:center!important;
    background:var(--lofe-navy-2)!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorers-head>span{
    flex:1 1 auto!important;
    margin-left:47px!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1!important;
    text-transform:uppercase!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorers-head>b{
    flex:0 0 34px!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1!important;
    text-align:right!important;
    text-transform:uppercase!important;
  }

  /* Riga: barra -> foto -> nome/squadra -> gol */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorer-row{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    background:#fff!important;
    border-bottom:1px solid var(--lofe-line)!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorer-row::before{
    flex:0 0 4px!important;
    width:4px!important;
    height:31px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorer-face{
    flex:0 0 31px!important;
    width:31px!important;
    height:31px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .scorer-name{
    flex:1 1 auto!important;
    min-width:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .scorer-name strong{
    font-size:12px!important;
    font-weight:400!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .scorer-name small{
    font-size:9px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorer-row>b{
    flex:0 0 34px!important;
    width:34px!important;
    font-size:14px!important;
    font-weight:900!important;
    text-align:right!important;
  }

  /* Paginazione compatta */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorers-pages{
    min-height:0!important;
    padding:0!important;
    margin:8px 10px 10px!important;
  }
}

/* CANNONIERI - testata giocatore/gol più vicina all'header */
@media (min-width:801px){
  html body.lofe-app-ui.page-home main#lofe-main
  .desktop-sails-extras .home-scorers-box > .home-scorers-head{
    margin:0 10px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .desktop-sails-extras .home-scorers-box > .home-scorers-table{
    margin-top:0!important;
  }
}

/* CANNONIERI - barra GIOCATORE/GOL a tutta larghezza,
   mantenendo il padding laterale solo nelle righe giocatori */
@media (min-width:801px){
  html body.lofe-app-ui.page-home main#lofe-main
  .desktop-sails-extras .home-scorers-box > .home-scorers-head{
    margin:0!important;
    width:100%!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .desktop-sails-extras .home-scorers-box > .home-scorers-table{
    margin-left:10px!important;
    margin-right:10px!important;
  }
}

/* CANNONIERI - 6 giocatori visibili per pagina */
@media (min-width:801px){
  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorer-row:nth-of-type(n+7){
    display:none!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-scorers-box .home-scorer-row[hidden]{
    display:none!important;
  }
}

/* ==========================================================
   TOP / FLOP - STESSA LOGICA VISIVA DI CANNONIERI
   Header TOP 11 / FLOP 11 a tutta larghezza.
   Righe giocatori con margine interno e senza bande alternate.
   ========================================================== */
@media (min-width:801px){

  /* Il blocco TOP/FLOP arriva a filo sotto l'header principale */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance .home-topflop-columns{
    margin:0!important;
    width:100%!important;
    gap:0!important;
    overflow:hidden!important;
  }

  /* Header TOP 11 / FLOP 11 senza spazio bianco sopra o ai lati */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns>div>h3{
    margin:0!important;
    min-height:30px!important;
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    background:var(--lofe-navy-2)!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
  }

  /* Separatore centrale */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns>div+div{
    border-left:1px solid var(--lofe-line)!important;
  }

  /* Le righe mantengono il respiro interno, come Cannonieri */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns .home-player-row.home-player-row-card{
    min-height:46px!important;
    margin-left:10px!important;
    margin-right:10px!important;
    padding:5px 9px!important;
    background:#fff!important;
    border:0!important;
    border-bottom:1px solid var(--lofe-line)!important;
  }

  /* Elimina qualsiasi vecchia alternanza bianco/grigio */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns .home-player-row.home-player-row-card:nth-child(odd),
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns .home-player-row.home-player-row-card:nth-child(even){
    background:#fff!important;
  }

  /* Ultima riga senza divisore inferiore */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns>div .home-player-row.home-player-row-card:last-child{
    border-bottom:0!important;
  }

  /* Mantiene le barre ruolo colorate */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns .player-role.role-p{background:#d2a229!important}
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns .player-role.role-d{background:#41966a!important}
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns .player-role.role-c{background:#4b86bd!important}
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns .player-role.role-a{background:#c95b61!important}
}

/* TOP/FLOP - elimina il bianco attorno a TOP 11 / FLOP 11 come Cannonieri */
@media (min-width:801px){

  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance{
    padding:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance .home-topflop-columns{
    margin:0!important;
    width:100%!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns>div{
    padding:0!important;
    margin:0!important;
    background:#fff!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns>div>h3{
    margin:0!important;
    width:100%!important;
    border-radius:0!important;
  }

  /* solo le righe giocatori mantengono il margine laterale */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-topflop-columns>div>.home-player-row.home-player-row-card{
    margin-left:10px!important;
    margin-right:10px!important;
  }
}

/* ==========================================================
   TOP/FLOP - FIX SPAZIO TRA HEADER E TOP11/FLOP11
   La barra TOP11/FLOP11 deve partire subito sotto l'header,
   come GIOCATORE/GOL in Cannonieri.
   ========================================================== */
@media (min-width:801px){

  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance > .home-topflop-columns{
    margin-top:0!important;
    padding-top:0!important;
  }

  /* Il vecchio CSS lascia padding sul contenitore interno */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance > div:not(header){
    padding-top:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance > header + .home-topflop-columns{
    margin-top:0!important;
  }

  /* TOP11/FLOP11 direttamente attaccati sotto l'header principale */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance .home-topflop-columns > div > h3{
    margin-top:0!important;
  }
}

/* TOP/FLOP - TOP11/FLOP11 a filo anche a sinistra/destra.
   Il margine resta SOLO sulle righe dei calciatori. */
@media (min-width:801px){

  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance > .home-topflop-columns{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance .home-topflop-columns > div{
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance .home-topflop-columns > div > h3{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* I calciatori conservano invece il margine laterale */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-day-performance .home-topflop-columns
  .home-player-row.home-player-row-card{
    margin-left:10px!important;
    margin-right:10px!important;
  }
}

/* PROSSIMO TURNO + CLASSIFICA - respiro sul bordo destro */
@media (min-width:801px){

  /* Prossimo turno: più spazio a destra delle righe */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .next-turn-list>a.lofe-match-row--status{
    padding-right:16px!important;
  }

  /* Classifica: più spazio a destra della tabella */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .mini-standing{
    margin-right:16px!important;
  }

  /* Mantiene anche un margine sinistro coerente */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .mini-standing{
    margin-left:10px!important;
  }
}

/* ==========================================================
   PASS 16 - FIX REALE BORDO DESTRO
   Riduce fisicamente la larghezza dei contenuti interni.
   ========================================================== */
@media (min-width:801px){

  /* PROSSIMO TURNO: il contenuto interno non occupa più il 100% della card */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.lofe-mobile-match-card
  .next-turn-list{
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
    margin:7px 10px 9px!important;
    padding:0!important;
    box-sizing:border-box!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.lofe-mobile-match-card
  .next-turn-list > a.lofe-match-row--status{
    width:100%!important;
    max-width:100%!important;
    padding:0 8px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.lofe-mobile-match-card
  .lofe-match-team{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  /* CLASSIFICA: stessa logica, tabella realmente più stretta della card */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card .mini-standing{
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
    margin:7px 10px 9px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card .mini-standing-head,
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card .mini-standing>div:not(.mini-standing-head){
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:minmax(0,1fr) 34px 26px 26px 26px!important;
    padding-left:8px!important;
    padding-right:8px!important;
    box-sizing:border-box!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card
  .mini-standing>div:not(.mini-standing-head)>span{
    min-width:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }
}

/* ==========================================================
   PASS 17 - PADDING REALE DEL CORPO CARD
   Prossimo turno e Classifica: il margine e' applicato
   alla CARD, non alle singole righe.
   ========================================================== */
@media (min-width:801px){

  /* PROSSIMO TURNO */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.lofe-mobile-match-card:has(.next-turn-list.lofe-match-list--status){
    padding:0 14px 12px!important;
  }

  /* header continua a occupare tutta la larghezza della card */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.lofe-mobile-match-card:has(.next-turn-list.lofe-match-list--status) > header{
    width:calc(100% + 28px)!important;
    max-width:none!important;
    margin:0 -14px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.lofe-mobile-match-card:has(.next-turn-list.lofe-match-list--status)
  > .next-turn-list{
    width:100%!important;
    max-width:100%!important;
    margin:7px 0 0!important;
    padding:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.lofe-mobile-match-card:has(.next-turn-list.lofe-match-list--status)
  .lofe-match-row--status{
    width:100%!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }

  /* CLASSIFICA */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.home-standings-card{
    padding:0 14px 12px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.home-standings-card > header{
    width:calc(100% + 28px)!important;
    max-width:none!important;
    margin:0 -14px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.home-standings-card > .mini-standing{
    width:100%!important;
    max-width:100%!important;
    margin:7px 0 0!important;
    overflow:hidden!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.home-standings-card
  .mini-standing-head,
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.home-standings-card
  .mini-standing>div:not(.mini-standing-head){
    padding-left:6px!important;
    padding-right:6px!important;
  }
}

/* CLASSIFICA - barra SQUADRA / PT / V / N / P a filo,
   come GIOCATORE/GOL e TOP11/FLOP11.
   Le righe delle squadre mantengono invece il margine laterale. */
@media (min-width:801px){

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.home-standings-card{
    padding-left:0!important;
    padding-right:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.home-standings-card > header{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > article.home-box.home-standings-card > .mini-standing{
    width:100%!important;
    max-width:100%!important;
    margin-top:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Barra SQUADRA PT V N P senza bianco sopra e ai lati */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card .mini-standing-head{
    width:100%!important;
    margin:0!important;
  }

  /* Solo le righe delle squadre conservano il margine */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card
  .mini-standing > div:not(.mini-standing-head){
    width:calc(100% - 20px)!important;
    margin-left:10px!important;
    margin-right:10px!important;
  }
}

/* ==========================================================
   PASS 22 - COLONNA DESTRA: TIPOGRAFIA CENTRALIZZATA E PULITA
   Una sola scala tipografica per tutte le card a destra.
   Non modifica layout, spaziature o struttura.
   ========================================================== */
@media (min-width:801px){

  /* --------------------------------------------------------
     1. TITOLI DELLE CARD
     -------------------------------------------------------- */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > .home-box > header h2,
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > .deadline-box > h2{
    font-size:13px!important;
    line-height:1.05!important;
    font-weight:900!important;
  }

  /* --------------------------------------------------------
     2. TESTI SECONDARI NEGLI HEADER
     Apertura 3ª, Completa, di giornata, Serie A...
     -------------------------------------------------------- */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > .home-box > header > span,
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column > .home-box > header > a,
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-seriea-round{
    font-size:9.5px!important;
    line-height:1.05!important;
  }

  /* --------------------------------------------------------
     3. PROSSIMO TURNO
     -------------------------------------------------------- */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .lofe-match-team{
    font-size:11px!important;
    line-height:1!important;
    font-weight:400!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .lofe-match-status{
    font-size:9px!important;
  }

  /* --------------------------------------------------------
     4. CLASSIFICA
     -------------------------------------------------------- */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card .mini-standing-head{
    font-size:8.5px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card
  .mini-standing > div:not(.mini-standing-head) > span{
    font-size:10.5px!important;
    font-weight:400!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card
  .mini-standing > div:not(.mini-standing-head) > strong{
    font-size:10.5px!important;
    font-weight:900!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-standings-card
  .mini-standing > div:not(.mini-standing-head) > b{
    font-size:10px!important;
    font-weight:400!important;
  }

  /* --------------------------------------------------------
     5. BIG MATCH
     -------------------------------------------------------- */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .big-match-box > div strong{
    font-size:10.5px!important;
    font-weight:700!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .big-match-box > div small{
    font-size:9px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .big-match-box > div > b{
    font-size:10px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .big-match-box > p{
    font-size:9px!important;
  }

  /* --------------------------------------------------------
     6. TOP PLAYER
     -------------------------------------------------------- */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-top-player-card strong{
    font-size:10.5px!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .home-top-player-card small{
    font-size:9px!important;
  }

  /* --------------------------------------------------------
     7. INVIO FORMAZIONE
     -------------------------------------------------------- */
  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .deadline-box > strong{
    font-size:18px!important;
    line-height:1.05!important;
    font-weight:900!important;
  }

  html body.lofe-app-ui.page-home main#lofe-main
  .home-side-column .deadline-box > small{
    font-size:9px!important;
    line-height:1.1!important;
  }
}

/* ==========================================================
   PAGE LIVE - DESKTOP CLEAN REBUILD
   Grafica app adattata al PC, senza toccare la Home.
   ========================================================== */
@media (min-width:801px){

  html body.lofe-app-ui.page-live main#lofe-main{
    width:min(980px,calc(100% - 32px))!important;
    max-width:980px!important;
    margin:0 auto!important;
    padding-top:18px!important;
  }

  /* Stato Live */
  html body.lofe-app-ui.page-live .live-status{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    margin:0 0 14px!important;
    padding:12px 16px!important;
    border:1px solid #d4d4d4!important;
    border-left:0!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(0,0,0,.09)!important;
  }

  html body.lofe-app-ui.page-live .live-status>div{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }

  html body.lofe-app-ui.page-live .live-status strong{
    font-size:14px!important;
    font-weight:900!important;
    color:#303030!important;
  }

  html body.lofe-app-ui.page-live .live-status small{
    display:block!important;
    margin:2px 0 0!important;
    color:#8b8b8b!important;
    font-size:10px!important;
  }

  html body.lofe-app-ui.page-live .live-status .live-dot{
    width:10px!important;
    height:10px!important;
    border-radius:50%!important;
    background:#ef4d5d!important;
  }

  html body.lofe-app-ui.page-live .api-usage{
    margin-left:auto!important;
    padding:6px 10px!important;
    border-radius:9px!important;
    background:#f4f2f0!important;
    color:#303030!important;
    font-size:10px!important;
    font-weight:600!important;
  }

  /* Selettore partite */
  html body.lofe-app-ui.page-live .mobile-match-choice{
    display:none!important;
  }

  html body.lofe-app-ui.page-live .match-selector.live-selector{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
    margin:0 0 14px!important;
  }

  html body.lofe-app-ui.page-live .match-selector.live-selector>a{
    min-height:76px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto 1fr 1fr!important;
    align-items:center!important;
    gap:2px 7px!important;
    padding:7px 9px!important;
    border:1px solid #d7d7d7!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#303030!important;
    text-decoration:none!important;
    box-shadow:none!important;
  }

  html body.lofe-app-ui.page-live .match-selector.live-selector>a.active{
    border-color:#D7A062!important;
    background:#f8f2eb!important;
  }

  html body.lofe-app-ui.page-live .match-selector.live-selector>a>small{
    grid-column:1 / -1!important;
    color:#8b8b8b!important;
    font-size:8px!important;
    font-weight:700!important;
  }

  html body.lofe-app-ui.page-live .match-selector.live-selector .match-team{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    min-width:0!important;
  }

  html body.lofe-app-ui.page-live .match-selector.live-selector .match-team img{
    width:22px!important;
    height:22px!important;
    object-fit:contain!important;
    flex:0 0 22px!important;
  }

  html body.lofe-app-ui.page-live .match-selector.live-selector .match-team>span{
    min-width:0!important;
    color:#303030!important;
    font-size:10.5px!important;
    font-weight:500!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.lofe-app-ui.page-live .match-selector.live-selector>a>b{
    grid-column:2!important;
    grid-row:2 / 4!important;
    min-width:40px!important;
    padding:5px 7px!important;
    border:1px solid #d5d0cc!important;
    border-radius:9px!important;
    background:#f4f2f0!important;
    color:#303030!important;
    font-size:11px!important;
    font-weight:900!important;
    text-align:center!important;
  }

  /* Layout Live: contenuto + colonna laterale */
  html body.lofe-app-ui.page-live .live-desktop-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 250px!important;
    gap:14px!important;
    align-items:start!important;
  }

  /* Scoreboard */
  html body.lofe-app-ui.page-live .live-result-scoreboard{
    overflow:hidden!important;
    margin:0 0 14px!important;
    border:1px solid #d4d4d4!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(0,0,0,.09)!important;
  }

  html body.lofe-app-ui.page-live .result-scoreboard{
    display:grid!important;
    grid-template-columns:1fr auto 1fr!important;
    align-items:center!important;
    gap:12px!important;
    padding:16px!important;
  }

  html body.lofe-app-ui.page-live .score-team{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
  }

  html body.lofe-app-ui.page-live .score-home{justify-content:flex-end!important}
  html body.lofe-app-ui.page-live .score-away{justify-content:flex-start!important}

  html body.lofe-app-ui.page-live .score-team img{
    width:48px!important;
    height:48px!important;
    object-fit:contain!important;
  }

  html body.lofe-app-ui.page-live .score-team strong{
    font-size:15px!important;
    font-weight:700!important;
  }

  html body.lofe-app-ui.page-live .score-final{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    padding:8px 12px!important;
    border:1px solid #d5d0cc!important;
    border-radius:12px!important;
    background:#f4f2f0!important;
    color:#303030!important;
    font-size:22px!important;
    font-weight:900!important;
  }

  html body.lofe-app-ui.page-live .lofe-mobile-team-row{
    display:none!important;
  }

  html body.lofe-app-ui.page-live .lofe-mobile-match-meta{
    grid-column:1 / -1!important;
    margin-top:4px!important;
    text-align:center!important;
    color:#8b8b8b!important;
    font-size:10px!important;
    font-weight:600!important;
  }

  html body.lofe-app-ui.page-live .result-real-scorers{
    grid-column:1 / -1!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:0!important;
    margin:4px -16px -16px!important;
    border-top:1px solid #d9d9d9!important;
  }

  html body.lofe-app-ui.page-live .result-real-scorers-side{
    min-height:38px!important;
    padding:8px 12px!important;
    font-size:10px!important;
  }

  html body.lofe-app-ui.page-live .result-real-scorers-side+ .result-real-scorers-side{
    border-left:1px solid #d9d9d9!important;
  }

  /* Formazioni Live */
  html body.lofe-app-ui.page-live .live-lineups{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:14px!important;
    align-items:start!important;
  }

  html body.lofe-app-ui.page-live .live-team{
    overflow:hidden!important;
    border:1px solid #d4d4d4!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(0,0,0,.09)!important;
  }

  html body.lofe-app-ui.page-live .live-team>header{
    min-height:58px!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    padding:8px 12px!important;
    background:#00263d!important;
    color:#fff!important;
  }

  html body.lofe-app-ui.page-live .live-team>header img{
    width:38px!important;
    height:38px!important;
    object-fit:contain!important;
  }

  html body.lofe-app-ui.page-live .live-team>header h2{
    margin:0!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:900!important;
  }

  html body.lofe-app-ui.page-live .live-team>header small{
    display:block!important;
    margin-top:2px!important;
    color:#b8c1c9!important;
    font-size:8.5px!important;
    line-height:1.15!important;
  }

  html body.lofe-app-ui.page-live .live-team>header>strong{
    color:#D7A062!important;
    font-size:20px!important;
    font-weight:900!important;
  }

  html body.lofe-app-ui.page-live .live-section{
    padding:0!important;
    background:#fff!important;
  }

  html body.lofe-app-ui.page-live .live-section-title{
    min-height:30px!important;
    margin:0!important;
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    background:#06364f!important;
    color:#fff!important;
    border:0!important;
    border-radius:0!important;
  }

  html body.lofe-app-ui.page-live .live-section-title strong{
    color:#fff!important;
    font-size:10px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
  }

  html body.lofe-app-ui.page-live .live-section-title span{
    color:#D7A062!important;
    font-size:8.5px!important;
    font-weight:500!important;
  }

  html body.lofe-app-ui.page-live .live-players{
    padding:0!important;
  }

  html body.lofe-app-ui.page-live .live-player{
    min-height:40px!important;
    display:grid!important;
    grid-template-columns:24px minmax(0,1fr) auto 42px!important;
    align-items:center!important;
    gap:7px!important;
    margin:0!important;
    padding:5px 9px!important;
    border:0!important;
    border-bottom:1px solid #d9d9d9!important;
    border-radius:0!important;
    background:#fff!important;
    opacity:1!important;
  }

  html body.lofe-app-ui.page-live .live-player:last-child{
    border-bottom:0!important;
  }

  html body.lofe-app-ui.page-live .live-player .player-role{
    min-width:22px!important;
    width:22px!important;
    height:22px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:4px!important;
    font-size:9px!important;
    font-weight:800!important;
  }

  html body.lofe-app-ui.page-live .live-player>span:nth-child(2) b{
    font-size:10.5px!important;
    font-weight:500!important;
    line-height:1.1!important;
  }

  html body.lofe-app-ui.page-live .live-player>span:nth-child(2) small{
    font-size:8.5px!important;
    color:#8b8b8b!important;
  }

  html body.lofe-app-ui.page-live .live-events{
    font-size:9px!important;
    font-weight:600!important;
  }

  html body.lofe-app-ui.page-live .live-vote{
    min-height:28px!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #d5d0cc!important;
    border-radius:8px!important;
    background:#f4f2f0!important;
    color:#303030!important;
    font-size:11px!important;
    font-weight:900!important;
  }

  /* Regole */
  html body.lofe-app-ui.page-live .live-rules-note{
    margin:14px 0 0!important;
    padding:10px 12px!important;
    border:1px solid #d4d4d4!important;
    border-radius:14px!important;
    background:#fff!important;
    color:#303030!important;
    font-size:9px!important;
  }

  /* Colonna destra Live */
  html body.lofe-app-ui.page-live .live-provisional-standings{
    display:grid!important;
    gap:12px!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-title,
  html body.lofe-app-ui.page-live .live-provisional-wrap,
  html body.lofe-app-ui.page-live .live-provisional-scorers{
    overflow:hidden!important;
    border:1px solid #d4d4d4!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(0,0,0,.09)!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-title header,
  html body.lofe-app-ui.page-live .live-provisional-scorers>header{
    min-height:44px!important;
    padding:0 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    background:#00263d!important;
    color:#fff!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-title header span,
  html body.lofe-app-ui.page-live .live-provisional-title header strong,
  html body.lofe-app-ui.page-live .live-provisional-scorers>header h3{
    color:#fff!important;
    font-size:11px!important;
    font-weight:800!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-title header small,
  html body.lofe-app-ui.page-live .live-provisional-scorers>header span{
    color:#D7A062!important;
    font-size:8.5px!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-table{
    width:100%!important;
    border-collapse:collapse!important;
    font-size:9px!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-table th,
  html body.lofe-app-ui.page-live .live-provisional-table td{
    padding:6px 5px!important;
    border-bottom:1px solid #d9d9d9!important;
  }

  html body.lofe-app-ui.page-live .standing-team{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    min-width:0!important;
  }

  html body.lofe-app-ui.page-live .standing-team img{
    width:20px!important;
    height:20px!important;
    object-fit:contain!important;
  }

  html body.lofe-app-ui.page-live .standing-team>span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-scorers-head{
    min-height:28px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 36px!important;
    align-items:center!important;
    padding:0 10px!important;
    background:#06364f!important;
    color:#fff!important;
    font-size:8.5px!important;
    font-weight:700!important;
    text-transform:uppercase!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-scorer-row{
    min-height:38px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 36px!important;
    align-items:center!important;
    padding:5px 10px!important;
    border-bottom:1px solid #d9d9d9!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-scorer-row:last-child{
    border-bottom:0!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-scorer-name strong{
    display:block!important;
    font-size:10px!important;
    font-weight:400!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-scorer-name small{
    display:block!important;
    margin-top:2px!important;
    font-size:8px!important;
    color:#8b8b8b!important;
  }

  html body.lofe-app-ui.page-live .live-provisional-scorer-row>b{
    text-align:right!important;
    font-size:11px!important;
    font-weight:900!important;
  }
}

/* ==========================================================
   LIVE - CARD 5 GARE IDENTICA ALLA HOME
   ========================================================== */
@media (min-width:801px){

  /* Contenitore delle 5 gare */
  html body.lofe-app-ui.page-live
  .match-selector.live-selector{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
    padding:9px 10px!important;
    margin:0 0 14px!important;
    background:#fff!important;
    border:1px solid #d4d4d4!important;
    border-radius:0 0 20px 20px!important;
    box-shadow:0 8px 22px rgba(0,0,0,.09)!important;
  }

  /* Singola gara: stessa impostazione della Home */
  html body.lofe-app-ui.page-live
  .match-selector.live-selector>a{
    min-height:74px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:1fr 1fr!important;
    align-items:center!important;
    gap:3px 7px!important;
    padding:8px 9px!important;
    background:#fff!important;
    border:1px solid var(--lofe-line,#d9d9d9)!important;
    border-radius:12px!important;
    text-decoration:none!important;
    box-shadow:none!important;
    color:#303030!important;
  }

  html body.lofe-app-ui.page-live
  .match-selector.live-selector>a.active{
    background:#fff!important;
    border-color:var(--lofe-line,#d9d9d9)!important;
  }

  /* Nasconde LIVE piccolo della vecchia card */
  html body.lofe-app-ui.page-live
  .match-selector.live-selector>a>small{
    display:none!important;
  }

  html body.lofe-app-ui.page-live
  .match-selector.live-selector .match-team{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0!important;
  }

  html body.lofe-app-ui.page-live
  .match-selector.live-selector .match-team img{
    width:24px!important;
    height:24px!important;
    object-fit:contain!important;
    flex:0 0 24px!important;
  }

  html body.lofe-app-ui.page-live
  .match-selector.live-selector .match-team>span{
    min-width:0!important;
    color:#303030!important;
    font-size:11.5px!important;
    font-weight:500!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.lofe-app-ui.page-live
  .match-selector.live-selector>a>b{
    grid-column:2!important;
    grid-row:1/span 2!important;
    min-width:44px!important;
    padding:6px 7px!important;
    border:1px solid #d5d0cc!important;
    border-radius:10px!important;
    background:#f4f2f0!important;
    color:#303030!important;
    font-size:12px!important;
    font-weight:900!important;
    text-align:center!important;
  }
}

/* ==========================================================
   LIVE - 5 GARE: FIX FORZATO SUL MARKUP REALE
   .match-selector.live-selector > a > small + .match-team + b + .match-team
   ========================================================== */
@media (min-width:801px){

  html body.page-live #lofe-main .match-selector.live-selector{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    margin:0 0 14px!important;
    padding:9px 10px!important;
    background:#fff!important;
    border:1px solid #d4d4d4!important;
    border-radius:20px!important;
    box-shadow:0 8px 22px rgba(0,0,0,.09)!important;
    box-sizing:border-box!important;
  }

  html body.page-live #lofe-main .match-selector.live-selector > a,
  html body.page-live #lofe-main .match-selector.live-selector > a.active{
    min-width:0!important;
    min-height:74px!important;
    margin:0!important;
    padding:8px 9px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    grid-template-rows:1fr 1fr!important;
    align-items:center!important;
    gap:3px 7px!important;
    background:#fff!important;
    color:#303030!important;
    border:1px solid #d9d9d9!important;
    border-radius:12px!important;
    box-shadow:none!important;
    text-decoration:none!important;
  }

  html body.page-live #lofe-main .match-selector.live-selector > a > small{
    display:none!important;
  }

  html body.page-live #lofe-main .match-selector.live-selector > a > .match-team{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }

  html body.page-live #lofe-main .match-selector.live-selector > a > .match-team:first-of-type{
    grid-column:1!important;
    grid-row:1!important;
  }

  html body.page-live #lofe-main .match-selector.live-selector > a > .match-team:last-of-type{
    grid-column:1!important;
    grid-row:2!important;
  }

  html body.page-live #lofe-main .match-selector.live-selector > a > .match-team img{
    width:24px!important;
    height:24px!important;
    max-width:24px!important;
    max-height:24px!important;
    flex:0 0 24px!important;
    object-fit:contain!important;
    margin:0!important;
  }

  html body.page-live #lofe-main .match-selector.live-selector > a > .match-team > span{
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    color:#303030!important;
    font-size:11.5px!important;
    line-height:1.05!important;
    font-weight:500!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.page-live #lofe-main .match-selector.live-selector > a > b{
    grid-column:2!important;
    grid-row:1 / span 2!important;
    align-self:center!important;
    justify-self:center!important;
    min-width:44px!important;
    width:44px!important;
    padding:6px 5px!important;
    margin:0!important;
    border:1px solid #d5d0cc!important;
    border-radius:10px!important;
    background:#f4f2f0!important;
    color:#303030!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:900!important;
    text-align:center!important;
  }
}

/* ==========================================================
   LIVE - 5 GARE VISIBILI: BLOCCO REALE .live-desktop-calendar-card
   Stessa grafica della Home.
   ========================================================== */
@media (min-width:801px){

  /* Card contenitore */
  html body.page-live #lofe-main
  .live-desktop-calendar-card{
    margin:0 0 14px!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #d4d4d4!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(0,0,0,.09)!important;
  }

  /* Header LIVE della card */
  html body.page-live #lofe-main
  .live-desktop-calendar-card>header{
    min-height:52px!important;
    margin:0!important;
    padding:0 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    background:#00263d!important;
    color:#fff!important;
    border:0!important;
    border-radius:0!important;
  }

  html body.page-live #lofe-main
  .live-desktop-calendar-card>header>div{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }

  html body.page-live #lofe-main
  .live-desktop-calendar-card>header>div>span{
    color:#fff!important;
    font-size:17px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
  }

  html body.page-live #lofe-main
  .live-desktop-calendar-card>header>div>span::before{
    content:"●"!important;
    display:inline-block!important;
    margin-right:8px!important;
    color:#ef4d5d!important;
    font-size:11px!important;
    vertical-align:1px!important;
  }

  html body.page-live #lofe-main
  .live-desktop-calendar-card>header>div>strong,
  html body.page-live #lofe-main
  .live-desktop-calendar-card>header>small{
    color:#D7A062!important;
    font-size:11px!important;
    font-weight:500!important;
  }

  /* Le 5 gare */
  html body.page-live #lofe-main
  .live-desktop-calendar-grid{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
    margin:0!important;
    padding:9px 10px!important;
    background:#fff!important;
  }

  html body.page-live #lofe-main
  .live-desktop-calendar-grid>a.live-desktop-calendar-match,
  html body.page-live #lofe-main
  .live-desktop-calendar-grid>a.live-desktop-calendar-match.active{
    min-width:0!important;
    min-height:74px!important;
    margin:0!important;
    padding:8px 9px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    grid-template-rows:1fr 1fr!important;
    align-items:center!important;
    gap:3px 7px!important;
    background:#fff!important;
    color:#303030!important;
    border:1px solid #d9d9d9!important;
    border-radius:12px!important;
    box-shadow:none!important;
    text-decoration:none!important;
  }

  /* Nasconde il piccolo LIVE di ogni gara */
  html body.page-live #lofe-main
  .live-desktop-calendar-match>small{
    display:none!important;
  }

  /* Squadra casa */
  html body.page-live #lofe-main
  .live-desktop-calendar-match>.home{
    grid-column:1!important;
    grid-row:1!important;
  }

  /* Squadra ospite */
  html body.page-live #lofe-main
  .live-desktop-calendar-match>.away{
    grid-column:1!important;
    grid-row:2!important;
  }

  html body.page-live #lofe-main
  .live-desktop-calendar-match>.home,
  html body.page-live #lofe-main
  .live-desktop-calendar-match>.away{
    min-width:0!important;
    color:#303030!important;
    font-size:11.5px!important;
    line-height:1.05!important;
    font-weight:500!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Punteggio */
  html body.page-live #lofe-main
  .live-desktop-calendar-match>b{
    grid-column:2!important;
    grid-row:1/span 2!important;
    align-self:center!important;
    justify-self:center!important;
    min-width:44px!important;
    width:44px!important;
    padding:6px 5px!important;
    margin:0!important;
    border:1px solid #d5d0cc!important;
    border-radius:10px!important;
    background:#f4f2f0!important;
    color:#303030!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:900!important;
    text-align:center!important;
  }

  /* Il vecchio selector sotto non serve sul desktop */
  html body.page-live #lofe-main
  .match-selector.live-selector{
    display:none!important;
  }
}

/* ==========================================================
   LIVE - 5 GARE IDENTICHE ALLA HOME (MARKUP CON LOGHI)
   ========================================================== */
@media (min-width:801px){

  body.page-live .live-desktop-calendar-card{
    margin:0 0 14px!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #d4d4d4!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(0,0,0,.09)!important;
  }

  body.page-live .live-desktop-calendar-card>header{
    min-height:52px!important;
    margin:0!important;
    padding:0 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    background:#00263d!important;
    color:#fff!important;
    border:0!important;
  }

  body.page-live .live-desktop-calendar-card>header>div{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }

  body.page-live .live-desktop-calendar-card>header>div>span{
    color:#fff!important;
    font-size:17px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
  }

  body.page-live .live-desktop-calendar-card>header>div>span::before{
    content:"●"!important;
    margin-right:8px!important;
    color:#ef4d5d!important;
    font-size:11px!important;
  }

  body.page-live .live-desktop-calendar-card>header>div>strong,
  body.page-live .live-desktop-calendar-card>header>small{
    color:#D7A062!important;
    font-size:11px!important;
    font-weight:500!important;
  }

  body.page-live .live-desktop-calendar-grid{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
    margin:0!important;
    padding:9px 10px!important;
    background:#fff!important;
  }

  body.page-live .live-desktop-calendar-grid>a.live-desktop-calendar-match,
  body.page-live .live-desktop-calendar-grid>a.live-desktop-calendar-match.active{
    min-width:0!important;
    min-height:74px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    grid-template-rows:1fr 1fr!important;
    align-items:center!important;
    gap:3px 7px!important;
    margin:0!important;
    padding:8px 9px!important;
    background:#fff!important;
    color:#303030!important;
    border:1px solid #d9d9d9!important;
    border-radius:12px!important;
    box-shadow:none!important;
    text-decoration:none!important;
  }

  body.page-live .live-desktop-calendar-grid .match-team{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0!important;
  }

  body.page-live .live-desktop-calendar-grid .match-team.home{
    grid-column:1!important;
    grid-row:1!important;
  }

  body.page-live .live-desktop-calendar-grid .match-team.away{
    grid-column:1!important;
    grid-row:2!important;
  }

  body.page-live .live-desktop-calendar-grid .match-team img{
    width:24px!important;
    height:24px!important;
    flex:0 0 24px!important;
    object-fit:contain!important;
  }

  body.page-live .live-desktop-calendar-grid .match-team>span{
    min-width:0!important;
    color:#303030!important;
    font-size:11.5px!important;
    line-height:1.05!important;
    font-weight:500!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.page-live .live-desktop-calendar-grid>a>b{
    grid-column:2!important;
    grid-row:1/span 2!important;
    align-self:center!important;
    justify-self:center!important;
    min-width:44px!important;
    width:44px!important;
    padding:6px 5px!important;
    border:1px solid #d5d0cc!important;
    border-radius:10px!important;
    background:#f4f2f0!important;
    color:#303030!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:900!important;
    text-align:center!important;
  }

  body.page-live .match-selector.live-selector{
    display:none!important;
  }
}

/* ==========================================================
   GLOBAL ROLE EDGE v610 - linee ruolo uniformi a 2px
   Solo spessore: colori e layout restano invariati.
   ========================================================== */

/* Home: Top/Flop e Cannonieri */
html body.lofe-app-ui.page-home .home-topflop-columns .player-role{
  width:2px!important;
  min-width:2px!important;
}
html body.lofe-app-ui.page-home .home-scorer-row::before,
html body.lofe-app-ui.page-home .home-scorers-box .home-scorer-row::before,
html body.lofe-app-ui.page-home main#lofe-main .home-scorers-box .home-scorer-row::before{
  width:2px!important;
  min-width:2px!important;
  flex:0 0 2px!important;
}

/* Invia formazione / Formazioni inviate / Live */
html body.lofe-app-ui.page-formazione .roster-player,
html body.lofe-app-ui.page-formazione .selected-player,
html body.lofe-app-ui.page-formazioni .submitted-players>div,
html body.lofe-app-ui.page-live .live-player,
html body.lofe-app-ui.page-live .live-empty-player{
  border-left-width:2px!important;
}
html body.lofe-app-ui.page-formazioni .submitted-players>div.role-p{box-shadow:inset 2px 0 var(--role-p)!important}
html body.lofe-app-ui.page-formazioni .submitted-players>div.role-d{box-shadow:inset 2px 0 var(--role-d)!important}
html body.lofe-app-ui.page-formazioni .submitted-players>div.role-c{box-shadow:inset 2px 0 var(--role-c)!important}
html body.lofe-app-ui.page-formazioni .submitted-players>div.role-a{box-shadow:inset 2px 0 var(--role-a)!important}

/* Risultati */
html body.lofe-app-ui.page-risultati .result-player{
  border-left-width:2px!important;
}

/* Rose e Statistiche */
html body.lofe-app-ui.page-rose .roster-table tr[class*="role-"]>td:first-child,
html body.lofe-app-ui.page-statistiche .player-data-table tr[class*="role-"]>td:first-child{
  border-left-width:2px!important;
}

/* Probabili formazioni */
html body.lofe-app-ui.page-probabili-formazioni .prob-player-row,
html body.lofe-app-ui.page-probabili-formazioni .fantasy-player-row,
html body.lofe-app-ui.page-probabili-formazioni .prob-bench-grid>div{
  border-left-width:2px!important;
}

/* ==========================================================
   STATISTICHE E QUOTAZIONI - DESKTOP CURRENT UI
   Scoped to page-statistiche only. Mobile unchanged.
   ========================================================== */
@media (min-width:801px){
  html body.lofe-app-ui.page-statistiche{
    background:linear-gradient(180deg,#eef4f9 0%,#e3edf5 100%)!important;
    color:#092b49!important;
  }

  html body.lofe-app-ui.page-statistiche #lofe-main{
    width:min(980px,calc(100% - 32px))!important;
    max-width:980px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Testata pagina: stessa famiglia visiva di Home / Live / Risultati. */
  html body.lofe-app-ui.page-statistiche .page-context-heading{
    margin:0 0 12px!important;
    border:1px solid #d7e0e8!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(17,52,82,.06)!important;
    overflow:hidden!important;
  }
  html body.lofe-app-ui.page-statistiche .page-context-heading>header{
    min-height:58px!important;
    padding:11px 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    background:#eef3f6!important;
    color:#092b49!important;
    border:0!important;
  }
  html body.lofe-app-ui.page-statistiche .page-context-heading>header div{
    min-width:0!important;
  }
  html body.lofe-app-ui.page-statistiche .page-context-heading>header span{
    display:block!important;
    margin:0 0 3px!important;
    color:#61778b!important;
    font-size:10px!important;
    line-height:1.1!important;
    font-weight:700!important;
    letter-spacing:.035em!important;
    text-transform:uppercase!important;
  }
  html body.lofe-app-ui.page-statistiche .page-context-heading>header strong{
    display:block!important;
    color:#092b49!important;
    font-size:15px!important;
    line-height:1.15!important;
    font-weight:750!important;
  }
  html body.lofe-app-ui.page-statistiche .page-context-heading>header small{
    flex:0 0 auto!important;
    color:#61778b!important;
    font-size:10.5px!important;
    line-height:1.15!important;
    font-weight:600!important;
    white-space:nowrap!important;
  }

  html body.lofe-app-ui.page-statistiche .player-data-intro{
    margin:0 0 12px!important;
    color:#536b7f!important;
    font-size:11.5px!important;
    line-height:1.3!important;
    font-weight:400!important;
  }

  /* Filtri compatti e chiari. */
  html body.lofe-app-ui.page-statistiche .combined-player-filters{
    display:grid!important;
    grid-template-columns:1.18fr 1fr 1fr .66fr .86fr 1fr auto auto!important;
    gap:8px!important;
    align-items:end!important;
    margin:0 0 14px!important;
    padding:12px 14px!important;
    border:1px solid #d7e0e8!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(17,52,82,.06)!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-filters label{
    display:flex!important;
    min-width:0!important;
    flex-direction:column!important;
    gap:5px!important;
    margin:0!important;
    color:#536b7f!important;
    font-size:9.5px!important;
    line-height:1!important;
    font-weight:700!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-filters :is(input,select){
    width:100%!important;
    min-width:0!important;
    height:34px!important;
    min-height:34px!important;
    margin:0!important;
    padding:0 10px!important;
    border:1px solid #d3dde5!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#263b4e!important;
    box-shadow:none!important;
    font-size:10.5px!important;
    font-weight:500!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-filters :is(input,select):focus{
    border-color:#9eb6c8!important;
    outline:none!important;
    box-shadow:0 0 0 2px rgba(92,132,163,.10)!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-filters :is(.button,a.button,button){
    height:34px!important;
    min-height:34px!important;
    margin:0!important;
    padding:0 13px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:9px!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:750!important;
    text-decoration:none!important;
    white-space:nowrap!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-filters .button:not(.secondary){
    border:1px solid #9eb6c8!important;
    background:#eef3f6!important;
    color:#092b49!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-filters .button.secondary{
    border:1px solid #d3dde5!important;
    background:#fff!important;
    color:#536b7f!important;
  }

  /* Listone. */
  html body.lofe-app-ui.page-statistiche .combined-player-table{
    border:1px solid #d7e0e8!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(17,52,82,.06)!important;
    overflow:hidden!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table table{
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    background:#fff!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table thead th{
    height:34px!important;
    padding:6px 8px!important;
    border:0!important;
    border-bottom:1px solid #d7e0e8!important;
    background:#eef3f6!important;
    color:#092b49!important;
    font-size:9.5px!important;
    line-height:1!important;
    font-weight:750!important;
    letter-spacing:.015em!important;
    text-transform:uppercase!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table thead th:nth-child(2),
  html body.lofe-app-ui.page-statistiche .combined-player-table thead th:nth-child(3),
  html body.lofe-app-ui.page-statistiche .combined-player-table thead th:nth-child(4){
    text-align:left!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody tr,
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody tr:nth-child(odd),
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody tr:nth-child(even){
    background:#fff!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody td{
    height:34px!important;
    padding:5px 8px!important;
    border:0!important;
    border-bottom:1px solid #e1e7ec!important;
    background:#fff!important;
    color:#263b4e!important;
    font-size:10.5px!important;
    line-height:1.1!important;
    font-weight:400!important;
    vertical-align:middle!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody tr:last-child td{
    border-bottom:0!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody td:nth-child(2),
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody td:nth-child(3),
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody td:nth-child(4){
    text-align:left!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table tbody td:nth-child(2) strong{
    color:#20384d!important;
    font-size:10.5px!important;
    font-weight:400!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table a{
    color:#315f83!important;
    font-weight:500!important;
    text-decoration:none!important;
  }

  /* Prima colonna: solo linea ruolo sottile, senza badge P/D/C/A. */
  html body.lofe-app-ui.page-statistiche .combined-player-table th:first-child,
  html body.lofe-app-ui.page-statistiche .combined-player-table td:first-child{
    width:2px!important;
    min-width:2px!important;
    max-width:2px!important;
    padding:0!important;
    font-size:0!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table .player-role{
    display:none!important;
  }
  html body.lofe-app-ui.page-statistiche .combined-player-table tr.role-p>td:first-child{background:#d2a229!important;border-left:0!important}
  html body.lofe-app-ui.page-statistiche .combined-player-table tr.role-d>td:first-child{background:#41966a!important;border-left:0!important}
  html body.lofe-app-ui.page-statistiche .combined-player-table tr.role-c>td:first-child{background:#4b86bd!important;border-left:0!important}
  html body.lofe-app-ui.page-statistiche .combined-player-table tr.role-a>td:first-child{background:#c95b61!important;border-left:0!important}

  /* Proporzioni colonne. */
  html body.lofe-app-ui.page-statistiche .combined-player-table th:nth-child(2),
  html body.lofe-app-ui.page-statistiche .combined-player-table td:nth-child(2){width:27%!important}
  html body.lofe-app-ui.page-statistiche .combined-player-table th:nth-child(3),
  html body.lofe-app-ui.page-statistiche .combined-player-table td:nth-child(3){width:9%!important}
  html body.lofe-app-ui.page-statistiche .combined-player-table th:nth-child(4),
  html body.lofe-app-ui.page-statistiche .combined-player-table td:nth-child(4){width:18%!important}
  html body.lofe-app-ui.page-statistiche .combined-player-table th:nth-child(5),
  html body.lofe-app-ui.page-statistiche .combined-player-table td:nth-child(5){width:6%!important}
  html body.lofe-app-ui.page-statistiche .combined-player-table th:nth-child(n+6),
  html body.lofe-app-ui.page-statistiche .combined-player-table td:nth-child(n+6){width:6.5%!important;text-align:center!important}

  html body.lofe-app-ui.page-statistiche .quotation-value{
    min-width:30px!important;
    padding:4px 6px!important;
    border-radius:6px!important;
    background:#eef3f6!important;
    color:#092b49!important;
    box-shadow:none!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:750!important;
    text-align:center!important;
  }
  html body.lofe-app-ui.page-statistiche .free-player{
    padding:2px 6px!important;
    border-radius:6px!important;
    background:#f1f3f5!important;
    color:#6d7e8c!important;
    font-size:9.5px!important;
    font-weight:500!important;
  }
}

/* ==========================================================
   STATISTICHE v612 - HEADER + FOOTER coerenti con UI attuale
   Desktop only. Nessun effetto sulle altre pagine o sul mobile.
   ========================================================== */
@media (min-width:801px){
  html body.lofe-app-ui.page-statistiche .site-header{
    box-sizing:border-box!important;
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    min-height:78px!important;
    overflow:hidden!important;
    padding-left:0!important;
    padding-right:max(16px,calc((100vw - 1620px)/2 + 16px))!important;
    border-bottom:1px solid #d5e0e8!important;
    background:rgba(250,252,254,.98)!important;
    box-shadow:0 5px 18px rgba(17,52,82,.07)!important;
    backdrop-filter:blur(10px)!important;
  }
  html body.lofe-app-ui.page-statistiche .site-header .brand-v2{
    box-sizing:border-box!important;
    position:relative!important;
    align-self:stretch!important;
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:calc(max(16px,calc((100vw - 1620px)/2 + 16px)) + 330px)!important;
    min-width:365px!important;
    height:78px!important;
    margin:0 20px 0 0!important;
    padding:0 78px 0 max(8px,calc((100vw - 1620px)/2 + 8px))!important;
    border:0!important;
    border-radius:0!important;
    background:linear-gradient(90deg,#031a29 0%,#031c2f 54%,#031e35 100%)!important;
    clip-path:polygon(0 0,100% 0,88% 100%,0 100%)!important;
    box-shadow:none!important;
    text-decoration:none!important;
  }
  html body.lofe-app-ui.page-statistiche .site-header .brand-v2 .lofe-logo-img{
    display:block!important;
    width:auto!important;
    height:58px!important;
    max-width:245px!important;
    max-height:58px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    object-fit:contain!important;
    object-position:center!important;
    filter:none!important;
    box-shadow:none!important;
  }
  html body.lofe-app-ui.page-statistiche .site-header .nav{
    display:flex!important;
    min-width:0!important;
    flex:1 1 auto!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:2px!important;
    margin-left:0!important;
  }
  html body.lofe-app-ui.page-statistiche .site-header .nav a,
  html body.lofe-app-ui.page-statistiche .site-header .nav button{
    min-height:36px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 10px!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#183b5b!important;
    font-size:12.5px!important;
    font-weight:650!important;
    line-height:1!important;
    text-decoration:none!important;
    text-shadow:none!important;
    box-shadow:none!important;
  }
  html body.lofe-app-ui.page-statistiche .site-header .nav a:hover,
  html body.lofe-app-ui.page-statistiche .site-header .nav button:hover{
    background:#e8f1f7!important;
    color:#0b5ea7!important;
  }
  html body.lofe-app-ui.page-statistiche .site-header .nav a.active{
    background:#dfeefa!important;
    color:#0b5ea7!important;
    box-shadow:inset 0 0 0 1px #c8ddec!important;
  }

  html body.lofe-app-ui.page-statistiche #lofe-main .site-footer-v2{
    box-sizing:border-box!important;
    width:100vw!important;
    margin:36px 0 0 calc(50% - 50vw)!important;
    padding:18px max(16px,calc((100vw - 1620px)/2 + 16px))!important;
    display:grid!important;
    grid-template-columns:1fr auto auto!important;
    align-items:center!important;
    gap:18px!important;
    border-top:1px solid #cfdbe4!important;
    background:#dfe8ef!important;
    color:#29445d!important;
    box-shadow:none!important;
  }
  html body.lofe-app-ui.page-statistiche #lofe-main .site-footer-v2 .lofe-logo-footer{
    width:auto!important;
    height:36px!important;
    max-height:36px!important;
    object-fit:contain!important;
  }
  html body.lofe-app-ui.page-statistiche #lofe-main .site-footer-v2 :is(.site-footer__identity small,.site-footer__legal,.site-footer__version){
    color:#536a7f!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.2!important;
  }
}

/* ==========================================================
   LOGIN v613 - UI desktop coerente con Home/Live/Risultati
   Solo desktop. Logica autenticazione invariata.
   ========================================================== */
@media (min-width:801px){
  html body.lofe-app-ui.page-login{
    min-height:100vh!important;
    background:linear-gradient(180deg,#eef4f9 0%,#e3edf5 100%)!important;
    color:#243b50!important;
  }

  html body.lofe-app-ui.page-login #lofe-main{
    width:min(980px,calc(100% - 32px))!important;
    max-width:980px!important;
    min-height:calc(100vh - 78px)!important;
    margin:0 auto!important;
    padding:58px 0 0!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-card-v2{
    box-sizing:border-box!important;
    width:min(460px,100%)!important;
    max-width:460px!important;
    margin:0 auto 42px!important;
    padding:30px 30px 28px!important;
    border:1px solid #d3dde5!important;
    border-radius:20px!important;
    background:#fff!important;
    color:#243b50!important;
    box-shadow:0 12px 32px rgba(17,52,82,.10)!important;
    text-align:left!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0 0 22px!important;
    color:#243b50!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-brand img{
    display:block!important;
    width:auto!important;
    height:54px!important;
    max-width:220px!important;
    object-fit:contain!important;
    filter:none!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-card-v2 h1{
    margin:0 0 6px!important;
    color:#173b59!important;
    font-size:24px!important;
    line-height:1.15!important;
    font-weight:750!important;
    text-align:center!important;
    text-shadow:none!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-subtitle{
    margin:0 0 24px!important;
    color:#718496!important;
    font-size:12.5px!important;
    line-height:1.35!important;
    text-align:center!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-card-v2 .form-grid{
    gap:14px!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-card-v2 label{
    color:#30495f!important;
    font-size:11.5px!important;
    font-weight:650!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-card-v2 input:not([type="checkbox"]){
    box-sizing:border-box!important;
    width:100%!important;
    min-height:44px!important;
    margin-top:6px!important;
    padding:0 12px!important;
    border:1px solid #cbd7e0!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#20384d!important;
    font-size:12px!important;
    font-weight:400!important;
    box-shadow:none!important;
    opacity:1!important;
    -webkit-text-fill-color:#20384d!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-card-v2 input:not([type="checkbox"]):focus{
    border-color:#8eb6d4!important;
    outline:3px solid rgba(76,139,188,.12)!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .password-eye{
    right:5px!important;
    width:36px!important;
    height:36px!important;
    border:0!important;
    background:transparent!important;
    color:#49657b!important;
    font-size:13px!important;
    box-shadow:none!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .remember-login{
    min-height:28px!important;
    gap:8px!important;
    margin:0!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .remember-login input{
    width:16px!important;
    height:16px!important;
    accent-color:#3f7da8!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .remember-login span{
    color:#536a7f!important;
    font-size:11.5px!important;
    font-weight:500!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-card-v2 .button{
    min-height:42px!important;
    margin-top:2px!important;
    border:1px solid #c7d9e6!important;
    border-radius:9px!important;
    background:#dfeefa!important;
    color:#17496f!important;
    font-size:11.5px!important;
    font-weight:750!important;
    box-shadow:none!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .login-card-v2 .button:hover{
    background:#d3e7f5!important;
    color:#0d4168!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .auth-link{
    margin:18px 0 0!important;
    text-align:center!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .auth-link a{
    color:#426f91!important;
    font-size:11.5px!important;
    font-weight:550!important;
    text-decoration:underline!important;
    text-underline-offset:2px!important;
  }

  html body.lofe-app-ui.page-login #lofe-main .site-footer-v2{
    box-sizing:border-box!important;
    width:100vw!important;
    margin:36px 0 0 calc(50% - 50vw)!important;
    padding:18px max(16px,calc((100vw - 1620px)/2 + 16px))!important;
    display:grid!important;
    grid-template-columns:1fr auto auto!important;
    align-items:center!important;
    gap:18px!important;
    border-top:1px solid #cfdbe4!important;
    background:#dfe8ef!important;
    color:#29445d!important;
    box-shadow:none!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .site-footer-v2 .lofe-logo-footer{
    width:auto!important;
    height:36px!important;
    max-height:36px!important;
    object-fit:contain!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .site-footer-v2 :is(.site-footer__identity small,.site-footer__legal,.site-footer__version){
    color:#536a7f!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.2!important;
  }
}



/* LOGIN v6 - solo logo LF app + maggiore distanza dal footer.
   Header/menu NON modificati: eredita esattamente il design system generale. */
@media (min-width:801px){
  html body.lofe-app-ui.page-login #lofe-main .login-brand img{
    display:block!important;
    width:76px!important;
    height:76px!important;
    max-width:76px!important;
    max-height:76px!important;
    object-fit:cover!important;
    border-radius:16px!important;
  }
  html body.lofe-app-ui.page-login #lofe-main .site-footer-v2{
    margin-top:160px!important;
  }
}


/* V40 PROD - sfondo definitivo: applicato DOPO tutti gli altri CSS. */
@media (min-width:801px){
  html body.lofe-app-ui{
    background:#d0d9df!important;
    background-color:#d0d9df!important;
    background-image:none!important;
    min-height:100vh!important;
  }
  html body.lofe-app-ui #lofe-main,
  html body.lofe-app-ui main.container,
  html body.lofe-app-ui.page-home .home-old-dashboard,
  html body.lofe-app-ui.page-home .home-main-column,
  html body.lofe-app-ui.page-home .home-side-column{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
  }
}
