﻿
/* =========================
                   Glass Split 4 - Public Gallery
                   ========================= */
section[data-mf-gallery-split] {
    width: 80%;
    margin: 20px auto;
    color: #e5e7eb;
}

    section[data-mf-gallery-split] .mf-gsplit4__head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 14px;
    }

    section[data-mf-gallery-split] .mf-gsplit4__title {
        margin: 0;
        font-size: 38px;
        letter-spacing: -0.02em;
    }

    section[data-mf-gallery-split] .mf-gsplit4__sub {
        margin: 8px 0 0;
        opacity: .82;
        max-width: 64ch;
        line-height: 1.4;
    }

    section[data-mf-gallery-split] .mf-gsplit4__tabs {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    section[data-mf-gallery-split] .mf-gsplit4__tab {
        appearance: none;
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.06);
        color: #e5e7eb;
        border-radius: 999px;
        padding: 8px 12px;
        letter-spacing: .18em;
        font-size: 12px;
        cursor: pointer;
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
        user-select: none;
    }

        section[data-mf-gallery-split] .mf-gsplit4__tab:hover {
            transform: translateY(-1px);
            border-color: rgba(255,255,255,.20);
            box-shadow: 0 10px 30px rgba(0,0,0,.35);
        }

        section[data-mf-gallery-split] .mf-gsplit4__tab[aria-selected="true"] {
            background: rgba(2,6,23,.55);
            border-color: rgba(255,255,255,.18);
            box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 42px rgba(56,189,248,.14);
        }

    section[data-mf-gallery-split] .mf-gsplit4__grid {
        display: grid;
        grid-template-columns: 1.45fr .85fr;
        gap: 14px;
        border-radius: 26px;
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(2,6,23,.55);
        backdrop-filter: blur(12px);
        box-shadow: 0 30px 120px rgba(0,0,0,.55);
        overflow: hidden;
        position: relative;
    }

        /* ambient glow */
        section[data-mf-gallery-split] .mf-gsplit4__grid::before {
            content: "";
            position: absolute;
            inset: -2px;
            background: radial-gradient(680px 420px at 18% 25%, rgba(56,189,248,.14), rgba(0,0,0,0) 60%), radial-gradient(620px 420px at 78% 70%, rgba(168,85,247,.12), rgba(0,0,0,0) 60%);
            filter: blur(10px);
            opacity: .95;
            pointer-events: none;
        }

    section[data-mf-gallery-split] .mf-gsplit4__left {
        padding: 14px;
        position: relative;
    }

    section[data-mf-gallery-split] .mf-gsplit4__right {
        padding: 14px;
        position: relative;
    }

    /* Hero */
    section[data-mf-gallery-split] .mf-gsplit4__hero {
        border-radius: 22px;
        overflow: hidden;
        position: relative;
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(2,6,23,.45);
        box-shadow: 0 18px 70px rgba(0,0,0,.45);
        min-height: 520px;
    }

    section[data-mf-gallery-split] .mf-gsplit4__heroImg {
        width: 100%;
        height: 100%;
        max-height: 73vh;
        object-fit: cover;
        display: block;
        opacity: .98;
    }

    section[data-mf-gallery-split] .mf-gsplit4__heroMeta {
        padding: 12px 14px;
    }

    section[data-mf-gallery-split] .mf-gsplit4__pill {
        display: inline-flex;
        padding: 7px 10px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.06);
        letter-spacing: .16em;
        font-size: 12px;
        margin-right: 8px;
    }

    section[data-mf-gallery-split] .mf-gsplit4__heroTitle {
        font-size: 22px;
        margin-top: 10px;
    }

    section[data-mf-gallery-split] .mf-gsplit4__heroDesc {
        opacity: .84;
        margin-top: 6px;
        line-height: 1.4;
        max-width: 72ch;
    }

    section[data-mf-gallery-split] .mf-gsplit4__heroBtn {
        margin-top: 12px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        border-radius: 999px;
        padding: 10px 14px;
        border: 1px solid rgba(255,255,255,.16);
        background: rgba(255,255,255,.07);
        color: #e5e7eb;
        cursor: pointer;
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

        section[data-mf-gallery-split] .mf-gsplit4__heroBtn:hover {
            transform: translateY(-2px);
            border-color: rgba(255,255,255,.22);
            box-shadow: 0 16px 50px rgba(0,0,0,.45);
        }

    /* Rail */
    section[data-mf-gallery-split] .mf-gsplit4__rail {
        max-height: 677px;
        height: 100%;
        overflow: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-right: 6px;
    }

    /* Row card */
    section[data-mf-gallery-split] .mf-gsplit4__row {
        --c: rgba(56,189,248,.40);
        display: grid;
        grid-template-columns: 76px 1fr;
        gap: 10px;
        align-items: center;
        border-radius: 18px;
        overflow: hidden;
        position: relative;
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(2,6,23,.45);
        cursor: pointer;
        box-shadow: 0 10px 40px rgba(0,0,0,.35);
        transition: transform .18s ease, box-shadow .18s ease;
        user-select: none;
    }

        section[data-mf-gallery-split] .mf-gsplit4__row::before {
            content: "";
            position: absolute;
            inset: -1px;
            background: radial-gradient(240px 160px at 30% 30%, var(--c), rgba(0,0,0,0) 65%);
            opacity: 0;
            transition: opacity .22s ease;
            pointer-events: none;
        }

        section[data-mf-gallery-split] .mf-gsplit4__row:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 58px rgba(0,0,0,.45);
        }

            section[data-mf-gallery-split] .mf-gsplit4__row:hover::before {
                opacity: .65;
            }

        section[data-mf-gallery-split] .mf-gsplit4__row.is-active {
            outline: 2px solid rgba(255,255,255,.12);
            animation: mfSplitPulse 1.8s ease-in-out infinite;
        }

