@property --storyto-glow-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@property --storyto-spin-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
/* === ایزوله‌سازی از استایل قالب/سایت میزبان ===
   خیلی از قالب‌های وردپرس روی تگ‌های واقعی button/input/a
   یه ریست عمومی (padding, border, background, appearance,
   min-width) می‌ذارن. چون تنها المان‌های افزونه که واقعاً از
   این تگ‌ها استفاده می‌کنن دکمه‌ی نویگیشن، دکمه‌ی ارسال کامنت،
   اینپوت کامنت و لینک CTA هستن، این باگ‌ها فقط همینا رو می‌گیره.
   این بلاک این خصوصیات رو صرف‌نظر از تنظیمات قالب، ثابت می‌کنه. */
.storyto-container button,
.storyto-container input,
.storyto-container a,
.storyto-modal-overlay button,
.storyto-modal-overlay input,
.storyto-modal-overlay a,
.storyto-comments-sheet button,
.storyto-comments-sheet input,
.storyto-comments-sheet a {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font-family: inherit !important;
    line-height: normal !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    vertical-align: top !important;
}
.storyto-container svg,
.storyto-modal-overlay svg,
.storyto-comments-sheet svg {
    box-sizing: border-box !important;
    max-width: none !important;
    max-height: none !important;
    vertical-align: top !important;
}

/* حالا که همه‌چی صفر شد، فقط همون چیزی که خودِ افزونه
   واقعاً لازم داره (پس‌زمینه، گردی گوشه، سایه، عرض دکمه‌ی
   ارسال) رو صریحاً برمی‌گردونیم — با !important تا هیچ
   قانون دیگه‌ای از قالب نتونه دوباره بازنویسیش کنه. */
