/* =========================================================
   NEWMOVIES.ONLINE — ALL MOVIES V1
   Extends the finished homepage visual system.
   ========================================================= */

.nm-movies-page {
    min-height: 70vh;
}

.main-nav .nav-current {
    color: #fff;
}

.nm-movies-intro {
    padding: 56px 0 28px;
}

.nm-movies-intro-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.nm-movies-intro-copy {
    max-width: 760px;
}

.nm-movies-intro .section-kicker {
    margin-bottom: 11px;
}

.nm-movies-intro h1 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 15px;
    font-size: clamp(44px, 5.2vw, 70px);
    font-weight: 850;
    line-height: .95;
    letter-spacing: -.055em;
    color: #eef1f4;
    background: linear-gradient(180deg, #ffffff 0%, #e9edf1 55%, #adb7c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 12px 34px rgba(0,0,0,.22);
}

.nm-movies-intro h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 84px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(224,62,76,.82), rgba(224,62,76,0));
}

.nm-movies-intro p {
    max-width: 650px;
    margin: 18px 0 0;
    color: #aab3bd;
    font-size: 14px;
    line-height: 1.65;
}

.nm-movies-stat {
    min-width: 160px;
    padding: 3px 0 3px 22px;
    border-left: 1px solid rgba(214,65,78,.34);
}

.nm-movies-stat strong,
.nm-movies-stat span {
    display: block;
}

.nm-movies-stat strong {
    color: #f4f6f8;
    font-size: 34px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.045em;
}

.nm-movies-stat span {
    margin-top: 7px;
    color: #7f8a95;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nm-catalog-section {
    padding: 8px 0 76px;
}

.nm-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.012)),
        rgba(8,12,17,.88);
    box-shadow: 0 18px 44px rgba(0,0,0,.13);
}

.nm-filter-grid {
    display: grid;
    grid-template-columns: 1.15fr .8fr 1.15fr .8fr 1.1fr;
    gap: 10px;
}

.nm-filter-field {
    min-width: 0;
}

.nm-filter-field > span {
    display: block;
    margin: 0 0 7px 2px;
    color: #7f8a94;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.nm-filter-field select {
    width: 100%;
    height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 10px;
    outline: 0;
    background: #0b1016;
    color: #dce2e7;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.nm-filter-field select:focus {
    border-color: rgba(224,62,76,.55);
    box-shadow: 0 0 0 3px rgba(224,62,76,.08);
}

.nm-filter-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nm-filter-apply,
.nm-filter-clear {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .035em;
    white-space: nowrap;
}

.nm-filter-apply {
    min-width: 112px;
    padding: 0 16px;
    border: 1px solid rgba(239,51,64,.74);
    background: #e83745;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(232,55,69,.12);
}

.nm-filter-apply:hover {
    background: #f04451;
}

.nm-filter-clear {
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.08);
    color: #aeb7bf;
    background: rgba(255,255,255,.02);
}

.nm-filter-clear:hover {
    color: #fff;
    border-color: rgba(255,255,255,.16);
}

.nm-catalog-toolbar {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 11px;
    padding: 0 2px;
    color: #78838e;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .02em;
}

.nm-movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nm-movie-card {
    min-height: 214px;
    border-color: rgba(255,255,255,.075);
}

.nm-movie-card .hover-media-card__image {
    object-position: center 28%;
}

.nm-movie-card .hover-media-card__bottom {
    bottom: 14px;
}

.nm-movie-card .hover-media-card__content {
    min-height: 60px;
}

.nm-movie-card .hover-media-card__logo-wrap {
    max-width: 74%;
}

.nm-movie-card .hover-media-card__logo {
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
    object-position: left bottom;
}

.nm-movie-card .hover-media-card__fallback-title {
    max-width: 78%;
    font-size: 17px;
    line-height: 1.05;
}

.nm-movie-card .hover-media-card__title {
    font-size: 15px;
}

