/* Legalofe LIVE desktop v1
   Primo passaggio di migrazione alla grafica Home v544.
   Solo desktop: mobile resta invariato. */
@media (min-width:801px){
  html body.page-live{
    background:linear-gradient(180deg,var(--lofe-ds-bg-1) 0%,var(--lofe-ds-bg-2) 100%)!important;
    color:var(--lofe-ds-text)!important;
  }
  html body.page-live main#lofe-main.container{
    width:calc(100% - 32px)!important;
    max-width:var(--lofe-ds-content-max)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-top:14px!important;
  }

  /* selettore delle cinque gare */
  html body.page-live #lofe-main .live-desktop-calendar-selector{
    display:block!important;
    overflow:hidden!important;
    margin:0 0 14px!important;
    border:1px solid var(--lofe-ds-border)!important;
    border-radius:var(--lofe-ds-radius)!important;
    background:var(--lofe-ds-surface-soft)!important;
    box-shadow:var(--lofe-ds-shadow)!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-selector>header{
    display:flex!important;
    min-height:48px!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:0 14px!important;
    border:0!important;
    border-bottom:1px solid var(--lofe-ds-border)!important;
    background:var(--lofe-ds-header)!important;
    color:var(--lofe-ds-text-strong)!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-selector>header span{
    color:#e94759!important;
    font-size:10px!important;
    font-weight:900!important;
    letter-spacing:.06em!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-selector>header strong{
    color:var(--lofe-ds-text-strong)!important;
    font-size:13.5px!important;
    font-weight:850!important;
    letter-spacing:.02em!important;
    text-transform:uppercase!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-selector>header small{
    color:var(--lofe-ds-muted)!important;
    font-size:10.5px!important;
    font-weight:800!important;
    letter-spacing:.035em!important;
    text-transform:uppercase!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-grid{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:0!important;
    background:#fff!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-match{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr)!important;
    min-width:0!important;
    min-height:58px!important;
    align-items:center!important;
    gap:6px!important;
    padding:0 9px!important;
    border:0!important;
    border-right:1px solid #e2e9ef!important;
    border-radius:0!important;
    background:#fff!important;
    color:var(--lofe-ds-text)!important;
    text-decoration:none!important;
    box-shadow:none!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-match:last-child{border-right:0!important;}
  html body.page-live #lofe-main .live-desktop-calendar-match:hover{background:#f8fbfd!important;}
  html body.page-live #lofe-main .live-desktop-calendar-match.active{
    background:#edf6fd!important;
    box-shadow:inset 0 -3px 0 #1680bf!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-match>small{
    position:absolute!important;
    top:5px!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    color:#e94759!important;
    font-size:7.5px!important;
    font-weight:900!important;
    letter-spacing:.08em!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-match>span{
    overflow:hidden!important;
    color:#15314e!important;
    font-size:10px!important;
    font-weight:650!important;
    line-height:1.1!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-match>span.home{text-align:right!important;}
  html body.page-live #lofe-main .live-desktop-calendar-match>span.away{text-align:left!important;}
  html body.page-live #lofe-main .live-desktop-calendar-match>b{
    margin-top:5px!important;
    color:#123f6b!important;
    font-size:14px!important;
    font-weight:800!important;
    text-align:center!important;
  }

  /* griglia principale */
  html body.page-live #lofe-main .live-desktop-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 340px!important;
    align-items:start!important;
    gap:14px!important;
  }
  html body.page-live #lofe-main .live-desktop-main{min-width:0!important;}

  /* scoreboard */
  html body.page-live #lofe-main .live-result-scoreboard{
    overflow:hidden!important;
    margin:0 0 14px!important;
    border:1px solid var(--lofe-ds-border)!important;
    border-radius:var(--lofe-ds-radius)!important;
    background:#fff!important;
    box-shadow:var(--lofe-ds-shadow)!important;
    color:var(--lofe-ds-text)!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-team,
  html body.page-live #lofe-main .live-result-scoreboard .score-team>strong{
    color:var(--lofe-ds-text-strong)!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-team>strong{
    font-size:18px!important;
    font-weight:750!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-final{
    color:#123f6b!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-final>span,
  html body.page-live #lofe-main .live-result-scoreboard .score-final>i{
    color:#123f6b!important;
    font-size:28px!important;
    font-weight:850!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-fantapoints small{
    color:#70869a!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-fantapoints b{
    color:#153a62!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .result-real-scorers{
    border-top:1px solid var(--lofe-ds-border)!important;
    background:#f7f9fb!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .result-real-scorers-side+ .result-real-scorers-side{
    border-left:1px solid var(--lofe-ds-border)!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .result-real-scorers small{
    color:#6d8295!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-event,
  html body.page-live #lofe-main .live-result-scoreboard .score-event .score-scorer-name,
  html body.page-live #lofe-main .live-result-scoreboard .score-event b{
    color:#29465f!important;
  }

  /* formazioni */
  html body.page-live #lofe-main .live-lineups{
    overflow:hidden!important;
    border:1px solid var(--lofe-ds-border)!important;
    border-radius:var(--lofe-ds-radius)!important;
    background:#fff!important;
    box-shadow:var(--lofe-ds-shadow)!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team{
    background:#fff!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team:first-child{
    border-right:1px solid var(--lofe-ds-border)!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team>header{
    min-height:58px!important;
    padding:8px 12px!important;
    border-bottom:1px solid var(--lofe-ds-border)!important;
    background:var(--lofe-ds-header)!important;
    color:var(--lofe-ds-text)!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team>header h2{
    color:var(--lofe-ds-text-strong)!important;
    font-size:13px!important;
    font-weight:800!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team>header small{
    color:#70869a!important;
    font-size:9px!important;
    font-weight:500!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team>header>strong{
    color:#0b5f96!important;
    font-size:14px!important;
    font-weight:800!important;
  }
  html body.page-live #lofe-main .live-lineups .live-section-title{
    background:#f3f6f8!important;
    color:#526a80!important;
    border-color:#dde5eb!important;
    font-size:9px!important;
    font-weight:800!important;
    letter-spacing:.045em!important;
    text-transform:uppercase!important;
  }
  html body.page-live #lofe-main .live-lineups .live-player{
    min-height:42px!important;
    background:#fff!important;
    color:#15314e!important;
    border-bottom-color:#e3eaf0!important;
  }
  html body.page-live #lofe-main .live-lineups .live-player:nth-child(even){background:#f8fafc!important;}
  html body.page-live #lofe-main .live-lineups .live-player>span:nth-child(2)>b,
  html body.page-live #lofe-main .live-lineups .live-player .live-full-name,
  html body.page-live #lofe-main .live-lineups .live-player .live-mobile-surname{
    color:#15314e!important;
    font-weight:400!important;
  }
  html body.page-live #lofe-main .live-lineups .live-player .live-vote{
    color:#0b5f96!important;
    font-weight:800!important;
  }
  html body.page-live #lofe-main .live-lineups .live-player .live-events{
    color:#526a80!important;
  }

  /* rail destra: stessa famiglia visuale della Home */
  html body.page-live #lofe-main .live-provisional-standings{
    position:sticky!important;
    top:92px!important;
    min-width:0!important;
  }
  html body.page-live #lofe-main .live-home-standings-card,
  html body.page-live #lofe-main .live-provisional-scorers{
    overflow:hidden!important;
    margin:0 0 14px!important;
    border:1px solid var(--lofe-ds-border)!important;
    border-radius:var(--lofe-ds-radius)!important;
    background:var(--lofe-ds-surface-soft)!important;
    box-shadow:var(--lofe-ds-shadow)!important;
  }
  html body.page-live #lofe-main .live-home-standings-card>header,
  html body.page-live #lofe-main .live-provisional-scorers>header{
    box-sizing:border-box!important;
    display:flex!important;
    min-height:48px!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:0 14px!important;
    border:0!important;
    border-bottom:1px solid var(--lofe-ds-border)!important;
    background:var(--lofe-ds-header)!important;
  }
  html body.page-live #lofe-main .live-home-standings-card>header h2,
  html body.page-live #lofe-main .live-provisional-scorers>header h3{
    margin:0!important;
    color:var(--lofe-ds-text-strong)!important;
    font-size:13.5px!important;
    font-weight:850!important;
    line-height:1!important;
    letter-spacing:.025em!important;
    text-transform:uppercase!important;
  }
  html body.page-live #lofe-main .live-home-standings-card>header a,
  html body.page-live #lofe-main .live-provisional-scorers>header span{
    color:var(--lofe-ds-muted)!important;
    font-size:10px!important;
    font-weight:700!important;
    text-decoration:none!important;
  }
  html body.page-live #lofe-main .live-mini-standing-head,
  html body.page-live #lofe-main .live-provisional-scorers-head{
    background:#f3f6f8!important;
    color:#60778c!important;
    border-color:#dde5eb!important;
  }
  html body.page-live #lofe-main .live-mini-standing>div:not(.live-mini-standing-head),
  html body.page-live #lofe-main .live-provisional-scorer-row{
    background:#fff!important;
    border-bottom-color:#e3eaf0!important;
    color:#15314e!important;
  }
  html body.page-live #lofe-main .live-mini-standing>div:not(.live-mini-standing-head):nth-child(odd),
  html body.page-live #lofe-main .live-provisional-scorer-row:nth-child(even){background:#f8fafc!important;}
  html body.page-live #lofe-main .live-provisional-scorer-name strong{
    color:#15314e!important;
    font-weight:400!important;
  }
  html body.page-live #lofe-main .live-provisional-scorer-name small{color:#70869a!important;}
  html body.page-live #lofe-main .live-provisional-scorer-row>b{color:#123f6b!important;}
}