@keyframes mfSplitPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 26px rgba(0,0,0,.35), 0 0 32px rgba(56,189,248,.12);
    }

    50% {
        box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 26px rgba(0,0,0,.35), 0 0 52px rgba(56,189,248,.22);
    }
}

section[data-mf-gallery-split] .mf-gsplit4__thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    display: block;
    opacity: .95;
}

section[data-mf-gallery-split] .mf-gsplit4__rk {
    font-size: 12px;
    letter-spacing: .16em;
    opacity: .78;
}

section[data-mf-gallery-split] .mf-gsplit4__rt {
    font-size: 14px;
    margin-top: 4px;
}

section[data-mf-gallery-split] .mf-gsplit4__loading,
section[data-mf-gallery-split] .mf-gsplit4__empty {
    opacity: .75;
    padding: 24px;
}

@media (max-width: 980px) {
    section[data-mf-gallery-split] {
        width: 92%;
    }

        section[data-mf-gallery-split] .mf-gsplit4__grid {
            grid-template-columns: 1fr;
        }

        section[data-mf-gallery-split] .mf-gsplit4__rail {
            max-height: 340px;
        }

        section[data-mf-gallery-split] .mf-gsplit4__head {
            align-items: flex-start;
            flex-direction: column;
        }

        section[data-mf-gallery-split] .mf-gsplit4__tabs {
            justify-content: flex-start;
        }
}

/* =========================
           Modal (images + future video)
           ========================= */
.mf-gmodal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .mf-gmodal.is-open {
        display: block;
    }

.mf-gmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
}

.mf-gmodal__dialog {
    position: relative;
    width: min(980px, calc(100vw - 28px));
    margin: 6vh auto 0;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(2,6,23,.68);
    box-shadow: 0 30px 140px rgba(0,0,0,.65);
    overflow: hidden;
}

.mf-gmodal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: #e5e7eb;
    cursor: pointer;
}

