@media (min-width: 1600px) {
    body > .movie-hover-card {
        --movie-hover-large-scale: 1.1;

        /* Independent scale preserves existing transform animations.
           Anchor at the bottom center to grow over the source poster. */
        scale: var(--movie-hover-large-scale);
        transform-origin: 50% 100%;
    }
}

/* Match the existing playlist large-screen breakpoints. */
@media (min-width: 1920px) {
    body > .movie-hover-card {
        --movie-hover-large-scale: 1.25;
    }
}

@media (min-width: 2560px) {
    body > .movie-hover-card {
        --movie-hover-large-scale: 1.666667;
    }
}

@media (min-width: 3440px) {
    body > .movie-hover-card {
        --movie-hover-large-scale: 2.239583;
    }
}

@media (min-width: 3840px) {
    body > .movie-hover-card {
        --movie-hover-large-scale: 2.5;
    }
}

@media (min-width: 5120px) {
    body > .movie-hover-card {
        --movie-hover-large-scale: 3.333333;
    }
}

/* Retain the original edge alignment where JS identifies an edge. */
@media (min-width: 1600px) {
    body > .movie-hover-card.movie-hover-card--left {
        transform-origin: 0% 100%;
    }

    body > .movie-hover-card.movie-hover-card--right {
        transform-origin: 100% 100%;
    }
}

/* First poster: grow toward the viewport interior, even when the
   JavaScript assigns the center alignment on a large monitor. */
@media (min-width: 1600px) {
    body:has(.playlist-row .movie-card.is-hover-preview-source:first-of-type)
        > .movie-hover-card.movie-hover-card--center {
        transform-origin: 0% 100%;
    }
}

/* Safari large-screen positioning fix */
@media (min-width: 1600px) {
    html.is-safari-browser .playlist-rail {
        zoom: 1 !important;
    }
}