/* FM27 V10.83.10 – scoped fixes only. */
/* Live commentary height follows the natural full statistics panel including dangerous shots. */
.fm27-r837-dual-report{align-items:start!important}
.fm27-r837-dual-report>section{min-height:0!important}
.fm27-r837-statistics{height:auto!important;overflow:visible!important;display:block!important}
.fm27-r837-statistics .fm27-p2,.fm27-r837-statistics .fm27-p2-stats-top{flex:none!important;height:auto!important;max-height:none!important}
.fm27-r837-commentary{height:var(--fm27-r8310-comment-height,680px);min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column}
.fm27-r837-commentary #reportarea{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:auto}
@media(max-width:1160px){.fm27-r837-commentary{height:auto!important;max-height:680px!important;min-height:340px!important}.fm27-r837-commentary #reportarea{min-height:220px!important}}
/* Timeline uses a full-width explicit track. Percent positions are relative to THIS track. */
.fm27-r8310-timeline{background:#14243b;border:1px solid #405571;border-radius:12px;padding:12px 16px;margin:0 0 16px;overflow:hidden}
.fm27-r8310-timeline-inner{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:5px 0 0}
.fm27-r8310-trackrow{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;min-width:0;height:58px}
.fm27-r8310-team-abbr{font-size:.75rem;color:#f5faff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fm27-r8310-track{position:relative;display:block;box-sizing:border-box;width:100%;min-width:0;height:44px;border-bottom:1px solid #74899e}
.fm27-r8310-event{position:absolute;top:14px;transform:translateX(-50%);z-index:2;display:inline-flex;justify-content:center;align-items:center;min-width:15px;min-height:17px;line-height:1;background:#14243bd9;border-radius:3px;color:#fff;cursor:help}
.fm27-r8310-event:nth-of-type(3n){top:0px}.fm27-r8310-event:nth-of-type(3n+1){top:19px}
.fm27-r8310-event .bi-dribbble{font-size:16px}
.fm27-r8310-event .fm27-r833-card{width:10px;height:13px}
.fm27-r8310-sub-event{display:flex;flex-direction:column;font-weight:900;font-size:15px;line-height:9px;padding:1px 2px}
.fm27-r8310-sub-event span:first-child{color:#71de97}.fm27-r8310-sub-event span:last-child{color:#ff696f}
.fm27-r8310-time-ruler{position:relative;margin:0 0 0 51px;height:21px;min-width:0}
.fm27-r8310-time-ruler small{position:absolute;top:4px;transform:translateX(-50%);font-size:10px;color:#b8c8db;white-space:nowrap}
.fm27-r8310-time-ruler small:first-of-type{transform:none}.fm27-r8310-time-ruler small:last-of-type{transform:translateX(-100%)}
/* Keep the original green/striped pitch and exactly one midfield line. */
.fm27-r833-pitch{background:repeating-linear-gradient(0deg,#206f4b 0px,#206f4b 76px,#1a6346 76px,#1a6346 152px)!important;border:2px solid #b9ebd2!important;border-radius:13px!important;overflow:hidden!important}
.fm27-r833-pitch .fm27-r833-team{min-height:438px!important;padding:12px 15px 20px!important;gap:9px!important}
.fm27-r833-pitch .fm27-r833-lines{min-height:380px!important;flex:1;justify-content:space-between!important;gap:6px!important;padding:0!important}
.fm27-r833-pitch .fm27-r833-line{min-height:70px!important}
.fm27-r833-team-home{border-bottom:0!important}
.fm27-r833-team-away{flex-direction:column!important}
/* Add minimal field markings without introducing another horizontal center divider. */
.fm27-r839-penalty-area{width:min(350px,58%)!important;height:132px!important;border:2px solid #e1ffefb3!important;z-index:0!important;pointer-events:none}
.fm27-r839-penalty-area-home{top:0!important;border-top:0!important;border-radius:0 0 2px 2px}
.fm27-r839-penalty-area-away{bottom:0!important;border-bottom:0!important;border-radius:2px 2px 0 0}
.fm27-r839-goal{width:110px!important;height:13px!important;border:2px solid #e1ffefb3!important}
.fm27-r839-goal:after{content:'';position:absolute;inset:2px;border:1px dashed #e1ffef55}
.fm27-r839-penalty-area-home .fm27-r839-goal{top:0!important;border-top:0!important}
.fm27-r839-penalty-area-away .fm27-r839-goal{bottom:0!important;border-bottom:0!important}
.fm27-r839-teamlogo{z-index:4}
/* Preserve earlier badge positions; yellow-red is the ONLY new badge variant. */
.fm27-r8310-yellow-red{position:relative;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none;width:16px;height:16px;padding:0!important;border:0!important;background:transparent!important}
.fm27-r8310-yellow-red .fm27-r833-card{position:absolute!important;display:block!important;width:10px!important;height:13px!important;border-radius:2px!important;box-shadow:0 1px 2px #082b27}
.fm27-r8310-yellow-red .is-yellow{left:1px;bottom:0;z-index:1}
.fm27-r8310-yellow-red .is-red{right:0;top:0;z-index:2}
.fm27-r8310-yellow-red.is-small{width:15px;height:14px}
.fm27-r8310-yellow-red.is-small .fm27-r833-card{width:9px!important;height:12px!important}
/* Neutralize V10.83.9's changed event card look; revert near-portrait event appearance. */
.fm27-r833-player-events>span:not(.fm27-r8310-yellow-red){background:#173f34e3;border:1px solid #2d6b58;border-radius:4px;padding:1px 4px}
@media(max-width:700px){.fm27-r839-penalty-area{height:102px!important;width:min(200px,65%)!important}.fm27-r8310-timeline{padding:10px 8px}.fm27-r8310-trackrow{grid-template-columns:32px minmax(0,1fr);gap:4px}.fm27-r8310-time-ruler{margin-left:36px}}
/* Measured height includes borders/padding of the statistics panel. */
.fm27-r837-commentary{box-sizing:border-box!important}
