/*
 * MilanZone MZ1 — Rosso/Nero finish.
 * Caricato dopo gli stili legacy per impedire residui monocromatici/legacy.
 */
:root{--mz-red:#c8102e;--mz-red-dark:#8f001c;--mz-red-bright:#ff5268;--mz-black:#050505}
html[data-slr-theme="light"] body.slr-site{--slr-ui-accent:var(--mz-red)!important;--slr-news-accent:var(--mz-red)!important}
html[data-slr-theme="dark"] body.slr-site{--slr-ui-accent:var(--mz-red-bright)!important;--slr-news-accent:var(--mz-red-bright)!important}
html[data-slr-theme="light"] body.slr-site :is(.slr-social-nav,.slr-social-mobile-nav,.slr-social-feed-tabs,.slr-social-explore-tabs,.slr-social-match-tabs,.slr-player-profile-tabs,.slr-author-profile-tabs,.slr-market-tabs,.slr-match-side-tabs,.slr-match-mobile-tabs,.slr-social-match-months,.slr-roma-team-switch,.slr-social-following-tabs) :is(.is-active,[aria-current="page"],[aria-selected="true"]){color:var(--mz-red)!important;-webkit-text-fill-color:var(--mz-red)!important;border-color:var(--mz-red)!important}
html[data-slr-theme="dark"] body.slr-site :is(.slr-social-nav,.slr-social-mobile-nav,.slr-social-feed-tabs,.slr-social-explore-tabs,.slr-social-match-tabs,.slr-player-profile-tabs,.slr-author-profile-tabs,.slr-market-tabs,.slr-match-side-tabs,.slr-match-mobile-tabs,.slr-social-match-months,.slr-roma-team-switch,.slr-social-following-tabs) :is(.is-active,[aria-current="page"],[aria-selected="true"]){color:var(--mz-red-bright)!important;-webkit-text-fill-color:var(--mz-red-bright)!important;border-color:var(--mz-red-bright)!important}
html[data-slr-theme="light"] body.slr-site .slr-social-badge.is-editorial .slr-badge-bg{fill:var(--mz-red)!important}
html[data-slr-theme="dark"] body.slr-site .slr-social-badge.is-editorial .slr-badge-bg{fill:var(--mz-red-bright)!important}
/* MZ02 — fotografia reale tifoseria Milan su Accedi/Registrati e Collabora.
 * La texture/retina e le sfumature restano gestite dagli overlay già presenti. */
body.slr-site.slr-social-auth-page .slr-social-auth-visual,
body.slr-site.slr-collabora-page .slr-collabora-visual{background:#050505!important}
body.slr-site.slr-social-auth-page .slr-social-auth-visual>img,
body.slr-site.slr-collabora-page .slr-collabora-visual>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:50% 48%!important;
  margin:0!important;
  filter:saturate(.94) contrast(1.04) brightness(.88)!important;
  transform:scale(1.012)!important;
}
@media (max-width:760px){
  body.slr-site.slr-social-auth-page .slr-social-auth-visual>img,
  body.slr-site.slr-collabora-page .slr-collabora-visual>img{object-position:50% 46%!important}
}

/* ========================================================================== 
   MZ06 — VETRINE PROFILO ROSSONERE + CRONACA DARK AD ALTO CONTRASTO
   Nessuna immagine generata: stessa geometria delle cover esistenti, cambia
   soltanto la palette da bianconero/grigio a rosso/nero Milan.
   ========================================================================== */

/* Profilo utente/autore: preserva gli stessi tagli diagonali del placeholder. */
html:not([data-slr-theme="dark"]) body.slr-author-social-page :is(.slr-author-profile-cover,.slr-author-edit-cover):not(.has-image),
html[data-slr-theme="light"] body.slr-author-social-page :is(.slr-author-profile-cover,.slr-author-edit-cover):not(.has-image){
  background:
    linear-gradient(135deg,#050505 0 28%,#250308 28.2% 52%,#8f001c 52.2% 74%,#c8102e 74.2% 100%)!important;
  box-shadow:none!important;
}
html[data-slr-theme="dark"] body.slr-author-social-page :is(.slr-author-profile-cover,.slr-author-edit-cover):not(.has-image){
  background:
    linear-gradient(135deg,#000 0 28%,#160205 28.2% 52%,#5f0013 52.2% 74%,#a90724 74.2% 100%)!important;
  box-shadow:none!important;
}
body.slr-author-social-page :is(.slr-author-profile-cover,.slr-author-edit-cover):not(.has-image)::before{
  background:
    repeating-linear-gradient(115deg,transparent 0 44px,rgba(255,255,255,.06) 44px 45px,transparent 45px 88px)!important;
  mix-blend-mode:normal!important;
}
body.slr-author-social-page :is(.slr-author-profile-cover,.slr-author-edit-cover):not(.has-image)::after{
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.11),transparent)!important;
}

/* Profilo calciatore: identica geometria e identiche linee, solo rosso/nero. */
html:not([data-slr-theme="dark"]) body.slr-player-social-page .slr-player-profile-cover,
html[data-slr-theme="light"] body.slr-player-social-page .slr-player-profile-cover{
  background:
    radial-gradient(circle at 78% 18%,rgba(255,82,104,.19),transparent 24%),
    linear-gradient(128deg,#030303 0%,#260309 45%,#c8102e 100%)!important;
  background-color:#050505!important;
}
html[data-slr-theme="dark"] body.slr-player-social-page .slr-player-profile-cover{
  background:
    radial-gradient(circle at 78% 18%,rgba(255,82,104,.14),transparent 24%),
    linear-gradient(128deg,#000 0%,#140204 46%,#8f001c 100%)!important;
  background-color:#030303!important;
}
body.slr-player-social-page .slr-player-profile-cover:before{
  border-color:rgba(255,255,255,.22)!important;
  background:transparent!important;
}
body.slr-player-social-page .slr-player-profile-cover:after{
  border-color:rgba(255,82,104,.34)!important;
  background:transparent!important;
}
html:not([data-slr-theme="dark"]) body.slr-player-social-page .slr-player-profile-cover>span,
html[data-slr-theme="light"] body.slr-player-social-page .slr-player-profile-cover>span{
  color:rgba(255,255,255,.16)!important;
  -webkit-text-fill-color:rgba(255,255,255,.16)!important;
}
html[data-slr-theme="dark"] body.slr-player-social-page .slr-player-profile-cover>span{
  color:rgba(255,255,255,.13)!important;
  -webkit-text-fill-color:rgba(255,255,255,.13)!important;
}

/* Match/Cronaca in tema notte: niente più grigio quasi invisibile su nero. */
html[data-slr-theme="dark"] body.slr-social-match-page .slr-social-match-section>header h2,
html[data-slr-theme="dark"] body.slr-social-match-page [data-match-panel="timeline"] .slr-social-match-section>header h2{
  color:#f7f8fa!important;
  -webkit-text-fill-color:#f7f8fa!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page [data-match-panel="timeline"] .slr-social-match-section>header span{
  color:#ff6278!important;
  -webkit-text-fill-color:#ff6278!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-social-match-timeline-meta,
html[data-slr-theme="dark"] body.slr-social-match-page .slr-social-match-timeline-meta :is(span,time){
  color:#c6cbd2!important;
  -webkit-text-fill-color:#c6cbd2!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-panel{
  background:#08090b!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-topline{
  border-bottom-color:rgba(255,255,255,.12)!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-heading time{
  border-color:#ff5268!important;
  background:#111216!important;
  color:#ff7285!important;
  -webkit-text-fill-color:#ff7285!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-heading time b{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-kind{
  color:#ff667b!important;
  -webkit-text-fill-color:#ff667b!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-team,
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-team b{
  color:#d8dce2!important;
  -webkit-text-fill-color:#d8dce2!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-copy strong{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page :is(.slr-match-event-copy p,.slr-match-event-body span,.slr-match-event-body small){
  color:#c4c9d0!important;
  -webkit-text-fill-color:#c4c9d0!important;
}
html[data-slr-theme="dark"] body.slr-social-match-page .slr-match-event-signal{
  color:#b8bdc5!important;
  -webkit-text-fill-color:#b8bdc5!important;
}
