/* NXX_ANIME_POSTER_COVER_V1 */

/*
 * DooPlay reserves a 5:7 poster slot with padding-top: 140%, but its legacy
 * image rule keeps height:auto. Wider source artwork therefore stops before
 * the title bar and exposes the black poster background. Turn only TV-show
 * catalogue images into a real 5:7 replaced-element box so object-fit can
 * crop the small excess instead of leaving a gap.
 *
 * The selector intentionally excludes movie and episode cards. It covers the
 * TV-show shelves on the home page as well as the /anime/ archive.
 */
.module .content .items .item.tvshows > .poster {
    height: auto !important;
    min-height: 0;
    padding-top: 0 !important;
}

.module .content .items .item.tvshows > .poster > img {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 5 / 7;
    margin: 0 !important;
    display: block !important;
    object-fit: cover !important;
    object-position: 50% 50%;
}
