


.stats-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.stats-header {
    background: #1a3a5f;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.stats-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.stats-header i {
    font-style: normal;
    font-size: 14px;
    opacity: 0.85;
    display: block;
}

.stats-tables-section {
    padding: 0 15px 20px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    /* margin: 20px 0; */
    table-layout: fixed;
}

.stats-table caption {
    text-align: left;
    font-weight: bold;
    padding: 10px 0;
    color: #1a3a5f;
    font-size: 18px;
    caption-side: top;
}

.stats-table th {
    background-color: #2c5282;
    color: white;
    padding: 10px 6px;
    text-align: center;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table th:last-child {
    border-right: none;
}

.stats-table th span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stats-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.stats-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.stats-table tr:hover {
    background-color: #f1f7ff;
}

.rank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #2c5282;
}

.average-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

.average-table caption {
    text-align: left;
    font-weight: bold;
    padding: 10px 0;
    color: #1a3a5f;
    font-size: 18px;
    caption-side: top;
}

.average-table th {
    background-color: #2c5282;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 500;
}

.average-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.average-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .stats-table th, .stats-table td {
        padding: 10px 5px;
        font-size: 14px;
    }

    .stats-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stats-table th, .stats-table td {
        padding: 8px 3px;
        font-size: 12px;
    }

    .rank {
        flex-direction: column;
        gap: 2px;
    }
}


.chart-container {
    width: 60%;
    margin: 0 auto;
}
.chart-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.chart-footer img {
    height: 30px;
 }

/* Widget: Poll — estilos compartidos movidos a assets/css/custom-basketball.css
   (usados también por <x-poll-widget> en las vistas de Liga). */
