:root {
    --primary-color: #013369;
    --secondary-color: #d50a0a;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --live-color: #e74c3c;
    --upcoming-color: #3498db;
    --completed-color: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

select, button {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-color);
}

#refresh-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.loading, .no-games {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

.no-games {
    display: none;
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.status-live {
    background-color: var(--live-color);
}

.status-upcoming {
    background-color: var(--upcoming-color);
}

.status-completed {
    background-color: var(--completed-color);
}

.game-content {
    padding: 15px;
}

.teams {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.team-name {
    font-weight: bold;
}

.team-score {
    font-size: 1.2rem;
    font-weight: bold;
}

.game-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .scoreboard {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
}