.nm-movie-card .hover-media-card__genre {
    display: block;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nm-bottom-pagination {
    padding-top: 30px;
}

.nm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.nm-page-number,
.nm-page-arrow,
.nm-page-dots {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 850;
}

.nm-page-number,
.nm-page-arrow {
    border: 1px solid rgba(255,255,255,.075);
    background: rgba(255,255,255,.022);
    color: #aab4bd;
    text-decoration: none;
}

.nm-page-number:hover,
.nm-page-arrow:hover {
    color: #fff;
    border-color: rgba(224,62,76,.36);
    background: rgba(224,62,76,.07);
}

.nm-page-number.is-current {
    border-color: rgba(224,62,76,.7);
    background: #e53a47;
    color: #fff;
    box-shadow: 0 8px 22px rgba(229,58,71,.14);
}

.nm-page-arrow {
    font-size: 20px;
    line-height: 1;
}

.nm-page-arrow.is-disabled {
    opacity: .28;
    cursor: default;
}

.nm-page-dots {
    min-width: 25px;
    color: #59636d;
}

.nm-empty-state {
    min-height: 360px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 52px 24px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(224,62,76,.08), transparent 36%),
        rgba(9,13,18,.78);
    text-align: center;
}

.nm-empty-state h2 {
    margin: 0;
    color: #eef1f4;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.04em;
}

.nm-empty-state p {
    margin: 10px 0 20px;
    color: #9da7b0;
    font-size: 12px;
}

.nm-empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(224,62,76,.58);
    border-radius: 9px;
    background: rgba(224,62,76,.08);
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

@media (max-width: 1220px) {
    .nm-filter-bar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .nm-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 1100px) {
    .nm-movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nm-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nm-movies-intro {
        padding-top: 42px;
    }

    .nm-movies-intro-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .nm-movies-stat {
        min-width: 0;
        padding: 13px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(214,65,78,.34);
    }

    .nm-movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .nm-movies-intro h1 {
        font-size: 44px;
    }

    .nm-movies-intro p {
        font-size: 13px;
    }

    .nm-filter-bar {
        padding: 13px;
    }

    .nm-filter-grid {
        grid-template-columns: 1fr;
    }

    .nm-filter-actions {
        justify-content: stretch;
    }

    .nm-filter-apply {
        flex: 1;
    }

    .nm-catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .nm-movie-grid {
        grid-template-columns: 1fr;
    }

    .nm-movie-card {
        min-height: 225px;
    }
}

/* =========================================================
   V2 — MATCH THE ORIGINAL NEWMOVIES CATALOG REFERENCE
   Navigation, heading, filters and mobile behavior.
   Backend/query logic is unchanged.
   ========================================================= */

/* Original catalog ambience: mostly black with a restrained crimson glow. */
html,
body.nm-movies-body {
    background:
        radial-gradient(circle at 82% 14%, rgba(178, 18, 43, .18), transparent 28%),
        radial-gradient(circle at 68% 36%, rgba(126, 12, 31, .12), transparent 34%),
        radial-gradient(circle at 24% 74%, rgba(82, 7, 20, .08), transparent 28%),
        linear-gradient(180deg, #05080d 0%, #05070b 46%, #040609 100%) !important;
    background-attachment: fixed;
}

/* Desktop active navigation underline from the supplied NewMovies build. */
.main-nav .nav-current {
    position: relative;
    color: #fff;
}

.main-nav .nav-current::after {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: -17px;
    height: 2px;
    border-radius: 999px;
    background: #ef3043;
    box-shadow: 0 0 10px rgba(239, 48, 67, .28);
}

/* Calmer catalog heading, matching the supplied movies page. */
.nm-movies-intro {
    position: relative;
    overflow: hidden;
    padding: 58px 0 28px;
    background:
        linear-gradient(90deg, rgba(5,8,13,.97) 0%, rgba(5,8,13,.82) 52%, rgba(54,5,14,.22) 100%),
        radial-gradient(circle at 84% 26%, rgba(194, 20, 47, .13), transparent 32%);
}

.nm-movies-intro::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -90px;
    right: -70px;
    width: min(52vw, 720px);
    height: 330px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(151, 15, 38, .16) 0%, rgba(87, 7, 21, .08) 42%, transparent 70%);
    filter: blur(2px);
}

