/* General Styling */
body {
    background-color: #1e1e2f;
    /* FIX: Change display to column to correctly stack header, main, and footer */
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #f0f0f0;
    box-sizing: border-box;
    /* Remove padding: 20px; here, as it conflicts with the full-width header/footer */
}

/* Header Styling */
.main-header {
    background-color: #2b2b40;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Removed 'position: sticky' to simplify debugging, can be added back later */
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: #007bff;
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Ensure horizontal nav for desktop */
}

.main-nav .nav-list li {
    margin-left: 25px;
}

.main-nav .nav-list a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-list a:hover {
    color: #007bff;
}

.nav-toggle {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1.8em;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}

/* Main Content Area */
.content-wrapper {
    flex-grow: 1; /* Pushes the footer down */
    /* FIX: Keep content centered horizontally AND vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add padding around the player */
    
}

.video-container {
    max-width: 800px;
    width: 100%;
}

video {
    width: 100%;      /* Ensure it scales down on mobile screens */
    height: auto;     /* Maintain aspect ratio */
    display:block;
}

/* Footer Styling */
.main-footer {
    background-color: #2b2b40;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    color: #a0a0b0;
    font-size: 0.9em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 📱 Mobile Optimization (Media Query) --- */
/* Styles applied when the screen width is 500px or less */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-content {
        flex-wrap: wrap; 
        justify-content: space-between; /* Keep logo and toggle separated */
    }

    .main-nav {
        /* FIX: Ensure desktop nav is hidden initially */
        display: none; 
        width: 100%;
        text-align: center;
        position: absolute; 
        top: 60px; /* Position under the header height (approx) */
        left: 0;
        background-color: #2b2b40;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .main-nav.nav-open {
        display: block; /* Class added by JS to show nav */
    }

    .main-nav .nav-list {
        flex-direction: column;
    }

    .main-nav .nav-list li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: block; /* Show hamburger icon on mobile */
    }

    .logo {
        /* Remove margin-bottom: 10px; which was used when logo was centered */
        margin-bottom: 0; 
    }