.world-rankings-page {
  padding-block: var(--space-8) var(--space-12);
}

.world-rankings-page__filters {
  margin-bottom: var(--space-6);
}

.world-rankings-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.world-rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.world-rankings-table th,
.world-rankings-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.world-rankings-table th {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
}

.world-rankings-table tbody tr:last-child td {
  border-bottom: none;
}

.world-rankings-table tbody tr:hover {
  background: var(--color-surface-muted);
}

.world-rankings-table__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-bold);
  background: var(--color-surface-muted);
}

.world-rankings-table__rank--top {
  background: var(--color-brand-gold);
  color: var(--color-brand-charcoal);
}

.world-rankings-table__name a {
  font-weight: var(--font-weight-semibold);
  color: var(--color-link);
  text-decoration: none;
}

.world-rankings-table__athlete {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.world-rankings-table__athlete-name a {
  font-weight: var(--font-weight-semibold);
  color: var(--color-link);
  text-decoration: none;
}

.world-rankings-table__name a:hover,
.world-rankings-table__athlete-name a:hover {
  color: var(--color-brand-gold-dark);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .world-rankings-table th:nth-child(4),
  .world-rankings-table td:nth-child(4) {
    display: none;
  }
}
