.zot-long-poster-modal {
    padding: max(12px, env(safe-area-inset-top, 0px)) 0 max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    overflow: hidden;
}

.zot-long-poster-modal .modal-dialog.poster-share {
    position: relative;
    width: min(94vw, 560px);
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: 0 auto;
}

.zot-long-poster-modal .zot-long-poster-toolbar {
    position: absolute;
    top: 10px;
    left: 50%;
    --zot-toolbar-scale: 1;
    transform: translateX(-50%) scale(var(--zot-toolbar-scale));
    transform-origin: top center;
    transition: transform .18s ease;
    z-index: 5;
    width: max-content;
    max-width: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.zot-long-poster-modal .zot-long-poster-toolbar__group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: nowrap;
    width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(36, 42, 52, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    pointer-events: auto;
}

.zot-long-poster-modal .zot-long-poster-toolbar__label {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.zot-long-poster-modal .zot-long-poster-toolbar__levels {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    min-width: 0;
}

.zot-long-poster-modal .zot-long-poster-toolbar__label--style {
    position: relative;
    margin-left: 8px;
}

.zot-long-poster-modal .zot-long-poster-toolbar__label--style::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 1px;
    height: 14px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.18);
}

.zot-long-poster-modal .zot-long-poster-reveal {
    border: none;
    border-radius: 999px;
    min-width: 48px;
    height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    line-height: 28px;
    transition: .2s ease;
}

.zot-long-poster-modal .zot-long-poster-style {
    border: none;
    border-radius: 999px;
    min-width: 48px;
    height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    line-height: 28px;
    transition: .2s ease;
}

.zot-long-poster-modal .zot-long-poster-reveal:hover,
.zot-long-poster-modal .zot-long-poster-style:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.zot-long-poster-modal .zot-long-poster-reveal.active {
    background: #fff;
    color: #16bca8;
    font-weight: 700;
}

.zot-long-poster-modal .zot-long-poster-style.active {
    background: #fff;
    color: #18212f;
    font-weight: 700;
}

.zot-long-poster-modal .zot-long-poster-reveal.is-disabled,
.zot-long-poster-modal .zot-long-poster-reveal[disabled] {
    opacity: .38;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.zot-long-poster-modal .zot-long-poster-reveal.is-hidden {
    display: none;
}

.zot-long-poster-modal .modal-content {
    position: relative;
    min-height: 520px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.zot-long-poster-modal .zot-long-poster-imagebox {
    min-height: 520px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 74px 2px 96px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.zot-long-poster-modal .zot-long-poster-imagebox::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.zot-long-poster-modal .poster-imgbox > img,
.zot-long-poster-modal .zot-long-poster-imagebox > img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 auto;
    object-fit: fill !important;
    border-radius: var(--main-radius, 8px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    background: #fff;
}

.zot-long-poster-modal .zot-long-poster-loading {
    z-index: 2;
    border-radius: var(--main-radius, 8px);
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
}

.zot-long-poster-modal .zot-long-poster-loading__inner {
    padding: 22px 24px;
}

.zot-long-poster-modal .zot-long-poster-loading .loading {
    margin: 0 0 12px;
    font-size: 40px;
}

.zot-long-poster-modal .zot-long-poster-loading__title {
    color: var(--key-color, #1f2937);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.zot-long-poster-modal .zot-long-poster-loading__desc {
    margin-top: 6px;
    color: var(--muted-2-color, #7a8593);
    font-size: 12px;
    line-height: 1.6;
}

.zot-long-poster-modal .zot-long-poster-actions {
    position: absolute !important;
    left: 50% !important;
    bottom: 14px !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 4;
    margin: 0 !important;
    padding: 10px 12px;
    opacity: 1;
    visibility: visible;
    transition: .2s ease;
    white-space: nowrap;
    text-align: center;
    transform: translateX(-50%) !important;
    border-radius: 999px;
    background: rgba(36, 42, 52, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.zot-long-poster-modal .poster-download.hide,
.zot-long-poster-modal .zot-long-poster-retry.hide {
    display: none !important;
}

.zot-long-poster-modal .poster-share .but.cir {
    width: 38px;
    height: 38px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.zot-long-poster-modal .zot-long-poster-actions .but.cir {
    margin: 0 !important;
}

.zot-long-poster-modal .zot-long-poster-retry.but.cir {
    font-size: 15px;
}

.share-btn.long-poster icon .icon {
    color: inherit;
}

@media (max-width: 767px) {
    .zot-long-poster-modal .modal-dialog.poster-share {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    .zot-long-poster-modal .modal-content,
    .zot-long-poster-modal .zot-long-poster-imagebox {
        min-height: 420px;
    }

    .zot-long-poster-modal .zot-long-poster-toolbar {
        --zot-toolbar-scale: 0.9;
        max-width: calc(100% - 12px);
    }

    .zot-long-poster-modal .zot-long-poster-toolbar__group {
        gap: 6px;
        padding: 7px 9px;
        border-radius: 999px;
    }

    .zot-long-poster-modal .zot-long-poster-reveal,
    .zot-long-poster-modal .zot-long-poster-style {
        min-width: 44px;
        height: 26px;
        padding: 0 9px;
        font-size: 11px;
        line-height: 26px;
    }

    .zot-long-poster-modal .zot-long-poster-imagebox {
        padding-top: 82px;
        padding-bottom: 92px;
    }

    .zot-long-poster-modal .zot-long-poster-actions {
        gap: 8px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
