/* Top Performance leaderboard */
.tp-section {
    width: 100%;
    margin: 0 0 28px;
    clear: both;
}

.tp-section .tp-head {
    text-align: center;
    margin-bottom: 18px;
}

.tp-section .tp-head .eyebrow {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 6px;
}

.tp-section .tp-head .section-title {
    font-size: 1.3rem;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.tp-section .tp-head .subtext {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.tp-card {
    width: 100%;
    box-sizing: border-box;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 16px 16px;
    box-shadow: var(--shadow-soft);
}

.tp-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
    width: 100%;
}

.tp-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.tp-podium-item.tp-rank-1 {
    grid-column: 2;
}

.tp-podium-item.tp-rank-2 {
    grid-column: 1;
}

.tp-podium-item.tp-rank-3 {
    grid-column: 3;
}

.tp-medal {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 8px;
    line-height: 1;
}

.tp-rank-1 .tp-medal {
    font-size: 20px;
    color: #d4af37;
}

.tp-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.tp-rank-1 .tp-avatar {
    width: 64px;
    height: 64px;
    font-size: 15px;
}

.tp-tone-gold { background: linear-gradient(135deg, #f6e0b3, #d4af37); }
.tp-tone-green { background: linear-gradient(135deg, #c3e2cc, #11694e); }
.tp-tone-amber { background: linear-gradient(135deg, #f6e0b3, #aa8a2e); }
.tp-tone-violet { background: linear-gradient(135deg, #e8d5f5, #8b5cf6); }
.tp-tone-blue { background: linear-gradient(135deg, #dbeafe, #3b82f6); }
.tp-tone-pink { background: linear-gradient(135deg, #fce7f3, #ec4899); }
.tp-tone-mint { background: linear-gradient(135deg, #d1fae5, #10b981); }
.tp-tone-sun { background: linear-gradient(135deg, #fef3c7, #f59e0b); }
.tp-tone-rose { background: linear-gradient(135deg, #fee2e2, #ef4444); }
.tp-tone-indigo { background: linear-gradient(135deg, #e0e7ff, #6366f1); }

.tp-name {
    margin: 10px 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
}

.tp-score {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--gold-dark);
}

.tp-bar {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px 8px 4px 4px;
    background: var(--green-grad);
}

.tp-rank-1 .tp-bar { height: 64px; background: var(--gold-grad); }
.tp-rank-2 .tp-bar { height: 48px; }
.tp-rank-3 .tp-bar { height: 36px; opacity: 0.7; }

.tp-list {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px dashed var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.tp-row {
    display: grid;
    grid-template-columns: 32px 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
}

.tp-row .tp-avatar {
    width: 40px;
    height: 40px;
    font-size: 11px;
}

.tp-row-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-dark);
    text-align: center;
}

.tp-row-info {
    min-width: 0;
    overflow: hidden;
}

.tp-row-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-row-label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
}

.tp-row-score {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
}

.tp-link {
    display: block;
    margin-top: 16px;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green-dark);
    text-decoration: none;
    border-radius: 12px;
    background: rgba(6, 78, 59, 0.08);
}

.tp-link:hover {
    background: var(--green-grad);
    color: #fff;
}

[data-theme="dark"] .tp-row {
    background: rgba(42, 42, 42, 0.6);
}

/* Live Network block */
.ln-section {
    width: 100%;
    margin: 0 0 28px;
    clear: both;
}

.ln-section .tp-head {
    text-align: center;
    margin-bottom: 18px;
}

.ln-map-wrap {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    background: var(--card-bg);
}

.ln-map-wrap #map {
    width: 100%;
    height: 260px;
    min-height: 220px;
    border: none;
    border-radius: 0;
}

@media (max-width: 520px) {
    .tp-podium {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tp-podium-item.tp-rank-1,
    .tp-podium-item.tp-rank-2,
    .tp-podium-item.tp-rank-3 {
        grid-column: 1;
    }

    .tp-podium-item {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: left;
        padding: 12px;
        background: var(--glass);
        border-radius: 14px;
        border: 1px solid var(--glass-border);
    }

    .tp-bar {
        display: none;
    }

    .tp-row {
        grid-template-columns: 28px 36px 1fr auto;
        gap: 8px;
    }
}
