/* =========================================================
   MovieHubBD - Featured Hero Slider
   10 Poster 3D Coverflow
   ========================================================= */

.mh-hero-slider {
    position: relative;
    width: 100%;
    margin: 0 0 30px;
    padding: 0 0 25px;
    background: #000;
    overflow: hidden;
}

/* =========================
   HEADING
   ========================= */

.mh-hero-heading {
    position: relative;
    z-index: 20;
    padding: 20px 18px 12px;
}

/* =========================
   FEATURED HEADING
   ========================= */

.mh-hero-heading {
    padding: 15px 18px 8px;
}

.mh-hero-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0;

    text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

.mh-fire {
    margin-right: 7px;
}

.mh-featured-red {
    color: #ed1118;
}

.mh-fire {
    margin-right: 8px;
}

/* =========================
   STAGE
   ========================= */

.mh-hero-stage {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: center center;
}

/* =========================
   TRACK
   ========================= */

.mh-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* =========================
   CARD BASE
   ========================= */

.mh-hero-card {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 220px;
    height: 340px;

    margin: 0;

    transform-style: preserve-3d;

    opacity: 0;
    visibility: hidden;

    filter: brightness(0.35);

    transition:
        transform 0.65s cubic-bezier(.22,.61,.36,1),
        opacity 0.65s ease,
        filter 0.65s ease,
        visibility 0.65s ease;

    pointer-events: none;
    z-index: 1;
}

/* =========================
   CARD INNER
   ========================= */

.mh-hero-card-inner {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 7px;

    background: #080808;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.7);
}

/* =========================
   POSTER IMAGE
   ========================= */

.mh-hero-image {
    position: absolute;
    inset: 0;

    display: block;

    text-decoration: none;
}

.mh-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =========================
   DARK OVERLAY
   ========================= */

.mh-hero-card-inner::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.98) 0%,
            rgba(0,0,0,0.65) 25%,
            rgba(0,0,0,0.12) 60%,
            rgba(0,0,0,0.08) 100%
        );

    pointer-events: none;
}

/* =========================================================
   POSITION 0
   CENTER
   ========================================================= */

.mh-hero-card[data-position="0"] {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateZ(120px)
        scale(1);

    filter: brightness(1);

    z-index: 20;

    pointer-events: auto;
}

.mh-hero-card[data-position="0"] .mh-hero-card-inner {
    border: 2px solid #ff1717;

    box-shadow:
        0 0 12px rgba(255,0,0,0.75),
        0 0 30px rgba(255,0,0,0.45),
        0 25px 60px rgba(0,0,0,0.85);
}

/* =========================================================
   RIGHT 1
   ========================================================= */

.mh-hero-card[data-position="1"] {
    opacity: .70;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(285px)
        translateZ(-20px)
        rotateY(-18deg)
        scale(.86);

    filter: brightness(.58);

    z-index: 15;
}

/* =========================================================
   RIGHT 2
   ========================================================= */

.mh-hero-card[data-position="2"] {
    opacity: .45;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(500px)
        translateZ(-130px)
        rotateY(-27deg)
        scale(.73);

    filter: brightness(.42);

    z-index: 10;
}

/* =========================================================
   RIGHT 3
   ========================================================= */

.mh-hero-card[data-position="3"] {
    opacity: .28;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(680px)
        translateZ(-210px)
        rotateY(-32deg)
        scale(.62);

    filter: brightness(.30);

    z-index: 7;
}

/* =========================================================
   RIGHT 4
   ========================================================= */

.mh-hero-card[data-position="4"] {
    opacity: .15;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(820px)
        translateZ(-280px)
        rotateY(-36deg)
        scale(.52);

    filter: brightness(.22);

    z-index: 4;
}

/* =========================================================
   LEFT 1
   position 9
   ========================================================= */

.mh-hero-card[data-position="9"] {
    opacity: .70;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(-285px)
        translateZ(-20px)
        rotateY(18deg)
        scale(.86);

    filter: brightness(.58);

    z-index: 15;
}

/* =========================================================
   LEFT 2
   position 8
   ========================================================= */

.mh-hero-card[data-position="8"] {
    opacity: .45;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(-500px)
        translateZ(-130px)
        rotateY(27deg)
        scale(.73);

    filter: brightness(.42);

    z-index: 10;
}

/* =========================================================
   LEFT 3
   position 7
   ========================================================= */

.mh-hero-card[data-position="7"] {
    opacity: .28;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(-680px)
        translateZ(-210px)
        rotateY(32deg)
        scale(.62);

    filter: brightness(.30);

    z-index: 7;
}

/* =========================================================
   LEFT 4
   position 6
   ========================================================= */