.storyto-nav-btn {
    background: rgba(0, 0, 0, 0.55) !important;
    border-radius: 50% !important;
}
.storyto-cta-btn {
    background: #fff !important;
    color: #333 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}
.storyto-comment-box {
    box-sizing: border-box !important;
    border: 1px solid hsla(0, 0%, 100%, 0.25) !important;
    border-radius: 25px !important;
}
.storyto-comment-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.storyto-comment-submit {
    width: 24px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.storyto-container {
    direction: rtl;
}
.storyto-container,
.storyto-container * {
    font-family: inherit;
}
.storyto-align-left .storyto-circles-wrapper {
    direction: ltr;
    justify-content: flex-start;
}
.storyto-align-right .storyto-circles-wrapper {
    direction: rtl;
    justify-content: flex-start;
}
.storyto-align-center .storyto-circles-wrapper {
    direction: rtl;
    justify-content: center;
}
.storyto-align-center .storyto-circles-wrapper.storyto-overflowing {
    justify-content: flex-start !important;
}
.storyto-skeleton {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 25px 18px 18px;
    flex-wrap: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}
.storyto-skeleton-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.storyto-skeleton-circle {
    width: var(--storyto-circle-size, 75px);
    height: var(--storyto-circle-size, 75px);
    border-radius: 50%;
}
.storyto-skeleton-circle,
.storyto-skeleton-line {
    background: linear-gradient(100deg, #e4e4e4 30%, #f6f6f6 50%, #e4e4e4 70%);
    background-size: 250% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}
.storyto-skeleton-line {
    width: 44px;
    height: 8px;
    border-radius: 5px;
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    to {
        background-position: 200% 0;
    }
}
.storyto-circle.storyto-circle-gradient[style*="instagram"]:before,
.storyto-circle.storyto-circle-instagram:before {
    background: linear-gradient(var(--storyto-spin-angle, 45deg), #833ab4, #fd1d1d, #fcb045) !important;
}
.storyto-lazy-wrapper {
    min-width: 0 !important;
}
.storyto-container-wrap,
.storyto-lazy-wrapper {
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.storyto-container-wrap {
    padding: 0 !important;
}
/* فیکس باگ: overflow:hidden بالا !important هست، پس ست‌کردن
   el.style.overflow از جاوااسکریپت (اینلاین) هیچوقت اثر نمی‌کنه —
   استایل شیت !important همیشه روی اینلاین استایل برنده میشه، حتی
   اگه اینلاین هم !important باشه. برای همین موقع باز بودن مودال
   یه کلاس جدا اضافه می‌کنیم که خودش !important داره و override
   می‌کنه، به‌جای تلاش برای override با اینلاین استایل. */
.storyto-lazy-wrapper.storyto-modal-open,
.storyto-container-wrap.storyto-modal-open,
.storyto-container.storyto-modal-open {
    overflow: visible !important;
}
.storyto-circles-bg {
    overflow: visible !important;
    padding: 0 !important;
}
.storyto-circles-wrapper {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-block: 25px 18px !important;
    padding-inline-start: 18px !important;
    padding-inline-end: 0 !important;
    width: 100% !important;
    touch-action: pan-y pan-x !important;
    overscroll-behavior-x: contain !important;
    scroll-behavior: smooth !important;
    scroll-padding-inline: 18px 0 !important;
    clip-path: inset(-30px -30px -10px -30px) !important;
}
.storyto-circles-wrapper::-webkit-scrollbar {
    display: none !important;
}
.storyto-container {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}
.storyto-circles-bg:has(.storyto-circle[style*="box-shadow"]) .storyto-circles-wrapper {
    gap: 20px;
}
.storyto-circle-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 1.5vw, 6px);
    position: relative;
    width: var(--storyto-circle-size, 75px);
    scroll-snap-align: center;
    scroll-snap-stop: normal;
}
.storyto-circle {
    border-radius: var(--storyto-circle-radius, 50%);
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    background-clip: content-box;
    background-origin: content-box;
    border-style: solid;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
    overflow: visible;
}
.storyto-circle.storyto-circle-gradient {
    border-color: transparent !important;
}
.storyto-circle.storyto-circle-gradient:before {
    content: "";
    position: absolute;
    inset: calc(var(--storyto-border-width, 3px) * -1);
    border-radius: var(--storyto-circle-radius, 50%);
    background: var(--storyto-gradient-colors);
    z-index: 1;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: var(--storyto-border-width, 3px);
    pointer-events: none;
}
.storyto-circle-title {
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-size: clamp(10px, 2.5vw, 12px);
    max-width: 100%;
    line-height: 1.3;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    margin-top: 6px;
}
@keyframes storyto-bounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.8);
    }
    60% {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}
.storyto-circle.bouncing {
    animation: storyto-bounce 0.35s ease;
}
.storyto-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    direction: rtl;
    box-sizing: border-box;
    text-align: right;
}
.storyto-modal-overlay,
.storyto-modal-overlay * {
    box-sizing: border-box;
}
.storyto-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    overflow: visible;
    perspective: 1200px;
}
.storyto-progress-bar {
    position: absolute;
    top: clamp(15px, 3vh, 45px);
    left: clamp(8px, 2vw, 12px);
    right: clamp(8px, 2vw, 12px);
    height: clamp(1px, 0.25vh, 2px);
    background: hsla(0, 0%, 100%, 0.3);
    border-radius: 2px;
    z-index: 9;
    overflow: hidden;
    display: flex;
    gap: 4px;
}
.storyto-modal-header {
    position: absolute;
    top: clamp(50px, 7vh, 70px);
    right: clamp(12px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 12px);
    z-index: 10;
    padding: 10px 5px 10px 10px;
}
.storyto-header-thumb {
    border-radius: 50%;
    background-size: cover;
    background-position: 50%;
    border-style: solid;
    flex-shrink: 0;
    width: clamp(28px, 8vw, 40px);
    height: clamp(28px, 8vw, 40px);
}
.storyto-header-title {
    max-width: clamp(120px, 50vw, 200px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(14px, 4vw, 16px);
    color: #fff;
}
.storyto-header-text {
    display: flex;
    flex-direction: column;
}
.storyto-header-time {
    font-size: clamp(10px, 3vw, 12px);
    opacity: 0.7;
    margin-top: clamp(0, 0.5vw, 2px);
    color: #fff;
}
.storyto-media-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}
.storyto-media-container img,
.storyto-media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.storyto-tap-left {
    left: 0;
}
.storyto-tap-left,
.storyto-tap-right {
    position: absolute;
    top: clamp(40px, 10vh, 80px);
    bottom: 0;
    width: 35%;
    z-index: 5;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}
