/* SerieAGoal 2.2.80 — header hierarchy + score personalization + lighter typography.
   Loaded after every page bundle and after the secondary-shell legacy stack. */

:root{
  --sg-topbar-h:64px;
  --sg-contextbar-h:44px;
  --sg-chrome-h:108px;
}

/* --- Main header --------------------------------------------------------- */
.sg-topbar{
  height:var(--sg-topbar-h)!important;
}
.sg-topbar-inner{
  height:var(--sg-topbar-h)!important;
  max-width:1300px!important;
  grid-template-columns:156px auto minmax(250px,350px) auto!important;
  gap:18px!important;
  padding-inline:16px!important;
}
.sg-topbar .sg-brand.sg-brand-live{
  min-width:0!important;
}
.sg-primary-nav.sg-primary-nav-modern{
  height:var(--sg-topbar-h)!important;
  align-items:stretch!important;
}
.sg-primary-nav.sg-primary-nav-modern>a{
  height:var(--sg-topbar-h)!important;
  min-width:96px!important;
  gap:8px!important;
  padding:0 15px!important;
  font-size:13px!important;
  font-weight:600!important;
  letter-spacing:0!important;
}
.sg-primary-nav.sg-primary-nav-modern>a::after{
  left:14px!important;
  right:14px!important;
}
.sg-primary-nav-icon{
  width:19px;
  height:19px;
  display:grid!important;
  place-items:center!important;
  opacity:.9;
}
.sg-primary-nav-icon .sg-svg{
  width:18px!important;
  height:18px!important;
}
.sg-primary-nav.sg-primary-nav-modern>a.is-active .sg-primary-nav-icon{opacity:1}

/* Search has a real central visual weight instead of behaving like a small action. */
.sg-topbar .sg-search-launch{
  width:100%!important;
  max-width:350px!important;
  height:40px!important;
  justify-self:center!important;
  border-radius:10px!important;
  padding-inline:12px!important;
}
.sg-topbar .sg-search-launch>span{
  font-size:12px!important;
  font-weight:500!important;
}
.sg-topbar .sg-top-actions{
  height:var(--sg-topbar-h)!important;
  gap:4px!important;
}
.sg-topbar .sg-top-icon{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border-radius:9px!important;
}

/* --- Context bar and fixed-layout offsets ------------------------------- */
.sg-sportbar{
  top:var(--sg-topbar-h)!important;
  height:var(--sg-contextbar-h)!important;
}
.sg-body{
  padding-top:var(--sg-chrome-h)!important;
}
.sg-sidebar,
.sg-right-rail{
  top:122px!important;
}
.sg-sidebar{
  height:calc(100vh - 136px)!important;
}
.sg-mobile-menu-overlay{
  top:var(--sg-topbar-h)!important;
}
body.slr-site.slr-seriesagoal-secondary-shell{
  padding-top:var(--sg-chrome-h)!important;
}

/* --- Home match typography --------------------------------------------- */
.sg-page-home .sg-match-teams span,
.sg-page-home .sg-match-row.is-live .sg-match-teams span{
  font-weight:400!important;
  color:var(--sg-text)!important;
}

/* --- Left competition rail: normal text, no heavy grey menu ------------- */
.sg-sidebar .sg-sidebar-competition-link,
.sg-sidebar .sg-sidebar-competition-link.is-featured,
.sg-sidebar .sg-sidebar-country>summary,
.sg-sidebar .sg-sidebar-country>summary strong,
.sg-sidebar .sg-sidebar-country-list .sg-sidebar-competition-link,
.sg-sidebar .sg-side-block>a,
.sg-sidebar .sg-nav-link,
.sg-sidebar .sg-sidebar-league strong{
  font-weight:400!important;
}
.sg-sidebar .sg-sidebar-competition-link,
.sg-sidebar .sg-sidebar-competition-link.is-featured,
.sg-sidebar .sg-sidebar-country>summary,
.sg-sidebar .sg-sidebar-country-list .sg-sidebar-competition-link,
.sg-sidebar .sg-side-block>a,
.sg-sidebar .sg-nav-link{
  color:var(--sg-text)!important;
}
.sg-sidebar .sg-sidebar-competition-link.is-active,
.sg-sidebar .sg-sidebar-country[open]>summary,
.sg-sidebar .sg-nav-link.is-active{
  font-weight:500!important;
}
.sg-sidebar .sg-sidebar-country>summary small,
.sg-sidebar .sg-sidebar-more-countries{
  font-weight:500!important;
}

