/*
 * StileJuventus.com — V9.405 Launch Candidate
 * Rifiniture pre-lancio non invasive.
 * Nessuna nuova funzione premium e nessuna modifica della palette consolidata.
 */

/* Stati operativi sempre leggibili. */
body.slr-site :is(button,input[type="submit"],input[type="button"]):disabled,
body.admin-shell :is(button,input[type="submit"],input[type="button"]):disabled,
body.admin-auth :is(button,input[type="submit"],input[type="button"]):disabled,
body.slr-site [aria-disabled="true"],
body.admin-shell [aria-disabled="true"]{
  cursor:not-allowed!important;
  opacity:.58!important;
  filter:none!important;
}
body.slr-site form.is-submitting :is(button[type="submit"],input[type="submit"]),
body.admin-shell form.is-submitting :is(button[type="submit"],input[type="submit"]),
body.admin-auth form.is-submitting :is(button[type="submit"],input[type="submit"]){
  pointer-events:none!important;
}
body.slr-site form.is-submitting :is(button[type="submit"],input[type="submit"]),
body.admin-shell form.is-submitting :is(button[type="submit"],input[type="submit"]){
  position:relative;
}

/* Gli embed sostituiscono l'URL duplicato senza lasciare spazio vuoto. */
body.slr-site .slr-community-post-body[hidden],
body.slr-site .slr-comment-body[hidden]{
  display:none!important;
}
body.slr-site .slr-social-embed{
  max-width:100%;
  overflow:hidden;
}
body.slr-site .slr-social-embed.is-social-loading{
  min-height:190px;
}
body.slr-site .slr-social-embed.is-social-loading::before{
  content:"Caricamento contenuto…";
  display:grid;
  min-height:190px;
  place-items:center;
  color:var(--slr-social-muted,#66717c);
  font-size:13px;
}
body.slr-site .slr-social-embed.is-social-loading iframe,
body.slr-site .slr-social-embed.is-social-loading blockquote{
  position:relative;
  z-index:1;
}
body.slr-site .slr-social-embed.is-social-fallback{
  min-height:0;
}

/* Nomi e stringhe lunghe: mai oltre il contenitore, mai invisibili. */
body.slr-site :is(
  .slr-social-post-author,
  .slr-social-post-author-link,
  .slr-comment-main header,
  .slr-notification-copy,
  .slr-player-profile-name-row,
  .slr-author-profile-name,
  .slr-fan-club-card-copy,
  .slr-social-side-user-copy
){
  min-width:0;
}
body.slr-site :is(
  .slr-social-post-author-link strong,
  .slr-comment-main header strong,
  .slr-notification-copy strong,
  .slr-player-profile-name-row h1,
  .slr-author-profile-name h1,
  .slr-fan-club-card-copy strong
){
  overflow-wrap:anywhere;
  word-break:normal;
}

/* Campo formazioni: più respiro, etichette compatte e centrocampo separato. */
body.slr-social-match-page .slr-social-match-pitch{
  min-height:620px!important;
  overflow:hidden!important;
}
body.slr-social-match-page .slr-social-pitch-player{
  width:70px!important;
}
body.slr-social-match-page .slr-social-pitch-player-name{
  display:block!important;
  width:70px!important;
  max-width:70px!important;
  max-height:none!important;
  padding:3px 4px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  font-size:8px!important;
  line-height:1.15!important;
}
body.slr-social-match-page .slr-social-pitch-player-name b{
  display:inline!important;
}
body.slr-social-match-page .slr-social-pitch-player.is-home > .slr-lineup-player-events{
  right:-2px!important;
  left:auto!important;
}
body.slr-social-match-page .slr-social-pitch-player.is-away > .slr-lineup-player-events{
  right:auto!important;
  left:-2px!important;
}

/* Metadati partita: data italiana, nessun timestamp tecnico spezzato. */
body.slr-social-match-page [data-match-updated]{
  display:inline-block;
  max-width:100%;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}

/* Focus finali: visibili senza cambiare il colore del testo. */
body.slr-site :is(a,button,input,textarea,select,[tabindex]):focus-visible,
body.admin-shell :is(a,button,input,textarea,select,[tabindex]):focus-visible,
body.admin-auth :is(a,button,input,textarea,select,[tabindex]):focus-visible{
  outline:2px solid currentColor!important;
  outline-offset:3px!important;
}

/* Stati vuoti/errore: il testo eredita sempre il contrasto del pannello. */
body.slr-site :is(.slr-empty-state,.slr-error-state,.slr-loading-state,.slr-social-empty,.slr-panel-empty) :is(h1,h2,h3,p,span,strong,small),
body.admin-shell :is(.empty-state,.error-state,.loading-state,.admin-empty) :is(h1,h2,h3,p,span,strong,small){
  color:inherit;
  -webkit-text-fill-color:currentColor;
}

@media (max-width:900px){
  body.slr-social-match-page .slr-social-match-pitch{
    min-height:680px!important;
  }
  body.slr-social-match-page .slr-social-pitch-player{
    width:62px!important;
  }
  body.slr-social-match-page .slr-social-pitch-player-name{
    width:62px!important;
    max-width:62px!important;
    padding-inline:3px!important;
    font-size:7.5px!important;
  }
}

@media (max-width:560px){
  body.slr-social-match-page .slr-social-match-pitch{
    min-height:720px!important;
  }
  body.slr-social-match-page .slr-social-pitch-player{
    width:54px!important;
  }
  body.slr-social-match-page .slr-social-pitch-player-photo{
    width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
  }
  body.slr-social-match-page .slr-social-pitch-player-name{
    width:54px!important;
    max-width:54px!important;
    font-size:6.7px!important;
  }
  body.slr-site .slr-social-embed.is-social-loading,
  body.slr-site .slr-social-embed.is-social-loading::before{
    min-height:160px;
  }
}

@media (prefers-reduced-motion:reduce){
  body.slr-site *,
  body.admin-shell *,
  body.admin-auth *{
    scroll-behavior:auto!important;
  }
}