.mf-gmodal__head {
    padding: 16px 18px 10px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.mf-gmodal__tags {
    opacity: .78;
    letter-spacing: .18em;
    font-size: 12px;
}

.mf-gmodal__title {
    font-size: 22px;
    margin-top: 6px;
}

.mf-gmodal__desc {
    opacity: .82;
    margin-top: 6px;
    line-height: 1.4;
}

.mf-gmodal__body {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    padding: 14px;
    align-items: center;
}

.mf-gmodal__nav {
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #e5e7eb;
    cursor: pointer;
    user-select: none;
}

.mf-gmodal__figure {
    margin: 0;
}

.mf-gmodal__stage {
    width: 100%;
    height: min(62vh, 560px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mf-gmodal__stage img,
    .mf-gmodal__stage video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.mf-gmodal__cap {
    text-align: center;
    opacity: .78;
    margin-top: 8px;
    letter-spacing: .12em;
    font-size: 12px;
}

.mf-gmodal__thumbs {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-top: 10px;
}

.mf-gmodal__thumb {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}

    .mf-gmodal__thumb[aria-current="true"] {
        outline: 2px solid rgba(255,255,255,.14);
        box-shadow: 0 0 40px rgba(56,189,248,.18);
    }

.mf-gmodal__thumbImg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: .95;
}
/* =========================================================
           MODAL THUMBNAILS: make them visible (size + bg)
           ========================================================= */
.mf-gmodal__thumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.mf-gmodal__thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(2,6,23,.55);
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mf-gmodal__thumbImg {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* <--- this is the key */
    filter: saturate(1.05) contrast(1.03);
    opacity: .88;
    transform: scale(1.02);
}

.mf-gmodal__thumb[aria-current="true"] {
    border-color: rgba(255,255,255,.35);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 4px rgba(56,189,248,.14), 0 18px 40px rgba(0,0,0,.55);
}

    .mf-gmodal__thumb[aria-current="true"] .mf-gmodal__thumbImg {
        opacity: 1;
        filter: saturate(1.15) contrast(1.08);
    }

/* Optional: nicer scrollbars */
.mf-gmodal__thumbs::-webkit-scrollbar {
    height: 10px;
}

.mf-gmodal__thumbs::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.18);
    border-radius: 999px;
}

/* =========================================================
           RAIL LIST: stable layout + glow effects
           ========================================================= */
.mf-gsplit4__rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each row is a glass pill with fixed grid layout */
.mf-gsplit4__row {
    --c: rgba(56,189,248,.38);
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(2,6,23,.72), rgba(2,6,23,.45));
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 0 1px rgba(15,23,42,.55);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    /* Neon glow stripe */
    .mf-gsplit4__row::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: radial-gradient(800px 120px at 25% 50%, var(--c), transparent 60%), radial-gradient(600px 140px at 85% 20%, rgba(255,255,255,.07), transparent 55%);
        opacity: .55;
        pointer-events: none;
    }

    /* Hover: glow wakes up */
    .mf-gsplit4__row:hover {
        border-color: rgba(255,255,255,.22);
        transform: translateY(-1px);
        box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent);
    }

    /* Active: stronger glow + pulse */
    .mf-gsplit4__row.is-active {
        border-color: rgba(255,255,255,.32);
        box-shadow: 0 22px 58px rgba(0,0,0,.62), 0 0 0 5px color-mix(in srgb, var(--c) 38%, transparent);
    }

        .mf-gsplit4__row.is-active::before {
            opacity: .9;
            animation: mfRailPulse 2.2s ease-in-out infinite;
        }

@keyframes mfRailPulse {
    0%, 100% {
        filter: saturate(1) brightness(1);
    }

    50% {
        filter: saturate(1.3) brightness(1.12);
    }
}

/* Thumb in the row */
.mf-gsplit4__thumb {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(148,163,184,.20);
    box-shadow: 0 10px 22px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.04);
}

/* Text */
.mf-gsplit4__rk {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .75;
}

.mf-gsplit4__rt {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    margin-top: 2px;
}

/* Prevent ugly focus outline, replace with glow */
.mf-gsplit4__row:focus {
    outline: none;
}

.mf-gsplit4__row:focus-visible {
    box-shadow: 0 22px 58px rgba(0,0,0,.62), 0 0 0 6px color-mix(in srgb, var(--c) 45%, transparent);
}

/* =========================================================
           RAIL (RIGHT LIST) - match "Glass Split 1" style
           ========================================================= */