@media(max-width:1120px) and (min-width:761px){
  .sg-topbar-inner{
    grid-template-columns:142px auto minmax(44px,220px) auto!important;
    gap:9px!important;
    padding-inline:12px!important;
  }
  .sg-primary-nav.sg-primary-nav-modern>a{
    min-width:78px!important;
    padding-inline:10px!important;
    font-size:12px!important;
    gap:6px!important;
  }
  .sg-topbar .sg-search-launch kbd{display:none!important}
}

@media(max-width:900px) and (min-width:761px){
  .sg-topbar-inner{grid-template-columns:138px auto 42px auto!important}
  .sg-topbar .sg-search-launch{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    grid-template-columns:1fr!important;
    padding:0!important;
    place-items:center!important;
  }
  .sg-topbar .sg-search-launch>span,
  .sg-topbar .sg-search-launch kbd{display:none!important}
}

@media(max-width:760px){
  :root{
    --sg-topbar-h:56px;
    --sg-contextbar-h:42px;
    --sg-chrome-h:98px;
  }
  .sg-topbar{height:var(--sg-topbar-h)!important}
  .sg-topbar-inner{
    height:var(--sg-topbar-h)!important;
    grid-template-columns:minmax(0,1fr) 40px auto!important;
    gap:5px!important;
    padding-left:max(10px,env(safe-area-inset-left))!important;
    padding-right:max(10px,env(safe-area-inset-right))!important;
  }
  .sg-primary-nav.sg-primary-nav-modern{display:none!important}
  .sg-topbar .sg-search-launch{
    grid-column:2!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    padding:0!important;
    border:0!important;
    border-radius:9px!important;
    grid-template-columns:1fr!important;
    place-items:center!important;
  }
  .sg-topbar .sg-search-launch>span,
  .sg-topbar .sg-search-launch kbd{display:none!important}
  .sg-topbar .sg-top-actions{
    grid-column:3!important;
    width:auto!important;
    height:40px!important;
    gap:2px!important;
  }
  .sg-topbar .sg-top-actions>.sg-top-icon{display:none!important}
  .sg-topbar .sg-top-actions>.sg-top-notifications,
  .sg-topbar .sg-top-actions>.sg-mobile-menu-trigger{
    display:grid!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
  .sg-sportbar{top:var(--sg-topbar-h)!important;height:var(--sg-contextbar-h)!important}
  .sg-body{padding-top:var(--sg-chrome-h)!important}
  .sg-mobile-menu-overlay{top:var(--sg-topbar-h)!important}
  body.slr-site.slr-seriesagoal-secondary-shell{padding-top:var(--sg-chrome-h)!important}
  .sg-sidebar,.sg-right-rail{top:112px!important}
}

/* Some secondary/account pages intentionally hide the context bar. In that
   narrow layout only the principal header occupies fixed vertical space. */
@media(max-width:540px){
  body.slr-site.slr-seriesagoal-secondary-shell.sg-no-contextbar{
    padding-top:var(--sg-topbar-h)!important;
  }
}

/* --- 2.2.79: unified blue two-row header, competition actions, result weight --- */
.sg-topbar{
  background:#3044c7!important;
  box-shadow:none!important;
}
.sg-sportbar,
.sg-sportbar.sg-contextbar,
html[data-sg-theme="dark"] .sg-contextbar,
html[data-sg-theme="light"] .sg-contextbar{
  background:#3044c7!important;
  color:#fff!important;
  border-top:0!important;
  border-bottom:0!important;
  box-shadow:0 2px 5px rgba(20,32,108,.16)!important;
}
.sg-contextbar .sg-contextbar-link,
html[data-sg-theme="dark"] .sg-contextbar .sg-contextbar-link,
html[data-sg-theme="light"] .sg-contextbar .sg-contextbar-link{
  color:rgba(255,255,255,.84)!important;
  background:transparent!important;
  box-shadow:none!important;
  font-weight:600!important;
}
.sg-contextbar .sg-contextbar-link:hover,
.sg-contextbar .sg-contextbar-link:focus-visible,
html[data-sg-theme="dark"] .sg-contextbar .sg-contextbar-link:hover,
html[data-sg-theme="light"] .sg-contextbar .sg-contextbar-link:hover{
  color:#fff!important;
  background:rgba(255,255,255,.10)!important;
}
.sg-contextbar .sg-contextbar-link.is-active,
html[data-sg-theme="dark"] .sg-contextbar .sg-contextbar-link.is-active,
html[data-sg-theme="light"] .sg-contextbar .sg-contextbar-link.is-active{
  color:#17191f!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(16,25,92,.12)!important;
}
.sg-contextbar .sg-contextbar-link.is-live.is-active,
html[data-sg-theme="dark"] .sg-contextbar .sg-contextbar-link.is-live.is-active,
html[data-sg-theme="light"] .sg-contextbar .sg-contextbar-link.is-live.is-active{
  color:#d9263e!important;
  background:#fff!important;
}
.sg-contextbar .sg-contextbar-link b,
html[data-sg-theme="dark"] .sg-contextbar .sg-contextbar-link b,
html[data-sg-theme="light"] .sg-contextbar .sg-contextbar-link b{
  background:rgba(255,255,255,.14)!important;
  color:inherit!important;
}
.sg-contextbar .sg-contextbar-link.is-active b{background:rgba(23,25,31,.08)!important}

/* League heading actions live in one fixed flex lane: LIVE never pushes the chevron. */
.sg-league-head{position:relative!important}
.sg-league-head>.sg-league-identity{min-width:0!important;flex:1 1 auto!important}
.sg-league-head-actions{
  margin-left:auto!important;
  flex:0 0 auto!important;
  min-height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:3px!important;
}
.sg-page-home .sg-home-league-card.has-live .sg-league-head{
  padding-right:10px!important;
}
.sg-page-home .sg-home-live-ribbon{
  position:static!important;
  inset:auto!important;
  flex:0 0 auto!important;
  height:22px!important;
  margin:0 4px 0 0!important;
  padding:0 8px!important;
  border-radius:6px!important;
  font-size:8px!important;
  line-height:1!important;
}
.sg-page-home .sg-league-favorite,
.sg-page-home .sg-league-pin,
.sg-page-home .sg-league-toggle{
  position:static!important;
  flex:0 0 30px!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:var(--sg-muted)!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
}
.sg-page-home .sg-league-favorite:hover,
.sg-page-home .sg-league-pin:hover,
.sg-page-home .sg-league-toggle:hover{
  color:var(--sg-text)!important;
  background:var(--sg-surface-2)!important;
}
.sg-page-home .sg-league-favorite.is-following{color:var(--sg-accent)!important}
.sg-page-home .sg-league-favorite.is-following .sg-svg{fill:currentColor!important}
.sg-page-home .sg-league-pin.is-pinned{color:var(--sg-accent)!important;background:var(--sg-accent-soft)!important}
.sg-page-home .sg-league-pin.is-pinned .sg-svg{fill:currentColor!important}
.sg-page-home .sg-home-league-card.is-user-pinned{
  border-color:color-mix(in srgb,var(--sg-accent) 24%,var(--sg-line))!important;
}
.sg-match-favorite.is-inherited-follow{opacity:.92}

/* Sofascore-like score hierarchy: only the side currently ahead is bold.
   Draws keep both teams at the same normal weight. */
.sg-match-teams>div>span{
  font-weight:400!important;
}
.sg-match-teams>div>b{
  font-weight:500!important;
}
.sg-match-teams>div.is-leading>span,
.sg-match-teams>div.is-leading>b{
  font-weight:750!important;
}

@media(max-width:760px){
  .sg-page-home .sg-home-league-card.has-live .sg-league-head{padding-right:8px!important}
  .sg-page-home .sg-home-live-ribbon{height:20px!important;padding-inline:6px!important;margin-right:2px!important}
  .sg-page-home .sg-league-favorite,
  .sg-page-home .sg-league-pin,
  .sg-page-home .sg-league-toggle{width:28px!important;height:28px!important;min-width:28px!important;flex-basis:28px!important}
}

/* --- 2.2.80: no redundant bar on Home, editorial-only News row --------- */
.sg-body.sg-no-contextbar{
  padding-top:var(--sg-topbar-h)!important;
}
.sg-body.sg-no-contextbar .sg-sidebar,
.sg-body.sg-no-contextbar .sg-right-rail{
  top:78px!important;
}
.sg-body.sg-no-contextbar .sg-sidebar{
  height:calc(100vh - 92px)!important;
}
.sg-editorial-contextbar .sg-sportbar-inner{
  height:100%!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  overflow:hidden!important;
}
.sg-editorial-contextbar-tools{
  height:100%!important;
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
}
.sg-editorial-contextbar-tools>a{
  height:34px!important;
  min-height:34px!important;
  align-self:center!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 14px!important;
  border-bottom:0!important;
  border-radius:18px!important;
  color:rgba(255,255,255,.88)!important;
  font-size:11px!important;
  font-weight:650!important;
}
.sg-editorial-contextbar-tools>a:hover{
  color:#fff!important;
  background:rgba(255,255,255,.10)!important;
}
.sg-editorial-contextbar-tools .sg-editorial-write-link{
  color:#fff!important;
  background:rgba(255,255,255,.08)!important;
}

/* --- 2.2.81: News collaborator row vertical spacing ---------------------- */
/* Buttons sit inside the existing 44px row instead of touching its edges. */

/* --- 2.2.80: Predictions cards — more air, modern data-tech hierarchy --- */
.sg-page-pronostici .sg-predictions-shell{
  gap:18px!important;
}
.sg-page-pronostici .sg-prediction-filterbar{
  gap:11px!important;
  padding:12px 0 14px!important;
}
.sg-page-pronostici .sg-prediction-range-tabs,
.sg-page-pronostici .sg-prediction-league-tabs{
  gap:7px!important;
}
.sg-page-pronostici .sg-prediction-range-tabs a{
  min-height:35px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  font-size:10px!important;
}
/* Keep competition logos exactly at the current dimensions; only the shell gets more breathing room. */
.sg-page-pronostici .sg-prediction-league-tabs a{
  min-height:42px!important;
  padding:0 11px 0 7px!important;
  gap:8px!important;
  border-radius:10px!important;
  font-size:10.5px!important;
  background:linear-gradient(180deg,var(--sg-surface),color-mix(in srgb,var(--sg-surface-2) 46%,var(--sg-surface)))!important;
  box-shadow:0 2px 8px rgba(24,31,73,.035)!important;
}
.sg-page-pronostici .sg-prediction-league-tabs a:hover{
  border-color:color-mix(in srgb,var(--sg-p12-blue) 22%,var(--sg-p12-border))!important;
  transform:translateY(-1px)!important;
}
.sg-page-pronostici .sg-prediction-league-tabs a.is-active{
  background:linear-gradient(180deg,color-mix(in srgb,var(--sg-p12-blue) 10%,var(--sg-surface)),color-mix(in srgb,var(--sg-p12-blue) 5%,var(--sg-surface)))!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sg-p12-blue) 20%,transparent),0 3px 10px rgba(38,57,170,.08)!important;
}
.sg-page-pronostici .sg-context-predictions{
  gap:11px!important;
}
.sg-page-pronostici .sg-context-predictions-head{
  min-height:44px!important;
  padding:0 2px!important;
}
.sg-page-pronostici .sg-context-predictions-head small{
  font-size:8.5px!important;
  color:var(--sg-p12-blue)!important;
}
.sg-page-pronostici .sg-context-predictions-head h2{
  font-size:19px!important;
  letter-spacing:-.35px!important;
}
.sg-page-pronostici .sg-prediction-date-feed{
  gap:14px!important;
}
.sg-page-pronostici .sg-prediction-date-group{
  border-radius:13px!important;
  box-shadow:0 4px 16px rgba(22,28,60,.045)!important;
}
.sg-page-pronostici .sg-prediction-date-head{
  min-height:56px!important;
  padding:11px 14px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--sg-p12-blue) 4%,var(--sg-surface-2)),var(--sg-surface))!important;
}
.sg-page-pronostici .sg-prediction-date-head small{
  font-size:8.5px!important;
}
.sg-page-pronostici .sg-prediction-date-head h2{
  font-size:16px!important;
}
.sg-page-pronostici .sg-prediction-card-grid{
  gap:8px!important;
  padding:8px!important;
  background:color-mix(in srgb,var(--sg-surface-2) 64%,var(--sg-surface))!important;
}
.sg-page-pronostici .sg-public-prediction-card{
  overflow:hidden!important;
  border:1px solid var(--sg-p12-border)!important;
  border-radius:10px!important;
  background:var(--sg-surface)!important;
  box-shadow:0 2px 7px rgba(20,27,61,.035)!important;
}
.sg-page-pronostici .sg-public-prediction-card:last-child{
  border-bottom:1px solid var(--sg-p12-border)!important;
}
.sg-page-pronostici .sg-public-prediction-card:hover{
  border-color:color-mix(in srgb,var(--sg-p12-blue) 22%,var(--sg-p12-border))!important;
  background:var(--sg-surface)!important;
  box-shadow:0 5px 15px rgba(31,44,126,.07)!important;
}
.sg-page-pronostici .sg-public-prediction-card .sg-article-prediction-widget{
  min-height:118px!important;
  padding:15px 16px!important;
  gap:10px!important;
  border-left:3px solid var(--sg-p12-blue)!important;
  border-radius:0!important;
}
.sg-page-pronostici .sg-public-prediction-card .sg-pred-widget-match{
  min-height:44px!important;
}
.sg-page-pronostici .sg-public-prediction-card .sg-pred-widget-team strong{
  font-size:12.5px!important;
}
.sg-page-pronostici .sg-public-prediction-card .sg-pred-widget-pick{
  padding-top:10px!important;
}
.sg-page-pronostici .sg-public-prediction-card .sg-pred-widget-pick strong{
  font-size:16px!important;
  letter-spacing:-.2px!important;
}
.sg-page-pronostici .sg-public-prediction-card .sg-pred-widget-pick>span{
  min-height:26px!important;
  padding:0 9px!important;
  border-radius:7px!important;
  font-size:9px!important;
}

