.rankings-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #0a0b11 0%, #09090d 100%);
}

.rankings-card {
  width: min(1200px, 100%);
  margin: 0 auto;
  background: rgba(15, 17, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}

.rankings-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rankings-mode {
  font-weight: 700;
  opacity: 0.92;
}

.rankings-logo {
  display: block;
  width: min(320px, 82%);
  margin: 1rem auto 1.5rem;
}

.rankings-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.rankings-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  opacity: 0.8;
}

.rankings-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin: 0.35rem 0;
}

.rankings-subtitle {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0.88;
  line-height: 1.5;
}

.rankings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1rem;
}

.summary-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
  margin-bottom: 0.45rem;
}

.summary-value {
  font-size: 1.45rem;
  font-weight: 800;
}

.summary-meta {
  margin-top: 0.25rem;
  opacity: 0.8;
  font-size: 0.92rem;
}

.rankings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.rankings-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.rankings-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}

.rankings-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 215, 0, 0.35);
}

.rankings-panel {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.rankings-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rankings-panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  opacity: 0.72;
}

.rankings-panel-title {
  font-size: 1.6rem;
  font-weight: 800;
}

.limit-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.limit-control select {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
}

.rankings-status {
  margin-bottom: 1rem;
  opacity: 0.82;
}

.rankings-status.is-error {
  color: #ff8e8e;
}

.rankings-table-wrapper {
  overflow-x: auto;
  border-radius: 18px;
}

.rankings-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.rankings-table th,
.rankings-table td {
  text-align: left;
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.rankings-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.rankings-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.col-rank {
  font-weight: 800;
  width: 64px;
}

.col-highlight {
  font-weight: 800;
}

.champion-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.champion-avatar {
  width: 92px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: block;
  background: rgba(255, 255, 255, 0.03);
}

.champion-texts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.champion-name {
  font-weight: 800;
}

.champion-slug {
  font-size: 0.85rem;
  opacity: 0.7;
}

.empty-state-cell {
  text-align: center;
  padding: 2rem 1rem;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .rankings-summary {
    grid-template-columns: 1fr;
  }

  .rankings-panel-top {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .rankings-page {
    padding: 1rem 0.75rem;
  }

  .rankings-card {
    border-radius: 22px;
    padding: 1rem;
  }

  .rankings-tabs {
    gap: 0.6rem;
  }

  .rankings-tab {
    width: 100%;
    text-align: center;
  }

  .summary-value {
    font-size: 1.2rem;
  }

  .champion-avatar {
   width: 72px;
   height: 44px;
   border-radius: 12px;
  }
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.6rem 1rem;
  border-radius: 999px;

  font-weight: 700;
  font-size: 0.9rem;

  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(6px);

  transition: all 0.2s ease;
}

.back-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.35);
}

.back-button:active {
  transform: scale(0.98);
}

.rankings-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.rankings-pagination-info {
  opacity: 0.82;
  font-size: 0.95rem;
}

.rankings-pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pagination-button,
.pagination-page-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.pagination-button:hover,
.pagination-page-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.pagination-page-button.is-active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 215, 0, 0.35);
}

@media (max-width: 640px) {
  .rankings-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .rankings-pagination-controls {
    justify-content: center;
  }

  .pagination-button,
  .pagination-page-button {
    padding: 0.7rem 0.85rem;
  }
}