/* Shared movie and TV-show cards: a compact, bordered surface inside the grid gap. */
.items.featured article.item.movies,
.items.featured article.item.tvshows {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.items.featured article.item.movies::before,
.items.featured article.item.tvshows::before {
    position: absolute;
    z-index: 0;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    content: '';
    background: #111216;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 6px;
    pointer-events: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.items.featured article.item.movies:hover::before,
.items.featured article.item.tvshows:hover::before {
    background: #16171c;
    border-color: rgba(255, 255, 255, .24);
}

.items.featured article.item.movies .poster,
.items.featured article.item.tvshows .poster,
.items.featured article.item.movies .data,
.items.featured article.item.tvshows .data {
    position: relative;
    z-index: 1;
}

.items.featured article.item.movies .poster,
.items.featured article.item.tvshows .poster {
    margin: 0;
    border-radius: 5px 5px 0 0;
}

.items.featured article.item.movies .data,
.items.featured article.item.tvshows .data {
    width: 100%;
    margin: 0;
    padding: 7px 10px 9px;
    background: #111216;
}

.items.featured article.item.movies .data h3,
.items.featured article.item.tvshows .data h3 {
    float: none;
    width: 100%;
    margin: 0;
    color: #f3f3f5;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.items.featured article.item.movies .data h3 a,
.items.featured article.item.tvshows .data h3 a,
.items article.item.movies .repelis-poster-card .data h3 a,
.items article.item.tvshows .repelis-poster-card .data h3 a,
#single_relacionados article.item.movies .repelis-poster-card .data h3 a,
#single_relacionados article.item.tvshows .repelis-poster-card .data h3 a {
    color: #f3f3f5 !important;
}

.items article.item.movies .repelis-poster-card,
.items article.item.tvshows .repelis-poster-card,
#single_relacionados article.item.movies .repelis-poster-card,
#single_relacionados article.item.tvshows .repelis-poster-card {
    overflow: hidden;
    background: #111216;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 6px;
    transition: background-color .18s ease, border-color .18s ease;
}

.items article.item.movies:hover .repelis-poster-card,
.items article.item.tvshows:hover .repelis-poster-card,
#single_relacionados article.item.movies:hover .repelis-poster-card,
#single_relacionados article.item.tvshows:hover .repelis-poster-card {
    background: #16171c;
    border-color: rgba(255, 255, 255, .24);
}

.items article.item.movies .repelis-poster-card .poster,
.items article.item.tvshows .repelis-poster-card .poster,
#single_relacionados article.item.movies .repelis-poster-card .poster,
#single_relacionados article.item.tvshows .repelis-poster-card .poster {
    position: relative;
    float: left;
    width: 100%;
    overflow: hidden;
    padding-top: 140%;
    border-radius: 5px 5px 0 0;
}

.items article.item.movies .repelis-poster-card .poster img,
.items article.item.tvshows .repelis-poster-card .poster img,
#single_relacionados article.item.movies .repelis-poster-card .poster img,
#single_relacionados article.item.tvshows .repelis-poster-card .poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.items article.item.movies .repelis-poster-card .data,
.items article.item.tvshows .repelis-poster-card .data,
#single_relacionados article.item.movies .repelis-poster-card .data,
#single_relacionados article.item.tvshows .repelis-poster-card .data {
    display: block;
    clear: both;
    float: none;
    width: 100%;
    margin: 0;
    padding: 7px 10px 9px;
    background: #111216;
}

.items article.item.movies .repelis-poster-card .data h3,
.items article.item.tvshows .repelis-poster-card .data h3,
#single_relacionados article.item.movies .repelis-poster-card .data h3,
#single_relacionados article.item.tvshows .repelis-poster-card .data h3 {
    float: none;
    width: 100%;
    margin: 0;
    color: #f3f3f5;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repelis-poster-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 16px;
    margin-top: 3px;
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
    line-height: 16px;
}

.repelis-poster-card-year {
    display: block !important;
    float: none !important;
    width: auto !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repelis-poster-card-rating {
    display: inline-flex;
    float: none !important;
    width: auto !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, .82);
    background: transparent;
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
}

.repelis-poster-card-rating .fa-star {
    color: #e2ad38;
    font-size: 9px;
}

.repelis-poster-language-badges {
    position: absolute;
    z-index: 3;
    bottom: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    padding: 4px;
    background: rgba(8, 8, 10, .80);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    line-height: 0;
    pointer-events: none;
}

.module .content .items .item .poster .repelis-poster-language-badges img,
.result-item article .thumbnail .repelis-poster-language-badges img,
#single_relacionados article .repelis-poster-language-badges img {
    display: block !important;
    position: static !important;
    flex: 0 0 auto !important;
    width: 24px !important;
    height: 16px !important;
    margin: 0 !important;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

#single_relacionados article.item.movies,
#single_relacionados article.item.tvshows {
    padding: 7px;
    transition: none;
}

#single_relacionados .owl-item > article.item.movies,
#single_relacionados .owl-item > article.item.tvshows {
    width: 100%;
}

#single_relacionados article.item.movies:hover,
#single_relacionados article.item.tvshows:hover {
    transform: none;
}

#single_relacionados .repelis-poster-language-badges {
    bottom: 6px;
    left: 6px;
    gap: 2px;
    padding: 2px;
}

#single_relacionados .repelis-poster-language-badges img {
    width: 17px !important;
    height: 11px !important;
}

@media (max-width: 640px) {
    .items.featured article.item.movies::before,
    .items.featured article.item.tvshows::before {
        top: 5px;
        right: 5px;
        bottom: 5px;
        left: 5px;
    }

    .items.featured article.item.movies .data,
    .items.featured article.item.tvshows .data,
    .items article.item.movies .repelis-poster-card .data,
    .items article.item.tvshows .repelis-poster-card .data,
    #single_relacionados article.item.movies .repelis-poster-card .data,
    #single_relacionados article.item.tvshows .repelis-poster-card .data {
        padding: 7px 8px 8px;
    }

    .items article.item.movies .repelis-poster-card .data h3,
    .items article.item.tvshows .repelis-poster-card .data h3,
    #single_relacionados article.item.movies .repelis-poster-card .data h3,
    #single_relacionados article.item.tvshows .repelis-poster-card .data h3 {
        font-size: 12px;
        line-height: 16px;
    }

    .repelis-poster-card-meta {
        margin-top: 2px;
        font-size: 10px;
        line-height: 14px;
    }

    .repelis-poster-card-rating {
        font-size: 9px;
    }

    .repelis-poster-language-badges {
        bottom: 6px;
        left: 6px;
        gap: 3px;
        padding: 3px;
    }

    .module .content .items .item .poster .repelis-poster-language-badges img,
    .result-item article .thumbnail .repelis-poster-language-badges img,
    #single_relacionados article .repelis-poster-language-badges img {
        width: 21px !important;
        height: 14px !important;
    }
}
