/* ═══════════════════════════════════════════════════════════════════
   Zilla Engine · B+ broadcast · Phase 4A
   Teams (#5), Players (#6), Team profile (#17), Player profile (#18)
   Boards 40–43, 54–57. Tokens only (tokens.css); every class bp- prefixed.
   Loaded after bplus.css.
   ═══════════════════════════════════════════════════════════════════ */

.bp-people .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp-psec { min-width: 0; }

/* ── Filters: pills + search ── */
.bp-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 4px; flex-wrap: wrap; }
.bp-pills { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.bp-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 16px; transform: skewX(-12deg);
  background: var(--surface-2); color: var(--text); flex: none; }
.bp-pill > span { transform: skewX(12deg); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.bp-pill:hover { background: var(--surface-3); }
.bp-pill.is-active { background: var(--league-accent); color: var(--ink); }
.bp-search { position: relative; display: flex; align-items: center; gap: 10px; min-width: 260px; height: 40px; padding: 0 16px;
  background: var(--surface-2); color: var(--muted); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.bp-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text);
  font: 700 15px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.bp-search input::placeholder { color: var(--muted); }
.bp-search:focus-within { box-shadow: inset 0 -2px 0 var(--league-accent); color: var(--text); }
.bp-filternote { font-size: 13px; color: var(--muted); margin: 10px 0 0; display: flex; gap: 14px; align-items: center; }
.bp-filternote a { color: var(--league-accent); }

/* ── Teams: group blocks ── */
.bp-tgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 30px; }
.bp-tgrid--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-tblock { min-width: 0; }
.bp-trows { display: flex; flex-direction: column; gap: 6px; }
.bp-trow {
  position: relative; display: grid; align-items: center; gap: 14px; height: 74px; padding: 0 16px 0 0;
  grid-template-columns: 8px 40px 46px minmax(0, 1fr) 70px auto minmax(150px, auto);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 26%, var(--surface)), var(--surface) 46%);
  transition: background .15s;
}
.bp-trow:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 38%, var(--surface)), var(--surface-2) 60%); }
.bp-trow__edge { align-self: stretch; background: var(--tc); }
.bp-trow__rank { font-size: 40px; text-align: center; color: var(--text); }
.bp-trow__crest .bp-crest { --s: 44px; }
.bp-trow__who { min-width: 0; }
.bp-trow__name { display: block; font-size: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-trow__meta { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-trow__wl { font-size: 32px; text-align: center; }
.bp-trow__form { display: flex; gap: 3px; }
.bp-trow__form .bp-form { width: 15px; height: 18px; }
.bp-trow__form .bp-form b { font-size: 10px; }
.bp-trow__noform { font-size: 11px; color: var(--dim); }
.bp-trow__next { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; text-align: right; }
.bp-trow__nlabel { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bp-trow__nlabel.is-live { color: var(--live); }
.bp-trow__opp { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.bp-trow__vs { font-size: 13px; color: var(--sub); flex: none; }
.bp-trow__oname { font-size: 17px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-trow__opp .bp-crest { --s: 24px; font-size: 9px; }
.bp-trow + .bp-advance { margin: 2px 0; }
.bp-trow--nonext { grid-template-columns: 8px 40px 46px minmax(0, 1fr) 70px auto; }

/* ── Players: stat leader cards ── */
.bp-slgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bp-slc { background: var(--panel); border-top: 4px solid var(--league-accent); min-width: 0; }
.bp-slc__top { position: relative; display: block; height: 150px; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 80%, transparent), color-mix(in srgb, var(--tc) 18%, transparent) 62%, var(--panel)); }
.bp-slc__top .bp-scan { position: absolute; inset: 0; }
.bp-slc__cat { position: absolute; left: 14px; top: 12px; font-size: 12px; color: rgba(255,255,255,.82); max-width: 55%; }
.bp-slc__val { position: absolute; right: 12px; top: 2px; font-size: 92px; text-shadow: 0 4px 22px rgba(0,0,0,.35); }
.bp-slc__who { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bp-slc__who .bp-crest { --s: 42px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 0 3px rgba(0,0,0,.35); }
.bp-slc__txt { min-width: 0; }
.bp-slc__name { display: block; font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.bp-slc__meta { display: block; font-size: 11px; color: rgba(255,255,255,.75); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-slc__row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-top: 1px solid var(--line); }
.bp-slc__row:hover { background: var(--surface); }
.bp-slc__row .bp-crest { --s: 24px; font-size: 9px; }
.bp-slc__pos { width: 16px; font-size: 18px; color: var(--muted); }
.bp-slc__rname { flex: 1; min-width: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-slc__rval { font-size: 22px; }

/* ── Players: filter row + table ── */
.bp-pfilter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.bp-pfilter .bp-search { min-width: 280px; }
.bp-select { position: relative; display: inline-flex; height: 40px; transform: skewX(-12deg); background: var(--surface-2); }
.bp-select select { transform: skewX(12deg); appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: 0;
  color: var(--text); padding: 0 34px 0 18px; font: 700 15px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; max-width: 240px; }
.bp-select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: skewX(12deg) rotate(45deg); pointer-events: none; }
.bp-select option { background: var(--panel); color: var(--text); }
.bp-select:focus-within { box-shadow: inset 0 -2px 0 var(--league-accent); }
.bp-pfilter__sort { margin-left: auto; font-size: 13px; color: var(--muted); }
.bp-pfilter__sort b { color: var(--text); }

.bp-ptable { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.bp-ptable__head, .bp-prow {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 34px minmax(200px, 2.4fr) minmax(70px, 1fr) repeat(6, minmax(42px, .6fr)) 64px 110px;
}
.bp-ptable__head { padding: 0 12px 4px 8px; font-size: 11px; color: var(--muted); }
.bp-ptable__head a:hover { color: var(--text); }
.bp-ptable__head .is-sorted { color: var(--league-accent); }
.bp-ptable__head .is-sorted::after { content: ' ▼'; font-size: 9px; }
.bp-ptable__head .c-n, .bp-ptable__head .c-wl { text-align: right; }
.bp-prow { position: relative; height: 64px; padding: 0 12px 0 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 24%, var(--surface)), var(--surface) 40%); }
.bp-prow:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 36%, var(--surface)), var(--surface-2) 55%); }
.bp-prow__edge { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tc); }
.bp-prow .c-pos { font-size: 26px; color: var(--muted); text-align: center; }
.bp-prow .c-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bp-prow .c-name .bp-crest { --s: 36px; }
.bp-prow__txt { min-width: 0; }
.bp-prow__name { display: block; font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-prow__sub { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-prow .c-team { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-prow .c-n, .bp-prow .c-wl { font-size: 24px; text-align: right; }
.bp-prow .c-acc { color: var(--league-accent); }
.bp-prow .c-form { display: flex; gap: 3px; justify-content: flex-end; }
.bp-prow .c-form .bp-form { width: 16px; height: 19px; }
.bp-prow .c-form .bp-form b { font-size: 10px; }
.bp-ptable__head .c-form { text-align: right; }

.bp-pager { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 18px 0 0; }
.bp-pager__a { font-size: 15px; color: var(--league-accent); }
.bp-pager__info { font-size: 13px; color: var(--muted); }

/* ═══════════════ Profiles ═══════════════ */
.bp-phero { position: relative; overflow: hidden; min-height: 300px; border-bottom: 1px solid var(--line); }
.bp-phero__bg { position: absolute; inset: 0;
  background: linear-gradient(110deg, color-mix(in srgb, var(--tc) 34%, var(--bg)) 0%, color-mix(in srgb, var(--tc) 12%, var(--bg)) 45%, var(--bg-2) 100%); }
.bp-phero > .bp-scan { position: absolute; inset: 0; }
.bp-phero__ghost { position: absolute; left: -20px; top: -30px; font-size: 300px; line-height: .9; color: rgba(255,255,255,.05);
  white-space: nowrap; pointer-events: none; user-select: none; }
.bp-phero__in { position: relative; display: flex; align-items: center; gap: 34px; padding: 40px var(--gutter) 34px; min-height: 300px; }
.bp-phero__crest .bp-crest { --s: 168px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14), 0 0 0 6px rgba(0,0,0,.45), 0 20px 50px rgba(0,0,0,.55); }
.bp-phero__photo { flex: none; width: 170px; height: 210px; display: grid; place-items: center; overflow: hidden; color: var(--sub);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 30%, var(--surface-2)), var(--surface)); transform: skewX(-6deg);
  box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.bp-phero__photo img { width: 116%; height: 100%; object-fit: cover; transform: skewX(6deg); }
.bp-phero__photo svg { transform: skewX(6deg); }
.bp-phero__main { flex: 1; min-width: 0; }
.bp-phero__kicker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--sub); margin: 0; }
.bp-phero__team { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.bp-phero__team .bp-crest { --s: 20px; font-size: 9px; }
.bp-phero__team:hover { color: var(--league-accent); }
.bp-phero__name { font-size: 104px; margin: 6px 0 4px; overflow-wrap: anywhere; text-wrap: balance; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.bp-phero__meta { font-size: 14px; color: var(--text); opacity: .85; margin: 0; overflow-wrap: anywhere; }
.bp-phero__stats { display: flex; flex-wrap: wrap; margin: 20px 0 0; }
.bp-phero__stats > div { padding: 0 26px; border-left: 1px solid rgba(255,255,255,.14); }
.bp-phero__stats > div:first-child { padding-left: 0; border-left: 0; }
.bp-phero__stats dt { order: 2; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bp-phero__stats dd { margin: 0; font-size: 46px; }
.bp-phero__stats > div { display: flex; flex-direction: column; }
.bp-phero__stats dd.is-pos { color: var(--win); }
.bp-phero__stats dd.is-neg { color: var(--live); }

/* Season switcher + follow */
.bp-pact { position: absolute; top: 18px; right: var(--gutter); display: flex; align-items: center; gap: 8px; z-index: 5; }
.bp-pact__season { position: relative; }
.bp-pact__sbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 14px; background: rgba(0,0,0,.55);
  border: 0; color: var(--text); cursor: pointer; transform: skewX(-12deg); }
.bp-pact__sbtn > * { transform: skewX(12deg); }
.bp-pact__slabel { font-size: 9px; color: var(--muted); letter-spacing: .12em; }
.bp-pact__svalue { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.bp-pact__menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 220px; padding: 6px; background: var(--panel);
  border-top: 3px solid var(--league-accent); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.bp-pact__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; }
.bp-pact__opt .bp-d { font-size: 18px; }
.bp-pact__opt:hover, .bp-pact__opt.is-selected { background: var(--surface-2); }
.bp-pact__opt.is-selected .bp-d { color: var(--league-accent); }
.bp-pact__cur { font-size: 10px; color: var(--muted); }
.bp-pact__follow { min-height: 36px; padding: 6px 16px; font-size: 15px; background: var(--league-accent); color: var(--ink); }
.bp-pact__follow.is-following { background: var(--white); color: var(--black); }

/* Tabs */
.bp-ptabs { background: var(--plate); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bp-ptabs__in { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter) 0 0; }
.bp-ptabs__in::-webkit-scrollbar { display: none; }
.bp-ptab { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; color: var(--sub); flex: none; transform: skewX(-12deg); }
.bp-ptab > span { transform: skewX(12deg); font-size: 16px; }
.bp-ptab:first-child { margin-left: calc(var(--gutter) - 12px); }
.bp-ptab:hover { color: var(--text); }
.bp-ptab.is-active { background: var(--league-accent); color: var(--ink); }

/* Two-column body */
.bp-pgrid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0 30px; align-items: start; }
.bp-pgrid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-pgrid__main, .bp-pgrid__side { min-width: 0; }
.bp-pgrid__side > .bp-panel { margin-top: var(--section-gap); }
.bp-pgrid .bp-row + .bp-row { margin-top: 6px; }
.bp-tlead .bp-sh { padding: 14px 16px 0; margin-bottom: 12px; }
.bp-tlead .bp-lead__row .v { font-size: 26px; }
.bp-tlead .bp-lead__val { font-size: 100px; top: 14px; }
.bp-tlead .bp-lead__who { max-width: 52%; }
.bp-tlead .bp-lead__name { font-size: 30px; }
.bp-tlead__empty { margin: 0; border-left: 0; }

/* Roster cards (slanted, centred) */
.bp-rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bp-rcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0;
  padding: 18px 26px 14px; transform: skewX(-6deg);
  background: linear-gradient(170deg, color-mix(in srgb, var(--tc) 14%, var(--surface-2)), var(--surface) 70%);
  border-top: 3px solid color-mix(in srgb, var(--tc) 70%, transparent); }