.storyto-tap-right {
    right: 0;
}
.storyto-mute-btn-top {
    width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}
.storyto-cta-btn {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 600;
    text-decoration: none;
    z-index: 15;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 8px;
    padding: clamp(6px, 2vw, 10px) clamp(16px, 5vw, 24px);
}
.storyto-loader {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 25;
    background: rgba(245, 239, 239, 0.295);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px 35px;
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.storyto-loader-text {
    font-size: clamp(12px, 3.5vw, 14px);
    text-align: center;
}
.storyto-loader.spinner .storyto-loader-animation {
    border: 3px solid hsla(0, 0%, 100%, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: storyto-spin 0.8s linear infinite;
}
@keyframes storyto-spin {
    to {
        transform: rotate(1turn);
    }
}
.storyto-loader.dots .storyto-loader-animation {
    display: flex;
    gap: 6px;
}
.storyto-loader.dots .storyto-loader-animation span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: storyto-dot 1.4s ease-in-out infinite both;
}
.storyto-loader.dots .storyto-loader-animation span:first-child {
    animation-delay: -0.32s;
}
.storyto-loader.dots .storyto-loader-animation span:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes storyto-dot {
    0%,
    80%,
    to {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
.storyto-loader.pulse .storyto-loader-animation {
    border-radius: 50%;
    background: #fff;
    animation: storyto-pulse 1.2s ease-in-out infinite;
}
@keyframes storyto-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0.7;
    }
}
.storyto-badge {
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
    pointer-events: none;
}
.storyto-media-container.animating {
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}
.storyto-media-container.anim-fade-out {
    opacity: 0;
}
.storyto-media-container.anim-fade-in {
    opacity: 1;
}
.storyto-media-container.anim-slide-next-out {
    transform: translateX(-100%);
}
.storyto-media-container.anim-slide-prev-out {
    transform: translateX(100%);
}
.storyto-media-container.anim-slide-reset {
    transform: translateX(0);
}
.storyto-media-container.cube-mode {
    perspective: 800px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
.storyto-media-container.cube-mode.anim-cube-next-out {
    transform: rotateY(-90deg) scale3d(0.95, 0.95, 0.95);
    opacity: 0;
}
.storyto-media-container.cube-mode.anim-cube-prev-out {
    transform: rotateY(90deg) scale3d(0.95, 0.95, 0.95);
    opacity: 0;
}
.storyto-media-container.cube-mode.anim-cube-reset {
    transform: rotateY(0deg) scaleX(1);
    opacity: 1;
}
.storyto-media-container.realcube-mode {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
.storyto-media-container.realcube-next-out {
    transform: perspective(800px) rotateY(-90deg) translateZ(-150px);
    opacity: 0;
}
.storyto-media-container.realcube-prev-out {
    transform: perspective(800px) rotateY(90deg) translateZ(-150px);
    opacity: 0;
}
.storyto-gradient {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}
.storyto-gradient-bottom,
.storyto-gradient-top {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 3;
}
.storyto-gradient-top {
    top: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0, transparent);
}
.storyto-gradient-bottom {
    bottom: 0;
    height: 100px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0, transparent);
    transition: height 0.3s ease;
}
.storyto-modal-overlay.storyto-has-caption .storyto-gradient-bottom {
    height: 200px;
}
.storyto-top-left {
    position: absolute;
    top: clamp(50px, 7vh, 70px);
    left: clamp(12px, 2.5vw, 24px);
    z-index: 20;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 5px;
}
.storyto-close,
.storyto-pause-btn {
    width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}
.storyto-pause-btn {
    font-size: 22px;
}
.storyto-bottom-bar {
    position: absolute;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 15px;
}
.storyto-comment-box {
    display: flex;
    align-items: center;
    border: 1px solid hsla(0, 0%, 100%, 0.25);
    border-radius: 25px;
    height: 44px;
    padding: 0 12px;
    flex: 1 1 auto;
    max-width: 65%;
}
.storyto-comment-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 8px;
    outline: none;
    font-size: 14px;
    height: 100%;
    line-height: 1.2;
}
.storyto-comment-input,
.storyto-comment-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.storyto-comment-input::placeholder {
    color: hsla(0, 0%, 100%, 0.6);
}
.storyto-comment-submit {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 24px;
}
.storyto-comment-submit svg {
    transform: rotate(180deg);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.storyto-comment-submit:active,
.storyto-comment-submit:focus,
.storyto-comment-submit:hover {
    background: transparent;
    outline: none;
    box-shadow: none;
    border: none;
    color: #fff;
}
.storyto-action-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-shrink: 0;
}
.storyto-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    min-width: 44px;
}
.storyto-action-icon {
    width: 28px;
    height: 28px;
}
.storyto-action-count {
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
    font-weight: 300;
}
.storyto-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 999999;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        top 0.3s ease;
    pointer-events: none;
}
.storyto-toast.show {
    opacity: 1;
    top: 40px;
}
.storyto-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    isolation: isolate;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.storyto-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 100000;
}
.storyto-comments-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    z-index: 9999999;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    will-change: transform;
}
.storyto-comments-sheet.active {
    transform: translateY(0);
}
.storyto-sheet-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 8px;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.08);
    position: relative;
}
.storyto-sheet-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.storyto-sheet-close {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #fff;
    z-index: 1;
}
.storyto-sheet-close svg {
    width: 20px;
    height: 20px;
}
.storyto-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    color: #fff;
}
.storyto-no-comments {
    text-align: center;
    color: hsla(0, 0%, 100%, 0.5);
    font-size: 14px;
    margin-top: 40px;
}
.storyto-comment-item {
    margin-bottom: 16px;
}
.storyto-comment-user {
    font-weight: 600;
    font-size: 13px;
    color: #ddd;
    margin-bottom: 4px;
}
.storyto-comment-text {
    font-size: 14px;
    color: #fff;
}
.storyto-sheet-footer {
    padding: 8px 10px;
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    flex-shrink: 0;
}
.storyto-sheet-footer .storyto-comment-box {
    width: 100%;
    max-width: 100%;
    flex: 1;
    box-sizing: border-box;
}
.storyto-modal-content.sheet-open .storyto-cta-btn,
.storyto-modal-content.sheet-open .storyto-loader {
    display: none !important;
}
.storyto-modal-overlay .storyto-bottom-bar,
.storyto-modal-overlay .storyto-cta-btn,
.storyto-modal-overlay .storyto-gradient,
.storyto-modal-overlay .storyto-modal-header,
.storyto-modal-overlay .storyto-mute-btn-top,
.storyto-modal-overlay .storyto-nav-btn,
.storyto-modal-overlay .storyto-progress-bar,
.storyto-modal-overlay .storyto-top-left {
    transition: opacity 0.3s ease;
}
.storyto-modal-overlay.paused .storyto-bottom-bar,
.storyto-modal-overlay.paused .storyto-cta-btn,
.storyto-modal-overlay.paused .storyto-gradient,
.storyto-modal-overlay.paused .storyto-modal-header,
.storyto-modal-overlay.paused .storyto-mute-btn-top,
.storyto-modal-overlay.paused .storyto-nav-btn,
.storyto-modal-overlay.paused .storyto-progress-bar,
.storyto-modal-overlay.paused .storyto-top-left {
    opacity: 0;
    pointer-events: none;
}
.storyto-modal-overlay.closing {
    transform: translateY(100%);
    opacity: 0;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}
