/* FS54 – responsive corrections, loaded after all legacy styles */
/* Navigation: identical active height even for two-line items */
.portal-body .primary-nav{align-items:stretch!important}
.portal-body .primary-nav a{box-sizing:border-box!important;min-height:46px!important;max-height:46px!important;height:46px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:5px 11px!important;line-height:1.08!important;overflow:hidden!important}
/* Match selector and pitch use the same centered width. Prevent sideways drift. */
#matchcenterRoot .mc-lineup-switcher,#matchcenterRoot .mc-lineup-tabs,#matchcenterRoot .mc-lineup-grid{box-sizing:border-box!important;margin-left:auto!important;margin-right:auto!important;transform:none!important;left:auto!important;right:auto!important}
#matchcenterRoot .mc-lineup-grid{display:block!important;grid-template-columns:1fr!important;position:relative!important}
#matchcenterRoot .mc-lineup-panel{min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important}
@media(min-width:901px){
 #matchcenterRoot .mc-lineup-switcher,#matchcenterRoot .mc-lineup-tabs,#matchcenterRoot .mc-lineup-grid{width:min(100%,1040px)!important;max-width:1040px!important}
 #matchcenterRoot .mc-lineup-panel>.mc-pitch.mc-pitch-coordinates{height:720px!important;min-height:720px!important;max-height:720px!important}
 #matchcenterRoot .mc-lineup-panel>.mc-pitch:not(.mc-pitch-coordinates){min-height:720px!important}
 #matchcenterRoot .mc-lineup-grid .mc-pitch-position .mc-player-head{width:clamp(75px,7.6vw,103px)!important;height:clamp(83px,8.3vw,113px)!important}
 #matchcenterRoot .mc-lineup-grid .mc-pitch-position .mc-player strong{font-size:clamp(12px,1.15vw,16px)!important;line-height:1.15!important}
 #matchcenterRoot .mc-lineup-grid .mc-pitch-position .mc-player small{font-size:12px!important}
}
@media(max-width:900px){
 #matchcenterRoot .mc-lineup-switcher,#matchcenterRoot .mc-lineup-tabs,#matchcenterRoot .mc-lineup-grid{width:100%!important;max-width:100%!important}
}
/* No geometric border or text shadows on pitch portraits */
#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-photo-viewport{clip-path:none!important;filter:none!important;box-shadow:none!important;border:0!important;outline:0!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}
/* Bench and substitution portraits: square, no visible frame or clipped edges */
#matchcenterRoot .mc-bench-person .mc-bench-photo,#matchcenterRoot .mc-bench-person .mc-bench-photo .mc-photo-viewport,#matchcenterRoot .mc-md-mini-photo,#matchcenterRoot .mc-md-mini-photo .mc-photo-viewport{border:0!important;outline:0!important;box-shadow:none!important;clip-path:none!important;border-radius:0!important}
#matchcenterRoot .mc-bench-photo .mc-photo-viewport,#matchcenterRoot .mc-md-mini-photo .mc-photo-viewport{overflow:hidden!important;width:100%!important;height:100%!important}
#matchcenterRoot .mc-bench-photo img,#matchcenterRoot .mc-md-mini-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 20%!important}
/* Light-mode selectors: royal blue with white text; dark-mode unchanged */
:root:not([data-theme=dark]) .portal-body .filter-bar select,
:root:not([data-theme=dark]) .portal-body .filter-controls select,
:root:not([data-theme=dark]) .portal-body .headline-article-controls select,
:root:not([data-theme=dark]) .portal-body .mc-filters select,
:root:not([data-theme=dark]) .portal-body select[data-season],
:root:not([data-theme=dark]) .portal-body select[data-competition]{background:#0755ad!important;color:#fff!important;border-color:#0755ad!important;font-family:var(--display)!important;font-weight:800!important}
:root:not([data-theme=dark]) .portal-body .filter-bar select option,
:root:not([data-theme=dark]) .portal-body .filter-controls select option{background:#0755ad!important;color:#fff!important}
/* Restore website's condensed typeface to headings and selection labels */
.portal-body .section-title,.portal-body .section-heading,.portal-body .filter-bar label,.portal-body .filter-controls label,.pp-container .pp-player-subtitle,.pp-container .pp-position{font-family:var(--display)!important}
/* Dark-mode player positions readable on navy */
:root[data-theme=dark] .pp-container .pp-position,:root[data-theme=dark] .pp-container .pp-player-subtitle,:root[data-theme=dark] .pp-profile-position{color:#8bcaff!important}
