.ranking-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}
.ranking-section .section-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: var(--fs-sm);
    text-align: center;
}

ol.ranking-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ranking-item {
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ranking-item:hover {
    border-color: var(--t-300);
    box-shadow: var(--shadow-sm);
}
.rank-num {
    width: 32px;
    height: 32px;
    background: var(--t-50);
    color: var(--t-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-right: 16px;
    flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 5px;
}
.rank-fill {
    height: 100%;
    background: var(--t-300);
    border-radius: 999px;
    transition: width 0.5s ease;
}
.rank-meta {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-xs);
}
.rank-count { color: var(--text-light); font-weight: 500; }
.rank-pct { color: var(--t-700); font-weight: 600; }

/* Top 3: stronger visual weight */
.ranking-item:nth-child(-n+3) {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 18px 22px;
}
.ranking-item:nth-child(-n+3) .rank-num {
    width: 38px;
    height: 38px;
    font-size: var(--fs-md);
}
.ranking-item:nth-child(-n+3) .rank-name {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 8px;
}
.ranking-item:nth-child(-n+3) .rank-bar { height: 10px; }
.ranking-item:nth-child(-n+3) .rank-fill { background: var(--t-400); }
.ranking-item:nth-child(-n+3) .rank-meta { font-size: var(--fs-sm); }
.ranking-item:nth-child(-n+3) .rank-pct { font-size: var(--fs-base); }

/* Rank 1: champion treatment */
.ranking-item:nth-child(1) {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--t-50) 100%);
    border-color: var(--t-200);
}
.ranking-item:nth-child(1) .rank-num {
    background: var(--t-700);
    color: #fff;
}
.ranking-item:nth-child(1) .rank-fill {
    background: var(--t-600);
}
.ranking-item:nth-child(1) .rank-name {
    font-size: var(--fs-lg);
    color: var(--t-900);
    letter-spacing: -0.01em;
}

/* Rank 2-3: secondary emphasis */
.ranking-item:nth-child(2) .rank-num,
.ranking-item:nth-child(3) .rank-num {
    background: var(--t-100);
    color: var(--t-800);
}

/* Divider between top 3 and the rest */
.ranking-item:nth-child(3) {
    margin-bottom: 8px;
}
.ranking-item:nth-child(4) {
    position: relative;
}
.ranking-item:nth-child(4)::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-light);
}

@media (max-width: 768px) {
    .hero-section .hero-title { font-size: var(--fs-h2); }
    .ranking-section { padding: 25px 20px; }
    .rank-name { font-size: var(--fs-sm); }
}
