/* StileJuventus V9.510 — Match Room Home scura + AdSense nella single match. */
body.slr-home-page .slr-home-match-room{
  --slr-match-accent:#9f1239;
  --slr-match-accent-soft:rgba(159,18,57,.10);
  position:relative;
  width:100%;
  min-width:0;
  overflow:hidden;
  border-bottom:1px solid var(--slr-ui-line,rgba(15,20,25,.12));
  background:var(--slr-ui-surface,#fff);
  color:var(--slr-ui-text,#0f1419);
}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room{
  --slr-match-accent:#f4ba00;
  --slr-match-accent-soft:rgba(244,186,0,.11);
  background:#080a0d;
  color:#f5f7f8;
  border-color:rgba(255,255,255,.10);
}
body.slr-home-page .slr-home-match-room:before{display:none}
body.slr-home-page .slr-home-match-room-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:14px 18px 10px;
}
body.slr-home-page .slr-home-match-room-head>div{min-width:0}
body.slr-home-page .slr-home-match-room-head span{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--slr-match-accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}
body.slr-home-page .slr-home-match-room-head span i{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 0 5px var(--slr-match-accent-soft);
}
body.slr-home-page .slr-home-match-room.is-live .slr-home-match-room-head span i{animation:slrPulse 1.45s infinite}
body.slr-home-page .slr-home-match-room-head strong{
  display:block;
  margin-top:5px;
  color:inherit;
  font-size:22px;
  line-height:1.08;
  letter-spacing:-.035em;
}
body.slr-home-page .slr-home-match-room-head>a{
  flex:0 0 auto;
  color:var(--slr-match-accent);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
body.slr-home-page .slr-home-match-room-head>a:hover{text-decoration:underline}
body.slr-home-page .slr-home-match-room-score{
  display:grid;
  grid-template-columns:minmax(0,1fr) 116px minmax(0,1fr);
  align-items:center;
  gap:12px;
  margin:0 18px;
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:#080a0d;
  color:#f5f7f8;
  text-decoration:none;
  box-shadow:0 10px 30px rgba(0,0,0,.10);
}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-score{border-color:rgba(255,255,255,.10);background:#05070a}
body.slr-home-page .slr-home-match-room-team{
  display:flex;
  min-width:0;
  align-items:center;
  gap:10px;
}
body.slr-home-page .slr-home-match-room-team:last-child{justify-content:flex-end;text-align:right}
body.slr-home-page .slr-home-match-room-team img{
  width:42px;
  height:42px;
  flex:0 0 42px;
  object-fit:contain;
}
body.slr-home-page .slr-home-match-room-team strong{
  min-width:0;
  overflow-wrap:anywhere;
  font-size:14px;
  line-height:1.15;
}
body.slr-home-page .slr-home-match-room-center{
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
body.slr-home-page .slr-home-match-room-center>small{
  color:#9ba3ad;
  font-size:10px;
  font-weight:750;
}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-center>small{color:#9ba3ad}
body.slr-home-page .slr-home-match-room-center>b{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:3px;
  color:inherit;
  font-size:28px;
  line-height:1;
  letter-spacing:-.05em;
}
body.slr-home-page .slr-home-match-room-center>b.is-kickoff{font-size:19px;letter-spacing:.02em}
body.slr-home-page .slr-home-match-room-center>b em{font-style:normal;opacity:.55}
body.slr-home-page .slr-home-match-room-center>strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  margin-top:7px;
  padding:4px 9px;
  border-radius:999px;
  background:var(--slr-match-accent);
  color:#fff;
  font-size:9px;
  font-weight:950;
  letter-spacing:.07em;
  line-height:1;
  text-transform:uppercase;
}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-center>strong{color:#111}
body.slr-home-page .slr-home-match-room-center>strong[hidden]{display:none!important}
body.slr-home-page .slr-home-match-room-stats{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 14px;
  padding:11px 18px 0;
  color:var(--slr-ui-muted,#536471);
  font-size:11px;
}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-stats{color:#9ba3ad}
body.slr-home-page .slr-home-match-room-stats span{display:inline-flex;align-items:baseline;gap:4px}
body.slr-home-page .slr-home-match-room-stats b{color:inherit;font-size:13px}
body.slr-home-page .slr-home-match-room-action{padding:12px 18px 13px}
body.slr-home-page .slr-home-match-room-action>:is(button,a){
  display:flex;
  width:100%;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:0;
  border-radius:14px;
  padding:12px 13px;
  background:#0f1419;
  color:#fff;
  font:inherit;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-action>:is(button,a){background:#f4ba00;color:#111}
body.slr-home-page .slr-home-match-room-action span{
  min-width:0;
  overflow-wrap:anywhere;
  font-size:13px;
  font-weight:800;
}
body.slr-home-page .slr-home-match-room-action b{
  flex:0 0 auto;
  padding:7px 11px;
  border-radius:999px;
  background:#fff;
  color:#0f1419;
  font-size:11px;
}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-action b{background:#111;color:#fff}
body.slr-home-page .slr-home-match-room-posts{border-top:1px solid var(--slr-ui-line,rgba(15,20,25,.10))}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-posts{border-color:rgba(255,255,255,.08)}
body.slr-home-page .slr-home-match-room-post{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 20px;
  align-items:start;
  gap:10px;
  padding:12px 18px;
  border-bottom:1px solid var(--slr-ui-line,rgba(15,20,25,.08));
  color:inherit;
  text-decoration:none;
  transition:background .15s ease;
}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-post{border-color:rgba(255,255,255,.07)}
body.slr-home-page .slr-home-match-room-post:hover{background:var(--slr-ui-hover,rgba(15,20,25,.04))}
html[data-slr-theme="dark"] body.slr-home-page .slr-home-match-room-post:hover{background:rgba(255,255,255,.035)}
body.slr-home-page .slr-home-match-room-post-avatar,
body.slr-home-page .slr-home-match-room-post-avatar :is(img,b){
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  border-radius:50%;
}
body.slr-home-page .slr-home-match-room-post-avatar{overflow:hidden;background:var(--slr-match-accent-soft)}
body.slr-home-page .slr-home-match-room-post-avatar img{object-fit:cover}
body.slr-home-page .slr-home-match-room-post-avatar b{color:var(--slr-match-accent);font-size:11px}
body.slr-home-page .slr-home-match-room-post-copy{min-width:0}
body.slr-home-page .slr-home-match-room-post-copy>span{display:flex;min-width:0;align-items:baseline;gap:7px}
body.slr-home-page .slr-home-match-room-post-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}
body.slr-home-page .slr-home-match-room-post-copy time{flex:0 0 auto;color:var(--slr-ui-muted,#536471);font-size:10px}
body.slr-home-page .slr-home-match-room-post-copy p{margin:3px 0 0;color:inherit;font-size:12.5px;line-height:1.35}
body.slr-home-page .slr-home-match-room-post>i{align-self:center;color:var(--slr-match-accent);font-style:normal;font-size:16px}
body.slr-home-page .slr-home-match-room-empty{padding:16px 18px;border-top:1px solid var(--slr-ui-line,rgba(15,20,25,.10))}
body.slr-home-page .slr-home-match-room-empty strong,
body.slr-home-page .slr-home-match-room-empty span{display:block}
body.slr-home-page .slr-home-match-room-empty strong{font-size:13px}
body.slr-home-page .slr-home-match-room-empty span{margin-top:3px;color:var(--slr-ui-muted,#536471);font-size:11px}
body.slr-home-page .slr-home-match-room>footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 18px 15px;
  color:var(--slr-ui-muted,#536471);
  font-size:10px;
}
body.slr-home-page .slr-home-match-room>footer a{color:var(--slr-match-accent);font-size:12px;font-weight:850;text-decoration:none}
body.slr-home-page .slr-home-match-room>footer a:hover{text-decoration:underline}

/* AdSense nella pagina singola match, subito sotto il tabellone. Desktop/tablet orizzontale. */
body .slr-google-ad-match-page{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:10px 18px 13px!important;
  border-bottom:1px solid var(--slr-ui-line,rgba(15,20,25,.10));
  background:var(--slr-ui-surface,#fff);
  overflow:hidden;
}
html[data-slr-theme="dark"] body .slr-google-ad-match-page{background:#080a0d;border-color:rgba(255,255,255,.08)}
body .slr-google-ad-match-page .slr-google-ad-label{display:block;margin:0 0 5px;color:var(--slr-ui-muted,#71767b);font-size:8px;text-align:center;text-transform:uppercase;letter-spacing:.08em}
body .slr-google-ad-match-page .adsbygoogle{min-height:90px}

@media(max-width:760px){
  body.slr-home-page .slr-home-match-room-head{padding:14px 13px 10px}
  body.slr-home-page .slr-home-match-room-head strong{font-size:19px}
  body.slr-home-page .slr-home-match-room-head>a{display:none}
  body.slr-home-page .slr-home-match-room-score{
    grid-template-columns:minmax(0,1fr) 86px minmax(0,1fr);
    gap:7px;
    margin:0 12px;
    padding:13px 9px;
    border-radius:15px;
  }
  body.slr-home-page .slr-home-match-room-team{flex-direction:column;gap:6px;text-align:center}
  body.slr-home-page .slr-home-match-room-team:last-child{justify-content:center;text-align:center}
  body.slr-home-page .slr-home-match-room-team img{width:36px;height:36px;flex-basis:36px}
  body.slr-home-page .slr-home-match-room-team strong{font-size:11.5px;line-height:1.12}
  body.slr-home-page .slr-home-match-room-center>small{font-size:8.5px}
  body.slr-home-page .slr-home-match-room-center>b{font-size:24px}
  body.slr-home-page .slr-home-match-room-center>strong{min-height:20px;margin-top:5px;padding:4px 7px;font-size:8px}
  body.slr-home-page .slr-home-match-room-stats{padding:10px 13px 0;font-size:10px}
  body.slr-home-page .slr-home-match-room-action{padding:10px 12px 12px}
  body.slr-home-page .slr-home-match-room-action>:is(button,a){padding:11px 12px}
  body.slr-home-page .slr-home-match-room-action span{font-size:12px}
  body.slr-home-page .slr-home-match-room-post{grid-template-columns:34px minmax(0,1fr) 16px;gap:9px;padding:11px 12px}
  body.slr-home-page .slr-home-match-room-post-avatar,
  body.slr-home-page .slr-home-match-room-post-avatar :is(img,b){width:34px;height:34px}
  body.slr-home-page .slr-home-match-room-post-copy strong{font-size:12px}
  body.slr-home-page .slr-home-match-room-post-copy time{font-size:9px}
  body.slr-home-page .slr-home-match-room-post-copy p{font-size:12px;line-height:1.32}
  body.slr-home-page .slr-home-match-room>footer{display:block;padding:11px 12px 13px}
  body.slr-home-page .slr-home-match-room>footer span{display:block;margin-top:4px}

  /* Smartphone: una sola unità responsive con shape rectangle dentro un box
     compatto quasi quadrato; il JS imposta data-ad-format=rectangle prima del push. */
  body .slr-google-ad-match-page{
    width:min(336px,calc(100% - 24px))!important;
    max-width:336px!important;
    min-height:0;
    aspect-ratio:1/1;
    margin:10px auto 14px!important;
    padding:8px!important;
    display:flex;
    flex-direction:column;
    border:1px solid var(--slr-ui-line,rgba(15,20,25,.10));
    border-radius:16px;
  }
  body .slr-google-ad-match-page .adsbygoogle{min-height:0;flex:1 1 auto}
}

@media(max-width:360px){
  body.slr-home-page .slr-home-match-room-score{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)}
  body.slr-home-page .slr-home-match-room-team strong{font-size:10.5px}
  body.slr-home-page .slr-home-match-room-center>b{font-size:22px}
}


/* V9.510: tablet resta orizzontale; il quadrato è riservato agli smartphone. */
@media (min-width:641px) and (max-width:760px){
  body .slr-google-ad-match-page{
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    margin:0!important;
    padding:10px 18px 13px!important;
    display:block!important;
    border:0!important;
    border-bottom:1px solid var(--slr-ui-line,rgba(15,20,25,.10))!important;
    border-radius:0!important;
  }
  body .slr-google-ad-match-page .adsbygoogle{min-height:90px!important;display:block!important}
}

/* V9.511 — contrasto tabellone Match Room Home in tema Giorno.
   Gli override globali light usano !important: questa regola resta volutamente
   circoscritta al solo score-card scuro e non altera il resto della Home. */
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-score .slr-home-match-room-team strong,
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-score .slr-home-match-room-center > b,
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-score .slr-home-match-room-center > b i{
  color:#f5f7f8!important;
  -webkit-text-fill-color:#f5f7f8!important;
  opacity:1!important;
}
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-score .slr-home-match-room-center > small,
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-score .slr-home-match-room-center > b em{
  color:#aab0b8!important;
  -webkit-text-fill-color:#aab0b8!important;
  opacity:1!important;
}
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-score .slr-home-match-room-center > strong{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* V9.512 — CTA "Scrivi": stati interattivi leggibili in entrambi i temi.
   Override volutamente specifici perché gli hover globali della UI usano
   regole !important che altrimenti possono azzerare il contrasto della pill. */
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-action > :is(button,a):is(:hover,:focus-visible,:active){
  background:#242a30!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-action > :is(button,a):is(:hover,:focus-visible,:active) span{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-slr-theme="light"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-action > :is(button,a):is(:hover,:focus-visible,:active) b{
  background:#fff!important;
  color:#0f1419!important;
  -webkit-text-fill-color:#0f1419!important;
}

html[data-slr-theme="dark"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-action > :is(button,a):is(:hover,:focus-visible,:active){
  background:#ffd23f!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}
html[data-slr-theme="dark"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-action > :is(button,a):is(:hover,:focus-visible,:active) span{
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}
html[data-slr-theme="dark"] body.slr-site.slr-home-social.slr-home-page .slr-home-match-room-action > :is(button,a):is(:hover,:focus-visible,:active) b{
  background:#111!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Focus tastiera visibile senza alterare il layout. */
body.slr-home-page .slr-home-match-room-action > :is(button,a):focus-visible{
  outline:2px solid currentColor!important;
  outline-offset:2px;
}

/* V9.513 — Home Match Room: usa lo stesso tabellone globale presente nel resto del sito.
   Il markup riutilizza direttamente le classi slr-matchday-global*; qui replichiamo solo
   il contesto "is-centered" perché nella Home il tabellone vive dentro il modulo Match Room. */
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered{
  position:relative;
  z-index:4;
  width:100%;
  margin:0;
  padding:12px 14px 14px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:#000;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-card{
  width:100%;
  max-width:none;
  margin:0;
  padding:15px 16px 13px;
  border-radius:18px;
  box-shadow:none;
}
body.slr-home-page .slr-home-match-room.is-live .slr-home-match-room-board .slr-matchday-global-card{
  border-color:rgba(255,69,100,.38)!important;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-kicker{
  margin-bottom:8px;
  font-size:8px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-board{
  grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr);
  gap:10px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-team{
  gap:8px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-team img{
  width:42px;
  height:42px;
  flex-basis:42px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-team strong{
  font-size:15px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-center>span{
  font-size:7px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-center>b{
  font-size:27px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-center>b.is-kickoff{
  font-size:22px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-countdown{
  margin-top:9px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-meta{
  margin-top:9px;
  font-size:8px;
}
body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-meta b{
  font-size:8px;
}

/* Ordine richiesto: tabellone standard -> Scrivi -> contatori -> post. */
body.slr-home-page .slr-home-match-room-action{
  padding:12px 18px 10px;
}
body.slr-home-page .slr-home-match-room-stats{
  padding:0 18px 12px;
}

@media (max-width:900px){
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered{
    padding:8px 9px 10px;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-card{
    padding:11px 10px 10px;
    border-radius:16px;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-board{
    grid-template-columns:minmax(0,1fr) 86px minmax(0,1fr);
    gap:6px;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-team{
    display:grid;
    justify-items:center;
    gap:4px;
    text-align:center;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-team.is-away{
    display:grid;
    text-align:center;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-team img{
    width:36px;
    height:36px;
    flex-basis:36px;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-team strong{
    max-width:100%;
    font-size:12px;
    white-space:normal;
    text-align:center;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-center>b{
    font-size:25px;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-center>b.is-kickoff{
    font-size:20px;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-meta{
    gap:7px;
    margin-top:8px;
    font-size:7px;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-meta span:nth-child(2){
    display:none;
  }
  body.slr-home-page .slr-home-match-room .slr-home-match-room-board.slr-matchday-global.is-centered .slr-matchday-global-meta b{
    font-size:7px;
  }
  body.slr-home-page .slr-home-match-room-action{
    padding:10px 12px 9px;
  }
  body.slr-home-page .slr-home-match-room-stats{
    padding:0 13px 10px;
  }
}
