/* Basic Reset */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0; /* Light text */
}

header {
    background-color: #222;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #007bff; /* Blue accent */
}

header h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
}

nav a {
    color: #bbb;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

h2 {
    color: #007bff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Event Cards Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.event-card {
    background-color: #282828;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #007bff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.teams {
    color: #aaa;
    font-size: 0.9em;
}

/* Countdown and Watch Button Styling */
.event-actions {
    margin-top: 10px;
}

.countdown-display {
    background-color: #333;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #f39c12; /* Orange for timer */
}

.watch-button {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.watch-button:hover {
    background-color: #0056b3;
}

/* Channel Lists */
.channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.channel-list span {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #222;
    margin-top: 40px;
    color: #888;
    font-size: 0.8em;
}
/* ... (Keep all previous CSS from Step 3) ... */

/* --- New Image/Logo Styles --- */

.event-card {
    /* ... (Existing styles) ... */
    overflow: hidden; /* Ensures the image doesn't break rounded corners */
}

.event-image {
    width: 100%; /* Image fills the container */
    height: auto;
    max-height: 180px; /* Constrain height for uniform cards */
    object-fit: cover; /* Crops image nicely to fit max-height */
    border-radius: 6px 6px 0 0; /* Match card border radius */
    margin-bottom: 10px;
}

.event-info {
    /* Push event-info below the image */
    padding: 0 5px; 
}

/* Channel Logos */
.channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Increase gap for logos */
    margin-top: 15px;
}

.channel-logo-container {
    height: 35px; /* Define a fixed height for all logos */
    background-color: #222; /* Background for logos */
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    border: 1px solid #333;
}

.channel-logo {
    height: 100%; /* Logo fills the container height */
    width: auto;
    object-fit: contain; /* Ensures logo is not cut off */
    /* If logos have a background, you might need filter: invert(1); to make them visible on dark mode */
}