body.rk2 {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.rk2 .hv2-page {
  background: #f4f7fb;
  overflow: visible;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rk2-main {
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rk2-hero {
  background: var(--navy, #0a1931);
  color: #fff;
}

.rk2-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1.8rem 1.5rem 1.5rem;
  box-sizing: border-box;
}

.rk2-kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(200, 16, 46, 0.4);
  background: rgba(200, 16, 46, 0.14);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff6b81;
}

.rk2-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rk2-lead {
  margin: 0 0 1.1rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.55;
}

.rk2-switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 1.15rem;
}

.rk2-switch-btn {
  min-height: 36px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.rk2-switch-btn.is-active {
  background: #fff;
  color: var(--navy, #0a1931);
}

.rk2-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin: 0;
}

.rk2-stats div {
  min-width: 4.5rem;
}

.rk2-stats dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.rk2-stats dd {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.rk2-filters {
  background: #fff;
  border-bottom: 1px solid var(--line, #e8eef5);
}

.rk2-filters-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.7rem;
  align-items: end;
}

.rk2-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.rk2-field span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6b7c8f);
}

.rk2-field select,
.rk2-field input {
  width: 100%;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line, #e8eef5);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #0a1931);
  font: inherit;
}

.rk2-search-btn {
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--navy, #0a1931);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.rk2-body {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1.1rem 1.5rem 2.4rem;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rk2-panel:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rk2-subtabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.rk2-subtab {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line, #e8eef5);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #0a1931);
  font-weight: 700;
}

.rk2-subtab.is-active {
  background: var(--navy, #0a1931);
  border-color: var(--navy, #0a1931);
  color: #fff;
}

.rk2-leaders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}

.rk2-leader {
  background: #fff;
  border: 1px solid var(--line, #e8eef5);
  border-radius: 12px;
  padding: 0.75rem 0.8rem 0.7rem;
}

.rk2-leader-kicker {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #6b7c8f);
}

.rk2-leader-val {
  display: block;
  margin: 0.2rem 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy, #0a1931);
}

.rk2-leader-name {
  display: block;
  color: var(--navy, #0a1931);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

a.rk2-leader-name:hover { color: var(--red, #c8102e); }

.rk2-leader-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted, #6b7c8f);
}

.rk2-tbl-wrap {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 18rem;
  max-height: none;
  background: #fff;
  border: 1px solid var(--line, #e8eef5);
  border-radius: 12px;
}

.rk2-tbl-wrap--fit {
  overflow-x: hidden;
}

.rk2-tbl {
  width: 100%;
  min-width: max(100%, 1100px);
  border-collapse: collapse;
  font-size: 0.78rem;
}

.rk2-tbl--compact { min-width: max(100%, 760px); }

.rk2-tbl--fit {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.7rem;
}

.rk2-tbl--fit th,
.rk2-tbl--fit td {
  padding: 0.42rem 0.22rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rk2-tbl--fit .rk2-avatar {
  width: 24px;
  height: 24px;
}

.rk2-tbl--fit .rk2-jersey,
.rk2-tbl--fit .rk2-sub {
  display: none;
}

.rk2-tbl--fit .rk2-person {
  min-width: 0;
  max-width: 100%;
  gap: 0.35rem;
}

.rk2-tbl--fit .rk2-person-copy,
.rk2-tbl--fit .rk2-person-copy strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rk2Batting th:nth-child(1),
#rk2Batting td:nth-child(1) { width: 1.7rem; }
#rk2Batting th:nth-child(2),
#rk2Batting td:nth-child(2) { width: 10.5rem; }
#rk2Batting th:nth-child(3),
#rk2Batting td:nth-child(3) { width: 7.6rem; }

#rk2Pitching th:nth-child(1),
#rk2Pitching td:nth-child(1) { width: 1.7rem; }
#rk2Pitching th:nth-child(2),
#rk2Pitching td:nth-child(2) { width: 12rem; }
#rk2Pitching th:nth-child(3),
#rk2Pitching td:nth-child(3) { width: 8.5rem; }

.rk2-col-extra { display: none; }

.rk2-tbl th,
.rk2-tbl td {
  padding: 0.62rem 0.5rem;
  border-bottom: 1px solid var(--line, #e8eef5);
  white-space: nowrap;
  vertical-align: middle;
}

.rk2-tbl th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--line, #e8eef5);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted, #6b7c8f);
}

.rk2-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border-top: 1px solid var(--line, #e8eef5);
  background: #f8fafc;
  color: var(--muted, #6b7c8f);
  font-size: 0.76rem;
  font-weight: 700;
}

.rk2-more[hidden] { display: none; }

.rk2-more-count { color: var(--navy, #0a1931); }

.rk2-tbl td:not(:nth-child(2)),
.rk2-tbl th:not(:nth-child(2)) {
  text-align: center;
}

.rk2-tbl th[data-rk-sort] {
  cursor: pointer;
  user-select: none;
}

.rk2-tbl th[data-rk-sort]:hover { color: var(--navy, #0a1931); }
.rk2-tbl th[data-dir="desc"]::after { content: " ▾"; }
.rk2-tbl th[data-dir="asc"]::after { content: " ▴"; }

.rk2-tbl a {
  color: var(--navy, #0a1931);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rk2-tbl a:hover { color: var(--red, #c8102e); }

.rk2-rank { font-weight: 800; }
.rk2-rank--1 { color: #b45309; }
.rk2-rank--2 { color: #64748b; }
.rk2-rank--3 { color: #b45309; }

.rk2-person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: inherit;
}

.rk2-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e8eef5;
}

.rk2-avatar--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--navy, #0a1931);
}

.rk2-person-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  min-width: 0;
}

.rk2-jersey {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--muted, #6b7c8f);
}

.rk2-sub {
  font-size: 0.68rem;
  color: var(--muted, #6b7c8f);
  white-space: nowrap;
}

.rk2-rd--pos { color: #15803d; font-weight: 700; }
.rk2-rd--neg { color: #b91c1c; font-weight: 700; }

.rk2-note,
.rk2-empty {
  margin: 0.85rem 0 0;
  color: var(--muted, #6b7c8f);
  font-size: 0.82rem;
}

.rk2-empty {
  padding: 1.4rem 1rem;
  background: #fff;
  border: 1px solid var(--line, #e8eef5);
  border-radius: 12px;
}

@media (max-width: 860px) {
  .rk2-filters-inner {
    grid-template-columns: 1fr 1fr;
  }

  .rk2-field--search,
  .rk2-search-btn {
    grid-column: 1 / -1;
  }

  #rk2Batting .rk2-col-md {
    display: none;
  }

  #rk2Batting th:nth-child(2),
  #rk2Batting td:nth-child(2) { width: 42%; }
  #rk2Batting th:nth-child(3),
  #rk2Batting td:nth-child(3) { width: 28%; }
}

@media (max-width: 560px) {
  .rk2-filters-inner {
    grid-template-columns: 1fr;
  }
}
