.wei-card-wrap {
    position: relative;
    min-width: 0;
}

.wei-ribbon > .wei-card-wrap {
    scroll-snap-align: start;
}

.wei-ribbon > .wei-card-wrap > .wei-card {
    scroll-snap-align: none;
}

.wei-card-wrap .wei-card-caption {
    text-align: center;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .wei-card-wrap .wei-card img {
        transition: transform 250ms ease;
    }

    .wei-card-wrap:hover .wei-card img {
        transform: scale(1.07);
    }
}

.wei-card-badges {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 8px;
    display: grid;
    justify-items: end;
    gap: 4px;
    max-width: calc(100% - 54px);
}

.wei-card-badges > span {
    padding: 2px 6px;
    border-radius: 6px;
    background: #192240eb;
    color: #fff;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.wei-card-badges > .wei-card-genre {
    background: #4059bb;
}

.wei-card-rating,
.wei-card-heart {
    position: absolute;
    inset-inline-start: 8px;
    display: grid;
    place-content: center;
    border-radius: 50%;
    background: #11182a;
    color: #fff;
    text-align: center;
}

.wei-card-rating {
    inset-block-start: 8px;
    width: 37px;
    height: 37px;
    border: 2px solid #ffc74a;
    font-size: 13px;
    line-height: 1;
}

.wei-card-rating small {
    display: none;
}

.wei-site .wei-card-heart {
    inset-block-start: 51px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid #ed6680;
    padding: 0;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.wei-card-heart::before {
    content: "";
    display: block;
    width: 17px;
    height: 17px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8.3-4.7-10-9.4C.2 6.5 6.3 2.7 12 8c5.7-5.3 11.8-1.5 10 3.6C20.3 16.3 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wei-site .wei-card-heart[aria-pressed="true"] {
    color: #ff435f;
}

.wei-site .wei-card-heart[hidden] {
    display: none;
}
