.wp-clubpro-league-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* League header */
.wp-clubpro-league-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.wp-clubpro-league-logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wp-clubpro-league-logo img {
    max-width: 60px;
    max-height: 60px;
}

.wp-clubpro-league-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
}

.wp-clubpro-league-country {
    font-size: 16px;
    opacity: 0.9;
}

/* Tabs */
.wp-clubpro-league-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.wp-clubpro-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-clubpro-tab:hover {
    color: #1e3c72;
    background: #f5f5f5;
}

.wp-clubpro-tab.active {
    color: #1e3c72;
    border-bottom-color: #1e3c72;
}

/* Tab content */
.wp-clubpro-tab-content {
    display: none;
    padding: 20px;
}

.wp-clubpro-tab-content.active {
    display: block;
}

/* Season selector */
.wp-clubpro-season-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.wp-clubpro-season-selector label {
    margin-right: 10px;
    font-weight: 600;
}

.wp-clubpro-season-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

/* Tables */
.wp-clubpro-table-container {
    overflow-x: auto;
}

.wp-clubpro-standings-table, 
.wp-clubpro-fixtures-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed; /* Añadido para controlar el ancho de columnas */
}

.wp-clubpro-standings-table th, 
.wp-clubpro-fixtures-table th {
    padding: 12px 8px;
    text-align: left;
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.wp-clubpro-standings-table td, 
.wp-clubpro-fixtures-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    word-wrap: break-word; /* Añadido para evitar desbordamiento */
}

.wp-clubpro-standings-table tr:hover, 
.wp-clubpro-fixtures-table tr:hover {
    background: #f9f9f9;
}

/* Especificar anchos para las columnas de fixtures */
.wp-clubpro-fixtures-table th.date,
.wp-clubpro-fixtures-table td.date {
    width: 120px; /* Ancho fijo para fecha */
}

.wp-clubpro-fixtures-table th.teams,
.wp-clubpro-fixtures-table td.teams {
    width: auto; /* Toma el espacio restante */
}

.wp-clubpro-fixtures-table th.result,
.wp-clubpro-fixtures-table td.result {
    width: 80px; /* Ancho fijo para resultado */
    text-align: center;
}

/* Team info */
.team-info {
    display: flex;
    align-items: center;
}

.team-logo {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    object-fit: contain;
    flex-shrink: 0; /* Evita que el logo se reduzca */
}

.team-name {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
}

.team-name:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* Fixture teams - Rediseño completo */
.fixture-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* Permite que el texto se trunque */
}

.fixture-teams .team {
    display: flex;
    align-items: center;
    min-width: 0; /* Permite que el texto se trunque */
}

.fixture-teams .home-team {
    justify-content: flex-start;
}

.fixture-teams .away-team {
    justify-content: flex-start;
}

.fixture-teams .team-logo {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    flex-shrink: 0;
}

.fixture-teams .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    max-width: calc(100% - 30px); /* Considera el ancho del logo + margen */
}

/* Results */
.score {
    font-weight: 600;
    color: #1e3c72;
    font-size: 15px;
}

.vs {
    color: #888;
    font-style: italic;
    font-size: 13px;
}

/* No data message */
.wp-clubpro-no-data {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wp-clubpro-league-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .wp-clubpro-league-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .wp-clubpro-league-tabs {
        flex-wrap: wrap;
    }
    
    .wp-clubpro-tab {
        flex: 1;
        min-width: 100px;
        padding: 10px 5px;
        font-size: 14px;
        text-align: center;
    }
    
    .wp-clubpro-standings-table th:nth-child(n+5), 
    .wp-clubpro-standings-table td:nth-child(n+5) {
        display: none;
    }
    
    .wp-clubpro-standings-table th.position, 
    .wp-clubpro-standings-table td.position {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Ajustes para fixtures en móviles */
    .wp-clubpro-fixtures-table th.date,
    .wp-clubpro-fixtures-table td.date {
        width: 90px;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .wp-clubpro-fixtures-table th.result,
    .wp-clubpro-fixtures-table td.result {
        width: 60px;
    }
    
    .team-name {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .wp-clubpro-standings-table th:nth-child(n+4), 
    .wp-clubpro-standings-table td:nth-child(n+4) {
        display: none;
    }
    
    .wp-clubpro-fixtures-table th.date, 
    .wp-clubpro-fixtures-table td.date {
        width: 70px;
        font-size: 12px;
    }
    
    .wp-clubpro-fixtures-table th.result,
    .wp-clubpro-fixtures-table td.result {
        width: 50px;
    }
    
    .team-logo {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }
    
    .team-name {
        max-width: 80px;
        font-size: 12px;
    }
    
    .score, .vs {
        font-size: 12px;
    }
}
























/* TABLA DE CLASIFICACIÓN - VERSIÓN COMPACTA */
.wp-clubpro-standings-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px; /* Tamaño de fuente reducido */
}

.wp-clubpro-standings-table th {
    padding: 8px 4px; /* Padding reducido */
    text-align: center;
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.wp-clubpro-standings-table td {
    padding: 8px 4px; /* Padding reducido */
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    text-align: center;
    line-height: 1.3;
}

/* COLUMNA DE EQUIPO OPTIMIZADA */
.wp-clubpro-standings-table td.team {
    text-align: left;
    padding-left: 6px;
    width: 160px; /* Ancho fijo optimizado */
}

.team-info {
    display: flex;
    align-items: center;
    gap: 6px; /* Espacio reducido */
}

.team-logo {
    width: 20px; /* Logo más pequeño */
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

/* COLUMNAS NUMÉRICAS MÁS COMPACTAS */
.wp-clubpro-standings-table th.position,
.wp-clubpro-standings-table td.position {
    width: 24px; /* Más estrecho */
}

.wp-clubpro-standings-table th.points,
.wp-clubpro-standings-table td.points {
    width: 36px;
    font-weight: bold;
    color: #1e3c72;
}

.wp-clubpro-standings-table th:not(.position):not(.team):not(.points),
.wp-clubpro-standings-table td:not(.position):not(.team):not(.points) {
    width: 28px; /* Columnas muy estrechas */
}

/* EFECTO HOVER PARA VER NOMBRE COMPLETO */
.team-name:hover {
    overflow: visible;
    white-space: normal;
    background: #fff;
    position: relative;
    z-index: 100;
}

/* VERSIÓN RESPONSIVE */
@media (max-width: 768px) {
    .wp-clubpro-standings-table {
        font-size: 12px;
    }
    
    .wp-clubpro-standings-table td.team {
        width: 120px;
    }
    
    .team-logo {
        width: 18px;
        height: 18px;
    }
    
    .wp-clubpro-standings-table th:nth-child(n+6), 
    .wp-clubpro-standings-table td:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .wp-clubpro-standings-table td.team {
        width: 100px;
    }
    
    .wp-clubpro-standings-table th:nth-child(n+5), 
    .wp-clubpro-standings-table td:nth-child(n+5) {
        display: none;
    }
}