/* FM27 V10.83.9 – report timeline, fixed-height live report, pitch logos/cards. */
/* Make commentary and statistics visually equal height, then scroll commentary if needed. */
.fm27-r837-dual-report{align-items:stretch}
.fm27-r837-dual-report>section{display:flex;flex-direction:column;min-height:760px}
.fm27-r837-commentary #reportarea{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:auto}
.fm27-r837-statistics{overflow:hidden}
.fm27-r837-statistics .fm27-p2{display:flex;flex-direction:column;flex:1}
.fm27-r837-statistics .fm27-p2-stats-top{flex:1}
@media(max-width:1160px){.fm27-r837-dual-report>section{min-height:0}.fm27-r837-commentary #reportarea{max-height:640px}}

/* Match summary timeline above tabs */
.fm27-r839-summary{background:#14243b;border:1px solid #405571;border-radius:12px;padding:14px 16px;margin:0 0 16px}
.fm27-r839-summary>h3{font-size:1rem;font-weight:820;margin:0 0 12px;color:#edf7ff}
.fm27-r839-timeline{position:relative;padding:8px 8px 4px 42px}
.fm27-r839-axis{position:absolute;left:46px;right:8px;top:48%;height:2px;background:#dbe6f1b3;transform:translateY(-50%)}
.fm27-r839-row{position:relative;height:48px}
.fm27-r839-side{position:absolute;left:-40px;top:50%;transform:translateY(-50%);font-weight:820;color:#fff;font-size:.92rem}
.fm27-r839-marker{position:absolute;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;color:#fff;z-index:2}
.fm27-r839-row.is-home .fm27-r839-marker{top:26%}
.fm27-r839-row.is-away .fm27-r839-marker{top:74%}
.fm27-r839-marker .bi-dribbble{font-size:1rem;color:#fff}
.fm27-r839-timeline-sub{display:inline-flex;align-items:center;gap:1px;font-weight:900}.fm27-r839-timeline-sub .is-in{color:#78df8d}.fm27-r839-timeline-sub .is-out{color:#ff6a6a}

/* Player tab / pitch */
.fm27-r833-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.46fr);gap:16px}
.fm27-r833-pitch{background:#0b1717;border:1px solid #405571;border-radius:14px;overflow:hidden}
.fm27-r833-team{position:relative}
.fm27-r833-team-heading{display:none}
.fm27-r839-teamlogo{position:absolute;left:10px;z-index:3;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:#0f1825bf;border-radius:999px;border:1px solid #5f7185;box-shadow:0 3px 10px #00000040}
.fm27-r839-teamlogo img{width:34px;height:34px;object-fit:contain}
.fm27-r839-teamlogo i{font-size:1.25rem;color:#fff}
.fm27-r839-teamlogo-home{top:10px}.fm27-r839-teamlogo-away{bottom:10px}
.fm27-r839-penalty-area{position:absolute;left:50%;transform:translateX(-50%);width:min(260px,48%);height:76px;border:2px solid rgba(255,255,255,.86);pointer-events:none;opacity:.96}
.fm27-r839-penalty-area-home{top:0;border-top:none}.fm27-r839-penalty-area-away{bottom:0;border-bottom:none}
.fm27-r839-goal{position:absolute;left:50%;transform:translateX(-50%);width:100px;height:18px;border:2px solid rgba(255,255,255,.9)}
.fm27-r839-penalty-area-home .fm27-r839-goal{top:0;border-top:none}.fm27-r839-penalty-area-away .fm27-r839-goal{bottom:0;border-bottom:none}
.fm27-r833-pitch .fm27-r833-team{min-height:438px;padding:14px 12px 18px}.fm27-r833-pitch .fm27-r833-lines{min-height:366px;justify-content:space-evenly;padding-top:20px;padding-bottom:20px}
.fm27-r833-team-away .fm27-r833-lines{padding-top:20px;padding-bottom:20px}

/* Event badges near portraits */
.fm27-r839-subout{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#fff;color:#e54848;border:1px solid #d5dae5;font-weight:900;line-height:1;box-shadow:0 1px 4px #0000002b}
.fm27-r839-card-combo{position:relative;display:inline-flex;width:18px;height:14px;align-items:center;justify-content:center}
.fm27-r839-card-combo .fm27-r833-card{position:absolute;width:9px;height:12px;border-radius:2px}
.fm27-r839-card-combo .is-yellow{left:1px;bottom:0;z-index:1}.fm27-r839-card-combo .is-red{right:0;top:0;z-index:2}
.fm27-r839-card-combo.is-compact{width:16px;height:12px}.fm27-r839-card-combo.is-compact .fm27-r833-card{width:8px;height:11px}

/* Right substitutions panel */
.fm27-r838-sub-line{display:grid;grid-template-columns:16px minmax(0,1fr) auto auto;align-items:center;column-gap:7px}
.fm27-r838-sub-player{font-weight:560}
.fm27-r839-sub-events{display:inline-flex;align-items:center;gap:4px;min-width:16px;justify-content:flex-start}
.fm27-r838-sub-line b{margin-left:0;justify-self:end;min-width:38px;text-align:center}

/* Responsive */
@media(max-width:900px){.fm27-r833-grid{grid-template-columns:1fr}.fm27-r839-penalty-area{width:min(220px,62%)}.fm27-r837-dual-report>section{min-height:0}}
@media(max-width:700px){.fm27-r839-summary{padding:12px}.fm27-r839-timeline{padding-left:34px}.fm27-r839-side{left:-32px;font-size:.82rem}.fm27-r833-pitch .fm27-r833-team{min-height:400px;padding:12px 8px 15px}.fm27-r833-pitch .fm27-r833-lines{min-height:330px}.fm27-r839-teamlogo{width:38px;height:38px}.fm27-r839-teamlogo img{width:28px;height:28px}.fm27-r839-penalty-area{height:62px;width:min(170px,66%)}.fm27-r839-goal{width:74px;height:14px}}
