:root {
      --bg: #0f1d16; --surface: #16261d; --surface-2: #1b2c22; --surface-3: #203629;
      --border: #2b4334; --border-soft: #23382b; --text: #f2f5f0;
      --muted: #b1c1b3; --subtle: #95aa98; --gold: #e1b654; --gold-soft: rgba(225,182,84,.10);
      --orange: #ff985f; --orange-soft: rgba(255,152,95,.10);
      --good: #78d4a0; --danger: #ff8b82; --blue: #77bedb;
      --gk: #e1b654; --def: #78d4a0; --mid: #77bedb; --fwd: #ff985f;
      --radius: 8px; --shadow: 0 22px 60px rgba(3,11,6,.32);
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse 850px 440px at 14% -12%, rgba(225,182,84,.09), transparent 75%), var(--bg);
      color: var(--text); font: 14px/1.5 Inter, system-ui, -apple-system, sans-serif; }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    button:disabled { opacity: .4; cursor: not-allowed; }
    button, input, select, summary { -webkit-tap-highlight-color: transparent; }
    :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
    [hidden] { display: none !important; }
    .wrap { max-width: 1500px; padding: 30px 35px 65px; margin: 0 auto; }
    .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
    .eyebrow { color: var(--subtle); font: 500 11px/1.4 'IBM Plex Mono', monospace; letter-spacing: .13em; text-transform: uppercase; }
    .sr-only { position: absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
    .divider-dot { width: 3px; height: 3px; background: var(--subtle); border-radius: 50%; flex: none; }

    /* Brand / utility bar */
    .topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 22px; border-bottom: 1px solid var(--border); }
    .brand { display:flex; align-items:center; gap:13px; min-width:0; }
    .brand-icon { flex:none; display:grid; place-items:center; width:37px; height:37px; border-radius: 8px; color:#0f1d16; background:var(--gold); }
    .brand h1 { margin: 0; font: 600 27px/1 Oswald, sans-serif; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
    .brand h1 span { color: var(--gold); }
    .brand-label { padding: 5px 9px; border: 1px solid var(--border); border-radius: 4px; font:500 10px/1.2 'IBM Plex Mono', monospace; color:var(--muted); letter-spacing:.08em; white-space:nowrap; }
    .status-row { display:flex; align-items:center; gap:13px; flex-wrap:wrap; justify-content:flex-end; color:var(--muted); font: 12px/1.5 'IBM Plex Mono', monospace; }
    .season-chip { padding: 6px 10px; border: 1px solid var(--border); border-radius: 5px; white-space: nowrap; }
    .status-dot { width:7px; height:7px; border-radius:50%; background:var(--subtle); display:inline-block; margin-right:6px; }
    .status-dot.ready { background: var(--good); box-shadow: 0 0 0 3px rgba(120,212,160,.08); }
    #lastUpdated { margin:0; max-width:310px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .hero { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:31px 0 26px; }
    .hero h2 { font: 500 clamp(30px,3vw,44px)/1.15 Oswald, sans-serif; text-transform:uppercase; letter-spacing:.013em; margin:7px 0 8px; }
    .hero h2 em { font-style:normal; color:var(--gold); }
    .hero p { margin:0; color:var(--muted); max-width:680px; font-size:13px; }
    .hero-aside { display:flex; align-items:center; gap:8px; color:var(--subtle); font: 11px/1.4 'IBM Plex Mono', monospace; white-space:nowrap; padding-bottom:4px; }
    .hero-aside svg { color:var(--gold); }

    /* Filters */
    .filter-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px 16px; margin-bottom:20px; }
    .filters-main { display:grid; grid-template-columns:minmax(225px,1.25fr) minmax(240px,1.25fr) minmax(160px,.9fr) minmax(150px,.72fr) auto; gap:16px; align-items:end; }
    .field { min-width:0; }
    .field label, .field-label { display:block; margin-bottom:8px; color:var(--muted); font: 500 10.5px/1.3 'IBM Plex Mono', monospace; letter-spacing:.095em; text-transform:uppercase; }
    .input-shell { display:flex; align-items:center; gap:9px; padding:0 11px; height:40px; border:1px solid var(--border); background:var(--bg); border-radius:5px; color:var(--subtle); transition:border-color .15s; }
    .input-shell:focus-within { border-color:var(--gold); box-shadow:0 0 0 2px rgba(225,182,84,.1); }
    .input-shell input { min-width:0; width:100%; height:100%; border:0; background:transparent; color:var(--text); outline:none; font-size:13px; }
    input::placeholder { color:var(--subtle); opacity:1; }
    .input-shell .money-prefix { color:var(--gold); font-weight:600; }
    .input-shell input[type=number] { appearance:textfield; -moz-appearance:textfield; }
    .input-shell input::-webkit-inner-spin-button, .input-shell input::-webkit-outer-spin-button { appearance:none; margin:0; }
    .position-tabs { display:flex; gap:4px; padding:3px; height:40px; border:1px solid var(--border); background:var(--bg); border-radius:5px; }
    .position-tabs button { min-width:0; flex:1; padding:0 5px; background:transparent; border:1px solid transparent; border-radius:4px; color:var(--muted); font:600 11px 'IBM Plex Mono', monospace; }
    .position-tabs button:hover { color:var(--text); }
    .position-tabs button[aria-pressed=true] { background:var(--surface-3); color:var(--gold); border-color:var(--border); }
    #positionFilter { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
    .ghost-button { height:40px; padding:0 13px; color:var(--muted); background:transparent; border:1px solid var(--border); border-radius:5px; white-space:nowrap; font-weight:500; }
    .ghost-button:hover { border-color:var(--subtle); color:var(--text); }
    .filter-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding-top:14px; margin-top:14px; border-top:1px solid var(--border-soft); }
    .minutes-presets { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
    .minutes-presets .eyebrow { margin-right:5px; }
    .preset { border:1px solid var(--border); border-radius:4px; padding:5px 9px; color:var(--muted); background:transparent; font:500 11px 'IBM Plex Mono',monospace; }
    .preset[aria-pressed=true] { background:var(--gold-soft); border-color:rgba(225,182,84,.55); color:var(--gold); }
    .filter-note { color:var(--subtle); font-size:11.5px; }

    /* Stats */
    .stats-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 28px; }
    .stat-card { min-width:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:17px 19px 15px; position:relative; overflow:hidden; }
    .stat-card::before { content:""; position:absolute; top:0; left:0; width:100%; height:2px; background:var(--border); }
    .stat-card.accent::before { background:var(--gold); }
    .stat-card.form::before { background:var(--orange); }
    .stat-card .stat-title { margin:0 0 9px; font:500 10.5px/1.5 'IBM Plex Mono',monospace; color:var(--muted); letter-spacing:.1em; text-transform:uppercase; }
    .stat-card .value { font:500 clamp(25px,2.35vw,34px)/1.08 Oswald,sans-serif; color:var(--text); font-variant-numeric:tabular-nums; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .stat-card.accent .value { color:var(--gold); }
    .stat-card.form .value { color:var(--orange); }
    .stat-card .sub { margin-top:8px; min-height:17px; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .stat-card .sub strong { color:var(--text); font-weight:600; }

    /* Explorer header + toolbar */
    .section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin:0 0 14px; }
    .section-heading h2 { font: 500 24px/1.15 Oswald,sans-serif; margin:0 0 6px; text-transform:uppercase; letter-spacing:.03em; }
    .section-heading p { margin:0; color:var(--muted); font-size:12px; }
    .section-heading .count { color:var(--gold); }
    .table-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
    .tool-button { height:34px; display:inline-flex; align-items:center; gap:8px; padding:0 11px; background:var(--surface); border:1px solid var(--border); border-radius:5px; color:var(--text); font-size:12px; white-space:nowrap; }
    .tool-button:hover { border-color:var(--subtle); }
    .tool-button svg { color:var(--muted); }
    .view-switch { display:flex; border:1px solid var(--border); border-radius:5px; overflow:hidden; }
    .view-switch button { padding:8px 11px; font:500 11px/1 'IBM Plex Mono',monospace; color:var(--muted); background:var(--surface); border:0; }
    .view-switch button + button { border-left:1px solid var(--border); }
    .view-switch button[aria-pressed=true] { color:var(--gold); background:var(--surface-3); }
    .columns-popover { position:relative; }
    .columns-menu { position:absolute; top:calc(100% + 8px); right:0; z-index:40; width:260px; padding:14px; background:var(--surface-2); border:1px solid var(--border); box-shadow:var(--shadow); border-radius:7px; }
    .columns-menu .eyebrow { margin-bottom:11px; }
    .columns-menu label { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--text); padding:6px 0; font-size:12px; cursor:pointer; }
    .columns-menu input { accent-color:var(--gold); width:15px; height:15px; }
    .columns-menu .menu-footer { display:flex; justify-content:flex-end; margin-top:9px; padding-top:11px; border-top:1px solid var(--border); }
    .columns-menu .menu-footer button { border:0; background:none; color:var(--gold); font-size:12px; }

    .data-context { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 11px; flex-wrap:wrap; }
    .legend { display:flex; align-items:center; gap:14px; flex-wrap:wrap; color:var(--muted); font-size:11px; }
    .legend i { display:inline-block; width:8px; height:8px; border-radius:2px; vertical-align:middle; margin-right:5px; }
    .legend .gold { background:var(--gold); } .legend .orange { background:var(--orange); }
    .legend .warn { background:var(--danger); }
    .form-window { color:var(--muted); font:11px 'IBM Plex Mono',monospace; }

    /* Player table: one dashboard controller owns rendering and sorting. */
    .table-shell { position:relative; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius); overflow:hidden; }
    .table-container { max-height:min(69vh,720px); overflow:auto; scrollbar-color:#496151 var(--bg); scrollbar-width:thin; }
    table { width:100%; min-width:1350px; border-collapse:separate; border-spacing:0; table-layout:auto; }
    thead th { white-space:nowrap; }
    .group-header th { position:sticky; top:0; z-index:12; padding:9px 12px; font:600 10px 'IBM Plex Mono',monospace; text-align:left; color:var(--muted); letter-spacing:.12em; border-bottom:1px solid var(--border); background:#1d3024; }
    .group-header .group-season { color:var(--gold); background:#2b3122; }
    .group-header .group-form { color:var(--orange); background:#302a21; }
    .group-header .group-market { color:var(--muted); }
    .group-header th:first-child { left:0; z-index:16; }
    .column-header th { position:sticky; top:34px; z-index:11; padding:0; background:var(--surface-2); border-bottom:1px solid var(--border); white-space:nowrap; }
    .column-header th:first-child { position:sticky; left:0; z-index:15; background:#22382a; box-shadow: 1px 0 0 var(--border); }
    .column-header th[data-group=season] { background:#292f22; }
    .column-header th[data-group=form] { background:#302921; }
    .sort-button { display:flex; width:100%; min-height:42px; align-items:center; justify-content:flex-end; gap:6px; border:0; padding:8px 11px; color:var(--muted); background:transparent; text-align:right; font:500 10.5px/1.3 'IBM Plex Mono',monospace; text-transform:uppercase; letter-spacing:.025em; }
    .column-header th:first-child .sort-button, .column-header th:nth-child(2) .sort-button, .column-header th:nth-child(3) .sort-button { justify-content:flex-start; text-align:left; }
    .sort-button:hover, .column-header th.sorted-asc .sort-button, .column-header th.sorted-desc .sort-button { color:var(--text); background:rgba(225,182,84,.04); }
    .column-header th.sorted-asc .sort-button, .column-header th.sorted-desc .sort-button { color:var(--gold); }
    .sort-mark { display:inline-block; width:9px; font-size:11px; text-align:center; opacity:.4; }
    .column-header th.sorted-asc .sort-mark, .column-header th.sorted-desc .sort-mark { opacity:1; }
    td { padding:12px 11px; border-bottom:1px solid var(--border-soft); font:500 12.5px/1.35 'IBM Plex Mono',monospace; color:var(--text); text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; background:var(--surface); }
    td:nth-child(1), td:nth-child(2), td:nth-child(3) { text-align:left; }
    td:nth-child(1) { position:sticky; left:0; z-index:4; min-width:185px; background:var(--surface); box-shadow:1px 0 0 var(--border-soft); }
    tr:hover td { background:#21372a; }
    tr:hover td[data-group=season] { background:#303a28; }
    tr:hover td[data-group=form] { background:#393328; }
    tr:hover td:first-child { background:#21372a; }
    tbody tr:last-child td { border-bottom:0; }
    td[data-group=season] { background:rgba(225,182,84,.035); }
    td[data-group=form] { background:rgba(255,152,95,.045); }
    .player-cell { display:flex; align-items:center; gap:9px; min-width:0; }
    .player-cell .player-info { min-width:0; flex:1; }
    .player-name { font:600 13px/1.3 Inter,sans-serif; color:var(--text); }
    .player-cell .player-name { display:block; overflow:hidden; text-overflow:ellipsis; }
    .player-cell .player-meta { display:none; color:var(--subtle); font-size:11px; }
    .add-compare { flex:none; display:grid; place-items:center; width:23px; height:23px; border-radius:4px; border:1px solid var(--border); background:var(--surface-3); color:var(--muted); font:600 16px/1 Inter,sans-serif; }
    .add-compare:hover, .add-compare[aria-pressed=true] { color:var(--gold); border-color:var(--gold); }
    .team-badge { display:inline-flex; align-items:center; justify-content:center; min-width:40px; border:1px solid var(--border); background:#213428; border-radius:4px; padding:4px 5px; color:var(--muted); font:500 10.5px 'IBM Plex Mono',monospace; letter-spacing:.03em; }
    .pos-pill { display:inline-flex; align-items:center; gap:6px; font:600 11px 'IBM Plex Mono',monospace; }
    .pos-pill i { width:3px; height:14px; border-radius:2px; background:var(--pos-color,var(--muted)); }
    .pos-GK { --pos-color:var(--gk); color:var(--gk); } .pos-DEF { --pos-color:var(--def); color:var(--def); }
    .pos-MID { --pos-color:var(--mid); color:var(--mid); } .pos-FWD { --pos-color:var(--fwd); color:var(--fwd); }
    .metric-bar { display:inline-flex; position:relative; align-items:center; justify-content:flex-end; min-width:56px; min-height:24px; padding:0 6px; isolation:isolate; }
    .metric-bar::before { content:""; position:absolute; inset:3px auto 3px 0; width:var(--bar,0%); background:var(--bar-color,rgba(225,182,84,.19)); border-radius:2px; z-index:-1; }
    .metric-season { color:var(--gold); --bar-color:rgba(225,182,84,.20); }
    .metric-form { color:var(--orange); --bar-color:rgba(255,152,95,.19); }
    .metric-value { color:var(--gold); --bar-color:rgba(225,182,84,.16); }
    .trend { font-size:10px; margin-left:5px; font-weight:700; }
    .trend.up { color:var(--good); } .trend.down { color:var(--danger); } .trend.flat { color:var(--subtle); }
    .thin-sample { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; margin-left:5px; border:1px solid rgba(255,139,130,.48); color:var(--danger); border-radius:50%; font:600 10px Inter,sans-serif; vertical-align:middle; }
    .table-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 15px; border-top:1px solid var(--border); color:var(--muted); background:var(--surface); font:11px 'IBM Plex Mono',monospace; }
    .table-footer .page-set { display:flex; align-items:center; gap:8px; }
    .table-footer select { color:var(--text); background:var(--surface-2); border:1px solid var(--border); border-radius:4px; padding:5px; font:11px 'IBM Plex Mono',monospace; }
    .table-footer button { color:var(--text); background:var(--surface-2); border:1px solid var(--border); border-radius:4px; padding:5px 10px; }
    .table-footer button:disabled { opacity:.3; }
    .loading, .error, .empty-state { padding:60px 25px; text-align:center; }
    .loading { color:var(--muted); font:12px 'IBM Plex Mono',monospace; }
    .loading::before { content:""; display:block; width:24px; height:24px; border:2px solid var(--border); border-top-color:var(--gold); border-radius:50%; margin:0 auto 15px; animation:spin 1s linear infinite; }
    @keyframes spin { to { transform:rotate(360deg); } }
    .error { color:var(--danger); }
    .empty-state h3 { margin:0 0 8px; font:500 24px Oswald,sans-serif; text-transform:uppercase; }
    .empty-state p { color:var(--muted); max-width:450px; margin:0 auto 18px; font-size:13px; }
    .empty-state button, .import-button { border:1px solid rgba(225,182,84,.55); border-radius:5px; padding:9px 13px; color:var(--gold); background:var(--gold-soft); }
    .empty-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }

    /* Mobile player cards. */
    .mobile-cards { display:none; }
    .mobile-card { border:1px solid var(--border); background:var(--surface); border-radius:7px; margin-bottom:10px; overflow:hidden; }
    .mobile-card-head { display:flex; align-items:center; gap:10px; padding:14px 13px 12px; }
    .mobile-card-title { flex:1; min-width:0; }
    .mobile-card-title strong { display:block; font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .mobile-card-title .meta { color:var(--muted); font:11px 'IBM Plex Mono',monospace; }
    .mobile-card-price { color:var(--gold); font:600 14px 'IBM Plex Mono',monospace; }
    .mobile-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 13px 13px; gap:7px; }
    .mobile-metric { padding:9px; border:1px solid var(--border-soft); border-radius:5px; background:#13231a; min-width:0; }
    .mobile-metric small { display:block; color:var(--subtle); font:500 9px 'IBM Plex Mono',monospace; text-transform:uppercase; margin-bottom:4px; }
    .mobile-metric strong { display:block; font:600 16px 'IBM Plex Mono',monospace; white-space:nowrap; }
    .mobile-metric.form strong { color:var(--orange); } .mobile-metric.value strong { color:var(--gold); }
    .mobile-details { border-top:1px solid var(--border-soft); }
    .mobile-details summary { padding:10px 13px; color:var(--muted); cursor:pointer; list-style:none; display:flex; justify-content:space-between; font:11px 'IBM Plex Mono',monospace; }
    .mobile-details summary::-webkit-details-marker { display:none; }
    .mobile-details summary::after { content:'+'; font-size:15px; line-height:1; }
    .mobile-details[open] summary::after { content:'−'; }
    .mobile-details-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; padding:3px 13px 15px; }
    .mobile-details-grid div span { display:block; color:var(--subtle); font:10px 'IBM Plex Mono',monospace; }
    .mobile-details-grid div strong { font:600 12px 'IBM Plex Mono',monospace; }
    .mini-history { margin-top:8px; display:inline-flex; gap:8px; align-items:center; color:var(--subtle); font:10px 'IBM Plex Mono',monospace; }
    .load-more { display:none; width:100%; padding:12px; border:1px solid var(--border); border-radius:5px; color:var(--text); background:var(--surface-2); }

    /* Compare bar and comparison dialog */
    .compare-tray { position:fixed; left:50%; bottom:22px; transform:translateX(-50%); z-index:50; width:min(620px,calc(100% - 28px)); display:flex; align-items:center; gap:14px; padding:12px 14px; background:#22372a; border:1px solid rgba(225,182,84,.45); border-radius:8px; box-shadow:var(--shadow); }
    .compare-tray .text { flex:1; min-width:0; }
    .compare-tray .text strong { font-size:12px; display:block; }
    .compare-tray .text small { font-size:11px; color:var(--muted); display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
    .compare-tray button { border:1px solid var(--border); border-radius:4px; background:var(--surface); color:var(--text); padding:8px 12px; font-size:12px; }
    .compare-tray .compare-open { color:#17261b; background:var(--gold); border-color:var(--gold); font-weight:600; }
    dialog { color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:10px; width:min(740px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto; padding:0; box-shadow:var(--shadow); }
    dialog::backdrop { background:rgba(4,13,8,.78); backdrop-filter:blur(3px); }
    .dialog-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:20px 23px; border-bottom:1px solid var(--border); }
    .dialog-head h2 { font:500 25px Oswald,sans-serif; margin:3px 0 0; text-transform:uppercase; }
    .dialog-close { background:transparent; border:1px solid var(--border); color:var(--text); border-radius:5px; width:32px; height:32px; font-size:19px; }
    .compare-content { padding:18px 23px 23px; }
    .compare-players { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px; }
    .compare-player { background:var(--surface-2); border:1px solid var(--border); border-radius:6px; padding:14px; }
    .compare-player strong { display:block; font:500 24px Oswald,sans-serif; }
    .compare-player span { font:11px 'IBM Plex Mono',monospace; color:var(--muted); }
    .compare-stats { width:100%; border-collapse:collapse; min-width:0; table-layout:fixed; }
    .compare-stats th, .compare-stats td { padding:11px 8px; border-bottom:1px solid var(--border-soft); background:transparent; font:12px 'IBM Plex Mono',monospace; }
    .compare-stats td { width:33%; text-align:center; }
    .compare-stats th { width:34%; text-align:center; font-size:10px; color:var(--muted); }
    .compare-stats .winner { color:var(--good); font-weight:600; }
    .dialog-note { color:var(--muted); font-size:11px; margin:18px 0 0; }

    .methodology { border-top:1px solid var(--border); margin-top:28px; padding-top:20px; display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:11.5px; }
    .methodology p { margin:3px 0; max-width:980px; }
    .methodology strong { color:var(--text); font-weight:600; }
    .methodology .source-pill { flex:none; color:var(--subtle); font:10px 'IBM Plex Mono',monospace; padding-top:5px; }

    @media (max-width:1190px) {
      .wrap { padding:25px 23px 55px; }
      .filters-main { grid-template-columns:1.2fr 1.1fr .8fr .7fr; }
      .filters-main .reset-slot { grid-column:span 4; }
      .filters-main .reset-slot button { height:30px; }
    }
    @media (max-width:820px) {
      .topbar { align-items:flex-start; }
      .brand-label { display:none; }
      .hero-aside { display:none; }
      .filters-main { grid-template-columns:1fr 1fr; gap:12px; }
      .filters-main .reset-slot { grid-column:span 2; }
      .field.search-field { grid-column:span 2; }
      .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
      .section-heading { align-items:flex-start; flex-direction:column; }
      .table-tools { justify-content:flex-start; }
      .table-container, .table-footer { display:none !important; }
      .mobile-cards { display:block; }
      .load-more { display:block; }
      .data-context { margin-bottom:12px; }
      .methodology { flex-direction:column; }
    }
    @media (max-width:560px) {
      .topbar { flex-direction:column; align-items:stretch; gap:10px; }
      .status-row { justify-content:flex-start; }
      .wrap { padding:17px 13px 50px; }
      .brand h1 { font-size:23px; }
      .brand-icon { width:33px; height:33px; }
      .status-row { gap:7px; font-size:10px; }
      .status-row .season-chip { padding:4px 6px; }
      .status-row #lastUpdated { max-width:140px; font-size:9px; }
      .topbar { gap:7px; }
      .hero { margin:25px 0 20px; }
      .hero h2 { font-size:34px; }
      .filter-panel { padding:13px; }
      .filters-main { grid-template-columns:1fr 1fr; gap:11px; }
      .field.position-field { grid-column:span 2; }
      .stats-grid { gap:8px; margin-bottom:24px; }
      .stat-card { padding:13px 13px 12px; }
      .stat-card .value { font-size:27px; }
      .stat-card .sub { font-size:10.5px; }
      .table-tools .view-switch { display:none; }
      .section-heading h2 { font-size:22px; }
      .filter-note { font-size:10.5px; }
      .minutes-presets .eyebrow { flex-basis:100%; }
      .dialog-head { padding:16px; }
      .compare-content { padding:14px; }
      .compare-player strong { font-size:21px; }
    }
    @media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }
  
/* Discrete performance bars avoid dynamic style attributes under strict style-src-attr. */
.metric-bar.bar-0::before { width: 0%; }
.metric-bar.bar-1::before { width: 5%; }
.metric-bar.bar-2::before { width: 10%; }
.metric-bar.bar-3::before { width: 15%; }
.metric-bar.bar-4::before { width: 20%; }
.metric-bar.bar-5::before { width: 25%; }
.metric-bar.bar-6::before { width: 30%; }
.metric-bar.bar-7::before { width: 35%; }
.metric-bar.bar-8::before { width: 40%; }
.metric-bar.bar-9::before { width: 45%; }
.metric-bar.bar-10::before { width: 50%; }
.metric-bar.bar-11::before { width: 55%; }
.metric-bar.bar-12::before { width: 60%; }
.metric-bar.bar-13::before { width: 65%; }
.metric-bar.bar-14::before { width: 70%; }
.metric-bar.bar-15::before { width: 75%; }
.metric-bar.bar-16::before { width: 80%; }
.metric-bar.bar-17::before { width: 85%; }
.metric-bar.bar-18::before { width: 90%; }
.metric-bar.bar-19::before { width: 95%; }
.metric-bar.bar-20::before { width: 100%; }

.mini-history-row { grid-column: span 2; }
