/* BE Fit Club · css/player.css · OWNER: Round 5 · Home builder
   guest.home · player.home · player.live (Match tab) · player.match · player.me · player.profile
   Scoped under the screen classes; sheets .sh-player-*; the goal moment .pl-gm sits on <body>.
   Light: only .hero (one per screen) and .lit components glow; team colour via var(--tc) from .t-<team>.
   Hero numerals are .hn (Geist 700 tabular), never Geist Mono above 24 px. */

/* ---------------------------------------------------------------- shared inside the home screens */
:is(.scr-guest-home, .scr-player-home, .scr-player-live, .scr-player-match, .scr-player-me, .scr-player-profile) .grow { flex: 1; min-width: 0; }
:is(.scr-guest-home, .scr-player-home, .scr-player-live, .scr-player-match, .scr-player-me, .scr-player-profile) .pl-gap { margin-top: var(--sp-6); }
:is(.scr-guest-home, .scr-player-home, .scr-player-live, .scr-player-match, .scr-player-me, .scr-player-profile) .pl-h1 { margin-bottom: 14px; }
:is(.scr-guest-home, .scr-player-home, .scr-player-live, .scr-player-match, .scr-player-me, .scr-player-profile) [role="link"] { cursor: pointer; }
/* sections: phone = one column (24 px between), laptop = two */
.pl-2col > div + div { margin-top: var(--sp-6); }
.pl-2col > div > .lbl:first-child, .pl-col2 > .lbl:first-child { margin-top: 0; }
:is(.pl-pod, .pl-note, .pl-bars, .pl-subs, .pl-you, .pl-yseason) + .lbl { margin-top: var(--sp-6); }
.pl-sl > span:first-child { min-width: 0; }
.pl-more { min-height: var(--h-target-player); display: inline-flex; align-items: center; margin: -14px 0; white-space: nowrap; }
.lbl .pl-hint { color: var(--ink3); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12.5px; white-space: nowrap; }
.pl-note { margin-top: 8px; }
.pl-og { font-size: var(--fs-meta); color: var(--ink3); }
.pl-unit { font-size: 15px; color: var(--ink3); font-weight: 500; }

/* ranked rows (live points, table near you): numbers in Geist 700, not Mono */
.pl-rr .pl-rn { width: 24px; flex: none; color: var(--ink3); font-size: 13px; }
.pl-pts, .r .pts.pl-pts { font: 700 16px var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; min-width: 32px; text-align: right; }
.pl-rr .end { gap: 10px; }

/* ---------------------------------------------------------------- score card (the joined block inside a card) */
.pl-scard { display: block; padding: 14px 14px 16px; }
.pl-cardlbl { margin-bottom: 10px; min-height: 20px; align-items: center; }
.pl-cardlbl .live { letter-spacing: .12em; color: var(--ink2); }
.pl-scard .pl-poles { margin-top: 10px; font-size: var(--fs-meta); color: var(--ink3); }
.pl-scard .sb-scorers { margin-top: 12px; }

