.has-match-events .match-event-player{display:list-item;min-width:0}
.has-match-events .match-event-player-line{display:flex;align-items:center;gap:6px;min-width:0}
.has-match-events .match-event-name{flex:1;min-width:0;white-space:nowrap;text-align:left;font-size:inherit}
.has-match-events .match-event-icons{display:flex;align-items:center;gap:6px;flex-shrink:0}
.has-match-events .match-event-token{display:inline-flex;position:relative;align-items:center;gap:0;flex-shrink:0;vertical-align:middle}
.has-match-events .match-event-symbol{width:12px;height:14px;flex-shrink:0}
.has-match-events .event-yellow{color:#f6c945;fill:#f6c945;stroke:#f6c945}
.has-match-events .event-red{color:#f15e68;fill:#f15e68;stroke:#f15e68}
.has-match-events .match-event-minute{font-size:9px;line-height:11px;align-self:flex-start;transform:translateY(-3px);white-space:nowrap}
.has-match-events .match-event-total{font-size:9px;line-height:10px;align-self:flex-start;transform:translateY(-3px);color:var(--org,#ff7900)}
.has-match-events .match-event-card-pair{position:relative;display:inline-block;width:15px;height:16px;flex-shrink:0}
.has-match-events .match-event-card-pair svg{position:absolute;width:12px;height:14px;left:0;top:2px}
.has-match-events .match-event-card-pair .event-red{left:3px;top:0}
.has-match-events .match-sheet-goals .match-event-token{display:grid;grid-template-columns:1fr;grid-template-rows:16px auto;justify-items:center;align-items:start;gap:2px;width:96px;min-width:96px;max-width:96px;height:auto;min-height:32px;padding:0;line-height:1}
.has-match-events .match-event-goal-minutes{grid-column:1;grid-row:2;width:100%;min-width:0;font-size:11px;line-height:1.2;white-space:nowrap;text-align:center;overflow-wrap:normal}
/* Reserve the final media gutters before asynchronous clip metadata arrives. */
body #match-sheet-modal.has-match-events .match-sheet-goals-home,
body #match-sheet-modal.has-match-events .match-sheet-goals-away{padding:0 10px}
.has-match-events .match-sheet-goals .match-event-token>.match-event-symbol{grid-column:1;grid-row:1}
.has-match-events .match-sheet-goals .sheet-goal-count.match-event-token{background:transparent;color:var(--txt,#eeeefa);border:0;font-weight:400;border-radius:0}
.has-match-events .match-sheet-goals .match-event-total{position:absolute;top:0;left:calc(50% + 6px);transform:translateY(-2px)}
body #match-sheet-modal.has-match-events .match-sheet-goals li{display:grid;grid-template-columns:minmax(0,1fr) 96px 30px;column-gap:4px;align-items:center;min-height:38px}
body #match-sheet-modal.has-match-events .sheet-goal-video{grid-column:3;justify-self:center;margin:0}
@media(max-width:600px){body #match-sheet-modal.has-match-events .match-sheet-goals li{grid-template-columns:minmax(0,1fr) 46px 26px;column-gap:4px}.has-match-events .match-sheet-goals .match-event-token{width:46px;min-width:46px;max-width:46px}.has-match-events .match-event-goal-minutes{font-size:10px}}
.has-match-events .match-event-halftime{display:flex;flex-direction:column;gap:0;margin-top:3px;font-size:11px;line-height:1.15;font-weight:400;color:var(--mut,#aaaac0);text-align:center}
.has-match-events .match-sheet-squads>div:first-child{padding-right:16px}.has-match-events .match-sheet-squads>div:last-child{padding-left:16px}
@media(max-width:600px){.has-match-events .match-event-player-line{gap:1px}.has-match-events .match-event-icons{gap:1px}.has-match-events .match-sheet-squads>div:first-child{padding-right:12px}.has-match-events .match-sheet-squads>div:last-child{padding-left:18px}}
.has-match-events .match-centre-starting-five h4{text-align:center}
/* One continuous central divider, shared by both squad blocks. */
body #match-sheet-modal.has-match-events .match-sheet-squad-section .match-sheet-squads{position:relative}
body #match-sheet-modal.has-match-events .match-sheet-squad-section .match-sheet-squads::before{content:"";display:block;position:absolute;left:50%;top:0;bottom:0;width:1px;background:#45415e;pointer-events:none;z-index:1}
body #match-sheet-modal.has-match-events .match-event-halftime{position:static!important;height:auto!important;min-height:26px;overflow:visible!important}
body #match-sheet-modal.has-match-events .match-event-halftime>span{display:block!important;position:static!important;width:auto!important;height:auto!important;min-height:12px;line-height:12px!important;font-size:11px!important;color:inherit!important;visibility:visible!important}

/* Without minutes the same ball column is vertically centered in one row. */
body #match-sheet-modal.has-match-events .match-sheet-goals li.match-goal-no-minutes{min-height:26px;align-items:center}
body #match-sheet-modal.has-match-events .match-goal-no-minutes .sheet-goal-count.match-event-token{display:flex;align-items:center;justify-content:center;height:26px;min-height:26px;align-self:center}

/* Totals float over a fixed ball slot; 2 or 3 goals never move the ball. */
.has-match-events .match-event-icons .match-event-goal{display:inline-flex;justify-content:center;width:18px;min-width:18px;max-width:18px}
.has-match-events .match-event-icons .match-event-goal>.match-event-total{position:absolute;left:calc(50% + 5px);top:0;transform:translateY(-3px);margin:0}

/* Compact mobile gutters return width to names; retain a visible central divider. */
@media(max-width:600px){body #match-sheet-modal.has-match-events .match-sheet-goals-home,body #match-sheet-modal.has-match-events .match-sheet-goals-away{padding:0 6px}}

/* Home mobile results: reserve padding inside the score, not over the club crests. */
@media(max-width:600px){
 body:not(.capacitor) .hub-match:has(> .hub-sw .hub-score.played){--hub-current-centre:56px}
 body:not(.capacitor) .hub-match .hub-sw .hub-score.played{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;padding:4px 6px!important}
}

/* Shared score header: keep the existing team buttons, hover and focus behavior. */
body #match-sheet-modal .match-sheet-score:not(.video-match-summary){display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:12px 10px!important;min-height:112px;box-sizing:border-box}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary)>.sheet-team-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;width:100%;height:100%;padding:0}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary)>.sheet-team-link>.sheet-team-name{order:0;flex:0 0 auto!important;min-height:2.4em;max-width:100%;line-height:1.2!important;text-align:center;overflow-wrap:anywhere}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary)>.sheet-team-link>.tl-wrap{order:1;flex:0 0 44px;width:44px!important;height:44px!important;margin:0!important}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary)>.sheet-team-link>.tl-wrap>.tl-img{width:100%;height:100%;object-fit:contain}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary)>strong{align-self:center;margin:0;line-height:1.1}
@media(max-width:600px){body #match-sheet-modal .match-sheet-score:not(.video-match-summary){gap:6px!important;padding:10px 8px!important;min-height:104px}body #match-sheet-modal .match-sheet-score:not(.video-match-summary)>.sheet-team-link{gap:5px}}

body #match-sheet-modal .match-centre-header .match-sheet-score:not(.video-match-summary)>.sheet-team-link>.tl-wrap{width:44px!important;height:44px!important;flex:0 0 44px!important}

/* Match the DIRETO score card appearance without replacing interactive team links. */
body #match-sheet-modal .match-sheet-score:not(.video-match-summary){background:linear-gradient(145deg,#1c0610 0%,#0a0a20 70%,var(--bg) 100%);border:1px solid var(--org,#ff7900);border-radius:10px;gap:14px!important;padding:16px 10px!important;min-height:112px}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary)>.sheet-team-link{gap:8px}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary)>.sheet-team-link>.tl-wrap{background:transparent;border:0;box-shadow:none;border-radius:0}
body #match-sheet-modal .match-centre-header .match-sheet-score:not(.video-match-summary)>strong{font-size:30px!important}
body #match-sheet-modal .match-centre-header .match-sheet-score:not(.video-match-summary)>.sheet-team-link>.sheet-team-name{font-size:15px!important}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary) .match-event-halftime{margin-top:2px;font-size:12px;line-height:1.3}
body #match-sheet-modal .match-sheet-score:not(.video-match-summary) .match-event-halftime>span{font-size:12px!important;line-height:15px!important;min-height:15px}
@media(max-width:480px){body #match-sheet-modal .match-sheet-score:not(.video-match-summary){gap:8px!important}body #match-sheet-modal .match-centre-header .match-sheet-score:not(.video-match-summary)>strong{font-size:26px!important}body #match-sheet-modal .match-centre-header .match-sheet-score:not(.video-match-summary)>.sheet-team-link>.sheet-team-name{font-size:13px!important}}

/* Native score panels stack the recorded halftime beneath the main score. */
body.capacitor #match-sheet-modal .match-sheet-score:not(.video-match-summary)>strong{flex-direction:column;gap:2px}
