/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    height: 100vh;
    background: #000;
    padding: 25px;
    position: fixed;
    border-right: 1px solid #222;
    flex-shrink: 0;
}

.sidebar h2 { margin-bottom: 30px; font-size: 1.5rem; }
.sidebar h2 span { color: #e50914; }

.nav-links, #genre-list {
    list-style: none;
    padding: 0;
}

.nav-links li, #genre-list li { margin-bottom: 12px; }

.nav-links a, #genre-list li a {
    color: #ffffff; /* Change #bbb to #fff or your preferred color */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    font-size: 0.95rem;
}
}

.nav-links a:hover, #genre-list li a:hover {
    color: #fff;
    padding-left: 5px;
}

.sidebar h3 {
    margin: 30px 0 15px 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1.5px;
}

/* Main Content Area */
.content {
    margin-left: 260px;
    padding: 40px;
    flex-grow: 1;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.movie-card:hover {
    transform: scale(1.05);
}

.movie-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-card .info { padding: 10px; }
.movie-card h3 { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* SEARCH BOX */
.search-container { margin-bottom: 20px; }
#search-input {
    width: 100%;
    padding: 10px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 992px) {
    .sidebar { width: 80px; }
    .sidebar h2, .sidebar h3, .nav-links span, .genre-text { display: none; }
    .content { margin-left: 80px; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 600px) {
    body { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #222;
        padding: 15px;
    }
    .content { margin-left: 0; }
    .movie-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Force style on those specific list links */
.sidebar li a {
    color: #ffffff !important; 
    text-decoration: none;
}