.movie-card {
    display: inline-block;
    position: relative;
    width: 180px;
    height: 240px;
    margin: 5px;
    color: #fff;
    cursor: pointer;
}

.movie-card:hover > .movie-card-b {
    display: flex;
}

.movie-card-a {
    width: 100%;
    height: 100%;
    background: red;
}

.movie-card-a > img {
    width: 100%;
    height: 100%;
}

.movie-card-b {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    white-space: normal;
    padding: 0 5px;
    align-items: end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1.0));
}

.movie-card-b > a {
    color: #fff;
    text-decoration: none;
    pointer-events: none;
}

@media only screen and (max-width: 820px) {
    :root {
        --movie-card-width: calc((100vw * 0.25));
        --movie-card-height: calc((100vw * 0.25) * 1.3333);
    }
    .movie-card {
        width: var(--movie-card-width);
        height: var(--movie-card-height);
        margin: 1px;
    }
}