:root {
    --nxx-status-pink: #e11d74;
    --nxx-status-pink-bright: #ff4f98;
    --nxx-status-gold: #f2bd3d;
    --nxx-status-surface: #202026;
    --nxx-status-text: #f7f7fa;
    --nxx-status-muted: #b6b6c1;
}

.poster,
.w_item_a .image,
ul.episodios .imagen {
    position: relative;
}

.nxx-content-badges {
    position: absolute;
    z-index: 8;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    direction: rtl;
    pointer-events: none;
}

.nxx-content-badges .nxx-content-badge {
    position: static;
    inset: auto;
    min-height: 24px;
    max-width: 100%;
    margin: 0;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: #fff;
    background: rgba(17, 17, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.34);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

/* Vortex has a broad `.poster span` rule for the year chip. Reset it inside
   our component so neither the badge nor its text becomes absolutely placed. */
.poster .nxx-content-badges .nxx-content-badge,
.poster .nxx-content-badges .nxx-content-badge > span,
.w_item_a .image .nxx-content-badges .nxx-content-badge,
.w_item_a .image .nxx-content-badges .nxx-content-badge > span,
ul.episodios .imagen .nxx-content-badges .nxx-content-badge,
ul.episodios .imagen .nxx-content-badges .nxx-content-badge > span {
    position: static;
    inset: auto;
    width: auto;
    margin: 0;
}

.poster .nxx-content-badges .nxx-content-badge > span,
.w_item_a .image .nxx-content-badges .nxx-content-badge > span,
ul.episodios .imagen .nxx-content-badges .nxx-content-badge > span {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    line-height: inherit;
}

.nxx-content-badges .nxx-content-badge svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    fill: currentColor;
}

