:root {
    --primary-red: #e50914;
    --dark-bg: #141414;
    --white: #ffffff;
}

body {
    background-color: var(--dark-bg);
    color: var(--white);
    font-family: 'Arial', sans-serif;
    margin: 0;
}

#navbar {
    padding: 10px 4%;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, transparent 100%);
    position: fixed;
    top: 0; width: 100%; z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo-img {
    height: 25px;
    cursor: pointer;
}

#search-form {
    display: flex;
    justify-content: flex-end;
}

.search-bar {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #777;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    outline: none;
    width: 140px;
    font-size: 0.9rem;
}

#hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 4%;
    position: relative;
}

#hero-content {
    max-width: 600px;
    z-index: 2;
}

#hero-title { font-size: 3rem; margin: 0; }

.movie-row {
    display: flex;
    overflow-x: auto;
    padding: 20px 4%;
    gap: 15px;
}

.movie-row::-webkit-scrollbar { display: none; }

.movie-card {
    min-width: 150px;
    cursor: pointer;
    transition: 0.3s;
}

.movie-card:hover { transform: scale(1.05); }
.movie-card img { width: 100%; border-radius: 4px; }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100;
}

.modal-content {
    position: relative;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.close-modal {
    color: white;
    font-size: 40px;
    position: absolute;
    top: -50px; right: 0;
    cursor: pointer;
}
