* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 0;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table thead {
    background: #2c3e50;
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

.standings-table th {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 2px solid #34495e;
}

.standings-table th.team-name {
    text-align: left;
}

.standings-table th.position,
.standings-table th.stat,
.standings-table th.points,
.standings-table th.form,
.standings-table th.next-match {
    min-width: 50px;
}

.standings-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.2s ease;
}

.standings-table tbody tr:hover {
    background: #f8f9fa;
}

.standings-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.standings-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 0.95em;
}

.standings-table td.team-name {
    text-align: left;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ecf0f1;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.7em;
    flex-shrink: 0;
}

.team-name img.team-logo {
    display: inline-block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: #ecf0f1;
    border-radius: 50%;
    flex-shrink: 0;
}

.standings-table td.position {
    font-weight: 600;
    color: #2c3e50;
    min-width: 40px;
}

.standings-table td.points {
    font-weight: 700;
    font-size: 1.1em;
    color: #27ae60;
}

.standings-table td.stat {
    color: #555;
}

.form {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.form-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8em;
    color: white;
}

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

.form-result.draw {
    background: #95a5a6;
}

.form-result.loss {
    background: #e74c3c;
}

.next-match {
    font-size: 1.2em;
}

.next-match.home {
    color: #27ae60;
}

.next-match.away {
    color: #2980b9;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .standings-table th,
    .standings-table td {
        padding: 10px 6px;
        font-size: 0.85em;
    }

    .team-logo {
        width: 24px;
        height: 24px;
        font-size: 0.65em;
    }
}