/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: #121212;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Intro Screen */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
}

.intro-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide elements */
.hidden {
    display: none !important;
}

/* Background Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://miro.medium.com/v2/resize:fit:1400/1*U4qm92ycN-TQ1_YIyUTblw.gif") center center / cover no-repeat;
    filter: blur(8px);
    z-index: -1;
    background-attachment: fixed;
}

/* Sticky Header */
.top-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    z-index: 1000;
}

/* Logo */
.logo {
    height: 28px;
}

/* Search Bar */
.search-container {
    flex-grow: 1;
    text-align: center;
}

#search {
    width: 80%;
    max-width: 320px;
    padding: 8px;
    font-size: 14px;
    border-radius: 20px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
}

/* Movie Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 80px 15px;
    max-width: 900px;
    margin: auto;
}

/* Movie Item */
.movie {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

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

.movie img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 600px) {
    .top-menu {
        flex-direction: column;
        padding: 5px;
    }

    .search-container {
        width: 100%;
        margin-top: 5px;
    }

    #search {
        width: 100%;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        padding-top: 80px;
    }
}