.nm-movies-intro .site-shell {
    position: relative;
    z-index: 1;
}

.nm-movies-intro-row {
    gap: 28px;
}

.nm-movies-intro .section-kicker {
    margin-bottom: 8px;
}

.nm-movies-intro h1 {
    display: block;
    margin: 0;
    padding: 0;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: none;
    font-size: clamp(34px, 3.6vw, 45px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.045em;
}

.nm-movies-intro h1::after {
    display: none;
}

.nm-movies-intro p {
    max-width: 560px;
    margin: 16px 0 0;
    color: #87929c;
    font-size: 12px;
    line-height: 1.65;
}

.nm-movies-stat {
    min-width: 126px;
    padding: 0 0 0 18px;
    border-top: 0;
    border-left: 1px solid rgba(126, 29, 40, .42);
}

.nm-movies-stat strong {
    font-size: 28px;
}

.nm-movies-stat span {
    margin-top: 5px;
    color: #68747e;
    font-size: 9px;
}

.nm-catalog-section {
    padding-top: 8px;
    background:
        radial-gradient(circle at 86% 10%, rgba(127, 12, 31, .10), transparent 26%),
        radial-gradient(circle at 18% 82%, rgba(85, 8, 21, .07), transparent 30%);
}

/* Filter panel structure from the supplied catalog page. */
.nm-filter-bar {
    display: block;
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid rgba(96, 116, 132, .30);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(14, 23, 31, .94), rgba(9, 16, 22, .94)),
        radial-gradient(circle at 84% 20%, rgba(135, 18, 35, .08), transparent 36%);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255,255,255,.015);
}

.nm-filter-grid {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, .78fr)
        minmax(0, 1.08fr)
        minmax(0, .86fr)
        minmax(0, 1.05fr);
    gap: 10px;
}

.nm-filter-field > span {
    margin: 0 0 7px;
    color: #95a1aa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .085em;
}

.nm-filter-field select {
    height: 44px;
    padding: 0 35px 0 13px;
    border: 1px solid rgba(94, 115, 131, .32);
    border-radius: 8px;
    background-color: #0c1319;
    color: #edf3f7;
    font-size: 14px;
    font-weight: 750;
}

.nm-filter-field select:hover {
    border-color: rgba(116, 146, 169, .50);
    background-color: #0e171f;
}

.nm-filter-field select:focus {
    border-color: rgba(207, 48, 68, .65);
    box-shadow: 0 0 0 3px rgba(177, 26, 45, .11);
}

.nm-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid rgba(96, 116, 132, .22);
}

.nm-filter-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #74808a;
    font-size: 12px;
    font-weight: 700;
}

.nm-filter-count strong {
    color: #dfe9ef;
    font-size: 14px;
    font-weight: 900;
}

.nm-filter-actions {
    justify-content: flex-end;
    gap: 8px;
}

.nm-filter-clear,
.nm-filter-apply {
    min-height: 38px;
    border-radius: 7px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 900;
}

.nm-filter-clear {
    border-color: rgba(94, 115, 131, .30);
    background: rgba(255,255,255,.015);
    color: #90a0ac;
}

