/* Shared favorite control: outline unsaved, amber filled saved. */
body .favorite-star{--favorite-size:32px;position:static;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 var(--favorite-size)!important;width:var(--favorite-size)!important;height:var(--favorite-size)!important;min-height:var(--favorite-size)!important;padding:7px!important;margin:0;border:0!important;border-radius:50%!important;background:transparent!important;color:#9da6a9!important;vertical-align:middle;cursor:pointer;transition:color .15s,background-color .15s}
body .favorite-star svg{display:block;width:18px!important;height:18px!important;flex:0 0 18px!important;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
body .favorite-star.is-saved{color:#efbf59!important}body .favorite-star.is-saved svg{fill:currentColor}
body .favorite-star:hover{color:#efbf59!important;background:#ffffff0b!important}body .favorite-star:focus-visible{outline:2px solid #efbf59;outline-offset:2px}
body .fv-profile-title,.cp-title-row{display:flex;align-items:center;gap:8px}
body .cp-title-row .favorite-star{align-self:center}
body .lm-match-top>.favorite-star{justify-self:end}
body .sp-fotmob .sp-bio .favorite-star{position:static!important}
body .sp-follow-slot{margin-left:auto;align-self:flex-start;padding:0!important}
body .sp-bio header>div:has(h1){min-width:0}
body .tp-follow,.team-hero-actions{margin-left:auto;align-self:flex-start}
body .catalog-team-card,body .player-card,body .match-hero{position:relative}
body .catalog-team-card>.favorite-star,body .player-card>.favorite-star{position:absolute;top:10px;right:10px}
body .match-hero-footer>.favorite-star{position:absolute;top:14px;right:14px}
body .match-hero-label{padding-right:36px}
body .fv-star-row .favorite-star,body .sc-event>.favorite-star{--favorite-size:28px}
body .sc-event>.favorite-star{margin-left:4px}
body .fv-row,body .tournament-list-row{display:flex;align-items:center;gap:8px}
body .fv-row>.favorite-star,body .tournament-list-row>.favorite-star{margin-left:auto}
@media(max-width:600px){body .favorite-star{--favorite-size:36px}body .fv-star-row .favorite-star,body .sc-event>.favorite-star{--favorite-size:32px}}

/* Card titles carry navigation; footers are reserved for concise information. */
.sc-clickable-card{cursor:pointer}.sc-clickable-card:focus-visible{outline:2px solid #9da6a9;outline-offset:3px}
.card-title-action{border:0!important;background:none!important;padding:0!important;margin:0!important;color:inherit!important;font:inherit!important;text-align:inherit;cursor:pointer}
.card-title-action:hover,.sc-clickable-card h2>a:hover{color:#fff!important}
.card-stage-legend.rt-legend{padding:12px 0 2px;gap:7px 12px;font-size:10px;line-height:1.5;cursor:inherit}
.card-stage-legend.rt-legend li{gap:5px;white-space:nowrap}.card-stage-legend.rt-legend i{width:5px;height:5px;flex:none}

/* Minimal replay fullscreen affordance remains available on Overview. */
body .lr-shell{position:relative}body .lr-shell>.lr-expand{display:flex!important;position:absolute!important;top:8px!important;right:8px!important;z-index:20;align-items:center;justify-content:center;width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important;border:0!important;border-radius:6px!important;background:#171c20b3!important;color:#c5cdd1!important;cursor:pointer}
body .lr-shell>.lr-expand svg{width:17px;height:17px}body .lr-shell>.lr-expand:hover{background:#31393e!important;color:#fff!important}body .lr-shell>.lr-expand:focus-visible{outline:2px solid #78b7ef;outline-offset:2px}
.lm-replay-overview .lr-shell{cursor:pointer}.lr-shell:fullscreen{cursor:default}

/* Match headers use equal, regular weight for both score values. */
body :is(.lm-match-final,.lm-header .lm-result,.match-hero .match-central) .bs-score-number,body :is(.lm-match-final,.lm-header .lm-result,.match-hero .match-central) .bs-score-number.bs-score-winner,body .lm-header-map b,body .lm-header-map b.is-winner{font-weight:400!important}


/* Keep the Overview replay and its controls inside the fullscreen viewport. */
.lm-liquid-match.ml-replay-first .lm-replay-overview .lr-shell:fullscreen{height:100dvh;overflow:auto}
.lm-liquid-match.ml-replay-first .lm-replay-overview .lr-shell:fullscreen .lr-body{width:min(100%,calc(100dvh + 160px));max-width:none;grid-template-columns:160px minmax(0,1fr) 160px;margin:0 auto}
.lm-liquid-match.ml-replay-first .lm-replay-overview .lr-shell:fullscreen .lr-stage{justify-content:center}
.lm-liquid-match.ml-replay-first .lm-replay-overview .lr-shell:fullscreen .lr-stage canvas{width:auto!important;height:min(calc(100dvh - 190px),calc(100vw - 360px))!important;max-width:100%!important;max-height:calc(100dvh - 190px)!important;aspect-ratio:1!important}
.lm-liquid-match.ml-replay-first .lm-replay-overview .lr-shell:fullscreen .lr-replay-navigation{max-width:min(100%,calc(100dvh + 160px));margin:0 auto}
@media(max-width:600px){.lm-liquid-match.ml-replay-first .lm-replay-overview .lr-shell:fullscreen .lr-body{grid-template-columns:1fr 1fr}.lm-liquid-match.ml-replay-first .lm-replay-overview .lr-shell:fullscreen .lr-stage canvas{height:min(calc(100dvh - 240px),96vw)!important;max-height:calc(100dvh - 240px)!important}}
