#main_body:has(> #player_statistics) {
  align-self: flex-start;
}

#player_statistics {
  flex: 1 1 auto;
  min-width: 0;
  background: #f4f7fa;
  color: #263746;

  .statistics_container { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 72px; }
  .statistics_header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
  .statistics_eyebrow { color: #238cb9; font: 13px 'Acme'; letter-spacing: .08em; text-transform: uppercase; }
  h1 { margin: 5px 0 8px; font-size: clamp(32px, 4vw, 44px); font-weight: 400; line-height: 1.1; }
  h2 { margin: 0; font-size: 24px; font-weight: 400; }
  p { margin: 6px 0 0; color: #647181; font-size: 16px; line-height: 1.5; }
  .statistics_button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; box-sizing: border-box; padding: 8px 15px; border: 1px solid #aebdca; border-radius: 8px; background: #fff; color: #34475a; font: 16px 'Acme'; cursor: pointer; white-space: nowrap; }
  .statistics_button:hover { background: #eef5f8; border-color: #7891a3; color: #176b96; }
  .statistics_player { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; background: #fff; border: 1px solid #dce4eb; border-radius: 14px; }
  .statistics_identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
  .statistics_identity h2 { overflow-wrap: anywhere; }
  .statistics_identity .avatar { flex-shrink: 0; }
  .statistics_player_form { display: flex; flex-direction: column; gap: 8px; }
  .statistics_player_form label { font-size: 14px; color: #647181; }
  .statistics_player_form > div { display: flex; gap: 8px; }
  select {
    box-sizing: border-box;
    appearance: none;
    min-width: 0;
    max-width: 260px;
    min-height: 42px;
    padding: 8px 42px 8px 12px;
    border: 1px solid #aebdca;
    border-radius: 8px;
    background: #fff url("/assets/select-chevron-f483c4ca.svg") no-repeat right 14px center / 14px 14px;
    color: #263746;
    font: inherit;
  }
  .statistics_tabs { display: flex; gap: 8px; margin-top: 20px; }
  .statistics_tabs a { padding: 10px 16px; border-radius: 8px; color: #526779; background: #e8eef3; }
  .statistics_tabs a[aria-current="page"] { background: #d9f0fc; color: #176b96; box-shadow: inset 0 0 0 1px #99cfe9; }
  .statistics_summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
  .statistics_summary > div { padding: 20px; background: #fff; border: 1px solid #dce4eb; border-radius: 12px; }
  .statistics_summary dt { font-family: 'Acme'; font-size: 18px; }
  .statistics_summary dd { font-family: 'Acme'; }
  dt { font-size: 14px; color: #647181; }
  dd { margin: 10px 0 0; font-size: clamp(22px, 3vw, 32px); font-variant-numeric: tabular-nums; }
  .statistics_boards { border: 1px solid #dce4eb; border-radius: 14px; background: #fff; overflow: hidden; }
  .statistics_boards > header { padding: 24px; }
  .statistics_boards > header p { max-width: 760px; font-size: 14px; }
  .statistics_table_scroll { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
  th, td { padding: 12px 16px; border-top: 1px solid #e3eaf0; text-align: right; white-space: nowrap; }
  th:first-child { text-align: left; white-space: normal; min-width: 150px; }
  thead th { background: #f8fafc; color: #647181; font-weight: 400; font-size: 14px; }
  thead a { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
  thead a:hover, thead th[aria-sort] a { color: #176b96; }
  thead a span { font-size: 12px; }
  tbody th { font-weight: 400; }
  tbody tr:hover { background: #f8fbfd; }
  .statistics_played { color: #176b96; font-weight: 700; }
  .statistics_empty { padding: 32px 24px 40px; text-align: center; border-top: 1px solid #e3eaf0; }
  .statistics_empty h3 { margin: 0; font-size: 23px; font-weight: 400; }
  .statistics_empty .statistics_button { margin-top: 20px; }
  .statistics_sr_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  :is(a, input, select, [tabindex]):focus-visible { outline: 2px solid #176b96; outline-offset: 3px; }
}

@media (forced-colors: active) {
  #player_statistics select {
    appearance: auto;
    padding-right: 12px;
    background-image: none;
  }
}

@media (max-width: 700px) {
  #player_statistics {
    .statistics_container { width: calc(100% - 28px); padding-top: 24px; }
    .statistics_header { align-items: flex-start; flex-direction: column; gap: 16px; }
    .statistics_player { align-items: stretch; flex-direction: column; padding: 20px; }
    .statistics_player_form select { flex: 1; max-width: none; width: 100%; }
    .statistics_summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .statistics_summary > div { padding: 16px; }
    th, td { padding: 10px 12px; }
  }
}
