/* FM27 V10.83.8 – fixed starters on pitch, richer sub list, more commentary room. */
.fm27-r837-commentary #reportarea{max-height:none;overflow-y:visible;overflow-x:auto;min-height:240px}
@media(max-width:1160px){.fm27-r837-commentary #reportarea{max-height:none;overflow:visible}}

/* keep away side symmetrical and avoid the visual extra divider / misplaced striker */
.fm27-r833-team-away{flex-direction:column!important}
.fm27-r833-pitch .fm27-r833-team{min-height:430px;padding:10px 12px 14px}
.fm27-r833-pitch .fm27-r833-lines{min-height:354px;justify-content:space-evenly;gap:2px}
.fm27-r833-pitch .fm27-r833-line{min-height:58px}
.fm27-r833-team-heading{margin-bottom:4px}
.fm27-r833-team-away .fm27-r833-team-heading{margin-bottom:4px}

/* right-side substitution list like the requested reference */
.fm27-r838-subs{display:flex;flex-direction:column;gap:10px}
.fm27-r838-sub{display:grid;grid-template-columns:46px minmax(0,1fr);gap:8px;align-items:start;padding:8px 10px;border:1px solid #35506e;border-radius:10px;background:#11253a}
.fm27-r838-sub-minute{font-weight:800;color:#d9e8ff;padding-top:2px}
.fm27-r838-sub-lines{display:flex;flex-direction:column;gap:4px;min-width:0}
.fm27-r838-sub-line{display:flex;align-items:center;gap:7px;min-width:0;color:#fff;line-height:1.15}
.fm27-r838-arrow{font-weight:900;display:inline-flex;align-items:center;justify-content:center;width:14px;flex:0 0 14px}
.fm27-r838-arrow.is-in,.fm27-r838-sub-line.is-in{color:#7be08c}
.fm27-r838-arrow.is-out,.fm27-r838-sub-line.is-out{color:#ff6666}
.fm27-r838-sub-player{color:#fff;font-weight:780;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm27-r838-sub-line b{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#d22e2e;border:1px solid #d2d6e3;border-radius:999px;padding:1px 6px;font-size:.78rem;line-height:1;font-weight:820;box-shadow:0 1px 4px #0000002b}
.fm27-r838-sub-line .bi-dribbble{color:#fff;font-size:.9rem}

/* reserve / swap rows still compact */
.fm27-r833-sidebar{grid-template-columns:1fr;gap:14px}
@media(max-width:700px){
  .fm27-r833-pitch .fm27-r833-team{min-height:392px}
  .fm27-r833-pitch .fm27-r833-lines{min-height:320px}
  .fm27-r833-pitch .fm27-r833-line{min-height:54px}
  .fm27-r838-sub{grid-template-columns:42px minmax(0,1fr);padding:7px 8px}
}
