/* Soccer 411 v0.20.99 — Use available player photos; subdued background treatment.
   Source photos remain unchanged. This is optical blending, not true cutout. */
:root{--s411-photo-stage:#e7edf4;--s411-photo-stage-2:#cdd9e8;--s411-photo-light-filter:contrast(1.05) saturate(1.02)}
html[data-s411-effective-theme="dark"]{--s411-photo-stage:#213958;--s411-photo-stage-2:#152640;--s411-photo-light-filter:contrast(1.08) saturate(.95)}

/* Consistent photo backplates; avoid an exposed pure-white surrounding panel. */
.dm-football-club-page .s411-leader-portrait,
.dm-football-club-page .s411-leader-portrait .dm-squad-leader-avatars>span,
.dm-football-club-page .dm-squad-player-photo,
.dm-players-hub .dm-player-card-photo,
.dm-player-profile .dm-player-profile-photo{
  background:linear-gradient(155deg,var(--s411-photo-stage),var(--s411-photo-stage-2))!important;
  isolation:isolate;
}
.dm-football-club-page .s411-leader-portrait .dm-squad-leader-avatars img,
.dm-football-club-page .dm-squad-player-photo img,
.dm-players-hub .dm-player-card-photo img,
.dm-player-profile .dm-player-profile-photo img{
  object-fit:cover!important;
  object-position:center 23%!important;
  filter:var(--s411-photo-light-filter);
  max-width:100%;
  display:block;
}
/* On dark cards, multiply makes white photo backdrops visually take on the
   navy stage instead of presenting stark rectangular white patches. */
html[data-s411-effective-theme="dark"] .dm-football-club-page .s411-leader-portrait .dm-squad-leader-avatars img,
html[data-s411-effective-theme="dark"] .dm-football-club-page .dm-squad-player-photo img,
html[data-s411-effective-theme="dark"] .dm-players-hub .dm-player-card-photo img,
html[data-s411-effective-theme="dark"] .dm-player-profile .dm-player-profile-photo img{
  mix-blend-mode:multiply;
  filter:brightness(1.15) contrast(1.04) saturate(.98);
}
/* Keep leaders' two portrait zones clearly separated. */
.dm-football-club-page .s411-leader-portrait .dm-squad-leader-avatars>span+span{
  border-left:2px solid rgba(240,245,255,.26)!important;
}
/* Prevent heavy filters on transparent custom assets (if any exist). */
.dm-football-club-page img[data-s411-transparent-portrait="1"],
.dm-players-hub img[data-s411-transparent-portrait="1"],
.dm-player-profile img[data-s411-transparent-portrait="1"]{
  mix-blend-mode:normal!important;
  filter:none!important;
}
@media(max-width:600px){
  .dm-football-club-page .s411-leader-portrait .dm-squad-leader-avatars img{object-position:center 20%!important}
}
