/* Isolated modern FFF Stats Dashboard — no changes to existing templates. */
.fffds-stats{--fffds-ink:#14283e;--fffds-blue:#0d6e9d;--fffds-pink:#d12c71;--fffds-line:#dde7f0;box-sizing:border-box;position:relative;left:50%;transform:translateX(-50%);width:min(1330px,calc(100vw - 44px));max-width:none;margin:26px 0 55px;padding:27px 29px 34px;border-radius:17px;background:#f3f7fa;color:var(--fffds-ink);font:14px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.fffds-stats *{box-sizing:border-box}.fffds-stats a{color:#0b6892;text-decoration:none}.fffds-stats a:hover{text-decoration:underline}.fffds-stats a:focus-visible,.fffds-stats select:focus-visible,.fffds-stats button:focus-visible{outline:3px solid #f2a6c0;outline-offset:2px}
.fffds-stats-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:5px 3px 24px}.fffds-stats-intro h1{margin:0 0 7px;color:var(--fffds-ink);font:bold clamp(27px,3vw,35px)/1.16 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;letter-spacing:-.035em}.fffds-stats-intro p{margin:0;color:#678199;font-size:13px}.fffds-stats-pill{padding:7px 12px;border-radius:99px;background:#e6eef4;color:#46718c;font-weight:750;font-size:11px;white-space:nowrap}
.fffds-stats-card{background:#fff;border:1px solid var(--fffds-line);border-radius:14px;overflow:hidden;box-shadow:0 8px 28px rgba(21,58,86,.035)}
.fffds-stats-filters{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;padding:23px 24px;border-bottom:1px solid var(--fffds-line);margin:0}.fffds-stats-filters>div{display:flex;flex-direction:column;gap:7px;min-width:190px}.fffds-stats-filters .fffds-stats-filter-stat{flex:1;max-width:440px}.fffds-stats-filters label{font-size:12px;font-weight:760;color:#56718a}.fffds-stats-filters select{min-height:44px;padding:7px 36px 7px 13px;appearance:auto;border:1px solid #c9dce9;border-radius:9px;background:#fff;color:#193a54;font:700 13px system-ui,-apple-system,"Segoe UI",Arial,sans-serif;width:100%;cursor:pointer}
.fffds-stats-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 25px 23px}.fffds-stats-overline{font-size:11px;letter-spacing:.11em;color:var(--fffds-pink);font-weight:800}.fffds-stats-heading h2{font:bold clamp(21px,2.8vw,27px)/1.25 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--fffds-ink);letter-spacing:-.025em;margin:6px 0}.fffds-stats-heading p{margin:0;color:#70899b;font-size:12px}.fffds-stats-season-label{padding:8px 12px;border-radius:99px;background:#eef4f8;color:#6a879a;font-weight:750;font-size:11px;white-space:nowrap}
.fffds-stats-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:0 24px 26px}.fffds-stats-leader{position:relative;padding:19px 18px 16px;border:1px solid #dce7ef;border-radius:12px;background:#f7fafc;min-width:0;display:flex;flex-direction:column;gap:5px}.fffds-stats-leader.is-first{border-color:#e8adc7;background:#fff7fa}.fffds-stats-leader-rank{font-size:12px;font-weight:850;color:#ce3574}.fffds-stats-leader-name{font-size:13px;font-weight:800;line-height:1.45;min-height:36px}.fffds-stats-leader-name a{font-weight:800}.fffds-stats-leader strong{font:bold 30px/1.1 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--fffds-ink)}.fffds-stats-leader small{color:#738a9b;font-size:11px}
.fffds-stats-table-scroll{margin:0 24px 25px;border:1px solid var(--fffds-line);border-radius:10px;overflow-x:auto}.fffds-stats-table{margin:0!important;border-collapse:separate!important;border-spacing:0!important;width:100%;min-width:600px}.fffds-stats-table th,.fffds-stats-table td{border:0!important;border-bottom:1px solid var(--fffds-line)!important;padding:12px 13px!important;font:600 13px/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--fffds-ink);background:#fff;text-align:center!important}.fffds-stats-table thead th{background:#f0f5f9;font-weight:800;color:#5e7c91;font-size:12px}.fffds-stats-table tbody th{text-align:left!important;min-width:160px;font-weight:760}.fffds-stats-table tbody tr:nth-child(even)>*{background:#fafcfe}.fffds-stats-table tbody tr:hover>*{background:#f0f8fc}.fffds-stats-table tbody tr:last-child>*{border-bottom:0!important}.fffds-stats-pos{width:56px;color:#66879a!important}.fffds-stats-value{font-weight:850!important}.fffds-stats-table td:last-child{width:30%}.fffds-stats-bar{display:block;height:8px;border-radius:99px;background:#e8eff5;overflow:hidden;min-width:90px}.fffds-stats-bar>i{display:block;height:100%;background:#0d6e9d;border-radius:99px}.fffds-stats-empty{padding:22px 25px 36px;margin:0;color:#6c8295;font-size:14px}
@media(max-width:700px){.fffds-stats{width:calc(100vw - 20px);margin:14px 0 32px;padding:19px 11px;border-radius:12px}.fffds-stats-intro{padding:2px 5px 19px}.fffds-stats-intro p{font-size:12px}.fffds-stats-pill{font-size:10px;padding:5px 8px}.fffds-stats-filters{padding:18px 15px;gap:13px}.fffds-stats-filters>div,.fffds-stats-filters .fffds-stats-filter-stat{min-width:100%;max-width:none}.fffds-stats-heading{padding:22px 16px 18px;align-items:flex-start;flex-direction:column;gap:11px}.fffds-stats-podium{padding:0 14px 19px;gap:7px}.fffds-stats-leader{padding:13px 10px}.fffds-stats-leader-name{font-size:11px;min-height:46px}.fffds-stats-leader strong{font-size:25px}.fffds-stats-leader small{font-size:10px}.fffds-stats-table-scroll{margin:0 10px 18px}.fffds-stats-table th,.fffds-stats-table td{padding:10px 9px!important;font-size:12px}}


/* Put the selected metric first and visually emphasize its value. */
.fffds-stats-table td.fffds-stats-value{color:var(--fffds-blue);font-weight:850!important}

/* v0.8.3: A compact, three-column mobile leaderboard.
   The full Played and Comparison columns remain available on desktop. */
@media (max-width:700px) {
  .fffds-stats-table-scroll { overflow-x:hidden; }
  .fffds-stats-table {
    width:100% !important;
    min-width:0 !important;
    table-layout:fixed;
  }
  .fffds-stats-table .fffds-stats-secondary-col { display:none !important; }
  .fffds-stats-table thead th:first-child,
  .fffds-stats-table tbody td:first-child { width:41px !important; }
  .fffds-stats-table thead th:nth-child(3),
  .fffds-stats-table tbody td:nth-child(3) { width:85px !important; }
  .fffds-stats-table tbody th {
    min-width:0 !important;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .fffds-stats-table thead th:nth-child(2),
  .fffds-stats-table tbody th { text-align:left !important; }
  .fffds-stats-table thead th:nth-child(3),
  .fffds-stats-table tbody td:nth-child(3) { text-align:right !important; }
  .fffds-stats-table th,
  .fffds-stats-table td {
    padding:11px 9px !important;
    white-space:normal;
  }
}
