.ranking-page { max-width: 620px; margin: 0 auto; padding-bottom: var(--content-bottom); }

.compact-header h1 {
  margin: 12px var(--page-gutter) 16px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
}

.season-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 var(--page-gutter);
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #121214;
}
.season-tab {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.season-tab.is-active { background: var(--surface-raised); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  padding: 28px 10px 18px;
}
.podium-place { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.podium-place.rank-1 { transform: translateY(-12px); }
/* Small foil medallions instead of laurel wreaths: a clean metallic accent. */
.podium-medal {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: -5px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: rgba(24, 18, 8, 0.85);
  box-shadow: 0 5px 14px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.55);
}
.podium-medal::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.34;
}
.medal-1 { background: linear-gradient(145deg, #f6e3aa, #c89941 55%, #8a6224); }
.medal-2 { background: linear-gradient(145deg, #f0f2f4, #adb2b9 55%, #73787f); color: #1c1e21; }
.medal-3 { background: linear-gradient(145deg, #e8b58a, #b27648 55%, #77462a); color: #24140c; }
.podium-avatar { position: relative; width: 66px; height: 66px; font-size: 22px; }
.rank-1 .podium-avatar { width: 86px; height: 86px; font-size: 28px; box-shadow: 0 0 0 2px rgba(212,172,91,0.5), 0 0 24px rgba(212,172,91,0.28); }
.rank-2 .podium-avatar { box-shadow: 0 0 0 2px rgba(205,210,216,0.32), 0 0 18px rgba(205,210,216,0.14); }
.rank-3 .podium-avatar { box-shadow: 0 0 0 2px rgba(178,111,67,0.34), 0 0 18px rgba(178,111,67,0.16); }
.place-number { margin-top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--text-muted); font-size: 11px; font-weight: 700; }
.rank-1 .place-number { background: rgba(212,172,91,0.12); color: var(--gold); }
.podium-place h3 { max-width: 100%; margin-top: 2px; overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.podium-rating { margin-top: 3px; font-size: 18px; font-variant-numeric: tabular-nums; }
.rank-1 .podium-rating { color: var(--gold); font-size: 22px; }
.podium-place small { color: var(--text-muted); font-size: 11px; }

.ranking-list { margin: 0 var(--page-gutter); border-top: 1px solid var(--border); }
.ranking-row {
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  border-bottom: 1px solid rgba(43,41,45,0.7);
}
.row-place { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.row-main { min-width: 0; display: grid; gap: 2px; }
.row-name { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.row-rating { font-size: 15px; font-variant-numeric: tabular-nums; }
.ranking-note { margin: 18px var(--page-gutter); color: #777176; font-size: 11px; }

.empty-ranking { margin: 30px var(--page-gutter); padding: 26px 18px; border: 1px dashed var(--border); border-radius: var(--card-radius); text-align: center; }
.empty-ranking .icon { width: 28px; height: 28px; color: var(--text-muted); }
.empty-ranking strong { display: block; margin-top: 10px; }
.empty-ranking small { display: block; margin-top: 5px; color: var(--text-muted); }

@media (max-width: 370px) {
  .podium { padding-inline: 4px; gap: 2px; }
  .podium-avatar { width: 62px; height: 62px; }
  .rank-1 .podium-avatar { width: 80px; height: 80px; }
  .podium-place h3 { font-size: 12px; }
}
