.leaderboard-container {
    margin: 1.5rem auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.tabs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
    justify-content: center;
}
.tab-link {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0f2f5;
}
.tab-link:hover { background: #e6e8eb; color: #333; }
.tab-link.active { background: #e94560; color: #fff; font-weight: bold; }

.sub-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 0.5rem;
}
.sub-tab {
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    color: #888;
    border-radius: 6px;
    text-decoration: none;
}
.sub-tab.active { background: #1a1a2e; color: #fff; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: center; }
th {
    color: #888;
    font-weight: normal;
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
    border-bottom: 2px solid #f0f0f0;
}
td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}
tr:hover { background: #fafafa; }

.rank-badge {
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    font-size: 0.8rem;
    background: #eee;
    color: #666;
}
.rank-1 .rank-badge { background: #ffd700; color: #fff; }
.rank-2 .rank-badge { background: #c0c0c0; color: #fff; }
.rank-3 .rank-badge { background: #cd7f32; color: #fff; }

.user-cell { display: flex; align-items: center; gap: 0.5rem; justify-content: center; }
.avatar {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    line-height: 32px;
    text-align: center;
    overflow: hidden;
    color: #666;
    font-size: 0.9rem;
}

.score-val { color: #e94560; font-weight: bold; font-size: 1.1rem; }
.loading-status { padding: 3rem; text-align: center; color: #999; }
.pagination {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.page-btn {
    color: #333;
    padding: 0.5rem 0.8rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
}
.page-btn.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.page-btn:hover:not(.active) { border-color: #e94560; color: #e94560; }

@media (max-width: 450px) {
    .tabs-wrap {
  gap: 0.2rem;
}
}
