.ephio-data-main {
  background: var(--ephio-page-wash);
  min-height: 100vh;
  padding: 48px;
}

.ephio-data-header {
  border-bottom: 1px solid var(--ephio-line);
  margin-bottom: 38px;
  max-width: 1180px;
  padding-bottom: 34px;
}

.ephio-data-kicker {
  color: var(--ephio-accent);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.ephio-data-header h1,
.ephio-ranking-heading h2 {
  color: var(--ephio-heading);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ephio-data-header h1 {
  font-size: 64px;
  line-height: 0.9;
  margin: 12px 0 16px;
}

.ephio-data-header > p:last-child {
  color: var(--ephio-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 570px;
}

.ephio-data-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  max-width: 1180px;
}

.ephio-filter-panel,
.ephio-ranking-panel,
.ephio-search-panel,
.ephio-player-stats,
.ephio-player-summary > div {
  background: var(--ephio-surface);
  border: 1px solid var(--ephio-line);
}

.ephio-filter-panel {
  align-content: start;
  display: grid;
  gap: 19px;
  padding: 22px;
}

.ephio-filter-heading {
  border-bottom: 1px solid var(--ephio-line);
  display: grid;
  gap: 5px;
  padding-bottom: 17px;
}

.ephio-filter-heading span,
.ephio-filter-panel label span,
.ephio-player-search label {
  color: var(--ephio-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.ephio-filter-panel label {
  display: grid;
  gap: 7px;
}

.ephio-filter-panel select,
.ephio-player-filters select,
.ephio-player-search input {
  background: var(--ephio-surface-strong);
  border: 1px solid var(--ephio-line);
  border-radius: 0;
  color: var(--ephio-heading);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 42px;
  padding: 0 10px;
}

.ephio-ranking-panel,
.ephio-player-stats,
.ephio-search-panel {
  padding: 26px;
}

.ephio-ranking-heading {
  align-items: end;
  border-bottom: 1px solid var(--ephio-line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 20px;
}

.ephio-ranking-heading h2 {
  font-size: 35px;
  line-height: 1;
  margin: 8px 0 0;
}

.ephio-ranking-heading a,
.ephio-empty-state a {
  border-bottom: 1px solid var(--ephio-accent);
  color: var(--ephio-heading);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 5px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.ephio-ranking-heading a:hover,
.ephio-ranking-heading a:focus-visible,
.ephio-empty-state a:hover,
.ephio-empty-state a:focus-visible {
  color: var(--ephio-accent);
}

.ephio-leaderboard-table-wrapper {
  overflow-x: auto;
}

.ephio-data-page .leaderboard-table {
  border-collapse: collapse;
  min-width: 440px;
  width: 100%;
}

.ephio-data-page .leaderboard-table td {
  border-bottom: 1px solid var(--ephio-line);
  color: var(--ephio-muted);
  font-size: 15px;
  padding: 14px 12px;
}

.ephio-data-page .leaderboard-table tr:last-child td {
  border-bottom: 0;
}

.ephio-data-page .leaderboard-table a {
  color: var(--ephio-heading);
  text-decoration: none;
}

.ephio-data-page .leaderboard-table a:hover,
.ephio-data-page .leaderboard-table a:focus-visible {
  color: var(--ephio-accent);
}

.ephio-data-page .leaderboard-table .rank-column {
  color: var(--ephio-accent);
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  width: 12%;
}

.ephio-data-page .leaderboard-table .value-column {
  font-variant-numeric: tabular-nums;
  text-align: right;
  width: 27%;
}

.ephio-empty-state {
  color: var(--ephio-muted);
  line-height: 1.5;
  margin: 0;
}

.ephio-activity-panel {
  background: var(--ephio-surface);
  border: 1px solid var(--ephio-line);
  max-width: 1180px;
  padding: 26px;
}

.ephio-activity-count {
  color: var(--ephio-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.ephio-activity-table-wrapper {
  overflow-x: auto;
}

.ephio-activity-table {
  border-collapse: collapse;
  min-width: 800px;
  width: 100%;
}

.ephio-activity-table th,
.ephio-activity-table td {
  border-bottom: 1px solid var(--ephio-line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.ephio-activity-table th {
  color: var(--ephio-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.ephio-activity-table td {
  color: var(--ephio-muted);
  font-size: 14px;
  line-height: 1.45;
}

.ephio-activity-table tr:last-child td {
  border-bottom: 0;
}

.ephio-activity-table td:first-child,
.ephio-activity-table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ephio-activity-table td:nth-child(1) {
  width: 18%;
}

.ephio-activity-table td:nth-child(2) {
  color: var(--ephio-accent);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  width: 14%;
}

.ephio-activity-table td:nth-child(3) {
  color: var(--ephio-heading);
  width: 42%;
}

.ephio-activity-table a {
  color: inherit;
  text-decoration-color: var(--ephio-accent);
  text-underline-offset: 3px;
}

.ephio-activity-table a:hover,
.ephio-activity-table a:focus-visible {
  color: var(--ephio-accent);
}

.ephio-search-panel {
  max-width: 780px;
}

.ephio-player-search {
  display: grid;
  gap: 9px;
}

.ephio-player-search > div {
  display: flex;
}

.ephio-player-search input {
  flex: 1;
  min-width: 0;
}

.ephio-player-search button {
  background: var(--ephio-accent);
  border: 1px solid var(--ephio-accent);
  color: #1d130e;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 0 22px;
  text-transform: uppercase;
}

.ephio-search-results {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.ephio-search-results li {
  border-top: 1px solid var(--ephio-line);
}

.ephio-search-results a {
  align-items: center;
  color: var(--ephio-heading);
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  text-decoration: none;
}

.ephio-search-results a:hover,
.ephio-search-results a:focus-visible {
  color: var(--ephio-accent);
}

.ephio-search-results small {
  color: var(--ephio-muted);
  font-variant-numeric: tabular-nums;
}

.ephio-player-summary {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
  max-width: 780px;
}

.ephio-player-summary > div + div {
  border-left: 0;
}

.ephio-player-summary > div {
  display: grid;
  gap: 7px;
  padding: 22px;
}

.ephio-player-summary span {
  color: var(--ephio-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.ephio-player-summary strong {
  color: var(--ephio-heading);
  font-family: 'Rajdhani', sans-serif;
  font-size: 35px;
  line-height: 1;
}

.ephio-player-stats {
  max-width: 780px;
}

.ephio-player-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.ephio-stat-list {
  margin: 0;
}

.ephio-stat-list > div {
  align-items: center;
  border-top: 1px solid var(--ephio-line);
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}

.ephio-stat-list dt {
  color: var(--ephio-muted);
}

.ephio-stat-list dd {
  color: var(--ephio-heading);
  font-family: 'Rajdhani', sans-serif;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

@media (max-width: 900px) {
  .ephio-data-main {
    padding: 32px 24px;
  }

  .ephio-data-layout {
    grid-template-columns: 1fr;
  }

  .ephio-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ephio-filter-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ephio-data-main {
    padding: 28px 16px;
  }

  .ephio-data-header {
    margin-bottom: 26px;
    padding-bottom: 24px;
  }

  .ephio-data-header h1 {
    font-size: 48px;
  }

  .ephio-filter-panel,
  .ephio-ranking-panel,
  .ephio-search-panel,
  .ephio-player-stats,
  .ephio-activity-panel {
    padding: 18px;
  }

  .ephio-filter-panel {
    grid-template-columns: 1fr;
  }

  .ephio-ranking-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ephio-ranking-heading h2 {
    font-size: 30px;
  }

  .ephio-player-summary {
    grid-template-columns: 1fr;
  }

  .ephio-player-summary > div + div {
    border-left: 1px solid var(--ephio-line);
    border-top: 0;
  }

  .ephio-player-filters {
    flex-direction: column;
  }

  .ephio-player-search > div {
    display: grid;
    gap: 8px;
  }

  .ephio-player-search button {
    min-height: 42px;
  }

  .ephio-search-results a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}