body {
    color: #141414;
    font-family: "Open Sans", sans-serif;
    line-height: 1.5;
    margin: 0 auto;
    padding: 0;
}

header {
    height:13rem;
    background: url(../images/headerBk.png) no-repeat;
    background-size: cover;
    background-color: #1C1C1C;
}

.heading {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 4em;
    position: relative;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}



form {
    background: white;
    display: flex;
    width: 70vw;
    max-width: 600px;
    height: 40px;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.75em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 180px;
    overflow: hidden;
    border: 1px solid #D1D5DB;
    border-radius: 5px;
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.2);
}

form img {
    width: 1.5em;
    height: 1.5em;
    color: #9CA3AF;
}

form input {
    border: none;
    outline: none;
    font-size: 1rem;
    flex:1;
    width: fit-content;
    font-family: inherit;
}

form button {
    border: none;
    cursor: pointer;
    position: absolute;
    right: 0;
    height: 100%;
    padding: 0 2em;
    font-family: inherit;
}

main {
    margin-top: 6rem;
    max-width: 800px;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    min-height: 60vh;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: start;
    justify-content: center;
    /* Remove align-items/justify-content: center for grid */
}

main .no-data {
    text-align: center;
    color: #DFDDDD;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main .no-data p {
    font-weight: 700;;
}

main .no-data a {
    color: #141414;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #141414;
}

.movie-card {
    display: flex;
    overflow: hidden;
    width: 600px;
    flex-shrink: 1;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
}

.movie-card img {
    width: 100px;
    height: 150px;
    object-fit: cover;
}

.movie-card h3 {
    font-size: 1rem;
    margin: 0.5em;
}   

.movie-card p {
    font-size: 0.9rem;
    margin: 0.2em 0 0.5em 0;
    padding: 0 0.5rem;
    color: #6B7280;
    text-align: left;
}

.movie-card a {
    display: inline-block;
    margin-bottom: 0.5em;
    text-decoration: none;
    color: #141414;
    font-size: 0.9rem;
}

.movie-card a img {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.movie-details {
    padding: 1em;
}

.movie-title-rating, .movie-info {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.movie-info {
    justify-content: space-between;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .movie-card {
        max-width: 100%;
        padding: 1em 0.5em 0.5em 0.5em;
    }
    .movie-card img {
        width: 90px;
        height: 135px;
    }
}