/* 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; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
body::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 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;
}

.logo {
    display: grid;
    justify-items: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.sidebar h1.logo {
    text-align: center;
    font-size: 50px;
    background: linear-gradient(to bottom, #A8A8A8, #5F5F5F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Navigation */
nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-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;
}

/* Fallbacks */
@supports not (display: grid) {
    .movie-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-evenly;
    }
    .movie-grid > * {
        flex: 0 1 150px;
    }
}

@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 */
.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: 600px;
    max-height: 200px;
    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;
}

/* --- Top Bar for Mobile --- */
.top-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    background-color: #111;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.top-icon {
    font-size: 28px;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

/* Slide-in Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 70%;
    background: #111;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    z-index: 998;
    border-radius: 0 0 0 15px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    display: block;
}

.mobile-menu.active {
    display: flex;
}

/* Search Bars */
#searchInput {
    width: 75%;
    font-size: 24px;
    padding: 15px;
    box-sizing: border-box;
    display: block;
    margin: 20px auto;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 30px;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

#mobileSearch {
    width: 60%;
    max-width: 250px;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 30px;
    border: none;
    background-color: #fff;
    color: #000;
    outline: none;
}

/* --- Mobile Layout --- */
@media screen and (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .top-bar {
        display: flex;
    }

    .container {
        flex-direction: column;
        padding-top: 60px;
    }

    .main-content {
        padding: 10px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        padding: 0;
    }

    .movie-card a img {
        width: 100%;
        height: auto;
    }

    .ad-banner {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 10px 0;
    }

    #searchInput {
        width: 90%;
        font-size: 18px;
        padding: 12px;
    }
#searchInput {
    display: block;
}

/* Hide on screens smaller than 768px */
@media screen and (max-width: 768px) {
    #searchInput {
        display: none;
    }
 .credits-section {
    max-width: 800px;
    margin: auto;
    font-family: Arial, sans-serif;
  }

  .credits-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .credit-category {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .credit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }

  .credit-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
  }

  .credit-text {
    font-size: 18px;
  }
}