.nxx-content-badges .nxx-content-badge--uncensored,
.nxx-content-badges .nxx-content-badge--new {
    color: #fff;
    background: linear-gradient(135deg, #c91362, var(--nxx-status-pink-bright));
    border-color: rgba(255, 148, 196, 0.58);
}

.nxx-content-badges .nxx-content-badge--new {
    background: linear-gradient(135deg, #ff0000, #f95f81);
    border-color: rgb(255 205 120 / .64);
}

.nxx-content-badges .nxx-content-badge--promo {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    border-color: rgba(224, 165, 255, 0.55);
}

.nxx-content-badges .nxx-content-badge--raw {
    color: #fff2c2;
    background: rgba(44, 35, 15, 0.94);
    border-color: rgba(242, 189, 61, 0.55);
}

.nxx-content-badges .nxx-content-badge--members {
    color: #fff4ca;
    background: linear-gradient(135deg, #72500a, #b47b08);
    border-color: rgba(255, 220, 118, 0.7);
    box-shadow: 0 5px 16px rgba(180, 123, 8, 0.34);
}

.nxx-member-lock {
    position: relative;
    width: calc(100% - 36px);
    max-width: 1080px;
    min-height: 430px;
    margin: 26px auto 34px;
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas: "art copy";
    align-items: center;
    overflow: hidden;
    direction: ltr;
    color: var(--nxx-status-text);
    background:
        radial-gradient(circle at 86% 4%, rgba(225, 29, 116, 0.21), transparent 34%),
        radial-gradient(circle at 7% 96%, rgba(242, 189, 61, 0.09), transparent 30%),
        linear-gradient(145deg, #29282f 0%, #211e27 52%, #19191e 100%);
    border: 1px solid rgba(255, 79, 152, 0.34);
    border-radius: 22px;
    box-shadow: 0 0 6px 0 #000, 0 24px 56px rgba(0, 0, 0, 0.34);
    isolation: isolate;
}

.nxx-member-lock::before,
.nxx-member-lock::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 79, 152, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.nxx-member-lock::before {
    top: -125px;
    right: -100px;
    width: 335px;
    height: 335px;
    box-shadow: 0 0 0 32px rgba(225, 29, 116, 0.025);
}

.nxx-member-lock::after {
    right: 42%;
    bottom: -170px;
    width: 270px;
    height: 270px;
    border-color: rgba(242, 189, 61, 0.1);
}

.nxx-member-lock__art {
    position: relative;
    z-index: 1;
    grid-area: art;
    width: 100%;
    height: 430px;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.nxx-member-lock__art::after {
    position: absolute;
    z-index: -1;
    right: 8%;
    bottom: -38px;
    left: 8%;
    height: 85px;
    background: rgba(242, 189, 61, 0.15);
    border-radius: 50%;
    filter: blur(30px);
    content: "";
}

.nxx-member-lock__art img {
    width: 112%;
    max-width: none;
    height: 420px;
    margin: 0;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.46));
}

.nxx-member-lock__copy {
    position: relative;
    z-index: 2;
    grid-area: copy;
    padding: 48px 50px 48px 24px;
    direction: rtl;
    color: var(--nxx-status-text);
    text-align: right;
}

.nxx-member-lock__eyebrow {
    min-height: 34px;
    margin: 0 0 18px;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff80b8;
    background: rgba(225, 29, 116, 0.11);
    border: 1px solid rgba(255, 79, 152, 0.32);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.nxx-member-lock__eyebrow i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: var(--nxx-status-pink-bright);
    border-radius: 50%;
    box-shadow: 0 0 13px rgba(255, 79, 152, 0.82);
}

.nxx-member-lock__icon {
    width: 54px;
    height: 54px;
    margin: 0 0 14px;
    display: grid;
    color: #ffe08b;
    background: rgba(180, 123, 8, 0.14);
    border: 1px solid rgba(242, 189, 61, 0.42);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(180, 123, 8, 0.17);
    place-items: center;
}

.nxx-member-lock__icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.nxx-member-lock__copy h2 {
    margin: 0;
    color: var(--nxx-status-text) !important;
    border: 0 !important;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.45;
    text-wrap: balance;
}

.nxx-member-lock__copy p {
    max-width: 610px;
    margin: 15px 0 0;
    color: var(--nxx-status-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 2;
}

.nxx-member-lock__copy strong {
    color: #ffd76a;
}

.nxx-member-lock__cta {
    min-height: 49px;
    margin: 25px 0 0;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--nxx-status-pink), var(--nxx-status-pink-bright));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    box-shadow: 0 10px 24px rgba(225, 29, 116, 0.31);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
    text-decoration: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.nxx-member-lock__cta svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.nxx-member-lock__cta:hover,
.nxx-member-lock__cta:focus-visible {
    color: #fff !important;
    box-shadow: 0 13px 30px rgba(225, 29, 116, 0.43);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.nxx-member-lock__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media only screen and (min-width: 761px) {
    body.nxx-content-locked .nxx-member-lock {
        margin-top: 50px;
    }
}

@media only screen and (max-width: 760px) {
    .nxx-content-badges {
        top: 6px;
        left: 6px;
        max-width: calc(100% - 12px);
        gap: 4px;
    }

    .nxx-content-badges .nxx-content-badge {
        min-height: 22px;
        padding: 4px 7px;
        font-size: 9px;
    }

    .nxx-member-lock {
        width: calc(100% - 20px);
        min-height: 0;
        margin: 16px auto 25px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "art" "copy";
        border-radius: 17px;
    }

    .nxx-member-lock::before {
        top: -130px;
        right: -150px;
        width: 300px;
        height: 300px;
    }

    .nxx-member-lock::after {
        display: none;
    }

    .nxx-member-lock__art {
        height: 270px;
        padding: 4px 0 0;
    }

    .nxx-member-lock__art img {
        width: 108%;
        height: 280px;
    }

    .nxx-member-lock__copy {
        padding: 8px 20px 29px;
        text-align: center;
    }

    .nxx-member-lock__eyebrow {
        margin-bottom: 14px;
    }

    .nxx-member-lock__icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 13px;
    }

    .nxx-member-lock__copy h2 {
        font-size: 25px;
        line-height: 1.55;
    }

    .nxx-member-lock__copy p {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.9;
    }

    .nxx-member-lock__cta {
        width: 100%;
        max-width: 310px;
        margin-top: 20px;
    }
}

@media only screen and (max-width: 380px) {
    .nxx-member-lock__art {
        height: 235px;
    }

    .nxx-member-lock__art img {
        height: 245px;
    }

    .nxx-member-lock__copy {
        padding-inline: 15px;
    }

    .nxx-member-lock__copy h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nxx-member-lock__cta {
        transition: none;
    }
}
