/* Related movie and series cards: title and play icon stay centered in the purple overlay. */
.related-content-section .data-title {
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .25rem;
    min-height: 44px;
    margin: 0 !important;
    padding: .5rem .75rem !important;
    line-height: 1.2 !important;
}

.related-content-section .data-title .mdi {
    flex: 0 0 auto;
    line-height: 1;
}

/* Match the soft lift, shadow and poster zoom used by catalogue cards. */
.related-content-section .series-card {
    transform: translateY(0);
    transition: transform 180ms ease, box-shadow 180ms ease;
    will-change: transform;
}

.related-content-section .series-card:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, .18), 0 3px 8px rgba(15, 23, 42, .1);
    transform: translateY(-4px);
}

.related-content-section .series-card .dash-product-img {
    overflow: hidden;
}

.related-content-section .series-card .dash-product-img img {
    transform: scale(1);
    transition: transform 280ms ease;
    will-change: transform;
}

.related-content-section .series-card:hover .dash-product-img img {
    transform: scale(1.055);
}

/* Blog listing cards use the same subtle catalogue-card interaction. */
.blog-post-card {
    transform: translateY(0);
    transition: transform 180ms ease, box-shadow 180ms ease;
    will-change: transform;
}

.blog-post-card:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, .18), 0 3px 8px rgba(15, 23, 42, .1);
    transform: translateY(-4px);
}

.blog-post-card > a:first-child {
    display: block;
    overflow: hidden;
}

.blog-post-card .blog-image {
    transform: scale(1);
    transition: transform 280ms ease;
    will-change: transform;
}

.blog-post-card:hover .blog-image {
    transform: scale(1.055);
}

/* The recommendation block must not visually touch or overlap the site footer. */
.related-content-section {
    margin-bottom: 3rem;
    padding-bottom: .5rem;
}

@media (prefers-reduced-motion: reduce) {
    .related-content-section .series-card,
    .related-content-section .series-card .dash-product-img img,
    .blog-post-card,
    .blog-post-card .blog-image {
        transition: none;
    }

    .related-content-section .series-card:hover,
    .related-content-section .series-card:hover .dash-product-img img,
    .blog-post-card:hover,
    .blog-post-card:hover .blog-image {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .related-content-section .data-title {
        min-height: 48px;
        padding: .45rem .5rem !important;
    }

    .related-content-section {
        margin-bottom: 2rem;
    }
}
