/* ARIANA STORY VIEWER V2 STAGE 2 START */
.ariana-story-viewer-v2[hidden] {
    display: none !important;
}

.ariana-story-viewer-v2 {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: grid;
    place-items: center;
    padding: 24px 90px;
    direction: rtl;
}

.ariana-story-viewer-v2,
.ariana-story-viewer-v2 * {
    box-sizing: border-box;
}

.ariana-story-viewer-v2__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(5, 8, 12, 0.84);
    border: 0;
    cursor: default;
}

.ariana-story-viewer-v2__dialog {
    position: relative;
    z-index: 2;
    width: min(420px, calc(100vw - 180px), 45vh);
    aspect-ratio: 9 / 16;
    max-height: 80vh;
    overflow: hidden;
    color: #fff;
    background: #151515;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.ariana-story-viewer-v2__dialog::after {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
    content: "";
    pointer-events: none;
}

.ariana-story-viewer-v2__progress {
    position: absolute;
    inset: 12px 14px auto;
    z-index: 5;
    display: flex;
    gap: 4px;
    direction: rtl;
}

.ariana-story-viewer-v2__progress-segment {
    position: relative;
    flex: 1 1 0;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 999px;
}

.ariana-story-viewer-v2__progress-fill {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: right center;
}

.ariana-story-viewer-v2__header {
    position: absolute;
    inset: 27px 14px auto;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ariana-story-viewer-v2__title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.ariana-story-viewer-v2__close {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ariana-story-viewer-v2__media {
    position: absolute;
    inset: 0;
}

.ariana-story-viewer-v2__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #151515;
}

.ariana-story-viewer-v2__image[hidden] {
    display: none !important;
}

.ariana-story-viewer-v2__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(160deg, #353b44, #171a1f 68%);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.ariana-story-viewer-v2__placeholder[hidden] {
    display: none !important;
}

.ariana-story-viewer-v2__cta {
    position: absolute;
    inset: auto 50% 28px auto;
    z-index: 6;
    display: inline-flex;
    min-width: 164px;
    min-height: 52px;
    padding: 10px 22px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #27303a;
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transform: translateX(50%);
}

.ariana-story-viewer-v2__cta[hidden] {
    display: none !important;
}

.ariana-story-viewer-v2__cta-icon {
    direction: ltr;
    font-size: 21px;
    line-height: 1;
}

.ariana-story-viewer-v2__cta:hover,
.ariana-story-viewer-v2__cta:focus-visible {
    color: #fff;
    background: #ff8b3d;
    outline: none;
    text-decoration: none;
}

.ariana-story-viewer-v2__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #313943;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
    font: inherit;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.ariana-story-viewer-v2__nav--previous {
    right: max(22px, calc(50% - 300px));
}

.ariana-story-viewer-v2__nav--next {
    left: max(22px, calc(50% - 300px));
}

.ariana-story-viewer-v2__nav:disabled {
    opacity: 0.28;
    cursor: default;
}

.ariana-story-viewer-v2__close:hover,
.ariana-story-viewer-v2__close:focus-visible,
.ariana-story-viewer-v2__nav:hover:not(:disabled),
.ariana-story-viewer-v2__nav:focus-visible:not(:disabled) {
    color: #fff;
    background: #ff8b3d;
    border-color: #ff8b3d;
    outline: none;
}

html.ariana-story-viewer-v2-open {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .ariana-story-viewer-v2 {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ariana-story-viewer-v2__progress-fill {
        transition: none !important;
    }
}
/* ARIANA STORY VIEWER V2 STAGE 2 END */