/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body */
body {
    display: flex;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For IE and older Edge */
}

body::-webkit-scrollbar {
    display: none; /* For WebKit-based browsers */
}

/* Container */
.container {
    display: flex;
    width: 100%;
    overflow-y: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #111;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    height: 100vh;
    flex-shrink: 0; /* Prevent shrinking */
}


/* Logo */
.sidebar h1.logo {
    text-align: center;
    font-size: 60px;
    background: linear-gradient(to bottom, #FF0000, #6E65E8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Navigation */
nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows menu to fill space */
    justify-content: space-evenly; /* Distributes items evenly */
}

.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 10px;
    background: #111;
    padding: 10px;
    text-align: center;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 15px;
    transition: background 0.3s;
}

.menu-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.menu-item:hover {
    background: #333;
}

.menu-item.active {
    background-color: #222;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #FF00B2, #3FFFDF);
}

.category {
    margin-bottom: 30px;
}

.category h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #000;
    font-weight: bold;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* Fallback for TVs with limited browser support */
@supports not (display: grid) {
    .movie-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-evenly;
    }
    .movie-grid > * {
        flex: 0 1 150px;
    }
}

/* Alternative fallback using inline-block */
@media screen and (max-width: 1024px) {
    .movie-grid {
        padding: 10px;
        text-align: center;
    }

    .movie-grid > * {
        display: inline-block;
        width: 150px;
        margin: 10px;
        vertical-align: top;
    }
}

.movie-grid img {
    width: 100%;
    max-width: 200px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.movie-grid img:hover {
    transform: scale(1.05);
}

.movie-card {
    text-align: center;
    padding: 10px;
}

.movie-card a img {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.movie-card a img:hover {
    transform: scale(1.05);
}

.movie-card a {
    text-decoration: none;
    color: #000;
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.movie-card a:hover {
    color: #404040;
}

/* Ad Banner */
.ad-banner {
    width: 50%;
    max-height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 25px;
}
.content {
    flex-grow: 1;
    padding: 40px;
}

.content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.content p {
    font-size: 18px;
}
