.ranking-breakdown {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
}

.ranking-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #6366f1;
    font-weight: 600;
    font-size: 14px;
}

.ranking-header svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.ranking-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 12px;
}

.ranking-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.ranking-value {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ranking-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.ranking-factor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ranking-factor:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.ranking-factor.positive .factor-icon {
    color: #10b981;
}

.ranking-factor.negative .factor-icon {
    color: #ef4444;
}

.factor-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    flex-shrink: 0;
}

.factor-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.factor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.factor-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.factor-value {
    font-size: 16px;
    font-weight: 700;
}

.ranking-factor.positive .factor-value {
    color: #10b981;
}

.ranking-factor.negative .factor-value {
    color: #ef4444;
}

@media (max-width: 768px) {
    .ranking-factors {
        grid-template-columns: 1fr;
    }
    
    .ranking-breakdown {
        padding: 12px;
    }
    
    .ranking-value {
        font-size: 20px;
    }
}