@media(max-width:760px){
  .sg-body.sg-no-contextbar{padding-top:var(--sg-topbar-h)!important}
  .sg-body.sg-no-contextbar .sg-sidebar,.sg-body.sg-no-contextbar .sg-right-rail{top:70px!important}
  .sg-editorial-contextbar{display:none!important}
  .sg-body.sg-has-editorial-contextbar{padding-top:var(--sg-topbar-h)!important}
  .sg-page-pronostici .sg-predictions-shell{gap:15px!important}
  .sg-page-pronostici .sg-prediction-card-grid{padding:6px!important;gap:6px!important}
  .sg-page-pronostici .sg-public-prediction-card .sg-article-prediction-widget{min-height:110px!important;padding:13px!important}
}

/* SG 2.2.127 — account sempre raggiungibile anche nell'header mobile. */
@media(max-width:760px){
  .sg-topbar .sg-top-actions>.sg-top-account,
  .sg-topbar .sg-top-actions>.sg-top-notifications,
  .sg-topbar .sg-top-actions>.sg-mobile-menu-trigger{
    display:grid!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
  .sg-topbar .sg-top-actions{gap:1px!important}
  .sg-topbar .sg-search-launch{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
}
@media(max-width:360px){
  .sg-topbar-inner{
    grid-template-columns:minmax(0,1fr) 36px auto!important;
    gap:3px!important;
    padding-left:max(8px,env(safe-area-inset-left))!important;
    padding-right:max(8px,env(safe-area-inset-right))!important;
  }
  .sg-topbar .sg-search-launch,
  .sg-topbar .sg-top-actions>.sg-top-account,
  .sg-topbar .sg-top-actions>.sg-top-notifications,
  .sg-topbar .sg-top-actions>.sg-mobile-menu-trigger{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
  }
  .sg-topbar .sg-brand.sg-brand-live{max-width:96px!important}
  .sg-topbar .sg-brand-live-logo{max-width:96px!important;height:auto!important}
}