.bp-rcard > * { transform: skewX(6deg); }
.bp-rcard:hover { background: linear-gradient(170deg, color-mix(in srgb, var(--tc) 26%, var(--surface-2)), var(--surface-2) 70%); }
.bp-rcard__pic { width: 54px; height: 54px; display: grid; place-items: center; color: var(--sub); overflow: hidden; border-radius: 50%; }
.bp-rcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.bp-rcard__txt { min-width: 0; max-width: 100%; }
.bp-rcard__name { display: block; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-rcard__meta { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bp-rcard__nums { display: flex; justify-content: space-between; align-self: stretch; margin-top: 4px; }
.bp-rcard__nums > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bp-rcard__nums b { font-size: 22px; }
.bp-rcard__nums i { font-style: normal; font-size: 9px; color: var(--muted); }

/* Photo tiles */
.bp-hlgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* KPI cards (career, team stats) */
.bp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bp-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px; min-width: 0;
  background: var(--surface); border-top: 3px solid var(--line-2); }
.bp-kpi b { order: 1; font-size: 52px; }
.bp-kpi span { order: 2; font-size: 12px; color: var(--muted); }
.bp-kpi small { order: 3; font-size: 10px; color: var(--dim); }
.bp-kpi--acc { border-top-color: var(--league-accent); }

/* Stat tables (team stats, history, game log) */
.bp-stable-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.bp-stable { width: 100%; border-collapse: separate; border-spacing: 0 5px; }
.bp-stable th { font-size: 11px; color: var(--muted); font-weight: 700; text-align: right; padding: 4px 10px; white-space: nowrap; }
.bp-stable td { background: var(--surface); padding: 0 10px; height: 50px; text-align: right; font-size: 17px; white-space: nowrap; }
.bp-stable td.bp-num { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 22px; }
.bp-stable .l { text-align: left; }
.bp-stable .acc { color: var(--league-accent); }
.bp-stable td:first-child { border-left: 4px solid var(--line-2); }
.bp-stable td a:hover { color: var(--league-accent); }
.bp-stable td.bp-d { font-size: 20px; }
.bp-glog td:first-child { font-size: 13px; color: var(--sub); }
.bp-glog__opp { display: inline-flex; align-items: center; gap: 8px; }
.bp-glog__opp .bp-crest { --s: 26px; font-size: 10px; }
.bp-glog__opp .bp-l { font-size: 13px; color: var(--sub); }
.bp-glog__opp .bp-d { font-size: 21px; }
.bp-glog__res { font-size: 21px; }
.bp-glog__res.is-W { color: var(--win); }
.bp-glog__res.is-L { color: var(--live); }

/* Shot chart (mini) */
.bp-shotbox { background: var(--surface); border: 1px solid var(--line); padding: 6px; }
.bp-shotbox--lg { max-width: 720px; }
.bp-shotmini { display: block; width: 100%; height: auto; }
.bp-shotmini .crt { fill: var(--bg-2); stroke: var(--line-2); }
.bp-shotmini .ln { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.5; }
.bp-shotmini .ln--b { stroke: rgba(255,255,255,.3); stroke-width: 2.5; }
.bp-shotmini .ln--3 { stroke: rgba(255,255,255,.22); }
.bp-shotmini .rim { fill: none; stroke: var(--league-accent); stroke-width: 2; }
.bp-shotmini .made { fill: rgba(255,255,255,.85); stroke: var(--bg); stroke-width: 2; }
.bp-shotmini .miss { fill: none; stroke: var(--live); stroke-width: 3; stroke-linecap: round; }
.bp-shotkey { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px 0 14px; vertical-align: -1px; }
.bp-shotkey:first-child { margin-left: 0; }
.bp-shotkey--made { background: rgba(255,255,255,.85); }
.bp-shotkey--miss { width: auto; height: auto; border-radius: 0; color: var(--live); font-weight: 800; }

/* Game links (shot chart tab) */
.bp-glink { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; margin-top: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 20%, var(--surface)), var(--surface) 55%); border-left: 4px solid var(--tc); }
.bp-glink .bp-crest { --s: 26px; font-size: 10px; }
.bp-glink__t { flex: 1; min-width: 0; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-glink__d { font-size: 12px; color: var(--league-accent); }

/* Awards, milestones, career timeline */
.bp-awgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bp-mslist { display: flex; flex-direction: column; gap: 5px; }
.bp-ms { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; height: 52px; padding: 0 14px;
  background: var(--surface); border-left: 4px solid var(--champion); }
.bp-ms__ico { color: var(--champion); display: inline-flex; }
.bp-ms__name { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-ms__val { font-size: 24px; }
.bp-ms__when { font-size: 12px; color: var(--muted); }
.bp-ms__when a { color: var(--league-accent); }
.bp-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.bp-tl { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; align-items: center;
  padding: 12px 16px; background: linear-gradient(110deg, color-mix(in srgb, var(--tc) 22%, var(--surface)), var(--surface) 60%); border-top: 3px solid var(--tc); }
.bp-tl__season { grid-column: 1 / -1; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.bp-tl .bp-crest { --s: 34px; grid-row: 2 / 4; }
.bp-tl__team { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-tl__meta { font-size: 11px; color: var(--sub); margin-top: 3px; }

/* ═══════════════ ≤1100 ═══════════════ */
@media (max-width: 1100px) {
  .bp-tgrid--multi { grid-template-columns: minmax(0, 1fr); }
  .bp-slgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-rgrid, .bp-hlgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-pgrid, .bp-pgrid--even { grid-template-columns: minmax(0, 1fr); }
  .bp-ptable__head, .bp-prow { grid-template-columns: 30px minmax(160px, 2.4fr) minmax(60px, 1fr) repeat(3, minmax(40px, .6fr)); }
  .bp-ptable .c-opt { display: none; }
  .bp-phero__name { font-size: 80px; }
}

/* ═══════════════ Mobile ≤768 (boards 41, 43, 55, 57) ═══════════════ */
@media (max-width: 768px) {
  .bp-filters { margin-top: 12px; gap: 10px; }
  .bp-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding: 0 4px; }
  .bp-pills::-webkit-scrollbar { display: none; }
  .bp-pill { min-height: 30px; padding: 4px 12px; }
  .bp-pill > span { font-size: 13px; white-space: nowrap; }
  .bp-search, .bp-pfilter .bp-search { min-width: 0; width: 100%; height: 38px; }

  .bp-trow, .bp-trow--nonext { grid-template-columns: 5px 24px 34px minmax(0, 1fr) auto auto; gap: 8px; height: auto; min-height: 58px; padding: 8px 10px 8px 0;
    grid-template-areas: "edge rank crest who form wl" "edge rank crest next next next"; row-gap: 3px; }
  .bp-trow--nonext { grid-template-areas: "edge rank crest who form wl"; }
  .bp-trow__edge { grid-area: edge; }
  .bp-trow__rank { grid-area: rank; font-size: 24px; }
  .bp-trow__crest { grid-area: crest; }
  .bp-trow__crest .bp-crest { --s: 32px; }
  .bp-trow__who { grid-area: who; }
  .bp-trow__name { font-size: 22px; }
  .bp-trow__meta { display: none; }
  .bp-trow__wl { grid-area: wl; font-size: 22px; }
  .bp-trow__form { grid-area: form; }
  .bp-trow__form .bp-form { width: 12px; height: 15px; }
  .bp-trow__form .bp-form:nth-last-child(n+4) { display: none; }
  .bp-trow__noform { display: none; }
  .bp-trow__next { grid-area: next; flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px; }
  .bp-trow__nlabel { font-size: 10px; }
  .bp-trow__oname { font-size: 13px; font-family: var(--font-display); }
  .bp-trow__opp .bp-crest { display: none; }

  .bp-slgrid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .bp-slgrid::-webkit-scrollbar { display: none; }
  .bp-slc { flex: 0 0 84%; scroll-snap-align: start; }
  .bp-slc__top { height: 120px; }
  .bp-slc__val { font-size: 70px; }
  .bp-slc__name { font-size: 22px; }

  .bp-pfilter { gap: 6px; }
  .bp-select { height: 34px; }
  .bp-select select { font-size: 13px; padding: 0 28px 0 12px; max-width: 160px; }
  .bp-pfilter__sort { width: 100%; margin-left: 0; font-size: 11px; }
  .bp-ptable__head, .bp-prow { grid-template-columns: 22px minmax(0, 1fr) 34px 50px; gap: 8px; }
  .bp-ptable .c-team, .bp-ptable .c-pts { display: none; }
  .bp-prow { height: 58px; padding: 0 10px 0 6px; }
  .bp-prow .c-pos { font-size: 18px; }
  .bp-prow .c-name .bp-crest { --s: 28px; }
  .bp-prow__name { font-size: 20px; }
  .bp-prow .c-n, .bp-prow .c-wl { font-size: 20px; }

  .bp-phero, .bp-phero__in { min-height: 0; }
  .bp-phero__in { flex-direction: column; align-items: flex-start; gap: 12px; padding: 64px 12px 20px; }
  .bp-phero__ghost { font-size: 150px; top: 10px; }
  .bp-phero__crest .bp-crest { --s: 84px; }
  .bp-phero__photo { width: 96px; height: 116px; }
  .bp-phero__photo svg { width: 40px; height: 40px; }
  .bp-phero__name { font-size: 50px; margin-top: 2px; }
  .bp-phero__kicker, .bp-phero__meta { font-size: 12px; }
  .bp-phero__stats { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .bp-phero__stats > div { padding: 0 8px; }
  .bp-phero__stats dd { font-size: 28px; }
  .bp-phero__stats dt { font-size: 9px; }
  .bp-pact { top: 12px; right: 12px; left: 12px; justify-content: flex-end; }
  .bp-pact__menu { right: auto; left: 0; }
  .bp-pact__follow { min-height: 32px; padding: 4px 12px; font-size: 13px; }

  .bp-ptab { height: 42px; padding: 0 14px; }
  .bp-ptab > span { font-size: 15px; }
  .bp-ptab:first-child { margin-left: 0; }

  .bp-rgrid, .bp-hlgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bp-rcard { padding: 14px 14px 10px; }
  .bp-rcard__name { font-size: 18px; }
  .bp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bp-kpi b { font-size: 36px; }
  .bp-stable td { height: 44px; font-size: 14px; padding: 0 7px; }
  .bp-stable td.bp-num { font-size: 18px; }
  .bp-stable th { padding: 4px 7px; }
  .bp-stable .opt { display: none; }
  .bp-glog__opp .bp-d { font-size: 16px; }
  .bp-glog__opp .bp-crest { display: none; }
  .bp-glog__res { font-size: 16px; }
  .bp-ms { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .bp-ms__when { display: none; }
}
