body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, rgba(8, 18, 31, 0.8), rgba(27, 69, 255, 0.8));
    background-size: cover; 
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    margin: 0;
    padding: 30px; 
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    width: 100%;
    max-width: 2000px; 
    text-align: center;
    animation: fadeIn 0.8s ease-out; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    color: #2575fc;
    margin-bottom: 35px; 
    font-size: 2.8em; 
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.inputBox {
    margin-bottom: 40px; 
}

.inputBox form {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    align-items: center;
}

label {
    font-size: 1.2em; 
    color: #555;
    font-weight: 600;
}

input[type="text"] {
    padding: 12px 20px;
    border: 1px solid #c0c0c0;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
    border-color: #2575fc; 
    box-shadow: 0 0 8px rgba(37, 117, 252, 0.3);
    outline: none;
}

#btn {
    background-color: #2575fc; 
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.2);
}

#btn:hover {
    background-color: #1a5edb; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(37, 117, 252, 0.3);
}

#btn:active {
    transform: translateY(0); 
    box-shadow: 0 2px 5px rgba(37, 117, 252, 0.2);
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 25px; 
    margin-top: 30px;
    text-align: left;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    background-color: #fefefe; 
    border: 1px solid #e0e0e0; 
    border-radius: 10px; 
    padding: 20px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
}

.movie-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}

.movie-card img {
    max-width: 100%;
    height: 300px; 
    object-fit: cover; 
    border-radius: 6px;
    margin-bottom: 15px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.movie-card h3 {
    font-size: 1.4em; 
    margin-bottom: 8px;
    color: #2575fc;
    font-weight: 700;
}

.movie-card p {
    font-size: 0.95em; 
    color: #666;
    margin-bottom: 5px;
}


@media (max-width: 768px) {
    .container {
        padding: 25px;
        max-width: 95%;
    }

    h1 {
        font-size: 2.2em;
    }

    .inputBox form {
        flex-direction: column;
    }

    input[type="text"] {
        max-width: 100%;
    }

    .results-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.8em;
    }
    .movie-card img {
        height: 250px; 
    }
}