/* Shared Home and team scoreboard layout. Load after page styles. */
.ecfhl-scoreboard{border:1px solid #cbdde9;border-radius:18px;box-shadow:none;overflow:hidden;margin-bottom:10px}
.ecfhl-scoreboard[open]{border-width:1px;box-shadow:0 0 0 2px rgba(37,99,235,.15)}
.ecfhl-scoreboard .team-live-matchup-summary{display:grid;position:relative;min-width:0;list-style:none;padding:16px 30px 16px 16px!important;gap:12px!important;background:var(--selection-bg)!important;align-items:center;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)}
.ecfhl-scoreboard .team-live-side{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:16px!important;min-width:0}
.ecfhl-scoreboard .team-live-side-right{flex-direction:row-reverse!important;text-align:right}
.ecfhl-scoreboard .team-live-name-row{display:flex;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start;gap:6px;min-width:0;min-height:0!important}
.ecfhl-scoreboard .team-live-side-right .team-live-name-row{flex-direction:column!important;align-items:flex-end!important;text-align:right}
.ecfhl-scoreboard .team-live-name-row a{display:block;order:0!important;text-decoration:none}
.ecfhl-scoreboard .team-live-name-row .team-live-logo{order:1!important;flex-shrink:0!important;flex-basis:auto!important}
.ecfhl-scoreboard .team-live-name-row a{font-size:15px!important;line-height:1.3!important;font-weight:900;color:var(--text);white-space:normal;overflow-wrap:anywhere}
.ecfhl-scoreboard .team-live-logo{width:64px!important;height:64px!important;flex:0 0 64px!important;border:0;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0}
.ecfhl-scoreboard .team-live-logo img{display:block;width:100%;height:100%;object-fit:contain}
.ecfhl-scoreboard .team-live-body{display:flex!important;min-height:0!important;padding:0!important;gap:0!important;flex:0 0 auto;min-width:0;align-items:center!important;align-self:flex-start!important;margin-top:4px!important}
.ecfhl-scoreboard .team-live-scores{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:8px!important;margin:0!important;white-space:nowrap}
.ecfhl-scoreboard .team-live-weekly{order:-1}
.ecfhl-scoreboard .team-live-side-right .team-live-weekly{order:1}
.ecfhl-scoreboard .team-live-score{display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;transform:none!important}
.ecfhl-scoreboard .team-live-scores .team-live-weekly strong{font-size:40px!important;line-height:1!important;font-weight:900!important;font-variant-numeric:tabular-nums;color:var(--text)}
.ecfhl-scoreboard .team-live-scores .team-live-today strong{font-size:24px!important;line-height:1.1!important;font-weight:800;font-variant-numeric:tabular-nums;color:var(--text)}
.ecfhl-scoreboard .team-live-score small{font-size:8px!important;line-height:1.2!important;letter-spacing:.04em;margin:0!important;color:var(--muted);order:1;text-transform:uppercase;font-weight:800}
.ecfhl-scoreboard .team-live-vs{margin:6px 0 0!important;padding:0!important;font-size:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--muted);align-self:start;font-weight:900}
.ecfhl-scoreboard .team-live-chevron{right:10px;color:var(--muted)}
html[data-theme="dark"] .ecfhl-scoreboard{border-color:#2a4566!important;box-shadow:none!important}
html[data-theme="dark"] .ecfhl-scoreboard .team-live-matchup-summary{background:var(--selection-bg)!important}
@media(max-width:700px){
 .ecfhl-scoreboard .team-live-matchup-summary{padding:12px 22px 12px 10px!important;gap:6px!important;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);grid-template-rows:auto auto}
 .ecfhl-scoreboard .team-live-side,.ecfhl-scoreboard .team-live-side-right{display:grid!important;grid-template-columns:56px minmax(0,1fr);grid-template-rows:subgrid;grid-row:1 / span 2;align-items:start!important;align-self:stretch!important;gap:6px!important}
 .ecfhl-scoreboard .team-live-side{grid-column:1}
 .ecfhl-scoreboard .team-live-side-right{grid-column:3;grid-template-columns:minmax(0,1fr) 56px}
 .ecfhl-scoreboard .team-live-name-row{display:contents!important}
 .ecfhl-scoreboard .team-live-name-row a{grid-column:1 / -1;grid-row:1;font-size:12px!important;display:block!important;min-width:0;max-width:100%;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important}
 .ecfhl-scoreboard .team-live-logo{grid-column:1;grid-row:2;width:56px!important;height:56px!important}
 .ecfhl-scoreboard .team-live-side-right .team-live-logo{grid-column:2;justify-self:end}
 .ecfhl-scoreboard .team-live-body{grid-column:2;grid-row:2;justify-content:flex-end!important;margin-top:0!important}
 .ecfhl-scoreboard .team-live-side-right .team-live-body{grid-column:1;justify-content:flex-start!important}
 .ecfhl-scoreboard .team-live-scores .team-live-weekly strong{font-size:36px!important}
 .ecfhl-scoreboard .team-live-scores .team-live-today strong{font-size:22px!important}
 .ecfhl-scoreboard .team-live-vs{grid-column:2;grid-row:2;align-self:start;margin:4px 0 0!important}
}
@media(max-width:380px){
 .ecfhl-scoreboard .team-live-side{grid-template-columns:48px minmax(0,1fr)}
 .ecfhl-scoreboard .team-live-side-right{grid-template-columns:minmax(0,1fr) 48px}
 .ecfhl-scoreboard .team-live-logo{width:48px!important;height:48px!important}
 .ecfhl-scoreboard .team-live-scores{gap:4px!important}
 .ecfhl-scoreboard .team-live-scores .team-live-weekly strong{font-size:32px!important}
 .ecfhl-scoreboard .team-live-scores .team-live-today strong{font-size:20px!important}
 .ecfhl-scoreboard .team-live-score small{font-size:7px!important}
}



