/* V10.72: retain technical OWS player pool; remove only its visible UI. */
body.fm27-squad-page.fm27-v72-ready #fm27V70PoolOpen,
body.fm27-squad-page.fm27-v72-ready #fm27V70PoolModal,
body.fm27-squad-page.fm27-v72-ready .fm27-v69-original-pool{display:none!important}
/* Gold half-star overlay – ten half-steps, with zero possible below the weakest
   natural specialist on the position. Not a progress bar for player strength. */
body.fm27-squad-page.fm27-v72-ready .fm27-v71-stars{position:relative;display:inline-block;letter-spacing:0!important;white-space:nowrap;font-family:Arial,system-ui,sans-serif;font-size:12px;line-height:1;min-width:60px;text-align:left;color:#9ba8c5}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-star-outline{position:relative;display:block;color:#8190ad;white-space:nowrap;letter-spacing:0}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-star-fill{position:absolute;left:0;top:0;display:block;max-width:100%;overflow:hidden;white-space:nowrap;color:#ffd267;letter-spacing:0}
/* Small clustered indicators – each individual badge has its own title tooltip. */
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-icons{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;min-height:17px}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-badge{display:inline-flex;align-items:center;justify-content:center;min-width:15px;height:16px;padding:0 2px;font:800 9px/1 system-ui,sans-serif;letter-spacing:-.02em;border:1px solid #7285aa;border-radius:3px;background:#314163;color:#f6f7ff;cursor:help}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-badge.is-injured{border-color:#eb7d86;color:#ffb0b7;background:#492938}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-badge.is-suspended{border-color:#eb8c6b;color:#ffbd95;background:#4c302f}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-badge.is-transfer{border-color:#a5a0e6;color:#ddd0ff;background:#342c53}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-badge.is-loan,
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-badge.is-loaned{border-color:#67c3c0;color:#b4f5ec;background:#1c3e49}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-badge.is-captain{border-color:#d6b66a;color:#ffdc88;background:#423b2b}
body.fm27-squad-page.fm27-v72-ready .fm27-v72-info-none{color:#8f9bb5}
/* Pitch: native slot / remove / drag targets stay intact, but replace legacy
   shirt/background player captions with FM-style face cards. */
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-occupied>.formationPlayerPicture,
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-occupied>.positionPlayer,
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-occupied>.positionLabel,
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-occupied>.fm27-v71-pitch-rating{display:none!important}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-card{
 position:absolute;left:50%;top:-32px;transform:translateX(-50%);width:92px;max-width:132%;z-index:8;display:flex;flex-direction:column;align-items:center;gap:1px;
 pointer-events:none;user-select:none;text-align:center;font-family:system-ui,sans-serif;line-height:1.05
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-position{min-width:35px;padding:2px 4px;background:#933b87;border:1px solid #b66bc1;border-radius:7px 7px 1px 1px;color:white;font-weight:800;font-size:10px}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face{position:relative;width:38px;height:39px;flex:0 0 39px;overflow:hidden;background:#263854 url('fm27-player-placeholder-v1072.svg') center center/cover no-repeat;border:1px solid #63758c;border-radius:7px 7px 1px 1px}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-stars{font-size:10px;min-width:50px;height:10px}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-name{display:block;background:rgba(8,22,29,.91);border:1px solid #325058;border-radius:3px;color:#f5f7ff;padding:2px 3px;max-width:100%;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:64px}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-strength{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:16px;margin-top:-1px;border-radius:5px;background:#17263d;color:#fff;border:1px solid #8093aa;font:900 11px/1 system-ui,sans-serif;box-shadow:0 2px 5px rgba(0,0,0,.35)}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-strength.tier-secondary{color:#ffc382;border-color:#efbd76;background:#493525}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-strength.tier-wrong{color:#ff8c9b;border-color:#ea7787;background:#4b2535}
/* Empty/reserve rows remain inactive and keep their placeholders. */
body.fm27-squad-page.fm27-v72-ready .fm27-v71-reserve-row .fm27-v71-stars{opacity:.7}
@media(max-width:550px){body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-card{width:78px;top:-26px}body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face{width:32px;height:34px;flex-basis:34px}}
/* Original OWS applies a shirt sprite to the SLOT when there is no player
   photo. Suppress it while the FM27 default-portrait card is present. */
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-occupied.jersey{background-image:none!important}

/* V10.72.1 – compact portrait tile, matching the original requested sample.
   1) no points badge on pitch (table remains the only numerical value)
   2) fallback silhouette only when a portrait genuinely does not exist
   3) centered player portrait, position ribbon, stars and player name. */
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-card{
  width:78px;max-width:125%;top:-29px;gap:0;align-items:stretch;
  text-align:center;line-height:1.1;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face{
  display:block;align-self:center;width:42px;height:43px;flex:0 0 43px;
  box-sizing:border-box;overflow:hidden;border:0;border-radius:7px 7px 2px 2px;
  background:none!important;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face.is-placeholder{
  background:#263854 url('fm27-player-placeholder-v1072.svg') center center/cover no-repeat!important;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face img{
  width:100%;height:100%;object-fit:contain;object-position:bottom center;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-position{
  display:block;align-self:stretch;margin:0 auto;width:100%;min-width:0;
  border-radius:7px 7px 1px 1px;padding:2px 3px;
  background:#8e337e;border:1px solid #b767b0;color:#fff;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-stars{
  display:block;align-self:center;margin:2px auto 1px;
  height:10px;min-width:50px;font-size:10px;text-align:center;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-name{
  display:block;align-self:stretch;width:100%;min-width:0;max-width:100%;
  box-sizing:border-box;margin:0 auto;padding:2px 2px;
  border-radius:2px 2px 5px 5px;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;font-size:9px;text-align:center;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-strength{display:none!important}
/* Restore neutral, consistent table text regardless of old template style. */
body.fm27-squad-page.fm27-v72-ready .fm27-v71-list-shell .fm27-v70-heading>span:nth-child(2){color:#e8eefb!important}
body.fm27-squad-page.fm27-v72-ready .fm27-v69-lineup-row .fm27-v70-assists,
body.fm27-squad-page.fm27-v72-ready .fm27-v69-lineup-row .fm27-v70-rating,
body.fm27-squad-page.fm27-v72-ready .fm27-v69-lineup-row .fm27-v70-goals{
  color:#e8eefb!important;font-weight:500;text-align:center;
}
@media(max-width:550px){
 body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-card{width:68px;top:-23px}
 body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face{width:36px;height:36px;flex-basis:36px}
}

/* V10.72.2: one fixed-width star per rating step, no string-on-string glyph
   overlays or expanding star rows. Works for 0, 0.5, 1..4.5 and 5 stars. */
body.fm27-squad-page.fm27-v72-ready .fm27-v71-stars{
  display:inline-flex!important;flex-flow:row nowrap!important;align-items:center;
  justify-content:center;gap:0!important;width:52px;min-width:52px;
  max-width:52px;height:13px;min-height:13px;line-height:1!important;
  font-family:Arial,system-ui,sans-serif!important;font-size:11px!important;
  overflow:visible;vertical-align:middle;white-space:nowrap!important;
  letter-spacing:0!important;box-sizing:border-box;
}
body.fm27-squad-page.fm27-v72-ready .fm27-v722-star-unit{
  display:inline-block!important;position:relative;box-sizing:border-box;
  width:10px;min-width:10px;max-width:10px;height:12px;
  flex:0 0 10px;overflow:hidden;line-height:12px;
}
body.fm27-squad-page.fm27-v72-ready .fm27-v722-star-empty,
body.fm27-squad-page.fm27-v72-ready .fm27-v722-star-gold{
  position:absolute;top:0;left:0;display:block;overflow:hidden;white-space:nowrap;
  height:12px;line-height:12px;width:10px;text-align:left;margin:0;padding:0;
  font:normal 11px/12px Arial,system-ui,sans-serif!important;
  letter-spacing:0!important;text-indent:0!important;
}
body.fm27-squad-page.fm27-v72-ready .fm27-v722-star-empty{color:#8c9ab2!important}
body.fm27-squad-page.fm27-v72-ready .fm27-v722-star-gold{color:#ffd36c!important;z-index:1}
/* Pitch design: one continuous block (two colors) below the portrait.
   The five-star rating and name share the lower dark panel. */
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-card{
  display:flex;flex-direction:column;align-items:center;
  width:86px;max-width:135%;gap:0;top:-30px;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v722-pitch-body{
  display:flex;flex-direction:column;align-items:stretch;
  width:100%;max-width:100%;box-sizing:border-box;margin:0;
  border-radius:7px 7px 5px 5px;overflow:hidden;
  box-shadow:0 2px 5px rgba(0,0,0,.3);
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v722-pitch-body>.fm27-v72-pitch-position{
  display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;
  padding:3px 2px 2px;align-self:stretch;
  background:#933783;border:1px solid #b35d9f;border-bottom:0;
  border-radius:7px 7px 0 0;color:#fff;text-align:center;
  font-weight:800;font-size:10px;line-height:13px;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v722-pitch-bottom{
  box-sizing:border-box;display:flex;flex-direction:column;align-items:center;
  width:100%;min-width:0;gap:0;padding:3px 2px 3px;
  background:#0b2028;border:1px solid #34535e;border-top:0;
  border-radius:0 0 5px 5px;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v722-pitch-bottom>.fm27-v72-pitch-stars{
  box-sizing:border-box;display:inline-flex!important;flex:0 0 13px;
  align-self:center;width:52px;min-width:52px;margin:0 auto 1px;padding:0;
  height:13px;min-height:13px;font-size:11px!important;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v722-pitch-bottom>.fm27-v72-pitch-name{
  box-sizing:border-box;display:block;align-self:stretch;
  margin:0;padding:1px 0 0;width:100%;max-width:100%;min-width:0;
  border:0!important;border-radius:0;background:transparent!important;
  color:#f6f6ff;font-size:9px;line-height:12px;font-weight:600;
  text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:center;
}
body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face{
  width:43px;height:43px;flex:0 0 43px;align-self:center;margin:0;
}
@media(max-width:550px){
 body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-card{width:74px;top:-25px}
 body.fm27-squad-page.fm27-v72-ready #pitch .fm27-v72-pitch-face{width:35px;height:35px;flex-basis:35px}
}
