.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.progress-container {
    background: #f0f0f0;
    border-radius: 25px;
    height: 50px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    transition: width 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 18px;
    color: #333;
    text-shadow: 0 0 3px white;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bar-item {
    margin-bottom: 20px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 16px;
}

.rank-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.player-name {
    flex: 1;
    font-weight: bold;
    color: #333;
}

.percentage {
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
}

.bar-background {
    background: #f0f0f0;
    border-radius: 10px;
    height: 40px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.prob-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    background: #e0e0e0;
    color: #333;
}

.prob-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.prob-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.prob-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.prob-badge.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.prob-badge.gray {
    background: #9e9e9e;
    color: white;
}

.place-prob {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

.insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.insight-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.insight-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Responsivo */
@media (max-width: 768px) {
    .bar-label {
        font-size: 14px;
    }

    .rank-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .percentage {
        font-size: 14px;
    }

    .bar-background {
        height: 30px;
    }

    .insights {
        grid-template-columns: 1fr;
    }

    .standings table {
        font-size: 12px;
    }

    .prob-badge {
        padding: 4px 8px;
        font-size: 11px;
    }

    .place-prob {
        font-size: 1.5em;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bar-item {
    animation: fadeInUp 0.5s ease backwards;
}

.bar-item:nth-child(1) { animation-delay: 0.1s; }
.bar-item:nth-child(2) { animation-delay: 0.2s; }
.bar-item:nth-child(3) { animation-delay: 0.3s; }
.bar-item:nth-child(4) { animation-delay: 0.4s; }
.bar-item:nth-child(5) { animation-delay: 0.5s; }
.bar-item:nth-child(6) { animation-delay: 0.6s; }
.bar-item:nth-child(7) { animation-delay: 0.7s; }
.bar-item:nth-child(8) { animation-delay: 0.8s; }
.bar-item:nth-child(9) { animation-delay: 0.9s; }
.bar-item:nth-child(10) { animation-delay: 1s; }

.insight-card {
    animation: fadeInUp 0.6s ease backwards;
}

.insight-card:nth-child(1) { animation-delay: 0.2s; }
.insight-card:nth-child(2) { animation-delay: 0.4s; }
.insight-card:nth-child(3) { animation-delay: 0.6s; }

/* Efecto de brillo en el primer lugar */
.bar-item:first-child .bar-fill {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 2px 20px rgba(255, 215, 0, 0.6);
    }
}
