/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
    color:white;
    min-height:100vh;
}

/* HEADER */
header{
    padding:30px 20px;
    text-align:center;
    background:#111;
    border-bottom:1px solid #2b2b2b;
    box-shadow:0 4px 12px rgba(0,0,0,0.4);
}

header h1{
    font-size:2.2rem;
    margin-bottom:18px;
    letter-spacing:1px;
}

/* SEARCH */
.search-container{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

#searchInput{
    width:320px;
    max-width:90%;
    padding:12px 15px;
    border:none;
    border-radius:8px;
    outline:none;
    font-size:1rem;
    background:#222;
    color:white;
    transition:0.2s;
}

#searchInput:focus{
    background:#2a2a2a;
    box-shadow:0 0 0 2px #e50914;
}

#searchBtn{
    padding:12px 22px;
    border:none;
    border-radius:8px;
    background:#e50914;
    color:white;
    font-size:1rem;
    font-weight:bold;
    cursor:pointer;
    transition:0.2s;
}

#searchBtn:hover{
    background:#ff1f2d;
    transform:translateY(-2px);
}

/* MAIN */
main{
    width:90%;
    max-width:1100px;
    margin:auto;
    padding:30px 0;
}

/* SECTIONS */
section{
    margin-bottom:45px;
}

section h2{
    margin-bottom:18px;
    font-size:1.6rem;
    color:#ffffff;
}

/* SEARCH RESULT CARD */
#movieResult{
    background:#1b1b1b;
    border-radius:14px;
    padding:25px;
    display:grid;
    grid-template-columns: 250px 1fr;
    gap:25px;
    align-items:start;
    box-shadow:0 8px 20px rgba(0,0,0,0.35);
    min-height:300px;
}

#poster{
    width:100%;
    max-width:250px;
    border-radius:10px;
    object-fit:cover;
    background:#2a2a2a;
}

#name{
    font-size:2rem;
    margin-bottom:12px;
    color:#e50914;
}

#release,
#genre,
#plot{
    margin-bottom:12px;
    font-size:1rem;
    line-height:1.5;
    color:#ddd;
}

/* HOME RECOMMENDED */
#homeRecommendations{
    background:#1b1b1b;
    padding:25px;
    border-radius:14px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.35);
}

#name1{
    margin-bottom:18px;
    color:#e50914;
    font-size:1.4rem;
}

#poster1{
    width:220px;
    max-width:100%;
    border-radius:12px;
    object-fit:cover;
    transition:0.25s;
    box-shadow:0 8px 18px rgba(0,0,0,0.35);
}

#poster1:hover{
    transform:scale(1.03);
}

/* RESPONSIVE */
@media (max-width: 800px){

    #movieResult{
        grid-template-columns:1fr;
        text-align:center;
    }

    #poster{
        margin:auto;
    }

    #name{
        font-size:1.6rem;
    }

    section h2{
        text-align:center;
    }
}

@media (max-width: 500px){

    header h1{
        font-size:1.7rem;
    }

    #searchInput{
        width:100%;
    }

    #searchBtn{
        width:100%;
    }

    .search-container{
        flex-direction:column;
    }
}