/* FS53 combined corrections – no additional pages */
/* Pitch: keep compact desktop dimensions, avoid tall field at wide resolutions */
@media(min-width:901px){
 #matchcenterRoot .mc-lineup-grid{max-width:900px!important;width:100%!important;margin-inline:auto!important}
 #matchcenterRoot .mc-lineup-panel>.mc-pitch.mc-pitch-coordinates{height:clamp(510px,56vw,590px)!important;min-height:0!important;max-height:590px!important}
 #matchcenterRoot .mc-lineup-panel>.mc-pitch:not(.mc-pitch-coordinates){min-height:0!important}
 #matchcenterRoot .mc-lineup-tabs{max-width:900px!important}
 #matchcenterRoot .mc-lineup-grid .mc-pitch-position .mc-player-head{width:clamp(55px,6vw,76px)!important;height:clamp(62px,7vw,85px)!important}
}
/* Remove angular portrait frame and unwanted dark shadows */
#matchcenterRoot .mc-pitch-position .mc-player-head,
#matchcenterRoot .mc-pitch-position .mc-player-head::before,
#matchcenterRoot .mc-pitch-position .mc-player-head::after,
#matchcenterRoot .mc-pitch-position .mc-player-head img,
#matchcenterRoot .mc-bench-photo,
#matchcenterRoot .mc-bench-photo img,
.pp-teammate-photo,.pp-teammate-photo img{border:0!important;outline:0!important;box-shadow:none!important;clip-path:none!important;filter:none!important}
#matchcenterRoot .mc-pitch-position .mc-player-head{background:transparent!important}
#matchcenterRoot .mc-pitch-position .mc-player strong,
#matchcenterRoot .mc-pitch-position .mc-player small{ text-shadow:none!important;filter:none!important }
/* Name, then flag, then position and plain shirt number */
.pp-teammate>span:nth-child(2){color:#063c85!important;text-shadow:none!important}
.pp-teammate-flag{display:block;font-family:system-ui,sans-serif!important;font-size:21px!important;line-height:1.1;min-height:23px}
.pp-teammate small{color:#063c85!important;text-shadow:none!important}
/* Dark mode: blue text on dark surfaces becomes white */
:root[data-theme=dark] .pp-teammate>span:nth-child(2),
:root[data-theme=dark] .pp-teammate small,
html[data-theme=dark] .pp-teammate>span:nth-child(2),
html[data-theme=dark] .pp-teammate small{color:#fff!important}
:root[data-theme=dark] .mc-player strong,
:root[data-theme=dark] .mc-player small{color:#fff!important}