/* Rail container: keep clean spacing */
.mf-gsplit4__rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Row pill */
.mf-gsplit4__row {
    --c: rgba(56,189,248,.40);
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 0px 0px;
    border-radius: 18px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, rgba(2,6,23,.65)) 0%, rgba(2,6,23,.65) 35%, rgba(2,6,23,.55) 100%);
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 18px 46px rgba(0,0,0,.45), 0 0 0 1px rgba(15,23,42,.55);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateZ(0);
}

    /* Left neon block (like the screenshot) */
    .mf-gsplit4__row::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 54px;
        background: linear-gradient(180deg, color-mix(in srgb, var(--c) 65%, rgba(255,255,255,.10)), color-mix(in srgb, var(--c) 35%, rgba(2,6,23,.10)));
        opacity: .95;
    }

    /* Subtle inner shine */
    .mf-gsplit4__row::after {
        content: "";
        position: absolute;
        inset: -2px;
        background: radial-gradient(700px 160px at 75% 25%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%);
        opacity: .55;
        pointer-events: none;
    }

    /* Active row: top neon line + stronger glow */
    .mf-gsplit4__row.is-active {
        border-color: color-mix(in srgb, var(--c) 45%, rgba(255,255,255,.12));
        box-shadow: 0 22px 58px rgba(0,0,0,.58), 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent);
    }

        .mf-gsplit4__row.is-active .mf-gsplit4__rt {
            text-shadow: 0 0 22px color-mix(in srgb, var(--c) 38%, transparent);
        }

    /* Neon top line (like screenshot) */
    .mf-gsplit4__row.is-active {
        background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, rgba(2,6,23,.72)), rgba(2,6,23,.55) 55%, rgba(2,6,23,.55) 100%);
    }

    .mf-gsplit4__row.is-active {
        outline: none;
    }

    .mf-gsplit4__row.is-active {
        box-shadow: 0 24px 64px rgba(0,0,0,.62), 0 0 0 4px color-mix(in srgb, var(--c) 26%, transparent);
    }

    .mf-gsplit4__row.is-active {
        border-top: 2px solid color-mix(in srgb, var(--c) 70%, rgba(255,255,255,.10));
    }

    /* Hover: subtle lift */
    .mf-gsplit4__row:hover {
        border-color: rgba(255,255,255,.18);
        transform: translateY(-1px);
    }

/* Make the small image area optional (if you keep <img>) */
.mf-gsplit4__thumb {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 10px 22px rgba(0,0,0,.45);
    position: relative;
    z-index: 1; /* above ::before neon block */
}

/* Text block */
.mf-gsplit4__rk {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .70;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.mf-gsplit4__rt {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

/* If your rail is scrollable, make the scrollbar look less tragic */
.mf-gsplit4__rail::-webkit-scrollbar {
    width: 10px;
}

.mf-gsplit4__rail::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.18);
    border-radius: 999px;
}
/* =========================================================
           Dynamic moving lights background (per universe)
           ========================================================= */

[data-mf-gallery-split] {
    position: relative;
    overflow: hidden;
}

    /* Background layer */
    [data-mf-gallery-split] .mf-gsplit4__bg {
        position: absolute;
        inset: -120px;
        z-index: 0;
        pointer-events: none;
        filter: blur(18px);
        opacity: .95;
    }

        /* The three moving lights */
        [data-mf-gallery-split] .mf-gsplit4__bg::before,
        [data-mf-gallery-split] .mf-gsplit4__bg::after {
            content: "";
            position: absolute;
            width: 640px;
            height: 640px;
            border-radius: 999px;
            background: radial-gradient(circle at 30% 30%, var(--bgA, rgba(56,189,248,.55)), transparent 60%);
            mix-blend-mode: screen;
            opacity: .75;
            animation: mfLightA 10s ease-in-out infinite alternate;
        }

        [data-mf-gallery-split] .mf-gsplit4__bg::after {
            width: 720px;
            height: 720px;
            background: radial-gradient(circle at 40% 40%, var(--bgB, rgba(168,85,247,.45)), transparent 62%);
            opacity: .65;
            animation: mfLightB 12s ease-in-out infinite alternate;
        }

        [data-mf-gallery-split] .mf-gsplit4__bg .mf-gsplit4__bgC {
            position: absolute;
            width: 860px;
            height: 860px;
            border-radius: 999px;
            left: 55%;
            top: 50%;
            transform: translate(-50%,-50%);
            background: radial-gradient(circle at 35% 35%, var(--bgC, rgba(245,158,11,.35)), transparent 65%);
            mix-blend-mode: screen;
            opacity: .55;
            animation: mfLightC 14s ease-in-out infinite alternate;
        }