.nm-filter-apply {
    min-width: 0;
    border-color: rgba(207, 48, 68, .62);
    background: linear-gradient(180deg, #c92d43, #8d1425);
    box-shadow:
        0 0 18px rgba(190, 30, 50, .16),
        inset 0 1px 0 rgba(255,255,255,.10);
}

.nm-filter-apply:hover {
    background: linear-gradient(180deg, #d63149, #9b172a);
}

/* Compact page navigation also appears beside the result range. */
.nm-catalog-toolbar {
    min-height: 40px;
    margin-bottom: 14px;
    font-size: 11px;
}

.nm-catalog-toolbar .nm-pagination {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
}

.nm-catalog-toolbar .nm-page-number,
.nm-catalog-toolbar .nm-page-arrow,
.nm-catalog-toolbar .nm-page-dots {
    min-width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 13px;
}

.nm-catalog-toolbar .nm-page-arrow {
    font-size: 19px;
}

/* Responsive catalog card behavior from the original supplied page. */
.nm-movie-grid {
    width: 100%;
    column-gap: 14px;
    row-gap: 18px;
}

.nm-movie-grid > * {
    min-width: 0;
}

.nm-movie-card {
    width: 100%;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
}

@media (min-width: 1121px) {
    .nm-movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 821px) and (max-width: 1120px) {
    .nm-movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .nm-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    /* The supplied mobile header keeps navigation visible; preserve it here. */
    .main-nav .nav-current::after {
        left: 0;
        right: 0;
        bottom: 0;
    }

    .nm-movies-intro {
        padding-top: 29px;
        padding-bottom: 22px;
    }

    .nm-movies-intro::after {
        width: 90vw;
        height: 260px;
        top: -70px;
        right: -45vw;
    }

    .nm-movies-intro-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .nm-movies-intro .section-kicker {
        font-size: 9.5px !important;
    }

    .nm-movies-intro h1 {
        font-size: 35px !important;
        line-height: 1 !important;
    }

    .nm-movies-intro p {
        margin-top: 11px;
        color: #bcc5cd;
        font-size: 16px;
        line-height: 1.62;
    }

    .nm-movies-stat {
        min-width: 0;
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(126, 29, 40, .42);
    }

    .nm-movies-stat strong {
        font-size: 18px;
    }

    .nm-movies-stat span {
        font-size: 9px;
    }

    .nm-filter-bar {
        padding: 13px;
        border-radius: 10px;
    }

    .nm-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nm-filter-sort {
        grid-column: 1 / -1;
    }

    .nm-catalog-toolbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nm-catalog-toolbar .nm-pagination {
        margin-left: auto;
    }

    .nm-movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 10px;
        row-gap: 12px;
    }

    .nm-movie-card,
    .nm-movie-card.hover-media-card {
        min-height: 0 !important;
        aspect-ratio: 1.42 / 1;
        border-radius: 13px;
    }

    .nm-movie-card .hover-media-card__bottom {
        left: 10px;
        right: 9px;
        bottom: 9px;
        grid-template-columns: minmax(0,1fr) 30px;
        gap: 8px;
    }

    .nm-movie-card .hover-media-card__content {
        min-height: 38px;
    }

    .nm-movie-card .hover-media-card__normal {
        min-height: 36px;
    }

    .nm-movie-card .hover-media-card__logo {
        max-width: 74%;
        max-height: 38px;
    }

    .nm-movie-card .hover-media-card__fallback-title {
        font-size: 12px;
        line-height: 1.05;
    }

    .nm-movie-card .media-action {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 560px) {
    .nm-movies-intro h1 {
        font-size: 31px !important;
    }

    .nm-movies-intro::after {
        opacity: .75;
    }

    .nm-filter-grid {
        grid-template-columns: 1fr;
    }

    .nm-filter-sort {
        grid-column: auto;
    }

    .nm-filter-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nm-filter-actions {
        width: 100%;
    }

    .nm-filter-clear,
    .nm-filter-apply {
        flex: 1;
    }

    .nm-catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nm-catalog-toolbar .nm-pagination {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        margin-left: 0;
        padding-bottom: 2px;
    }

    /* IMPORTANT: stay at two movie cards per row on phones, as in the supplied build. */
    .nm-movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 330px) {
    .nm-movie-grid {
        grid-template-columns: 1fr !important;
    }

    .nm-movie-card {
        aspect-ratio: 16 / 9;
    }
}

/* =========================================================
   V3.1 — CATALOG FINISHING TWEAKS
   Homepage-style title + right-aligned bottom pager
   ========================================================= */

/* Keep the catalog heading at its current size, but use the same
   cinematic silver treatment as the finished homepage headings. */
.nm-movies-intro h1 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 0 13px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(34px, 3.6vw, 45px);
    font-weight: 780;
    line-height: .98;
    letter-spacing: -.045em;
    color: #eef2f5;
    background: linear-gradient(180deg, #ffffff 0%, #e8edf1 52%, #b7c0c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 34px rgba(0, 0, 0, .30);
}

.nm-movies-intro h1::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, #df4654 0%, #df4654 38%, rgba(223, 70, 84, 0) 100%);
    box-shadow: 0 0 16px rgba(223, 70, 84, .18);
}

/* Match the top pager: bottom pagination sits on the right. */
.nm-bottom-pagination {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-top: 30px;
}

.nm-bottom-pagination .nm-pagination {
    justify-content: flex-end;
}

@media (max-width: 560px) {
    .nm-movies-intro h1 {
        font-size: clamp(30px, 10vw, 38px);
        padding-bottom: 11px;
    }

    .nm-movies-intro h1::after {
        width: 52px;
    }

    .nm-bottom-pagination {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nm-bottom-pagination .nm-pagination {
        flex-wrap: nowrap;
        margin-left: auto;
    }
}


/* =========================================================
   V4 — MOVIE CARD SHAPE + TRUE HOVER HOLD
   Matches the repaired TV catalog card behavior.
   ========================================================= */

/* Movie catalog only. TV also uses .nm-movies-body, so exclude it. */
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card.hover-media-card,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card.nm-card {
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 17px !important;
    -webkit-clip-path: inset(0 round 17px);
    clip-path: inset(0 round 17px);
    background: #070a0e;
    box-shadow:
        0 16px 34px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.025);
}

body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card > .nm-card__image,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card > .hover-media-card__image,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card > .hover-media-card__shade {
    border-radius: inherit !important;
}

/* Normal state. */
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card .hover-media-card__normal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition:
        opacity .18s ease 0s,
        transform .18s ease 0s,
        visibility 0s linear 0s !important;
}