/* tinted (never glowing) team card: "You tonight", or You when the score card is the hero */
.card.pl-tint { background: color-mix(in srgb, var(--tc) 9%, var(--s1)); background-image: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 30%, transparent); }
.pl-you { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: var(--card-gap); padding: 14px 16px; }
.pl-you .grow { display: flex; flex-direction: column; gap: 2px; }
.pl-you-t { font-weight: 650; font-size: 15px; }
.pl-you .meta { overflow-wrap: anywhere; }
.pl-you-p { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pl-you-n { font-size: 40px; }
.pl-you:active, .pl-yseason:active { filter: brightness(1.08); }

/* "You · season" (hero on Home when no game is on) */
.pl-yseason { display: block; width: 100%; text-align: left; padding: 16px 16px 18px; margin-top: var(--card-gap); }
.pl-ytop { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); position: relative; }
.pl-ytop .lbl { margin: 4px 0 0; }
.pl-yr { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.pl-yr .hn { font-size: 26px; }
.pl-yr .meta { margin-top: 2px; white-space: nowrap; }
.pl-ybig { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; position: relative; }
.pl-ynum { font-size: 72px; }
.pl-ylast { font-size: 14px; color: var(--ink2); margin-top: 12px; position: relative; overflow-wrap: anywhere; }
.pl-ylast b { color: var(--ink); font-weight: 650; }

/* Next game strip */
.pl-next { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.pl-next-d { font-size: 16px; font-weight: 650; margin-top: 2px; white-space: nowrap; }
.pl-next-r { font-size: 13px; font-weight: 600; color: var(--ink2); text-align: right; }

/* Season leaders podium, Season race */
.pl-pod { margin-top: 10px; }
.pl-race { min-height: 58px; }
.pl-tbar { width: 4px; height: 22px; border-radius: 2px; background: var(--tc); flex: none; }
.pl-race .nm { font-size: 16px; font-weight: 650; }
.pl-form { display: flex; gap: 4px; flex: none; }
.pl-race-p { font-size: 28px; min-width: 46px; text-align: right; flex: none; }

/* Match tab: feed, past games */
.pl-feed .min { width: 46px; flex: none; font: 500 12px var(--mono); color: var(--ink3); }
.pl-feed .kind, .sh-player-feed .kind { color: var(--ink2); white-space: nowrap; }
.pl-past .end { gap: 8px; }

/* ---------------------------------------------------------------- Match summary */
.pl-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.pl-top-n { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.pl-top-p { font-size: 26px; flex: none; }
.pl-tsw { margin: 16px 0 12px; }
.pl-tsw > button span .n { font-family: var(--font); font-weight: 700; }
.pl-x { border-top: 1px solid var(--line); }
.pl-x:first-child { border-top: 0; }
.pl-x > .r { border-top: 0; }
.pl-x .r .grow .pos { margin-left: 4px; }
.pl-x .r .av { --av: 32px; }
.pl-x.open { background: var(--hl); }
.pl-x .end .chev { width: 14px; text-align: center; }
.pl-xsum { padding: 0 10px 12px; }
.pl-xsum .sum { background: var(--s2); }

/* ---------------------------------------------------------------- Profile (Me + anyone) */
.pl-ph { display: flex; align-items: center; gap: 14px; }
.pl-ph .av { font-size: 22px; box-shadow: inset 0 0 0 2.5px var(--tc, var(--s3)); }
.pl-name { font-size: var(--fs-head); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; overflow-wrap: anywhere; }
.pl-tm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.pl-share { min-height: var(--h-target-player); display: inline-flex; align-items: center; flex: none; align-self: flex-start; margin-top: 4px; }
.pl-share > span { height: 36px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--s3); }
.pl-share:active > span { background: var(--s2); }
.pl-pcard { margin-top: var(--sp-4); padding: 18px 18px 16px; }
.pl-ptop { display: flex; align-items: baseline; gap: 8px; position: relative; }
.pl-hero { font-size: 72px; }
.pl-rank { margin-left: auto; align-self: flex-start; height: 28px; font-size: 13px; font-weight: 650; }
.pl-info { min-height: var(--h-target-player); min-width: var(--h-target-player); display: grid; place-items: center; margin: -12px -6px; align-self: center; }
.pl-info i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--font); font-style: normal; color: var(--ink2); box-shadow: inset 0 0 0 1.5px var(--s3); }
.pl-stats { margin-top: 16px; gap: 0; position: relative; }
.pl-stat { font-size: 24px; }
.pl-stats .meta { margin-top: 4px; font-size: 13px; }
.pl-subs { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; min-height: 56px; margin-top: var(--card-gap); font-weight: 600; text-align: left; }
.pl-subs .grow { flex: 1; }
/* Me › Payments (6 Nov): green "✓ Up to date", red "Owes · see the admin", the same badge shape */
.pl-owe, .pl-ok { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pl-owe { background: color-mix(in srgb, var(--red) 14%, var(--s1)); color: var(--red); }
.pl-ok { background: color-mix(in srgb, var(--green) 14%, var(--s1)); color: var(--green); }
[data-theme="light"] .pl-owe { color: #B4232A; }    /* light: darker text so it reads (the light --red / --green are for marks) */
[data-theme="light"] .pl-ok { color: #0B6E3F; }


/* Last 5 bars in team colour: W full · D half · L faint (the won bar is the team's colour, not white) */
.pl-bars { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.pl-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 0; }
.pl-bar i { display: block; width: 100%; border-radius: 6px; background: color-mix(in srgb, var(--tc) 26%, var(--s1)); }
.pl-bar.is-D i { background: color-mix(in srgb, var(--tc) 55%, var(--s1)); }
.pl-bar.is-W i { background: var(--tc); }
.pl-bar-v { font: 700 15px var(--font); font-variant-numeric: tabular-nums; color: var(--ink); }
.pl-bar-d { font-size: var(--fs-meta); color: var(--ink3); white-space: nowrap; }
.pl-bar-r { min-height: 24px; display: flex; }
.pl-bar:active i { filter: brightness(1.15); }
.pl-hist .r .meta { overflow-wrap: anywhere; }
.pl-hist .r .wdl { flex: none; }
.pl-hist .r .pts { font: 700 15px var(--font); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- laptop (>= 960 px) */
@media (min-width: 960px) {
  .pl-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6) 32px; align-items: start; }
  .pl-2col > div + div { margin-top: 0; }
  .scr-player-match .pl-2col .pl-tsw { margin-top: 0; }
  .pl-prof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .pl-prof-b > .lbl:first-child { margin-top: 0; }
}
@media (max-width: 959px) { .pl-prof-b > .lbl:first-child { margin-top: var(--sp-6); } }

/* ---------------------------------------------------------------- sheets */
:is(.sh-player-live, .sh-player-feed) h4 .end { font-family: var(--font); }
.pl-te { font: 600 13px var(--font); color: var(--ink2); font-variant-numeric: tabular-nums; }
.sh-player-live .pl-rr, .sh-player-feed .r { min-height: 48px; }
.sh-player-feed .min { width: 46px; flex: none; font: 500 12px var(--mono); color: var(--ink3); }
/* live breakdown: a team-tinted top, the head, the sum (the sheet's hero), "Season page ›" */
.sheet.sh-player-bd { background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 20%, var(--sheet)), var(--sheet) 150px), var(--sheet); }
.pl-bdh { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.pl-bdn { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.pl-bdh .meta { margin-top: 3px; font-size: 13px; color: var(--ink2); }
.sh-player-bd .sheet-f { padding-top: var(--sp-3); }
.sh-player-bd .pl-season-btn { box-shadow: none; background: transparent; color: var(--ink2); font-weight: 600; }

/* ---------------------------------------------------------------- GoalMoment (viewers' phones only) */
.pl-gm {
  position: fixed; inset: 0; z-index: 95; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; padding: 24px var(--gutter);
  background: radial-gradient(70% 55% at 50% 42%, color-mix(in srgb, var(--tc) 30%, var(--bg)), var(--bg) 78%), var(--bg);
  animation: fade-in .16s ease;
}
.pl-gm-in { width: 100%; max-width: 440px; text-align: center; }
.pl-gm-team { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.pl-gm-team::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--tc); }
.pl-gm-word { font: 800 92px/1 var(--font); letter-spacing: -.03em; text-transform: uppercase; margin-top: 14px; color: var(--tc);
  text-shadow: 0 0 40px color-mix(in srgb, var(--tc) 45%, transparent); }
[data-theme="light"] .pl-gm-word { color: color-mix(in srgb, var(--tc) 85%, #000); text-shadow: none; }
.pl-gm-who { font-size: 22px; font-weight: 650; margin-top: 18px; overflow-wrap: anywhere; }
.pl-gm-who .n { color: var(--ink2); font: 500 15px var(--mono); }
.pl-gm-score { margin: 32px auto 0; max-width: 420px; text-align: left; }

/* Share the full-time card from a match summary (any role) */
.pl-mshare { align-self: stretch; width: 100%; margin: 2px 0 10px; }
.pl-mshare > span { width: 100%; justify-content: center; height: 44px; }
