/* Shared by the game, team and player pages: hero header, sub-tabs, panels, KPI strips, split tables. */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.hero .meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.matchup-big { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.side { display: flex; align-items: center; gap: 12px; }
.side.home { justify-content: flex-end; text-align: right; }
.side img { width: 52px; height: 52px; object-fit: contain; }
.side .nm { font-size: 20px; font-weight: 700; line-height: 1.15; }
.side .rec { font-size: 12px; color: var(--muted); }
.side .sc { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.at { color: var(--muted); font-weight: 600; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.kpi .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.kpi .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.subnav { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 14px; position: sticky; top: 52px; background: var(--page); z-index: 5; }
.subnav button { border: 0; background: transparent; padding: 9px 13px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.subnav button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 650; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 860px) { .grid2, .grid3, .matchup-big { grid-template-columns: minmax(0, 1fr); } .side.home { justify-content: flex-start; text-align: left; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.panel h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.panel + .panel, .stack > * + * { margin-top: 14px; }
.depth-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: start; }
.depth-row:last-child { border-bottom: 0; }
.slot { font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; text-align: center; padding: 3px 0; }
.active-p { font-weight: 650; }
.active-p .use { font-weight: 400; font-size: 11px; color: var(--muted); display: block; }
.bench { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bench .out { text-decoration: line-through; }
.bench a.plink { color: var(--muted); }
.swap { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 6px; margin-left: 6px; }
.st { font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.st.out { background: var(--crit-bg); color: var(--crit-ink); }
.st.doubtful, .st.questionable, .st.limited { background: var(--warn-bg); color: var(--warn-ink); }
.pick { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pick:last-child { border-bottom: 0; }
.why { font-size: 12px; color: var(--ink-2); }
.unitseg { margin-bottom: 10px; }

/* profile hero (team / player) */
.phero { display: flex; gap: 16px; align-items: center; }
.phero .pic { width: 84px; height: 84px; border-radius: 12px; object-fit: contain; background: var(--surface-2); flex: none; }
.phero .pic.head { object-fit: contain; }
.phero .pic.blank { display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--muted); }
.phero h1 { margin: 0; font-size: 24px; line-height: 1.15; }
.phero .sub { color: var(--ink-2); font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.phero .sub img { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 4px; }
.colorbar { height: 4px; border-radius: 4px 4px 0 0; margin: -16px -18px 12px; }

/* split tables: L3 / L6 / season / past seasons with deltas */
.split { width: 100%; border-collapse: collapse; font-size: 13px; }
.split th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600;
  padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.split th:first-child, .split td:first-child { text-align: left; }
.split th.sep, .split td.sep { border-left: 1px solid var(--line); }
.split td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: middle; }
.split tr.grp td { background: var(--surface-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); text-align: left; padding: 5px 8px; }
.split tr:hover td:not(.grpcell) { background: var(--surface-2); }
.split td .r { display: block; font-size: 10.5px; color: var(--muted); }
.split td.lbl { font-weight: 550; white-space: normal; min-width: 140px; }
.split td.cur { font-weight: 700; }
.delta { display: inline-flex; align-items: baseline; gap: 3px; font-weight: 650; }
.delta .pc { font-weight: 500; font-size: 11px; opacity: .85; }
.delta.good { color: var(--up); } .delta.bad { color: var(--down); } .delta.neu { color: var(--s1); }
.delta.soft { font-weight: 500; opacity: .75; }
.delta.flat { color: var(--muted); font-weight: 500; }
.legend-note { font-size: 12px; color: var(--ink-2); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legend-note b.good { color: var(--up); } .legend-note b.bad { color: var(--down); } .legend-note b.neu { color: var(--s1); }
.movers { display: grid; gap: 6px; }
.mover { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.mover:last-child { border-bottom: 0; }
.mover .det { font-size: 12px; color: var(--muted); }
.res { font-weight: 700; } .res.W { color: var(--up); } .res.L { color: var(--down); }
.roster-grp { margin-bottom: 4px; }
.roster-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.roster-row:last-child { border-bottom: 0; }
.roster-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: var(--surface-2); }
.roster-row .ln { font-size: 12px; color: var(--muted); }
.roster-row .tagx { font-size: 11px; color: var(--muted); text-align: right; }
.hitbar { display: inline-block; min-width: 54px; }
.searchbox { width: min(420px, 100%); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.team-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; text-decoration: none; color: var(--ink); }
.team-item img { width: 22px; height: 22px; object-fit: contain; }
.team-item .rec { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.team-item:hover span:first-of-type { text-decoration: underline; }
.results { margin-top: 8px; }