@media(min-width:701px){
 .ecfhl-scoreboard .team-live-side,.ecfhl-scoreboard .team-live-side-right{display:grid!important;grid-template-columns:64px minmax(0,1fr);gap:6px 10px!important}
 .ecfhl-scoreboard .team-live-name-row{display:contents!important}
 .ecfhl-scoreboard .team-live-name-row a{grid-column:1 / -1;grid-row:1;display:block!important;min-width:0;max-width:100%;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important}
 .ecfhl-scoreboard .team-live-logo{grid-column:1;grid-row:2}
 .ecfhl-scoreboard .team-live-body{grid-column:2;grid-row:2;justify-self:end;align-self:start!important}
 .ecfhl-scoreboard .team-live-side-right{grid-template-columns:minmax(0,1fr) 64px}
 .ecfhl-scoreboard .team-live-side-right .team-live-logo{grid-column:2;justify-self:end}
 .ecfhl-scoreboard .team-live-side-right .team-live-body{grid-column:1;justify-self:start}
}

/* Seven collapsed matchups fit a typical desktop viewport; expanded rosters flow normally. */
/* Ranks stay with the names; records occupy the inside corner above the scores. */
.current-teams-page .ecfhl-scoreboard .team-live-matchup-summary{grid-template-rows:auto auto auto}
.current-teams-page .ecfhl-scoreboard .team-live-side{grid-template-rows:subgrid;grid-row:1 / span 3;align-self:stretch!important}
.current-teams-page .ecfhl-scoreboard .team-live-name-row a{display:flex!important;align-items:baseline;gap:4px}
.current-teams-page .ecfhl-scoreboard .team-live-side-right .team-live-name-row a{justify-content:flex-end}
.current-teams-page .team-live-team-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.current-teams-page .team-live-rank{flex-shrink:0;font-size:.85em;font-weight:700}
.current-teams-page .team-live-record{grid-column:2;grid-row:2;justify-self:end;font-size:10px;line-height:1.2;font-weight:700;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.current-teams-page .team-live-side-right .team-live-record{grid-column:1;justify-self:start}
.current-teams-page .ecfhl-scoreboard .team-live-logo{grid-row:2 / span 2}
.current-teams-page .ecfhl-scoreboard .team-live-body{grid-row:3;margin-top:0!important}
.current-teams-page .ecfhl-scoreboard .team-live-vs{grid-column:2;grid-row:3}

.compact-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.compact-page-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;font-size:12px}
.compact-page-links a{display:inline-flex;align-items:center;gap:5px;text-decoration:none}
.page-date-badge{padding:5px 10px;border:1px solid var(--line);border-radius:20px;font-size:11px;white-space:nowrap}
.compact-page-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);padding:8px 0}
.compact-page-footer p{margin:0}
.current-teams-head{padding:6px 0!important}
@media(min-width:901px){
 .current-teams-head h1{font-size:27px}
 .current-teams-head .eyebrow{font-size:10px;margin-bottom:3px}
 .current-teams-page .team-toolbar{margin:0 0 5px}
 .current-teams-page .matchup-period-label{margin:3px 0 5px}
 .current-teams-page .current-matchup-list{gap:5px;margin-bottom:0}
 .current-teams-page .ecfhl-scoreboard{border-radius:10px;margin-bottom:0}
 .current-teams-page .ecfhl-scoreboard .team-live-matchup-summary{padding:6px 28px 6px 12px!important;gap:6px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-side{grid-template-columns:36px minmax(0,1fr);gap:2px 8px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-side-right{grid-template-columns:minmax(0,1fr) 36px}
 .current-teams-page .ecfhl-scoreboard .team-live-logo{width:36px!important;height:36px!important;flex-basis:36px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-name-row a{font-size:13px!important;line-height:16px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-body{margin-top:0!important}
 .current-teams-page .ecfhl-scoreboard .team-live-scores .team-live-weekly strong{font-size:30px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-scores .team-live-today strong{font-size:20px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-score{gap:1px!important}
}

/* Records stay above scores; game counts sit below each team logo. */
.current-teams-page .ecfhl-scoreboard .team-live-matchup-summary{grid-template-rows:auto auto auto auto}
.current-teams-page .ecfhl-scoreboard .team-live-side{grid-row:1 / span 4}
.current-teams-page .team-live-meta{display:contents}
.current-teams-page .team-live-games{grid-column:1 / -1;grid-row:4;justify-self:start;display:flex;gap:6px;font-size:11px;line-height:15px;font-weight:700;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
.current-teams-page .team-live-side-right .team-live-games{justify-self:end}
.current-teams-page .team-live-games-live{color:#075985;font-weight:800}
html[data-theme="dark"] .current-teams-page .team-live-games-live{color:#7dd3fc}
.current-teams-page .ecfhl-scoreboard .team-live-logo{grid-row:3;width:44px!important;height:44px!important;align-self:center}
@media(min-width:901px){.current-teams-page .ecfhl-scoreboard .team-live-logo{width:36px!important;height:36px!important}}
@media(max-width:380px){.current-teams-page .team-live-games{font-size:10px;gap:5px}}

/* Tighter collapsed cards on phones and tablets; retain readable scores and counts. */
@media(max-width:900px){
 .current-teams-page .current-matchup-list{gap:8px}
 .current-teams-page .ecfhl-scoreboard{margin-bottom:0;border-radius:12px}
 .current-teams-page .ecfhl-scoreboard .team-live-matchup-summary{padding:7px 12px 7px 8px!important;gap:2px 6px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-side{gap:2px 6px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-name-row a{line-height:1.2!important}
 .current-teams-page .ecfhl-scoreboard .team-live-logo{width:36px!important;height:36px!important;flex-basis:36px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-scores{gap:6px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-score{gap:1px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-scores .team-live-weekly strong{font-size:32px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-scores .team-live-today strong{font-size:20px!important}
 .current-teams-page .team-live-games{line-height:14px}
}

/* Match logo height to the record, score and Weekly label together. */
.current-teams-page .ecfhl-scoreboard .team-live-logo{grid-row:2 / span 2;width:56px!important;height:56px!important;flex-basis:56px!important;align-self:center}
.current-teams-page .ecfhl-scoreboard .team-live-side{grid-template-columns:56px minmax(0,1fr)}
.current-teams-page .ecfhl-scoreboard .team-live-side-right{grid-template-columns:minmax(0,1fr) 56px}
@media(min-width:901px){
 .current-teams-page .ecfhl-scoreboard .team-live-logo{width:52px!important;height:52px!important;flex-basis:52px!important}
 .current-teams-page .ecfhl-scoreboard .team-live-side{grid-template-columns:52px minmax(0,1fr)}
 .current-teams-page .ecfhl-scoreboard .team-live-side-right{grid-template-columns:minmax(0,1fr) 52px}
}
