body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
}

header {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
}

.language-selector {
    margin-top: 10px;
}

.language-selector label {
    margin-right: 10px;
    color: #bbb;
}

#language-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
}

.channels-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.channels-button:hover {
    background-color: #0056b3;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.competition-group {
    margin-bottom: 30px;
}

.competition-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #007bff;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.match-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    background-color: #252525;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #aaa;
}

.match-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;
}

.match-status.LIVE {
    background-color: #d32f2f;
    color: white;
    animation: pulse 2s infinite;
}

.match-status.UPCOMING {
    background-color: #388e3c;
    color: white;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.match-content {
    display: flex;
    align-items: center;
}

.match-poster {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.match-info {
    flex: 1;
}

.match-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.match-category {
    font-size: 0.9em;
    color: #888;
}

.loading, .error-message {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #aaa;
}

.error-message {
    color: #e57373;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .match-content {
        flex-direction: row; /* Keep row for mobile too, looks better with small poster */
    }
    
    .match-poster {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .match-name {
        font-size: 1em;
    }
}