@keyframes mfLightA {
    0% {
        transform: translate(12%, 18%) scale(1.00);
    }

    100% {
        transform: translate(38%, 10%) scale(1.10);
    }
}

@keyframes mfLightB {
    0% {
        transform: translate(62%, 22%) scale(1.00);
    }

    100% {
        transform: translate(28%, 42%) scale(1.12);
    }
}

@keyframes mfLightC {
    0% {
        transform: translate(-20%, -10%) scale(1.00);
    }

    100% {
        transform: translate(10%, 18%) scale(1.08);
    }
}

/* Ensure content stays above background */
[data-mf-gallery-split] .mf-gsplit4__shell,
[data-mf-gallery-split] .mf-gsplit4__panel,
[data-mf-gallery-split] .mf-gsplit4__hero,
[data-mf-gallery-split] .mf-gsplit4__rail {
    position: relative;
    z-index: 1;
}

/* =========================================================
               FULL STAGE BACKGROUND (100% width / height)
               ========================================================= */

.mf-gallery-stage {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    background: #020617; /* fallback */
}

/* Lights container */
.mf-gallery-lights {
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    filter: blur(22px);
}

/* Base light style */
.mf-light {
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    opacity: .55;
    mix-blend-mode: screen;
    background: radial-gradient(circle at 30% 30%, var(--glow, #38bdf8), transparent 60%);
    animation-duration: 14s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Individual motions */
.mf-light-a {
    top: 10%;
    left: 15%;
    animation-name: mfLightFloatA;
}

.mf-light-b {
    top: 50%;
    left: 60%;
    width: 860px;
    height: 860px;
    opacity: .45;
    animation-name: mfLightFloatB;
}

.mf-light-c {
    top: 65%;
    left: 25%;
    width: 980px;
    height: 980px;
    opacity: .35;
    animation-name: mfLightFloatC;
}

@keyframes mfLightFloatA {
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(120px,60px) scale(1.12);
    }
}

@keyframes mfLightFloatB {
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(-140px,80px) scale(1.08);
    }
}

@keyframes mfLightFloatC {
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(80px,-120px) scale(1.15);
    }
}

/* Ensure gallery content stays above */
[data-mf-gallery-split] {
    position: relative;
    z-index: 1;
}
/* ===== Layout: Hero LEFT + Rail RIGHT (desktop) ===== */
.mf-gsplit4__layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

/* Ensure children can shrink inside grid (avoid overflow forcing column drop) */
.mf-gsplit4__hero,
.mf-gsplit4__railWrap {
    min-width: 0;
}

/* Right side: rail takes full height and scrolls inside */
.mf-gsplit4__railWrap {
    display: flex;
    flex-direction: column;
}

.mf-gsplit4__rail {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* ===== Mobile: stack ===== */
@media (max-width: 980px) {
    .mf-gsplit4__layout {
        grid-template-columns: 1fr;
    }

    .mf-gsplit4__rail {
        max-height: 420px; /* optional: keep it tame on mobile */
    }
}
/* Hero container becomes the positioning context */
.mf-gsplit4__hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px; /* keep your rounded vibe */
}

/* Image takes full height, no “reserved” area */
.mf-gsplit4__heroImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay glass neon card */
.mf-gsplit4__heroMeta {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: rgba(9, 14, 26, .55);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* neon aura */
    box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(56,189,248,.18), 0 0 35px rgba(56,189,248,.22);
    z-index: 2;
}

/* Optional: smooth fade into the overlay area for readability */
.mf-gsplit4__hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
    z-index: 1;
}
.mf-gsplit4__hero {
    min-height: 520px; /* ajusta a gusto */
}
@media (max-width: 900px) {
    .mf-gsplit4__hero {
        min-height: 420px;
    }

    .mf-gsplit4__heroMeta {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }
}
.mf-gsplit4[data-cat="anime"] .mf-gsplit4__heroMeta {
    box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(56,189,248,.18), 0 0 35px rgba(56,189,248,.22);
}

.mf-gsplit4[data-cat="filmes"] .mf-gsplit4__heroMeta {
    box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(245,158,11,.18), 0 0 35px rgba(245,158,11,.22);
}
