.search-page {

    padding: 100px 50px 50px;

}


.search-box {

    margin-bottom: 40px;

}


.search-box input {

    width: 100%;

    max-width: 600px;

    background: #181818;

    color: white;

    border: 1px solid #333;

    border-radius: 5px;

    padding: 15px 20px;

    font-size: 18px;

}


.search-box input:focus {

    outline: none;

    border-color: #e50914;

}


.results {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(180px, 1fr)
    );
    gap: 20px;
}

.search-card {
    position: relative;
    width: 100%;
    height: 260px;

    display: block;
    overflow: hidden;
    border-radius: 8px;

    transition: transform 0.25s ease;
}

.search-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
}

.search-card:hover {
    transform: scale(1.05);
}

.search-card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 12px;

    background: linear-gradient(
        transparent,
        rgba(0,0,0,0.95)
    );

    color: white;
}

.title {
    font-size: 14px;
    font-weight: bold;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.year {
    font-size: 12px;
    color: #bbb;
    margin-top: 3px;
}


.card {
    position: relative;

    height: 260px;
    border-radius: 8px;
    overflow: hidden;

    cursor: pointer;
    transition: transform 0.25s ease;

    display: block;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 12px;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.95)
    );

    color: white;
    font-size: 14px;
    font-weight: bold;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover {

    transform: scale(1.05);

    background: #333;

}