body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card .hover-media-card__details {
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(7px) !important;
    pointer-events: none !important;
    transition:
        opacity .18s ease 0s,
        transform .18s ease 0s,
        visibility 0s linear .18s !important;
}

/* Intentional hover: wait 450ms, then swap logo/title -> metadata. */
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:hover .hover-media-card__normal,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:focus-visible .hover-media-card__normal {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-5px) !important;
    transition:
        opacity .18s ease .45s,
        transform .18s ease .45s,
        visibility 0s linear .63s !important;
}

body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:hover .hover-media-card__details,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:focus-visible .hover-media-card__details {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition:
        opacity .18s ease .45s,
        transform .18s ease .45s,
        visibility 0s linear .45s !important;
}

body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:hover .hover-media-card__shade,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:focus-visible .hover-media-card__shade {
    background:
        linear-gradient(
            180deg,
            rgba(3,6,9,.08) 0%,
            rgba(3,6,9,.06) 34%,
            rgba(3,6,9,.53) 62%,
            rgba(3,6,9,.97) 100%
        ),
        linear-gradient(
            90deg,
            rgba(3,6,9,.27) 0%,
            rgba(3,6,9,.02) 64%
        ) !important;
}

body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:hover .hover-media-card__image,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:focus-visible .hover-media-card__image {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.06) brightness(.95);
}

body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:hover,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:focus-visible {
    border-color: rgba(214,43,58,.26) !important;
    box-shadow: 0 24px 52px rgba(0,0,0,.28);
}

/* Mouse-out resets immediately. */
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:not(:hover) .hover-media-card__normal,
body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card:not(:hover) .hover-media-card__details {
    transition-delay: 0s !important;
}

@media (max-width: 820px) {
    body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card,
    body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card.hover-media-card,
    body.nm-movies-body:not(.nm-tvshows-body) .nm-movie-card.nm-card {
        border-radius: 13px !important;
        -webkit-clip-path: inset(0 round 13px);
        clip-path: inset(0 round 13px);
    }
}