.mh-hero-card[data-position="6"] {
    opacity: .15;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(-820px)
        translateZ(-280px)
        rotateY(36deg)
        scale(.52);

    filter: brightness(.22);

    z-index: 4;
}

/* =========================================================
   5th POSITION
   position 5 = far left
   ========================================================= */

.mh-hero-card[data-position="5"] {
    opacity: .08;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        translateX(-930px)
        translateZ(-330px)
        rotateY(40deg)
        scale(.44);

    filter: brightness(.16);

    z-index: 2;
}

/* =========================
   ACTIVE INFORMATION
   ========================= */

.mh-hero-info {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 5;

    padding: 18px 18px 20px;

    text-align: left;

    color: #fff;
}

.mh-hero-info h3 {
    margin: 0 0 9px;

    color: #fff;

    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;

    text-shadow: 0 2px 8px #000;
}

.mh-hero-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    color: #ddd;

    font-size: 13px;
}

.mh-hero-badge {
    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    background: #ef1018;

    color: #fff;

    border-radius: 3px;

    font-size: 12px;
    font-weight: 800;
}

.mh-hero-watch {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 17px;

    background: #ef1018;

    color: #fff !important;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        background .2s ease,
        transform .2s ease;
}

.mh-hero-watch:hover {
    background: #ff2424;

    transform: translateY(-1px);
}

/* Hide information on side posters */

.mh-hero-card[data-position]:not([data-position="0"]) .mh-hero-info {
    opacity: 0;
    pointer-events: none;
}

/* =========================
   ARROWS
   ========================= */

.mh-hero-prev,
.mh-hero-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 50;

    width: 52px;
    height: 52px;

    border: 1px solid rgba(255,255,255,.20);

    border-radius: 50%;

    background: rgba(0,0,0,.70);

    color: #fff;

    font-size: 36px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.mh-hero-prev {
    left: 18px;
}

.mh-hero-next {
    right: 18px;
}

.mh-hero-prev:hover,
.mh-hero-next:hover {
    background: #ef1018;

    border-color: #ef1018;

    transform:
        translateY(-50%)
        scale(1.05);
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1000px) {

    .mh-hero-stage {
        height: 460px;
    }

    .mh-hero-card {
        width: 230px;
        height: 365px;
    }

    .mh-hero-card[data-position="1"] {
        transform:
            translate(-50%, -50%)
            translateX(245px)
            translateZ(-20px)
            rotateY(-17deg)
            scale(.82);
    }

    .mh-hero-card[data-position="9"] {
        transform:
            translate(-50%, -50%)
            translateX(-245px)
            translateZ(-20px)
            rotateY(17deg)
            scale(.82);
    }

    .mh-hero-card[data-position="2"] {
        opacity: .28;
    }

    .mh-hero-card[data-position="8"] {
        opacity: .28;
    }

    .mh-hero-card[data-position="3"],
    .mh-hero-card[data-position="4"],
    .mh-hero-card[data-position="5"],
    .mh-hero-card[data-position="6"],
    .mh-hero-card[data-position="7"] {
        opacity: 0;
        visibility: hidden;
    }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .mh-hero-slider {
        margin-bottom: 20px;
    }

    .mh-hero-heading {
        padding: 16px 12px 10px;
    }

    .mh-hero-heading h2 {
        font-size: 21px;
    }

    .mh-hero-stage {
        height: 410px;
    }

    .mh-hero-card {
        width: 205px;
        height: 325px;
    }

    .mh-hero-card[data-position="1"] {
        transform:
            translate(-50%, -50%)
            translateX(135px)
            translateZ(-60px)
            rotateY(-13deg)
            scale(.72);

        opacity: .40;
    }

    .mh-hero-card[data-position="9"] {
        transform:
            translate(-50%, -50%)
            translateX(-135px)
            translateZ(-60px)
            rotateY(13deg)
            scale(.72);

        opacity: .40;
    }

    .mh-hero-card[data-position="2"],
    .mh-hero-card[data-position="3"],
    .mh-hero-card[data-position="4"],
    .mh-hero-card[data-position="5"],
    .mh-hero-card[data-position="6"],
    .mh-hero-card[data-position="7"],
    .mh-hero-card[data-position="8"] {
        opacity: 0;
        visibility: hidden;
    }

    .mh-hero-prev,
    .mh-hero-next {
        width: 44px;
        height: 44px;

        font-size: 28px;
    }

    .mh-hero-prev {
        left: 8px;
    }

    .mh-hero-next {
        right: 8px;
    }

    .mh-hero-info {
        padding: 14px;
    }

    .mh-hero-info h3 {
        font-size: 19px;
    }
}

/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {

    .mh-hero-card,
    .mh-hero-watch,
    .mh-hero-prev,
    .mh-hero-next {
        transition: none;
    }
}