@media (min-width:801px) and (max-width:1100px){
  html body.page-live #lofe-main .live-desktop-calendar-selector{display:none!important;}
}

/* ==========================================================
   LIVE DESKTOP v2 - riallineamento reale alla Home v544
   ========================================================== */
@media (min-width:801px){
  html body.page-live{
    background:linear-gradient(180deg,#eef4f9 0%,#e3edf5 100%)!important;
    color:#102f4f!important;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  }
  html body.page-live main#lofe-main.container{
    width:calc(100% - 32px)!important;
    max-width:1620px!important;
    margin:14px auto 0!important;
    padding:0!important;
  }

  /* Header e footer: stessi valori della Home approvata */
  html body.page-live .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:0 max(16px,calc((100vw - 1620px)/2 + 16px)) 0 0!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.page-live .site-header .brand-v2{
    box-sizing:border-box!important;
    position:relative!important;
    align-self:stretch!important;
    display:flex!important;
    flex:0 0 auto!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;
    align-items:center!important;
    justify-content:flex-start!important;
    clip-path:polygon(0 0,100% 0,88% 100%,0 100%)!important;
    background:linear-gradient(90deg,#031a29 0%,#031c2f 54%,#031e35 100%)!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  html body.page-live .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;
    object-fit:contain!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:none!important;
  }
  html body.page-live .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.page-live .site-header .nav a,
  html body.page-live .site-header .nav button{
    display:inline-flex!important;
    min-height:36px!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;
    box-shadow:none!important;
  }
  html body.page-live .site-header .nav a:hover,
  html body.page-live .site-header .nav button:hover{background:#e8f1f7!important;color:#0b5ea7!important;}
  html body.page-live .site-header .nav a.active{background:#dfeefa!important;color:#0b5ea7!important;box-shadow:inset 0 0 0 1px #c8ddec!important;}

  html body.page-live #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.page-live #lofe-main .site-footer-v2 .lofe-logo-footer{height:36px!important;max-height:36px!important;width:auto!important;}
  html body.page-live #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;}

  /* Layout principale più vicino alla Home */
  html body.page-live #lofe-main .live-desktop-layout{
    display:grid!important;
    grid-template-columns:minmax(0,2.12fr) minmax(330px,.92fr)!important;
    align-items:start!important;
    gap:16px!important;
  }
  html body.page-live #lofe-main .live-provisional-standings{top:94px!important;}

  /* Card calendario: stessa testata grigia e stessa aria della Home */
  html body.page-live #lofe-main .live-desktop-calendar-selector{
    margin-bottom:16px!important;
    border:1px solid #d7e0e8!important;
    border-radius:15px!important;
    background:#f7f9fb!important;
    box-shadow:0 6px 18px rgba(15,42,68,.06)!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-selector>header{
    min-height:48px!important;
    padding:0 16px!important;
    border-bottom:1px solid #d7e0e8!important;
    background:#eef3f6!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-selector>header strong{
    font-size:13.5px!important;
    font-weight:850!important;
    letter-spacing:.025em!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-grid{background:#fff!important;}
  html body.page-live #lofe-main .live-desktop-calendar-match{
    min-height:68px!important;
    padding:7px 12px!important;
    grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr)!important;
    border-right:1px solid #e3eaf0!important;
    background:#fff!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-match>span{
    font-size:11.5px!important;
    font-weight:700!important;
  }
  html body.page-live #lofe-main .live-desktop-calendar-match>b{
    margin-top:6px!important;
    color:#123f6b!important;
    font-size:16px!important;
    font-weight:850!important;
  }

  /* Scoreboard ampio, pulito, card Home */
  html body.page-live #lofe-main .live-result-scoreboard{
    min-height:188px!important;
    margin-bottom:16px!important;
    padding:22px 24px 0!important;
    border:1px solid #d7e0e8!important;
    border-radius:15px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(26,69,104,.07)!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-team{
    gap:12px!important;
    color:#102f4f!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-team img{
    width:52px!important;height:52px!important;object-fit:contain!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-team>strong{
    font-size:18px!important;
    font-weight:750!important;
    color:#102f4f!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-final{
    min-width:150px!important;
    background:transparent!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .score-final>span,
  html body.page-live #lofe-main .live-result-scoreboard .score-final>i{
    font-size:34px!important;
    color:#123f6b!important;
  }
  html body.page-live #lofe-main .live-result-scoreboard .result-real-scorers{
    margin:18px -24px 0!important;
    min-height:46px!important;
    border-top:1px solid #e0e8ee!important;
    background:#f3f6f8!important;
  }

  /* Formazioni: due card bianche vere, righe più leggibili */
  html body.page-live #lofe-main .live-lineups{
    overflow:hidden!important;
    border:1px solid #d7e0e8!important;
    border-radius:15px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(26,69,104,.07)!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team>header{
    min-height:64px!important;
    padding:10px 14px!important;
    border-bottom:1px solid #d7e0e8!important;
    background:#eef3f6!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team>header h2{
    margin:0!important;
    color:#102f4f!important;
    font-size:14px!important;
    font-weight:800!important;
  }
  html body.page-live #lofe-main .live-lineups>.live-team>header>strong{
    color:#0b5f96!important;
    font-size:16px!important;
    font-weight:850!important;
  }
  html body.page-live #lofe-main .live-lineups .live-section-title{
    min-height:30px!important;
    padding:0 12px!important;
    background:#f7f9fb!important;
    color:#60778c!important;
    font-size:9px!important;
    font-weight:850!important;
    letter-spacing:.05em!important;
  }
  html body.page-live #lofe-main .live-lineups .live-player{
    min-height:49px!important;
    padding-top:5px!important;
    padding-bottom:5px!important;
    border-bottom:1px solid #e3eaf0!important;
    background:#fff!important;
    color:#15314e!important;
    font-size:12px!important;
  }
  html body.page-live #lofe-main .live-lineups .live-player:nth-child(even){background:#f8fafc!important;}
  html body.page-live #lofe-main .live-player .live-full-name{
    color:#15314e!important;
    font-size:12.5px!important;
    font-weight:400!important;
    line-height:1.1!important;
  }
  html body.page-live #lofe-main .live-player>.lofe-mobile-player-identity>small,
  html body.page-live #lofe-main .live-player .live-desktop-player-detail{
    color:#70869a!important;
    font-size:9.5px!important;
  }
  html body.page-live #lofe-main .live-player .live-vote{
    color:#123f6b!important;
    font-size:13px!important;
    font-weight:850!important;
  }
  html body.page-live #lofe-main .live-player .live-events{
    color:#526a80!important;
    font-size:10px!important;
  }

  /* Rail destra identico alla famiglia card Home */
  html body.page-live #lofe-main :is(.live-home-standings-card,.live-provisional-scorers){
    border:1px solid #d7e0e8!important;
    border-radius:15px!important;
    background:#f7f9fb!important;
    box-shadow:0 6px 18px rgba(15,42,68,.06)!important;
  }
  html body.page-live #lofe-main :is(.live-home-standings-card,.live-provisional-scorers)>header{
    min-height:48px!important;
    padding:0 14px!important;
    border-bottom:1px solid #d7e0e8!important;
    background:#eef3f6!important;
  }
  html body.page-live #lofe-main .live-home-standings-card>header h2,
  html body.page-live #lofe-main .live-provisional-scorers>header h3{
    color:#092b49!important;
    font-size:13.5px!important;
    font-weight:850!important;
    letter-spacing:.025em!important;
  }
  html body.page-live #lofe-main .live-mini-standing>div:not(.live-mini-standing-head){
    min-height:41px!important;
    padding:0 11px!important;
    background:#fff!important;
    font-size:10.5px!important;
  }
  html body.page-live #lofe-main .live-mini-standing-head{
    min-height:34px!important;
    padding:0 11px!important;
    background:#f3f6f8!important;
    font-size:9px!important;
  }
  html body.page-live #lofe-main .live-provisional-scorer-row{
    min-height:49px!important;
    padding:0 11px!important;
    background:#fff!important;
  }
  html body.page-live #lofe-main .live-provisional-scorer-row .live-scorer-face{
    width:32px!important;height:32px!important;border-radius:50%!important;object-fit:cover!important;
  }
  html body.page-live #lofe-main .live-provisional-scorer-name strong{
    color:#15314e!important;
    font-size:10.5px!important;
    font-weight:400!important;
  }
}
