.page-rank {
    padding: 40px 0;
    background: var(--bg);
    min-height: 100vh;
}

.rank-header {
    text-align: center;
    margin-bottom: 40px;
}

.rank-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
}

.rank-header h1 i {
    color: #F39C12;
    margin-right: 10px;
    font-size: 26px;
}

.rank-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.rank-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tabs-primary {
    display: flex;
    gap: 12px;
}

.tabs-primary .tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--card);
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tabs-primary .tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tabs-primary .tab.active {
    background: linear-gradient(135deg, #1A5F7A, #2586EB);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(26, 95, 122, 0.3);
}

.tabs-secondary {
    display: flex;
    gap: 8px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.tabs-secondary .tab {
    padding: 8px 18px;
    background: transparent;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tabs-secondary .tab:hover {
    background: rgba(26, 95, 122, 0.05);
}

.tabs-secondary .tab.active {
    background: rgba(26, 95, 122, 0.1);
    color: #1A5F7A;
    border-color: rgba(26, 95, 122, 0.2);
}

.rank-container {
    max-width: 1100px;
    margin: 0 auto;
}

.rank-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 50px;
    padding: 50px 40px;
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.podium-item:hover {
    transform: translateY(-6px);
}

.podium-item.first {
    order: 2;
    transform: translateY(-25px);
}

.podium-item.second {
    order: 1;
}

.podium-item.third {
    order: 3;
}

.podium-crown {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

.podium-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid;
    margin-bottom: 14px;
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.podium-item.first .podium-avatar {
    width: 110px;
    height: 110px;
    border-color: #FFD700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.podium-item.second .podium-avatar {
    border-color: #C0C0C0;
    box-shadow: 0 4px 14px rgba(192, 192, 192, 0.3);
}

.podium-item.third .podium-avatar {
    border-color: #CD7F32;
    box-shadow: 0 4px 14px rgba(205, 127, 50, 0.3);
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.podium-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-secondary);
    background: #f5f5f5;
}

.podium-item.first .podium-placeholder {
    font-size: 40px;
    color: #DAA520;
}

.podium-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    text-align: center;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-item.first .podium-name {
    font-size: 17px;
    font-weight: 700;
}

.podium-base {
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.podium-item.first .podium-base {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 18px 38px;
    font-size: 16px;
}

.podium-item.second .podium-base {
    background: linear-gradient(135deg, #E8E8E8, #C0C0C0);
    color: #555;
    padding: 16px 34px;
}

.podium-item.third .podium-base {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    padding: 14px 30px;
}

.rank-list {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.rank-item:hover {
    background: rgba(26, 95, 122, 0.03);
    transform: translateX(4px);
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
}

.rank-num .num {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 95, 122, 0.06);
    border-radius: 8px;
}

.rank-item:nth-child(1) .rank-num .num {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    color: #DAA520;
}

.rank-item:nth-child(2) .rank-num .num {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(160, 160, 160, 0.1));
    color: #888;
}

.rank-item:nth-child(3) .rank-num .num {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(184, 115, 51, 0.1));
    color: #B87333;
}

.rank-site {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.rank-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    border: 2px solid var(--border);
    position: relative;
    flex-shrink: 0;
}

.rank-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.rank-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #f5f5f5;
}

.rank-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .page-rank {
        padding: 25px 0;
    }
    
    .rank-header h1 {
        font-size: 26px;
    }
    
    .rank-header h1 i {
        font-size: 22px;
    }
    
    .rank-tabs {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 35px;
    }
    
    .tabs-secondary {
        border-left: none;
        padding-left: 0;
    }
    
    .rank-podium {
        gap: 20px;
        padding: 35px 20px;
    }
    
    .podium-avatar {
        width: 65px;
        height: 65px;
        border-width: 3px;
    }
    
    .podium-item.first .podium-avatar {
        width: 85px;
        height: 85px;
    }
    
    .podium-item.first {
        transform: translateY(-18px);
    }
    
    .podium-crown {
        width: 42px;
        height: 42px;
        top: -32px;
        font-size: 20px;
    }
    
    .podium-placeholder {
        font-size: 24px;
    }
    
    .podium-item.first .podium-placeholder {
        font-size: 32px;
    }
    
    .podium-name {
        font-size: 13px;
        max-width: 80px;
        margin-bottom: 10px;
    }
    
    .podium-item.first .podium-name {
        font-size: 14px;
    }
    
    .podium-base {
        padding: 10px 22px;
        font-size: 11px;
    }
    
    .podium-item.first .podium-base {
        padding: 13px 28px;
        font-size: 12px;
    }
    
    .podium-item.second .podium-base {
        padding: 11px 24px;
        font-size: 11px;
    }
    
    .rank-item {
        padding: 14px 16px;
    }
    
    .rank-num {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }
    
    .rank-num .num {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .rank-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .rank-icon-placeholder {
        font-size: 16px;
    }
    
    .rank-name {
        font-size: 14px;
    }
}