.storyto-modal-overlay :focus {
    outline: none !important;
}
.storyto-modal-overlay img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}
.storyto-sheet-tabs {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 20px;
}
.storyto-sheet-tab {
    flex: 0 1 auto;
    padding: 6px 20px;
    color: hsla(0, 0%, 100%, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
}
.storyto-sheet-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}
.storyto-caption-content {
    color: #fff;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: calc(100% - 50px);
}
.storyto-caption-preview {
    position: absolute;
    bottom: 70px;
    left: 14px;
    right: 14px;
    z-index: 6;
    text-align: right;
    cursor: pointer;
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    border-radius: 16px;
    padding: 10px 14px;
}
.storyto-caption-text {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    max-height: 3.2em;
    overflow: hidden;
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.2px;
}
.storyto-caption-more-inline {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.storyto-comments-sheet {
    background: rgba(20, 20, 20, 0.9490196078431372);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.storyto-sheet-body {
    scrollbar-width: thin;
    scrollbar-color: hsla(0, 0%, 100%, 0.3) transparent;
}
.storyto-sheet-body::-webkit-scrollbar {
    width: 5px;
}
.storyto-sheet-body::-webkit-scrollbar-track {
    background: transparent;
}
.storyto-sheet-body::-webkit-scrollbar-thumb {
    background: hsla(0, 0%, 100%, 0.4);
    border-radius: 10px;
}
.storyto-modal-overlay.paused .storyto-caption-preview {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.storyto-modal-overlay.storyto-has-caption .storyto-cta-btn {
    bottom: 140px;
}
.storyto-circle.storyto-spin-border:before {
    animation: storyto-border-spin 4s linear infinite !important;
    transform: translateZ(0);
    backface-visibility: hidden;
}
@keyframes storyto-border-spin {
    0% {
        --storyto-spin-angle: 0deg;
    }
    to {
        --storyto-spin-angle: 360deg;
    }
}
.storyto-action-item,
.storyto-badge,
.storyto-circle,
.storyto-circle-wrapper,
.storyto-close,
.storyto-comment-submit,
.storyto-cta-btn,
.storyto-mute-btn-top,
.storyto-nav-btn,
.storyto-pause-btn,
.storyto-sheet-close,
.storyto-sheet-tab {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none !important;
}
.storyto-action-item:focus,
.storyto-badge:focus,
.storyto-circle-wrapper:focus,
.storyto-circle:focus,
.storyto-close:focus,
.storyto-comment-submit:focus,
.storyto-cta-btn:focus,
.storyto-mute-btn-top:focus,
.storyto-nav-btn:focus,
.storyto-pause-btn:focus,
.storyto-sheet-close:focus,
.storyto-sheet-tab:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}
.storyto-circle.hide-orig-border {
    border-color: transparent !important;
}
.storyto-circle.hide-orig-border.storyto-circle-gradient:before,
.storyto-circle.hide-orig-border.storyto-circle-instagram:before {
    opacity: 0 !important;
}
.storyto-click-anim {
    fill: none;
    stroke-dasharray: 10 6;
    stroke-linecap: round;
    stroke-dashoffset: 0;
    opacity: 0;
    animation: storyto-click-dash-spin 0.6s ease-out forwards;
}
@keyframes storyto-click-dash-spin {
    0% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    to {
        stroke-dashoffset: -160;
        opacity: 1;
    }
}
.storyto-circles-wrapper.storyto-cards-wrapper {
    align-items: flex-start;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    cursor: grab;
    user-select: none;
    gap: var(--storyto-cards-gap, 6px) !important;
}
.storyto-circles-wrapper.storyto-cards-wrapper.storyto-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
}
.storyto-circle.storyto-card {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0 !important;
    transition:
        transform 0.15s ease,
        opacity 0.3s ease,
        filter 0.3s ease;
}
.storyto-circle.storyto-card.storyto-card-pressed {
    transform: scale(0.95);
}
.storyto-card-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 50%;
}
.storyto-card-video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.storyto-card-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 22px 10px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0, rgba(0, 0, 0, 0.4) 55%, transparent);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}
.storyto-card-title-overlay {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.storyto-card-subtitle-overlay {
    color: hsla(0, 0%, 100%, 0.85);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.storyto-circle.storyto-card {
    opacity: 1;
    filter: none;
}
.storyto-circle.storyto-card.seen {
    opacity: 0.8;
    filter: grayscale(35%) brightness(0.85);
}
.storyto-card-badge {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.55);
    background-size: cover;
    background-position: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}
.storyto-circle-wrapper.storyto-card-item {
    width: auto;
}
.storyto-skeleton.storyto-skeleton-cards {
    align-items: flex-start;
    flex-wrap: nowrap !important;
    overflow-x: hidden;
    justify-content: flex-start;
}
.storyto-skeleton-card-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.storyto-skeleton-card {
    border-radius: 14px;
    background: linear-gradient(100deg, #e4e4e4 30%, #f6f6f6 50%, #e4e4e4 70%);
    background-size: 250% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    position: relative;
}
.storyto-skeleton-cards-vertical.storyto-ratio-classic.storyto-card-size-small .storyto-skeleton-card {
    width: 100px;
    aspect-ratio: 3/4.4;
}
.storyto-skeleton-cards-vertical.storyto-ratio-classic.storyto-card-size-medium .storyto-skeleton-card {
    width: 130px;
    aspect-ratio: 3/4.4;
}
.storyto-skeleton-cards-vertical.storyto-ratio-classic.storyto-card-size-large .storyto-skeleton-card {
    width: 165px;
    aspect-ratio: 3/4.4;
}
.storyto-skeleton-cards-vertical.storyto-ratio-tall.storyto-card-size-small .storyto-skeleton-card {
    width: 130px;
    aspect-ratio: 9/16;
}
.storyto-skeleton-cards-vertical.storyto-ratio-tall.storyto-card-size-medium .storyto-skeleton-card {
    width: 165px;
    aspect-ratio: 9/16;
}
.storyto-skeleton-cards-vertical.storyto-ratio-tall.storyto-card-size-large .storyto-skeleton-card {
    width: 200px;
    aspect-ratio: 9/16;
}
.storyto-skeleton-cards-horizontal.storyto-ratio-wide.storyto-card-size-small .storyto-skeleton-card {
    width: 220px;
    aspect-ratio: 16/9;
}
.storyto-skeleton-cards-horizontal.storyto-ratio-wide.storyto-card-size-medium .storyto-skeleton-card {
    width: 270px;
    aspect-ratio: 16/9;
}
.storyto-skeleton-cards-horizontal.storyto-ratio-wide.storyto-card-size-large .storyto-skeleton-card {
    width: 320px;
    aspect-ratio: 16/9;
}
.storyto-skeleton-cards-horizontal.storyto-ratio-standard.storyto-card-size-small .storyto-skeleton-card {
    width: 200px;
    aspect-ratio: 4/3;
}
.storyto-skeleton-cards-horizontal.storyto-ratio-standard.storyto-card-size-medium .storyto-skeleton-card {
    width: 240px;
    aspect-ratio: 4/3;
}
.storyto-skeleton-cards-horizontal.storyto-ratio-standard.storyto-card-size-large .storyto-skeleton-card {
    width: 280px;
    aspect-ratio: 4/3;
}
.storyto-skeleton-card-badge {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(100deg, #d8d8d8 30%, #ececec 50%, #d8d8d8 70%);
    background-size: 250% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}
.storyto-skeleton-card-overlay-line {
    position: absolute;
    bottom: 10px;
    inset-inline: 10px;
    height: 9px;
    border-radius: 5px;
    background: linear-gradient(100deg, #cfcfcf 30%, #e8e8e8 50%, #cfcfcf 70%);
    background-size: 250% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}
.storyto-cards-vertical.storyto-ratio-classic.storyto-card-size-small .storyto-circle.storyto-card {
    width: 100px;
    aspect-ratio: 3/4.4;
}
.storyto-cards-vertical.storyto-ratio-classic.storyto-card-size-medium .storyto-circle.storyto-card {
    width: 130px;
    aspect-ratio: 3/4.4;
}
.storyto-cards-vertical.storyto-ratio-classic.storyto-card-size-large .storyto-circle.storyto-card {
    width: 165px;
    aspect-ratio: 3/4.4;
}
.storyto-cards-vertical.storyto-ratio-tall.storyto-card-size-small .storyto-circle.storyto-card {
    width: 130px;
    aspect-ratio: 9/16;
}
.storyto-cards-vertical.storyto-ratio-tall.storyto-card-size-medium .storyto-circle.storyto-card {
    width: 165px;
    aspect-ratio: 9/16;
}
.storyto-cards-vertical.storyto-ratio-tall.storyto-card-size-large .storyto-circle.storyto-card {
    width: 200px;
    aspect-ratio: 9/16;
}
.storyto-cards-horizontal.storyto-ratio-wide.storyto-card-size-small .storyto-circle.storyto-card {
    width: 220px;
    aspect-ratio: 16/9;
}
.storyto-cards-horizontal.storyto-ratio-wide.storyto-card-size-medium .storyto-circle.storyto-card {
    width: 270px;
    aspect-ratio: 16/9;
}
.storyto-cards-horizontal.storyto-ratio-wide.storyto-card-size-large .storyto-circle.storyto-card {
    width: 320px;
    aspect-ratio: 16/9;
}
.storyto-cards-horizontal.storyto-ratio-standard.storyto-card-size-small .storyto-circle.storyto-card {
    width: 200px;
    aspect-ratio: 4/3;
}
.storyto-cards-horizontal.storyto-ratio-standard.storyto-card-size-medium .storyto-circle.storyto-card {
    width: 240px;
    aspect-ratio: 4/3;
}
.storyto-cards-horizontal.storyto-ratio-standard.storyto-card-size-large .storyto-circle.storyto-card {
    width: 280px;
    aspect-ratio: 4/3;
}
@media (max-width: 480px) {
    .storyto-cards-vertical .storyto-circle.storyto-card,
    .storyto-skeleton-cards-vertical .storyto-skeleton-card {
        width: clamp(96px, 32vw, 130px);
    }
    .storyto-cards-horizontal .storyto-circle.storyto-card,
    .storyto-skeleton-cards-horizontal .storyto-skeleton-card {
        width: clamp(150px, 55vw, 200px);
    }
}
@media (min-width: 1024px) {
    .storyto-container.desktop-mode .storyto-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 2147483647;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: desktopFadeIn 0.3s ease;
    }
    @keyframes desktopFadeIn {
        0% {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    .storyto-desktop-frame {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(15px, 3vw, 40px);
        width: 100%;
        height: 100%;
        padding: 20px;
    }
    .storyto-desktop-main {
        width: auto;
        height: 85vh;
        aspect-ratio: 9/16;
        max-width: 47.8125vh;
        background: #000;
        border-radius: 4.22cqw;
        overflow: hidden;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
        position: relative;
        z-index: 2;
        container-type: inline-size;
        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }
    .storyto-desktop-main .storyto-modal-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    .storyto-desktop-main .storyto-modal-overlay {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        animation: none !important;
    }
    .storyto-desktop-side {
        width: auto;
        height: 55vh;
        aspect-ratio: 9/16;
        max-width: 30.9375vh;
        background: #111;
        border-radius: 16px;
        overflow: hidden;
        opacity: 0.5;
        transform: scale(0.9);
        transition:
            opacity 0.3s,
            filter 0.3s,
            transform 0.3s;
        cursor: pointer;
        position: relative;
        z-index: 1;
    }
    .storyto-desktop-side .storyto-side-media {
        filter: blur(8px);
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        transition: filter 0.3s ease;
    }
    .storyto-desktop-side img,
    .storyto-desktop-side video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .storyto-desktop-side.disabled {
        opacity: 0.2;
        cursor: default;
        pointer-events: none;
    }
    .storyto-desktop-side:not(.disabled):hover {
        opacity: 0.9 !important;
        transform: scale(0.95) !important;
    }
    .storyto-desktop-side:not(.disabled):hover .storyto-side-media {
        filter: blur(0) !important;
    }
    .storyto-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: clamp(40px, 9.5cqw, 46px);
        height: clamp(40px, 9.5cqw, 46px);
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        cursor: pointer;
        z-index: 10;
        font-size: 5.06cqw;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        transition: background 0.3s;
    }
    .storyto-nav-btn svg {
        display: block;
        width: 100%;
        height: 100%;
    }
    .storyto-nav-btn:hover {
        background: rgba(0, 0, 0, 0.7);
    }
    .storyto-nav-prev {
        left: 2.11cqw;
    }
    .storyto-nav-next {
        right: 2.11cqw;
    }
	.storyto-desktop-main .storyto-modal-header,
    .storyto-desktop-main .storyto-top-left {
        top: 8.44cqw;
    }
    .storyto-desktop-main .storyto-modal-header {
        right: 5.06cqw;
    }
    .storyto-desktop-main .storyto-top-left {
        left: 5.06cqw;
        gap: 2.11cqw;
    }
    .storyto-desktop-main .storyto-header-thumb {
        width: 8.44cqw;
        height: 8.44cqw;
    }
    .storyto-desktop-main .storyto-header-title {
        font-size: 3.38cqw;
    }
    .storyto-desktop-main .storyto-header-time {
        font-size: 2.53cqw;
    }
    .storyto-desktop-main .storyto-close,
    .storyto-desktop-main .storyto-pause-btn,
    .storyto-desktop-main .storyto-mute-btn-top {
        width: 9.28cqw;
        height: 9.28cqw;
    }
    .storyto-desktop-main .storyto-progress-bar {
        top: 6.01cqw;
        left: 2.53cqw;
        right: 2.53cqw;
        height: 0.42cqw;
    }
    .storyto-desktop-main .storyto-action-icon {
        width: 5.91cqw;
        height: 5.91cqw;
    }
    .storyto-desktop-main .storyto-action-count {
        font-size: 2.53cqw;
    }
    .storyto-desktop-main .storyto-action-buttons {
        gap: 2.95cqw;
    }
    .storyto-desktop-main .storyto-action-item {
        min-width: 9.28cqw;
    }
    .storyto-desktop-main .storyto-comment-box {
        height: 9.28cqw;
    }
    .storyto-desktop-main .storyto-comment-input {
        font-size: 2.95cqw;
    }
    .storyto-desktop-main .storyto-comment-submit {
        width: 5.06cqw;
    }
    .storyto-desktop-main .storyto-cta-btn {
        font-size: 3.38cqw;
        bottom: 16.88cqw;
        padding: 2.11cqw 5.06cqw;
    }
	.storyto-desktop-main .storyto-modal-overlay.storyto-has-caption .storyto-cta-btn {
        bottom: 29.54cqw;
    }
	.storyto-desktop-main .storyto-close svg,
    .storyto-desktop-main .storyto-pause-btn svg,
    .storyto-desktop-main .storyto-mute-btn-top svg {
        width: 55%;
        height: 55%;
    }
    .storyto-desktop-main .storyto-caption-preview {
        bottom: 14.77cqw;
        left: 2.95cqw;
        right: 2.95cqw;
        padding: 2.11cqw 2.95cqw;
        border-radius: 3.38cqw;
    }
    .storyto-desktop-main .storyto-caption-text {
        font-size: 2.74cqw;
    }
    .storyto-desktop-main.anim-next {
        transform: translateX(30px);
        opacity: 0;
    }
    .storyto-desktop-main.anim-prev {
        transform: translateX(-30px);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .storyto-action-icon {
        width: 24px;
        height: 24px;
    }
    .storyto-action-buttons {
        gap: 12px;
    }
    .storyto-action-count {
        font-size: 10px;
    }
    .storyto-top-left {
        top: clamp(5px, 2vh, 40px);
        left: clamp(5px, 2vw, 15px);
        gap: 6px;
    }
    .storyto-modal-header {
        top: clamp(5px, 2vh, 40px);
        right: clamp(5px, 2vw, 15px);
    }
    .storyto-progress-bar {
        top: clamp(2px, 1vh, 10px);
    }
    .storyto-comment-box {
        height: 40px;
        max-width: 55%;
    }
}
@media (min-width: 769px) {
    .storyto-top-left {
        padding: 4px 4px 4px 2px;
        top: 40px;
    }
    .storyto-modal-header {
        padding: 4px 2px 4px 4px;
        top: 40px;
    }
}