/* Standings Table Styles */
.football-standings-container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 20px; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.standings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.standings-header h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.standings-table .league-selector,
.standings-table .season-selector {
    display: inline-block;
    margin: 0 15px 15px 0;
}

.league-selector label,
.season-selector label,
.round-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
    text-align: left;
}

.league-selector select,
.season-selector select,
.round-selector select {
    height: auto;
    padding: 5px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
#back-to-today-btn {
    margin-left: 10px;
    padding: 8px 16px;
    background-color: #00d27f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
#back-to-today-btn:hover {
    background-color: "#00d27f";
}

.league-selector select:focus,
.season-selector select:focus,
.round-selector select:focus {
    outline: none;
    border-color: #3498db;
}

.standings-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.standings-table th {
    background: #34495e;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings-table th:first-child {
    border-top-left-radius: 8px;
}

.standings-table th:last-child {
    border-top-right-radius: 8px;
}

.standings-table th:nth-child(2) {
    text-align: left;
}

.standings-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.standings-table td:nth-child(2) {
    text-align: left;
}

/* Group headers */
.group-header {
    background: #2c3e50 !important;
}

.group-header th {
    background: #2c3e50;
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 12px 10px;
    border-bottom: 2px solid #34495e;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.group-header:hover {
    background: #2c3e50 !important;
}

.standings-row {
    transition: background-color 0.2s ease;
}

.standings-row:hover {
    background-color: #f8f9fa;
}

/* Position column */
.position {
    font-weight: 600;
    color: #2c3e50;
    width: 60px;
}

.promotion-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Team name column */

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.team-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.team-logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-short-name {
    font-weight: 600;
    color: #333;
}
.team-name-text {
    color: #666;
    font-weight: 400;
    font-size: 0.75em;
}

/* Stats columns */
.matches-played,
.wins,
.draws,
.losses,
.goals-for,
.goals-against,
.goal-difference,
.points {
    font-weight: 500;
    color: #34495e;
}

/* Goal difference styling */
.goal-difference.positive {
    color: #27ae60;
    font-weight: 600;
}

.goal-difference.negative {
    color: #e74c3c;
    font-weight: 600;
}

.goal-difference.neutral {
    color: #95a5a6;
}

/* Points column */
.points {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
}

/* Form column */
.form {
    min-width: 120px;
}

.form span {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    margin: 0 2px;
}

.form-win {
    background: #27ae60;
    color: white;
}

.form-draw {
    background: #f39c12;
    color: white;
}

.form-loss {
    background: #e74c3c;
    color: white;
}

/* Row highlighting for different positions */
.standings-row.champions-league {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.standings-row.champions-league:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.1) 100%);
}

.standings-row.europa-league {
    background: linear-gradient(90deg, rgba(155, 89, 182, 0.1) 0%, rgba(155, 89, 182, 0.05) 100%);
}

.standings-row.europa-league:hover {
    background: linear-gradient(90deg, rgba(155, 89, 182, 0.15) 0%, rgba(155, 89, 182, 0.1) 100%);
}

.standings-row.relegation {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
}

.standings-row.relegation:hover {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.15) 0%, rgba(231, 76, 60, 0.1) 100%);
}

/* Standings Legend */
.standings-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #34495e;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-color.champions {
    background: #3498db;
}

.legend-color.europa {
    background: #9b59b6;
}

.legend-color.relegation {
    background: #e74c3c;
}

/* No standings message */
.no-standings {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #bdc3c7;
}

.no-standings p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .league-selector,
    .season-selector,
    #league-select,
    #season-select {
        width: 100%;
    }
    .football-standings-container {
        padding: 10px;
    }

    .standings-header h2 {
        font-size: 24px;
    }

    .standings-table .league-selector,
    .standings-table .season-selector {
        display: block;
        margin: 0 0 15px 0;
    }

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

    .standings-table th,
    .standings-table td {
        padding: 8px 5px;
    }

    .team-name {
        min-width: 150px;
    }

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

    .team-info {
        gap: 8px;
    }

    .form {
        min-width: 100px;
    }

    .standings-legend {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}
@media (max-width: 768px) {
    .standings-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .standings-table th,
    .standings-table td {
        padding: 6px 3px;
        font-size: 11px;
    }

    .standings-table .std_hidemob {
        display: none;
    }

    .team-name {
        min-width: 120px;
    }

    .team-logo {
        width: 20px;
        height: 20px;
    }

    .team-info {
        gap: 6px;
    }

    .team-short-name {
        display: none;
    }
}
