.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
.ranking-main {
  min-width: 0;
}
.ranking-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.tab-pill {
  border-bottom: 2px solid var(--accent);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 650;
  padding: 10px 0;
}
.ranking-toolbar .muted {
  margin-left: auto;
  font-size: 12px;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.podium-card {
  min-width: 0;
  text-align: center;
  padding: 23px 12px 22px;
  position: relative;
}
.podium-card + .podium-card {
  border-left: 1px solid var(--line);
}
.podium-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 15px;
}
.podium-card:first-child .podium-number {
  color: var(--color-rank-gold);
}
.podium-card .avatar {
  margin: 0 auto 14px;
  width: 48px;
  height: 48px;
  font-size: 18px;
  border-radius: var(--radius-control);
}
.podium-card h2 {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.podium-card .money {
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ranking-table-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.ranking-table th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
}
.ranking-table th:first-child {
  white-space: nowrap;
}
.ranking-table td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.ranking-table td:first-child {
  color: var(--color-text-muted);
  width: 70px;
  font-size: 12px;
}
.ranking-table td:last-child, .ranking-table th:last-child {
  text-align: right;
}
.ranking-table tr.is-me {
  background: var(--color-primary-subtle);
}
.table-player {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-player > span:last-child {
  overflow-wrap: anywhere;
}
.table-player .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
  border-radius: var(--radius-detail);
}
.you-label {
  font-size: 12px;
  padding: 3px 5px;
  border-radius: var(--radius-detail);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-left: 5px;
}
.ranking-table .money {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.ranking-note {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 16px 4px;
}
.aside-panel {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.aside-panel h2 {
  font-size: 15px;
  margin: 13px 0 10px;
}
.aside-panel p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.aside-panel .btn {
  margin-top: 18px;
  width: 100%;
}
.aside-panel img {
  width: 48px;
  height: 48px;
}
.aside-plain {
  padding: 17px 0;
}
.aside-plain h3 {
  font-size: 12px;
  margin-bottom: 13px;
}
.aside-plain p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.85;
}
@media (max-width: 768px) {
.ranking-layout {
    grid-template-columns: 1fr 230px;
    gap: 20px;
  }
}
@media (max-width: 768px) {
.ranking-layout {
    grid-template-columns: 1fr;
  }
.ranking-toolbar {
    margin-bottom: 17px;
  }
.ranking-toolbar .muted {
    font-size: 12px;
  }
.podium {
    margin-bottom: 18px;
  }
.podium-card {
    padding: 20px 8px 17px;
  }
.podium-card h2 {
    font-size: 12px;
  }
.podium-card .avatar {
    width: 39px;
    height: 39px;
    font-size: 15px;
  }
.podium-card .money {
    font-size: 13px;
  }
.podium-card .money small {
    font-size: 12px;
    margin-left: 2px;
  }
.podium-number {
    font-size: 12px;
    letter-spacing: 1px;
  }
.ranking-table th {
    padding: 13px 14px;
  }
.ranking-table td {
    padding: 13px 14px;
    font-size: 12px;
  }
.ranking-table td:first-child {
    width: 40px;
    padding-right: 4px;
  }
.table-player {
    gap: 8px;
  }
.table-player .avatar {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
.ranking-table td:last-child {
    white-space: nowrap;
    font-size: 12px;
  }
.ranking-layout aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
.aside-panel {
    padding: 0 0 20px;
    margin: 0;
  }
.aside-plain {
    padding: 18px 0;
  }
.aside-panel h2 {
    font-size: 14px;
  }
.aside-panel p, .aside-plain p {
    font-size: 12px;
  }
.aside-panel .btn {
    font-size: 12px;
    padding: 11px;
  }
}
