/* M12C-UI — Match Center visual refresh for /matches/{publicId}. Dedicated `mc-` prefixed classes
   throughout, deliberately never reusing/restyling .detail-panel/.match-identity/.box-score etc. — those
   were shared with the still-mock teamDetail()/playerDetail() at the time. Uses the existing design
   tokens (--orange/--line/--paper/--radius-card/--shadow-card) for site-wide consistency, plus one new
   token, --mc-black, for the Match Center hero's own near-black background (deliberately NOT --navy,
   which is navy-blue and used site-wide already).
   M12D — real Team/Player pages now intentionally reuse this SAME design language (the milestone brief
   explicitly asks Team/Player to "clearly feel like one KKL product" with Match Center, not become a
   third, unrelated mini design system): `.mc-section`/`.mc-hero`/`--mc-black`/tabular-numeral stat rows
   are shared as-is; only what's genuinely new (a single-team hero without a scoreboard, roster cards,
   a player game-log table) gets its own `tc-`/`pc-` prefixed classes below. */
:root{--mc-black:#0b0e13;--mc-black-soft:#161b22}
.match-center{margin-bottom:24px}
.mc-hero{background:var(--mc-black);color:#fff;border-radius:var(--radius-card);padding:22px 26px 26px;box-shadow:var(--shadow-card)}
/* GameCenter only: one dark scoreboard for pre-game, LIVE and FINAL. Team/player heroes keep .mc-hero. */
.mc-game-hero{background:#0e0f12;color:#fff;border-radius:var(--radius-card);padding:20px 28px 23px;box-shadow:0 12px 30px #0e0f1217}
.mc-game-meta{margin:0 0 8px;color:#aeb2bb;text-align:center;font-size:11px;font-weight:500;line-height:1.45}
.mc-game-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,auto) minmax(0,1fr);align-items:center;gap:16px;max-width:980px;margin:0 auto}
.mc-game-team{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;padding:3px 7px;border-radius:10px;color:inherit;text-align:center;text-decoration:none;transition:background .16s ease}
.mc-game-team:hover{background:#ffffff12}
.mc-game-team:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.mc-game-logo{display:grid;place-items:center;flex:0 0 92px;width:92px;height:92px;overflow:hidden;border-radius:50%;background:#fff;color:#20242c;font-size:22px;font-weight:800;box-shadow:0 4px 18px #0004}
.mc-game-logo img{width:64px;height:64px;object-fit:contain}
.mc-game-team-name{max-width:24ch;font-size:clamp(14px,1.45vw,18px);font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.mc-game-center{text-align:center;min-width:0}
.mc-game-score{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;font-size:clamp(56px,5vw,64px);font-weight:700;line-height:1;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.mc-score-value{font-weight:700}
.mc-game-hero--final .mc-score-value--loser{font-weight:400;color:#e2e3e6}
.mc-game-hero--final .mc-score-value--winner{font-weight:700}
.mc-score-divider{font-weight:400;color:#8f929b}
.mc-game-time{display:block;font-size:clamp(50px,5vw,60px);font-weight:700;line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.mc-game-status{display:flex;align-items:center;justify-content:center;gap:7px;min-height:20px;margin:8px 0 0;color:#c8cbd1;font-size:11px;font-weight:650;letter-spacing:.05em;text-align:center}
.mc-game-status--live{color:#ff995c;font-weight:800}
.mc-live-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 0 #f47a3680;animation:mc-live-pulse 2s ease-out infinite}
@keyframes mc-live-pulse{50%{box-shadow:0 0 0 5px #f47a3600}}
@media(prefers-reduced-motion:reduce){.mc-live-dot{animation:none}}

/* filterTabs is shared; every override here is GameCenter-scoped. */
.mc-game-tabs{margin:0 0 20px;padding:0 20px;background:#fff;border-bottom:1px solid #e2e4e8}
.mc-game-tabs .filter-tabs{display:flex;flex-wrap:nowrap;gap:28px;overflow-x:auto;margin:0;scrollbar-width:none}
.mc-game-tabs .filter-tabs::-webkit-scrollbar{display:none}
.mc-game-tabs .filter-tabs button{position:relative;flex:0 0 auto;min-height:48px;padding:12px 2px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#737984;font-size:12px;font-weight:650;white-space:nowrap;transition:color .16s ease}
.mc-game-tabs .filter-tabs button:hover{background:transparent;color:#20242b}
.mc-game-tabs .filter-tabs button[aria-pressed=true]{background:transparent;box-shadow:none;color:#15191f}
.mc-game-tabs .filter-tabs button[aria-pressed=true]:after{content:'';position:absolute;right:0;bottom:0;left:0;height:4px;border-radius:3px 3px 0 0;background:var(--orange)}
.mc-game-tabs .filter-tabs button:focus-visible{outline:2px solid var(--orange);outline-offset:-3px}
.mc-tab-panel{--home-club-color:#F47A36;--away-club-color:#F47A36;display:flex;flex-direction:column;gap:18px}

.mc-section{background:#fff;border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--space-panel,24px)}
.mc-section h2{font-size:16px;margin-bottom:16px}

/* Period score table */
.mc-period-table{width:100%;border-collapse:collapse;font-size:13px}
.mc-period-table th,.mc-period-table td{padding:10px 8px;text-align:center;border-bottom:1px solid var(--line)}
.mc-period-table th:first-child,.mc-period-table td:first-child{text-align:left;font-weight:700}
.mc-period-table thead th{font-size:10px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.mc-period-table td{font-variant-numeric:tabular-nums}
.mc-period-table td:last-child,.mc-period-table th:last-child{font-weight:800}
.mc-period-table .table-rail{overflow-x:auto}

/* GameCenter Overview is one white information surface below the scoreboard. */
.mc-overview-score{padding-block:16px;border-color:#e9ebee;box-shadow:none}
.mc-overview-score h2{margin-bottom:8px}
.mc-overview-score .mc-period-table tbody tr:last-child>*{border-bottom:0}
.mc-overview-score .mc-period-table td:last-child{color:#b94920;font-size:17px}
.mc-oncourt,.mc-overview-leaders,.mc-overview-top,.mc-overview-comparison{background:#fff;padding:18px 20px;border-bottom:1px solid #e9ebee;min-width:0}
.mc-oncourt h2,.mc-overview-leaders h2,.mc-overview-top h2,.mc-overview-comparison h2{margin:0 0 12px;font-size:16px}
.mc-overview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.mc-overview-heading h2{margin-bottom:12px}
.mc-overview-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:18px;align-items:start;min-width:0}
.mc-overview-grid>.mc-section{min-width:0}
.mc-overview-grid h2{margin-bottom:10px}
.mc-overview-team-head{display:flex;justify-content:space-between;gap:14px;padding:0 0 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:700;line-height:1.35}
.mc-overview-team-head span{min-width:0;max-width:43%;overflow-wrap:anywhere}
.mc-overview-team-head span:last-child{text-align:right}
.mc-overview-leader-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(88px,122px) minmax(0,1fr);align-items:center;gap:10px;min-height:54px;border-bottom:1px solid #edf0f2}
.mc-overview-leader-row:last-child,.mc-overview-compare-row:last-child{border-bottom:0}
.mc-overview-side{display:flex;align-items:center;gap:7px;min-width:0}
.mc-overview-side--away{flex-direction:row-reverse;text-align:right}
.mc-overview-avatar{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#f4ebe6;color:#a84924;font-size:8px;font-weight:700}
.mc-overview-avatar img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:contain;object-position:center bottom}
.mc-overview-player{min-width:0;color:inherit;font-size:11px;font-weight:600;line-height:1.25;text-decoration:none;overflow-wrap:anywhere}
.mc-overview-player:hover{color:#ad4318;text-decoration:underline;text-underline-offset:2px}
.mc-overview-player:focus-visible{outline:2px solid #bd4b1d;outline-offset:3px;border-radius:2px}
.mc-overview-value{flex:0 0 auto;color:#a8431e;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}
.mc-overview-metric{text-align:center;color:var(--muted);font-size:10px;font-weight:700;line-height:1.25}
.mc-overview-missing{color:var(--muted)}
.mc-overview-comparison-inner{width:100%;max-width:680px;margin-inline:auto}
.mc-overview-compare-row{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:4px;min-height:56px;padding:5px 0;border-bottom:1px solid #edf0f2;text-align:center}
.mc-overview-compare-row strong{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}
.mc-overview-compare-row span{color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.03em}
.mc-overview-bars{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 42px}
.mc-overview-bar-track{height:5px;border-radius:6px;background:#eaedf0;overflow:hidden}
.mc-overview-bar-track--home{display:flex;justify-content:flex-end}
.mc-overview-bar{display:block;height:100%;border-radius:6px;background:color-mix(in srgb,var(--home-club-color) 55%,#47505b)}
.mc-overview-bar--away{background:color-mix(in srgb,var(--away-club-color) 55%,#47505b)}
.mc-overview-bar--0{width:0}.mc-overview-bar--1{width:10%}.mc-overview-bar--2{width:20%}.mc-overview-bar--3{width:30%}.mc-overview-bar--4{width:40%}.mc-overview-bar--5{width:50%}.mc-overview-bar--6{width:60%}.mc-overview-bar--7{width:70%}.mc-overview-bar--8{width:80%}.mc-overview-bar--9{width:90%}.mc-overview-bar--10{width:100%}
.mc-top-all{border:0;background:none;color:#aa431c;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.mc-top-all:hover{text-decoration:underline;text-underline-offset:3px}
.mc-top-all:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.mc-top-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.mc-top-team{min-width:0}
.mc-top-team h3,.mc-oncourt-team h3{margin:0 0 8px;padding-bottom:8px;border-bottom:3px solid color-mix(in srgb,var(--home-club-color) 55%,#47505b);font-size:13px;font-weight:700}
.mc-top-team--away h3,.mc-oncourt-team--away h3{border-bottom-color:color-mix(in srgb,var(--away-club-color) 55%,#47505b)}
.mc-overview-team-identity{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.mc-overview-team-identity img,.mc-overview-team-fallback{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;object-fit:contain;background:#fff;font-size:10px}
.mc-top-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}
.mc-top-table th,.mc-top-table td{padding:10px 5px;text-align:center;line-height:1.3;font-variant-numeric:tabular-nums}
.mc-top-table th:nth-child(2){width:32%;text-align:left}
.mc-top-table td:first-child{width:30px}
.mc-top-table thead{color:var(--muted);font-size:10px}
.mc-top-table tbody tr:nth-child(even){background:#f7f8f9}
.mc-top-table tbody tr+tr{border-top:1px solid #edf0f2}
.mc-top-player-link{color:inherit;text-decoration:none;overflow-wrap:anywhere}
.mc-top-player-thumb,.mc-box-player-thumb{display:inline-flex;align-items:flex-end;justify-content:center;flex:none;width:24px;height:27px;margin-right:6px;overflow:hidden;border-radius:5px;background:#eef1f3;vertical-align:middle}
.mc-top-player-thumb img,.mc-box-player-thumb img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.mc-top-player-thumb{width:20px;height:23px;margin-right:4px}
.mc-top-player-link:hover{text-decoration:underline;text-underline-offset:2px}
.mc-top-player-link:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.mc-top-table tbody td:last-child{font-weight:800}
.mc-overview-side--home .mc-overview-avatar{border:1px solid var(--home-club-color)}
.mc-overview-side--away .mc-overview-avatar{border:1px solid var(--away-club-color)}
.mc-stat-higher:after{content:"";display:block;width:22px;height:3px;margin:4px auto 0;border-radius:2px;background:var(--home-club-color)}
.mc-stat-higher--away:after{background:var(--away-club-color)}
@media(max-width:850px){.mc-overview-grid,.mc-top-grid{grid-template-columns:1fr}}
@media(max-width:767px){
  .mc-overview-score{padding-block:14px}
  .mc-overview-score .mc-period-table{min-width:440px}
  .mc-overview-grid{gap:14px}
  .mc-overview-leader-row{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);gap:5px;min-height:62px}
  .mc-overview-avatar{display:none}
  .mc-overview-player{font-size:10px}
  .mc-overview-value{font-size:16px}
  .mc-overview-metric{font-size:9px}
  .mc-oncourt,.mc-overview-leaders,.mc-overview-top,.mc-overview-comparison{padding:16px 12px}
  .mc-top-wide{display:none}
  .mc-top-table th,.mc-top-table td{padding:9px 3px}
  .mc-top-table th:nth-child(2){width:42%}
  .mc-overview-bars{margin:0 35px}
}

/* Team statistics comparison */
/* Team names get their own flexible columns (never the numeric rows' fixed 64px, which squished a
   longer real team name like "Kelių priežiūra" or "BC „Pilėnai“" instead of wrapping it) — each side
   can wrap onto two lines rather than overflow or truncate. */
.mc-compare-header{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:12px;margin-bottom:10px;font-size:13px;font-weight:700}
.mc-compare-header strong{text-align:center;overflow-wrap:break-word;line-height:1.25}
.mc-compare-row{display:grid;grid-template-columns:64px 1fr 64px;align-items:center;gap:12px;padding:10px 0}
.mc-compare-row+.mc-compare-row{border-top:1px solid var(--line)}
.mc-compare-value{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;text-align:center}
.mc-compare-label{font-size:11px;color:var(--muted);text-align:center;text-transform:uppercase;letter-spacing:.4px}

/* Player box score — same horizontal-scroll/sticky-first-column mechanism as the shared .box-score,
   duplicated under a dedicated class so this milestone can add columns without affecting team/player pages. */
/* Local-only GameCenter preview banner (see details.js's previewBanner()) — only ever rendered for the
   two fixed local preview sentinel ids, never for a real game. */
.mc-preview-banner{background:#fff3cd;color:#7a5b00;border:1px solid #f0d78c;border-radius:8px;padding:10px 14px;margin-bottom:14px;font-size:13px;font-weight:700}
.mc-preview-banner--live{background:#ffe3cf;color:#8a3a00;border-color:#f3b083}
.mc-box-score-wrap{min-width:0;max-width:100%}
.mc-box-score-wrap+.mc-box-score-wrap{margin-top:22px}
.mc-box-team-header{position:relative;display:flex;align-items:center;gap:10px;min-height:58px;padding:8px 14px;margin-bottom:8px;border:1px solid var(--line);border-radius:7px;background:#fff}
.mc-box-team-header::after{position:absolute;bottom:-1px;left:14px;width:76px;height:3px;border-radius:3px;background:var(--home-club-color,var(--orange));content:""}
.mc-box-team-header--away::after{background:var(--away-club-color,var(--orange))}
.mc-box-team-header img{width:40px;height:40px;object-fit:contain;flex:0 0 40px}
.mc-box-team-header h3{min-width:0;margin:0;font-size:16px;font-weight:750;line-height:1.2}
.mc-box-team-score{margin-left:auto;padding-left:12px;font-size:23px;font-weight:750;font-variant-numeric:tabular-nums;color:#20242b}
.mc-box-score-wrap>.table-rail{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.mc-box-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1650px;font-size:13px;table-layout:auto}
.mc-box-table th,.mc-box-table td{height:54px;padding:7px 9px;border-bottom:1px solid #e9ecef;text-align:center;white-space:nowrap}
.mc-box-table th:nth-child(2),.mc-box-table td:nth-child(2){text-align:left;min-width:206px;max-width:none;white-space:nowrap}
.mc-box-table td:first-child{width:3em;color:#525b65;font-weight:650}
.mc-box-table thead{background:#f7f8f9;font-size:11px;color:#66707a;text-transform:uppercase}
.mc-box-table thead tr:not(.mc-box-groups) th{height:38px;font-weight:650;letter-spacing:.025em}
.mc-box-table thead .mc-box-groups th{height:26px;padding-block:3px;border-bottom:1px solid #dce3e8;color:#68727c;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.mc-box-table .mc-box-group-start,.mc-box-table tbody :is(th,td):nth-child(5),.mc-box-table tbody td:nth-child(7),.mc-box-table tbody td:nth-child(9),.mc-box-table tbody td:nth-child(11),.mc-box-table tbody td:nth-child(13),.mc-box-table tbody td:nth-child(16){border-left:1px solid #dfe5e9}
.mc-box-table td{font-variant-numeric:tabular-nums}
.mc-box-table tbody tr:nth-child(even){background:#f7f7f7}
.mc-box-table tbody tr:hover{background:#fff5ed}
.mc-box-table tbody .mc-box-key{color:#20242b;font-size:14px;font-weight:750}
.mc-box-table .table-player{min-height:0;max-width:none;white-space:nowrap;text-decoration:none;font-size:13px;font-weight:650}
.mc-box-table .table-player:hover{text-decoration:underline;text-underline-offset:2px;color:#a7431d}
.mc-box-table .table-player:focus-visible{outline:2px solid #b94b1e;outline-offset:2px}
.mc-starter-badge{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;border:1px solid #cbd1d5;border-radius:4px;background:#fff;color:#59636c;font-size:9px;font-weight:750;vertical-align:middle}
.mc-box-table .mc-box-dnp{color:#78818a;background:#fafafa}
.mc-box-table .mc-box-dnp td:last-child{text-align:left;font-size:12px;font-weight:600}
.mc-box-table .mc-box-dnp .table-player{color:#65707a}
.mc-box-table .mc-box-totals{font-weight:700;background:#eef1f2!important}
.mc-box-table .mc-box-totals :is(th,td){border-top:2px solid #cbd2d7}
/* Single-feed GameCenter PBP. Provider order and labels remain untouched; this is display hierarchy. */
.mc-pbp-section{box-shadow:none}
.mc-pbp-section>h2,.mc-pbp-filters,.mc-pbp-list,.mc-pbp-more{max-width:900px;margin-inline:auto}
.mc-pbp-filters{margin-bottom:16px;overflow-x:auto;scrollbar-width:none}
.mc-pbp-filters::-webkit-scrollbar{display:none}
.mc-pbp-filters .filter-tabs{display:flex;flex-wrap:nowrap;width:max-content;gap:3px;margin:0;padding:3px;border-radius:8px;background:#f1f3f5}
.mc-pbp-filters .filter-tabs button{flex:0 0 auto;min-width:48px;min-height:38px;padding:7px 12px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#626b75;font-size:11px;font-weight:700}
.mc-pbp-filters .filter-tabs button:hover{background:#e5e8eb;color:#172029}
.mc-pbp-filters .filter-tabs button[aria-pressed=true]{background:#20242b;box-shadow:none;color:#fff}
.mc-pbp-filters .filter-tabs button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.mc-pbp-list{list-style:none;padding:0}
.mc-pbp-row{display:grid;grid-template-columns:52px 34px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:70px;padding:9px 12px;margin:3px 0;border-bottom:1px solid #eceff1;border-radius:7px;font-size:12px}
.mc-pbp-time{display:flex;flex-direction:column;gap:2px;align-self:center;font-variant-numeric:tabular-nums}
.mc-pbp-period{font-size:10px;font-weight:800;color:#ad491e;text-transform:uppercase}
.mc-pbp-clock{color:var(--muted);font-size:11px}
.mc-pbp-marker{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:#f0f2f4;color:#52606c;font-size:10px;font-weight:800}
.mc-pbp-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.mc-pbp-actor{font-size:12px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.mc-pbp-action{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.mc-pbp-result{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:40px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mc-pbp-points{font-size:14px;font-weight:800}
.mc-pbp-score{font-size:11px;font-weight:700;color:#52606c}
.mc-pbp-row--score{background:#b94118;border-bottom-color:#b94118;color:#fff}
.mc-pbp-row--score .mc-pbp-period,.mc-pbp-row--score .mc-pbp-clock,.mc-pbp-row--score .mc-pbp-score{color:#fff}
.mc-pbp-row--score .mc-pbp-marker{background:#ffffff27;color:#fff}
.mc-pbp-row--free{background:#fff0e4;border-bottom-color:#f9d6c0;color:#332319}
.mc-pbp-row--free .mc-pbp-marker,.mc-pbp-row--free .mc-pbp-points{color:#a83b14}
.mc-pbp-row--defense{border-left:3px solid #8fa5af}
.mc-pbp-row--turnover{background:#f5f6f7}
.mc-pbp-row--severe{outline:1px solid #d47854;outline-offset:-1px}
.mc-pbp-separator{max-width:900px;margin:14px auto;padding:9px 10px;border-top:1px solid #dfe3e7;border-bottom:1px solid #dfe3e7;color:#434b54;text-align:center;font-size:11px;font-weight:800;letter-spacing:.07em}
.mc-pbp-more{display:block;margin-top:14px}
/* PBP timeline: the existing event visual system remains inside its team lane. */
@media (min-width:601px){
  .mc-pbp-section>h2,.mc-pbp-filters,.mc-pbp-list,.mc-pbp-more{max-width:1100px}
  .mc-pbp-list{position:relative}
  .mc-pbp-list::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:#e2e5e8}
  .mc-pbp-row{display:grid;grid-template-columns:minmax(0,1fr) 126px minmax(0,1fr);gap:0;min-height:60px;padding:1px 0;margin:2px 0;border:0;background:transparent;outline:0}
  .mc-pbp-time{grid-column:2;grid-row:1;z-index:1;align-items:center;justify-content:center;gap:0;min-height:54px;padding:2px;color:#5d6670;background:transparent;text-align:center}
  .mc-pbp-time :is(.mc-pbp-period,.mc-pbp-clock,.mc-pbp-score){padding-inline:5px;background:#fff}
  .mc-pbp-time .mc-pbp-score{color:#b94118;font-weight:800}
  .mc-pbp-event{display:flex;align-items:center;gap:9px;width:min(100%,390px);min-width:0;min-height:56px;padding:8px 12px;border:1px solid #eceff1;border-radius:7px}
  .mc-pbp-row--home .mc-pbp-event{grid-column:1;grid-row:1;justify-self:end;flex-direction:row-reverse;text-align:right}
  .mc-pbp-row--home .mc-pbp-result{order:-1;align-items:flex-start}
  .mc-pbp-row--away .mc-pbp-event{grid-column:3;grid-row:1;justify-self:start}
  .mc-pbp-row--neutral-side .mc-pbp-event{grid-column:1 / 4;grid-row:2;justify-self:center;width:min(100%,520px);text-align:center}
  .mc-pbp-row--score .mc-pbp-event{background:#b94118;border-color:#b94118;color:#fff}
  .mc-pbp-row--free .mc-pbp-event{background:#fff0e4;border-color:#f9d6c0;color:#332319}
  .mc-pbp-row--turnover .mc-pbp-event{background:#f5f6f7}
  .mc-pbp-row--defense .mc-pbp-event{border-left:3px solid #8fa5af}
  .mc-pbp-row--severe .mc-pbp-event{outline:1px solid #d47854;outline-offset:-1px}
  .mc-pbp-row--score .mc-pbp-time .mc-pbp-period,.mc-pbp-row--score .mc-pbp-time .mc-pbp-clock{color:#5d6670}
}
.mc-pbp-context{font-size:10px;font-weight:600;color:#687480;line-height:1.25;font-variant-numeric:tabular-nums}
.mc-pbp-row--score .mc-pbp-context{color:#fff9}
.mc-pbp-shirt{display:inline-block;margin-right:5px;color:#ad491e;font-size:10px;font-weight:800}
.mc-pbp-row--score .mc-pbp-shirt{color:#fff}
.mc-pbp-separator--final{display:flex;flex-direction:column;align-items:center;gap:3px;padding:13px 10px 15px;background:#f8fafb;letter-spacing:0}
.mc-pbp-final-label{color:#68717b;font-size:10px;font-weight:800;letter-spacing:.08em}
.mc-pbp-final-score{display:flex;align-items:center;justify-content:center;gap:12px;color:#171d24;font-size:32px;font-weight:800;line-height:1.12;font-variant-numeric:tabular-nums;white-space:nowrap}
.mc-pbp-final-score img{width:28px;height:28px;object-fit:contain}
.mc-pbp-logo{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:2px;border-radius:5px;background:#fff}
.mc-pbp-logo img{display:block;width:100%;height:100%;object-fit:contain}
.mc-pbp-row--club.mc-pbp-row--home{--pbp-team-color:var(--home-club-color)}
.mc-pbp-row--club.mc-pbp-row--away{--pbp-team-color:var(--away-club-color)}
.mc-pbp-row--club{--pbp-team-ink:color-mix(in srgb,var(--pbp-team-color) 64%,#15212b)}
.mc-pbp-row--club .mc-pbp-event{border-left:3px solid var(--pbp-team-color);border-bottom-color:#e6eaed}
.mc-pbp-row--club:is(.mc-pbp-row--score,.mc-pbp-row--free){background:transparent;color:#202830}
.mc-pbp-row--club:is(.mc-pbp-row--score,.mc-pbp-row--free) .mc-pbp-event{background:color-mix(in srgb,var(--pbp-team-color) 9%,#fff);border-color:color-mix(in srgb,var(--pbp-team-color) 24%,#e6eaed);border-left-color:var(--pbp-team-color);color:#202830}
.mc-pbp-row--club.mc-pbp-row--free .mc-pbp-event{background:color-mix(in srgb,var(--pbp-team-color) 5%,#fff)}
.mc-pbp-row--club:is(.mc-pbp-row--score,.mc-pbp-row--free) :is(.mc-pbp-period,.mc-pbp-clock,.mc-pbp-score,.mc-pbp-context){color:#687480}
.mc-pbp-row--club :is(.mc-pbp-points,.mc-pbp-shirt){color:var(--pbp-team-ink)}
.mc-pbp-row--club.mc-pbp-row--score .mc-pbp-marker{background:color-mix(in srgb,var(--pbp-team-color) 16%,#fff);color:var(--pbp-team-ink)}
@media (max-width:600px){
  .mc-pbp-row{grid-template-columns:38px minmax(0,1fr);gap:6px}
  .mc-pbp-event{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0}
  .mc-pbp-event:has(.mc-pbp-logo){grid-template-columns:28px minmax(0,1fr) auto}
  .mc-pbp-logo{width:28px;height:28px;min-width:0;padding:1px}
  .mc-pbp-event:has(.mc-pbp-logo) .mc-pbp-marker{display:none}
  .mc-pbp-final-score{font-size:28px}
  .mc-pbp-final-score img{width:24px;height:24px}
  .mc-pbp-time .mc-pbp-score{font-size:10px;font-weight:700}
}
@media(max-width:600px){
  .mc-pbp-section{padding:16px 10px}
  .mc-pbp-filters .filter-tabs button{min-width:40px;min-height:42px;padding:7px 6px}
  .mc-pbp-row{grid-template-columns:38px minmax(0,1fr);gap:6px;min-height:70px;padding:8px 5px}
  .mc-pbp-marker{width:27px;height:27px;font-size:9px}
  .mc-pbp-actor{font-size:11px}
  .mc-pbp-action{font-size:10px}
  .mc-pbp-points{font-size:12px}
  .mc-pbp-score{font-size:10px}
  .mc-pbp-result{min-width:33px}
}
/* Both Nr. and Žaidėjas stick together (same two-column pattern as .st-table) — the table is now wide
   enough (25 columns) to need horizontal scroll on every viewport, not just mobile, so this is no longer
   gated behind a max-width media query. Keeps the player's name visible while scrolling through stats,
   per the task's own requirement, without otherwise changing row/column layout. */
.mc-box-table :is(th,td):first-child{position:sticky;left:0;background:#fff;z-index:2;min-width:42px}
.mc-box-table :is(th,td):nth-child(2){position:sticky;left:42px;background:#fff;z-index:2}
.mc-box-table thead tr:not(.mc-box-groups) th:nth-child(-n+2){background:#f7f8f9;z-index:3}
.mc-box-table tbody tr:nth-child(even) :is(th,td):nth-child(-n+2){background:#f7f7f7}
.mc-box-table tbody tr:hover :is(th,td):nth-child(-n+2){background:#fff5ed}
.mc-box-table .mc-box-dnp :is(th,td):nth-child(-n+2){background:#fafafa}
.mc-box-table .mc-box-totals :is(th,td):nth-child(-n+2){background:#eef1f2}
.mc-box-table .mc-box-groups th{position:static;min-width:0}
.mc-box-mobile-number{display:none}
@media(max-width:767px){
  .mc-box-table{min-width:1650px}
  .mc-box-table th:nth-child(2),.mc-box-table td:nth-child(2){min-width:164px;width:164px;max-width:164px;overflow:hidden}
  .mc-box-table .table-player{display:inline-block;max-width:132px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
  .mc-box-team-header{min-height:52px}
  .mc-box-team-header img{width:36px;height:36px;flex-basis:36px}
}
@media(max-width:600px){
  .mc-box-table{width:1704px;min-width:1704px;table-layout:fixed}
  .mc-box-table col:first-child{width:0}
  .mc-box-table col:nth-child(2){width:176px}
  .mc-box-table col:nth-child(n+3){width:64px}
  .mc-box-table col:nth-child(3){width:72px}
  .mc-box-table col:is(:nth-child(5),:nth-child(7),:nth-child(9),:nth-child(11)){width:92px}
  .mc-box-table thead tr:not(.mc-box-groups)>th:first-child,.mc-box-table tbody tr>:first-child{position:static;width:0;min-width:0;max-width:0;padding:0;border:0;overflow:hidden;font-size:0}
  .mc-box-table thead tr:not(.mc-box-groups)>th:nth-child(2),.mc-box-table tbody tr>th:nth-child(2){position:sticky;left:0;z-index:3;width:176px;min-width:176px;max-width:176px;padding-inline:8px;border-right:1px solid #dce1e4;box-shadow:5px 0 9px -9px #38424b}
  .mc-box-table th,.mc-box-table td{padding-inline:5px;overflow:hidden;text-overflow:clip}
  .mc-box-table .mc-box-mobile-number{display:inline-block;min-width:24px;margin-right:3px;color:#66707a;font-size:11px;font-weight:700;vertical-align:middle}
  .mc-box-table .table-player{max-width:calc(100% - 47px);font-size:12px}
  .mc-box-table .mc-starter-badge{margin-left:3px}
}

@media(max-width:767px){
  .mc-section{padding:16px}
  .mc-compare-row{grid-template-columns:48px 1fr 48px;gap:8px}
  .mc-compare-value{font-size:17px}
}
@media(max-width:900px){
  .mc-game-logo{width:78px;height:78px;flex-basis:78px}
  .mc-game-logo img{width:54px;height:54px}
  .mc-game-score{font-size:52px}
  .mc-game-time{font-size:50px}
}
@media(max-width:600px){
  .mc-game-hero{min-height:170px;padding:17px 12px 18px}
  .mc-game-meta{margin-bottom:8px;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
  .mc-game-body{grid-template-columns:minmax(0,1fr) minmax(100px,auto) minmax(0,1fr);gap:3px}
  .mc-game-team{gap:5px;padding:1px 2px}
  .mc-game-logo{width:60px;height:60px;flex-basis:60px;font-size:15px}
  .mc-game-logo img{width:49px;height:43px}
  .mc-game-team-name{max-width:100%;font-size:11px;line-height:1.2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
  .mc-game-score{gap:4px;font-size:40px;letter-spacing:-.06em}
  .mc-game-time{font-size:39px}
  .mc-game-center{display:contents}
  .mc-game-time,.mc-game-score{grid-column:2;grid-row:1;align-self:center;text-align:center}
  .mc-game-team{grid-row:1}
  .mc-game-team--home{grid-column:1}
  .mc-game-team--away{grid-column:3}
  .mc-game-status{grid-column:1/-1;grid-row:2;margin-top:4px;font-size:10px;min-height:20px}
  .mc-game-tabs{padding:0 8px;margin-bottom:16px}
  .mc-game-tabs .filter-tabs{gap:20px}
  .mc-game-tabs .filter-tabs button{min-height:46px;padding:12px 1px;font-size:11px}
}

/* ==================== M12D — /teams and /players list cards ==================== */
/* Reuses the existing .directory-grid layout wrapper (generic, not mock-specific) with a new card
   face consistent with the mc-/tc-/pc- design language, replacing the old prototype teamCard/
   playerCard components on these two real-data routes. */
.tc-list-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-card);padding:22px;display:flex;flex-direction:column;gap:10px;min-width:0;color:inherit;box-shadow:var(--shadow-card)}
.tc-list-emblem{width:52px;height:52px;border-radius:50%;background:var(--paper);border:1px solid var(--line);display:grid;place-items:center;font-size:16px;font-weight:800;color:var(--ink);overflow:hidden}
.tc-list-emblem img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.tc-list-emblem--player{width:46px;height:52px;border-radius:8px;background:#eef1f3}
.tc-list-card h2{font-size:19px;letter-spacing:-.4px;margin:0}
.tc-list-card small{font-size:11px;color:var(--muted)}

/* ==================== M12D — Team page ==================== */
/* The older global heading rules request Manrope, whose Lithuanian glyphs fall back to Arial.
   Keep the entire team-detail surface on the already bundled Poppins Latin + Latin Extended faces. */
.tc-page,.tc-page *{font-family:var(--font-body);font-synthesis:none}
.tc-page :is(h2,h3,h4){font-weight:700}
/* Temporary frontend-only club color. For light club colors, set --tc-hero-ink to a dark ink. */
.tc-hero{--tc-club-color:#F47A36;--tc-hero-ink:#17212b;background:linear-gradient(180deg,var(--tc-club-color),color-mix(in srgb,var(--tc-club-color) 87%,#000));color:var(--tc-hero-ink);border:1px solid color-mix(in srgb,var(--tc-club-color) 83%,#000);padding:38px 26px 40px}
.tc-hero-body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;max-width:820px;margin:auto}
.tc-emblem{display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;min-height:64px;padding:10px 14px;border:1px solid #ffffffd9;border-radius:12px;background:#fff;box-shadow:0 4px 16px #10192517;flex-shrink:0;color:#17212b;font-size:30px;font-weight:800;line-height:1}
.tc-emblem img{display:block;width:auto;height:auto;max-width:166px;max-height:76px;object-fit:contain}
.tc-name{max-width:100%;margin:2px 0 0;font-size:clamp(30px,4.2vw,48px);font-weight:800;line-height:1.12;letter-spacing:-.035em;overflow-wrap:break-word}
.tc-hero-meta{margin:0;color:var(--tc-hero-ink);font-size:12px;font-weight:600;line-height:1.5;letter-spacing:.02em;opacity:.9}
.tc-hero--light{--tc-hero-ink:#17212b}
.tc-hero--dark{--tc-hero-ink:#fff}
.tc-hero+.filter-tabs{margin-top:18px}

.tc-snapshot{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.tc-snapshot-item{display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-width:0;min-height:112px;padding:14px 15px 13px;border:1px solid #e4e9ed;border-top:3px solid var(--tc-club-color,#F47A36);border-radius:9px;background:#f8fafb}
.tc-snapshot-item:first-child{background:color-mix(in srgb,var(--tc-club-color,#F47A36) 7%,#fff)}
.tc-snapshot-label{display:flex;flex-direction:column;gap:4px;min-width:0}
.tc-snapshot-label strong{color:#354252;font-size:11px;font-weight:800;letter-spacing:.045em}
.tc-snapshot-label small{color:#697584;font-size:9px;font-weight:600;line-height:1.3}
.tc-snapshot-item b{display:block;color:#171d24;font-size:clamp(27px,2.7vw,36px);font-weight:800;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.045em}
.tc-snapshot-shooting{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.tc-snapshot-shooting>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:10px 14px;border:1px solid #e5e9ed;border-radius:7px;background:#fff}
.tc-snapshot-shooting span{color:#657180;font-size:10px;font-weight:800;letter-spacing:.04em}
.tc-snapshot-shooting strong{color:#1b242e;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
@media(max-width:1199px){.tc-snapshot{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* PREGAME "Žaidėjai" only — two independent team columns so mobile can show one complete team
   before the other. The public match payload does not expose a real team-colour field, therefore the
   existing KKL orange is the honest fallback accent. LIVE/FINAL protocol classes are untouched. */
.pg-roster-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.pg-roster-team{min-width:0}
.pg-roster-team:first-child{--club-accent:var(--home-club-color)}
.pg-roster-team:last-child{--club-accent:var(--away-club-color)}
.pg-roster-team-header{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding:0 0 12px;border-bottom:3px solid var(--club-accent,var(--orange))}
.pg-roster-team-header .pg-team-logo{position:relative;display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;overflow:hidden;border:1px solid #e2e6eb;border-radius:50%;background:#fff;box-shadow:0 3px 10px #13223812}
.pg-roster-team-header .pg-team-logo img{width:74%;height:74%;object-fit:contain}
.pg-roster-team-header .pg-team-logo--missing:before,.pg-roster-team-header .pg-team-logo--missing:after{content:'';position:absolute;top:25%;bottom:25%;left:50%;width:1px;background:#88919c}
.pg-roster-team-header .pg-team-logo--missing:before{transform:rotate(45deg)}
.pg-roster-team-header .pg-team-logo--missing:after{transform:rotate(-45deg)}
.pg-roster-team-header h3{min-width:0;margin:0;font-size:17px;font-weight:800;line-height:1.2;color:var(--ink)}
.pg-roster-group+.pg-roster-group{margin-top:18px}
.pg-roster-group-title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.9px;color:var(--muted);margin:0 0 8px}
.pg-roster-cell{display:flex;flex-direction:column;gap:8px}
.pg-roster-section .roster-card{position:relative;min-width:0;min-height:76px;padding:10px 14px 10px 10px;gap:12px;border-color:#dfe4e9;border-left:4px solid var(--club-accent,var(--orange));box-shadow:0 2px 8px #13223809;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background-color .16s ease}
.pg-roster-section .roster-card:hover{border-color:#ff5a1f;background:#fffaf7;box-shadow:0 7px 18px #13223814;transform:translateY(-1px)}
.pg-roster-section .roster-card:focus-visible{outline:3px solid #167db5;outline-offset:2px;border-color:var(--orange);box-shadow:0 0 0 5px #167db51c}
.pg-roster-section .roster-card .avatar{width:46px;height:52px;background:linear-gradient(#edf0f3,#dce2e8)}
.pg-roster-section .roster-name{gap:4px;overflow:visible}
.pg-roster-section .roster-name strong{font-size:14px;font-weight:800;line-height:1.28;white-space:normal;overflow-wrap:anywhere}
.pg-roster-section .roster-name small{font-size:10px;line-height:1.35;color:#687687;white-space:normal}
.pg-roster-section .jersey{padding-left:8px;font-size:24px;font-weight:800;line-height:1;color:var(--orange)}
@media(max-width:767px){
  .pg-roster-grid{grid-template-columns:1fr;gap:30px}
  .pg-roster-team-header{margin-bottom:16px}
  .pg-roster-section .roster-card{width:100%}
}
@media(prefers-reduced-motion:reduce){.pg-roster-section .roster-card{transition:none}}
.tc-roster-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tc-player-card{display:flex;align-items:center;min-width:0;min-height:96px;overflow:hidden;border:1px solid #e1e6ea;border-left:3px solid var(--tc-club-color,#F47A36);border-radius:9px;background:#fff;color:inherit;text-decoration:none;transition:border-color .18s ease,background-color .18s ease}
.tc-player-card:hover{border-color:color-mix(in srgb,var(--tc-club-color,#F47A36) 38%,#e1e6ea);border-left-color:var(--tc-club-color,#F47A36);background:#fafbfc}
.tc-player-card:focus-visible{outline:3px solid #167db5;outline-offset:3px}
.tc-player-portrait{display:flex;align-items:flex-end;justify-content:center;flex:0 0 72px;align-self:stretch;padding:10px 8px 0;background:#f5f7f8}
.tc-player-portrait img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.tc-player-silhouette{width:58px;max-width:100%;height:76px;fill:#c3ccd5}
.tc-player-silhouette .tc-player-silhouette-detail{fill:none;stroke:#edf1f4;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.tc-player-info{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;gap:6px;padding:10px 11px}
.tc-player-identity{display:flex;flex-direction:column;gap:2px;min-width:0}
.tc-player-first{color:#627080;font-size:11px;font-weight:500;line-height:1.2;overflow-wrap:anywhere}
.tc-player-surname{color:#19232d;font-size:15px;font-weight:800;line-height:1.15;overflow-wrap:anywhere}
.tc-player-number{flex:0 0 auto;color:#253240;font-size:19px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
@media(max-width:1199px){.tc-roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tc-stat-row{display:grid;grid-template-columns:1fr auto auto;align-items:baseline;gap:12px;padding:10px 0}
.tc-stat-row+.tc-stat-row{border-top:1px solid var(--line)}
.tc-stat-row .tc-stat-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.tc-stat-row .tc-stat-avg{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.tc-stat-row .tc-stat-total{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;min-width:8ch}
.tc-stat-legend{font-size:11px;color:var(--muted);margin-bottom:12px}

@media(max-width:767px){
  .tc-hero{padding:30px 18px 32px}
  .tc-hero-body{gap:18px}
  .tc-emblem{min-height:58px;padding:9px 12px;border-radius:10px;font-size:25px}
  .tc-emblem img{max-width:146px;max-height:68px}
  .tc-name{font-size:clamp(27px,8vw,36px)}
  .tc-hero-meta{font-size:11px}
  .tc-hero+.filter-tabs{margin-top:16px}
  .tc-snapshot{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .tc-snapshot-item{min-height:104px;padding:13px;gap:10px}
  .tc-snapshot-item b{font-size:30px}
  .tc-snapshot-shooting{gap:6px;margin-top:10px}
  .tc-snapshot-shooting>div{flex-direction:column;align-items:flex-start;gap:4px;padding:9px}
  .tc-snapshot-shooting strong{font-size:13px}
  .tc-roster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .tc-player-card{min-height:94px}
  .tc-player-portrait{display:none}
  .tc-player-info{padding:10px 9px}
  .tc-player-surname{font-size:14px}
  .tc-player-number{font-size:17px}
}
@media(max-width:359px){.tc-player-surname{font-size:12px}.tc-player-number{font-size:15px}}
@media(prefers-reduced-motion:reduce){.tc-player-card{transition:none}}

/* ==================== M12D — Player page ==================== */
.pc-hero{--pc-club-color:#F47A36;background:linear-gradient(115deg,color-mix(in srgb,var(--pc-club-color) 48%,#17212b),color-mix(in srgb,var(--pc-club-color) 29%,#101820));padding:18px 30px 0}
.pc-hero-body{display:grid;grid-template-columns:220px minmax(0,1fr) 150px;grid-template-rows:1fr auto;align-items:center;column-gap:24px;max-width:1000px;min-height:250px;margin:auto}
.pc-emblem{display:grid;place-items:end center;grid-column:1;grid-row:1/3;align-self:end;width:220px;height:250px;overflow:hidden}
.pc-emblem img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.pc-hero-copy{grid-column:2;grid-row:1;min-width:0;align-self:end}
.pc-title-line{display:flex;align-items:baseline;gap:12px}
.pc-jersey{flex:none;color:#fff;font-size:23px;font-weight:800;font-variant-numeric:tabular-nums;opacity:.76}
.pc-name{font-size:clamp(30px,3.2vw,47px);font-weight:800;line-height:1.08;overflow-wrap:anywhere}
.pc-position{margin:10px 0 0;color:#ffffffc9;font-size:12px;font-weight:600}
.pc-competition{margin:6px 0 0;color:#ffffffad;font-size:11px;font-weight:500;line-height:1.4}
.pc-sub{margin-top:8px;font-size:12px;color:#ffffffc9}
.pc-team-link{margin-top:7px;font-size:16px;font-weight:800}
.pc-team-link a{color:#fff;text-decoration:none;border-bottom:1px solid #ffffff8c}
.pc-team-link a:hover,.pc-team-link a:focus-visible{border-bottom-color:#fff}
.pc-team-logo{display:flex;align-items:center;justify-content:center;box-sizing:border-box;grid-column:3;grid-row:1/3;width:150px;height:122px;padding:13px;border-radius:12px;background:#fff;box-shadow:0 5px 18px #0002}
.pc-team-logo img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.pc-portrait .tc-player-silhouette{width:214px;height:246px;fill:#b9c3cc;transform:translateY(26px)}
.pc-portrait .tc-player-silhouette .tc-player-silhouette-detail{stroke:#e2e8ec}
.pc-facts{display:flex;flex-wrap:wrap;grid-column:2;grid-row:2;gap:12px 25px;margin:17px 0 28px}
.pc-facts div{display:flex;flex-direction:column;min-width:66px}
.pc-facts dt{font-size:10px;color:#ffffffad;text-transform:uppercase;letter-spacing:.5px}
.pc-facts dd{margin:3px 0 0;font-size:14px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}

.pc-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;text-align:center}
.pc-stat-grid b{display:block;font-size:clamp(22px,4.4vw,32px);font-weight:800;font-variant-numeric:tabular-nums}
.pc-stat-grid span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.pc-season-strip{grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
.pc-season-strip>div{padding:3px 12px;border-right:1px solid #e6eaee}
.pc-season-strip>div:last-child{border-right:0}
.pc-season-strip b{font-size:clamp(22px,2.6vw,34px)}

.pc-log-table{width:100%;border-collapse:collapse;font-size:13px}
.pc-log-table th,.pc-log-table td{padding:10px 8px;text-align:center;border-bottom:1px solid var(--line);white-space:nowrap}
.pc-log-table th:first-child,.pc-log-table td:first-child{text-align:left;white-space:normal}
.pc-log-table thead th{font-size:10px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.pc-log-table td{font-variant-numeric:tabular-nums}
.pc-log-table .pc-log-result{font-weight:800}
.pc-log-table .pc-log-win{color:#1c8a4b}
.pc-log-table .pc-log-loss{color:#b2382c}

/* Career uses the prepared canonical season/stint aggregates, never the raw game list. */
.pc-career{min-width:0}
.pc-career-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.pc-career-heading h2{margin:0}
.pc-career-controls{display:inline-flex;flex:0 0 auto;gap:3px;padding:3px;border:1px solid #e6e9ec;border-radius:8px;background:#f5f6f7}
.pc-career-controls button{min-height:34px;padding:6px 12px;border:0;border-radius:5px;background:transparent;color:#59636d;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.pc-career-controls button[aria-pressed=true]{background:#fff;color:#a7431d;box-shadow:0 1px 3px #13213318}
.pc-career-controls button:hover{color:#a7431d}
.pc-career-controls button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.pc-career-overall{margin:0 0 18px;color:#66707a;font-size:11px;line-height:1.5}
.pc-career-overall strong{color:#222a31;font-weight:750;font-variant-numeric:tabular-nums}
.pc-career-league+.pc-career-league{margin-top:24px}
.pc-career-league-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 8px}
.pc-career-league-head h3{margin:0;font-size:16px;font-weight:750;color:#20242b}
.pc-career-league-head span{color:#78818a;font-size:11px;font-weight:600;white-space:nowrap}
.pc-career-rail{border:1px solid #e6eaed;border-radius:6px}
.pc-career-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;font-variant-numeric:tabular-nums}
.pc-career-table :is(th,td){height:42px;padding:8px 10px;border-bottom:1px solid #eceff1;text-align:right;white-space:nowrap}
.pc-career-table thead th{height:36px;background:#f7f8f9;color:#626d77;font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.pc-career-table th:first-child,.pc-career-table td:nth-child(2){text-align:left}
.pc-career-table td:nth-child(2){font-weight:650}
.pc-career-table tbody tr:nth-child(even){background:#f8f9fa}
.pc-career-table tbody tr:last-child :is(th,td){border-bottom:0}
.pc-career-table .pc-career-total{background:#f0f2f3;font-weight:750}
.pc-career-table .pc-career-total :is(th,td){border-top:2px solid #d8dee2}
.pc-career-season-short{display:none}
.pc-career[data-mode=average] .pc-career-value--total,.pc-career[data-mode=total] .pc-career-value--average{display:none}

@media(max-width:767px){
  .pc-hero{padding:17px 16px 0}
  .pc-hero-body{grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:10px;row-gap:0;min-height:0}
  .pc-emblem{grid-column:1;grid-row:1;width:110px;height:170px}
  .pc-portrait .tc-player-silhouette{width:110px;height:168px;transform:translateY(23px)}
  .pc-hero-copy{grid-column:2;grid-row:1;align-self:center}
  .pc-title-line{align-items:flex-start;flex-direction:column;gap:3px}
  .pc-jersey{font-size:15px}
  .pc-name{font-size:clamp(23px,6vw,32px)}
  .pc-position{margin-top:7px;font-size:11px}
  .pc-competition{margin-top:5px;font-size:10px}
  .pc-team-link{font-size:14px}
  .pc-team-logo{grid-column:1/-1;grid-row:3;width:116px;height:94px;padding:9px;margin:0 0 12px auto}
  .pc-facts{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 18px}
  .pc-facts div{min-width:0}
  .pc-log-table th,.pc-log-table td{padding:8px 6px}
  .pc-stat-grid{grid-template-columns:repeat(2,1fr);row-gap:16px}
  .pc-season-strip{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:0}
  .pc-season-strip>div{padding:7px 4px}
  .pc-season-strip>div:nth-child(3n){border-right:0}
  .pc-season-strip>div:nth-child(n+4){border-top:1px solid #e6eaee}
  .pc-log-table th:first-child,.pc-log-table td:first-child{position:sticky;left:0;background:#fff;z-index:1}
  .pc-log-table thead th:first-child{background:var(--paper)}
}
@media(max-width:600px){
  .pc-career-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}
  .pc-career-controls button{min-height:36px;padding-inline:10px}
  .pc-career-league+.pc-career-league{margin-top:20px}
  .pc-career-table{width:598px;min-width:598px;table-layout:fixed;font-size:11px}
  .pc-career-table col:first-child{width:50px}
  .pc-career-table col:nth-child(2){width:100px}
  .pc-career-table col:nth-child(n+3){width:64px}
  .pc-career-table :is(th,td){height:42px;padding-inline:5px;overflow:hidden;text-overflow:ellipsis}
  .pc-career-table thead th{font-size:9px}
  .pc-career-season-long{display:none}
  .pc-career-season-short{display:inline}
  .pc-career-table :is(th,td):first-child{position:sticky;left:0;z-index:2;background:#fff}
  .pc-career-table :is(th,td):nth-child(2){position:sticky;left:50px;z-index:2;background:#fff;border-right:1px solid #dce1e4}
  .pc-career-table thead th:nth-child(-n+2){z-index:3;background:#f7f8f9}
  .pc-career-table tbody tr:nth-child(even) :is(th,td):nth-child(-n+2){background:#f8f9fa}
  .pc-career-table .pc-career-total :is(th,td):nth-child(-n+2){background:#f0f2f3}
  .pc-hero{padding:18px 17px 0}
  .pc-hero-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 112px auto;column-gap:12px}
  .pc-hero-copy{grid-column:1/-1;grid-row:1;align-self:start;padding-bottom:8px}
  .pc-title-line{gap:4px}
  .pc-name{max-width:100%;overflow-wrap:normal}
  .pc-position{margin-top:7px}
  .pc-team-link{margin-top:5px}
  .pc-competition{margin-top:4px}
  .pc-emblem{grid-column:2;grid-row:2;justify-self:end;align-self:end;width:112px;height:112px}
  .pc-portrait .tc-player-silhouette{width:108px;height:110px;transform:translateY(4px)}
  .pc-team-logo{grid-column:1;grid-row:2;justify-self:start;align-self:center;width:100px;height:81px;margin:0;padding:8px}
  .pc-facts{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:12px -17px 0;padding:12px 17px 15px;border-top:1px solid #ffffff3b}
  .pc-facts div{padding-right:7px}
  .pc-facts div+div{padding-left:10px;border-left:1px solid #ffffff2e}
  .pc-facts div:nth-child(4){grid-column:1/-1;margin-top:10px;padding:9px 0 0;border-left:0;border-top:1px solid #ffffff2e}
  .pc-facts dt{font-size:9px}
  .pc-facts dd{font-size:13px}
  .pc-hero+.filter-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:14px}
  .pc-hero+.filter-tabs button{min-width:0;padding:10px 2px;font-size:10px}
}

/* ==================== M12E — Standings ==================== */
.st-league-block+.st-league-block{margin-top:22px}
.st-league-block{padding:18px 20px 20px}
.st-league-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.st-league-head h2{margin:0;font-size:17px;line-height:1.3}
.st-season{flex:none;padding:5px 9px;border-radius:5px;background:#f3f5f7;color:#4b5661;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}
.st-group+.st-group{margin-top:17px}
.st-group h3{margin:13px 0 8px;color:#515e69;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.st-rail{max-width:1060px;margin-inline:auto;overflow-x:auto}
.st-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}
.st-table :is(th,td){height:56px;padding:3px 7px;text-align:center;border-bottom:1px solid #e9edf0;white-space:nowrap;font-variant-numeric:tabular-nums}
.st-table thead th{height:32px;background:#f3f5f7;color:#65717c;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.035em}
.st-table tbody tr:nth-child(even){background:#f9fafb}
.st-table tbody tr:hover{background:#fff4eb}
.st-table tbody tr:last-child :is(th,td){border-bottom:0}
.st-table :is(th,td):first-child{width:46px}
.st-table :is(th,td):nth-child(2){width:31%;text-align:left}
.st-position{font-size:13px;font-weight:800;color:#26323c}
.st-team{min-width:0}
.st-team a{display:flex;align-items:center;gap:10px;min-width:0;color:#17212b;font-weight:750;text-decoration:none}
.st-team a.text-cta{width:auto;min-height:0;margin:0;padding:0;border:0}
.st-team a>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.st-team a:hover{color:#a9481b}
.st-team a:focus-visible{outline:2px solid var(--orange);outline-offset:2px;border-radius:3px}
.st-team-logo-stage{display:grid;place-items:center;flex:none;width:36px;height:36px}
.st-team-logo,.st-team-emblem{display:block;width:100%;height:100%;object-fit:contain}
.st-team-emblem{border-radius:6px;background:var(--paper);border:1px solid var(--line);display:grid;place-items:center;font-size:10px;font-weight:800;color:var(--ink)}
.st-points{font-size:14px;font-weight:800;color:#17212b}
.st-diff{font-weight:750}
.st-diff--positive{color:#267750}
.st-diff--negative{color:#b35b48}
.st-tied{box-shadow:inset 3px 0 #df9b69}
.st-tied-mark{color:var(--orange);font-weight:800;margin-left:2px}
.st-tie-note{font-size:11px;color:var(--muted);margin:9px 0 0}
@media(max-width:700px){
  .st-league-block{padding:14px 10px 16px}
  .st-league-head{padding:0 3px 10px}
  .st-league-head h2{font-size:14px}
  .st-group h3{margin-left:3px}
  .st-table{font-size:11px}
  .st-table .st-desktop{display:none}
  .st-table :is(th,td){height:52px;padding:3px}
  .st-table :is(th,td):first-child{width:27px}
  .st-table :is(th,td):nth-child(2){width:auto}
  .st-table .st-played{width:31px}
  .st-table .st-diff{width:44px}
  .st-table .st-points{width:41px;font-size:12px}
  .st-team a{gap:6px;font-size:11px}
  .st-team-logo-stage{width:30px;height:30px}
}

/* LIVE „Aikštėje“ — authoritative on-court five per team (compact; two columns, stays two columns on 375px). */
.mc-oncourt-context{color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap}
.mc-oncourt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.mc-oncourt-team ol{list-style:none;margin:0;padding:0}
.mc-oncourt-team li{display:flex;align-items:center;gap:10px;min-height:42px;padding:5px 8px;font-size:13px;line-height:1.25;overflow-wrap:anywhere}
.mc-oncourt-team li:nth-child(even){background:#f7f8f9}
.mc-oncourt-team li:last-child{border-bottom:0}
.mc-oncourt-number{display:grid;place-items:center;flex:0 0 34px;min-height:25px;border-radius:4px;background:#f0f2f4;color:color-mix(in srgb,var(--home-club-color) 55%,#20242b);font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
.mc-oncourt-team--away .mc-oncourt-number{color:color-mix(in srgb,var(--away-club-color) 55%,#20242b)}
.mc-oncourt-player{color:inherit;text-decoration:none;min-width:0}
.mc-oncourt-player:hover{text-decoration:underline;text-underline-offset:2px}
.mc-oncourt-player:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
@media(max-width:600px){.mc-oncourt-grid{gap:10px}.mc-oncourt-team li{gap:5px;min-height:44px;padding:5px 3px;font-size:11px}.mc-oncourt-number{flex-basis:27px;font-size:10px}.mc-oncourt-context{font-size:9px}}

.roster-card .avatar--photo::before,.roster-card .avatar--photo::after{content:none}
.roster-card .avatar--photo img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.mc-box-table .mc-box-player-thumb img{max-width:100%}
@media(max-width:767px){.mc-overview-avatar:has(img){display:grid;flex-basis:20px;width:20px;height:22px}}
@media(max-width:600px){
  .mc-box-player-thumb{width:20px;height:23px;margin-right:3px}
  .mc-box-table th:has(.mc-box-player-thumb) .table-player{max-width:calc(100% - 70px)}
  .tc-player-card:has(.tc-player-portrait img) .tc-player-portrait{display:flex;flex-basis:42px;padding:5px 3px 0}
}
