#story-pro-wrapper,
#story-pro-wrapper * {
    box-sizing: border-box;
}

#story-pro-wrapper {
    width: auto !important;
    max-width: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px !important;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-style: solid;
    border-width: var(--wsp-wrapper-border-width, 0px);
    border-color: var(--wsp-wrapper-border-color, transparent);
    background: var(--wsp-wrapper-bg-color, transparent);
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.05);
}

#story-pro-wrapper::-webkit-scrollbar {
    display: none;
}

#story-pro-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

#story-pro-upload-icon,
.story-pro-item {
    flex: 0 0 auto;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    isolation: isolate;
    transform: translateZ(0);
}

#story-pro-upload-icon {
    width: 54px;
    height: 54px;
    border: 2px dashed #58ff21;
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.22), rgba(0,0,0,0.88) 62%);
    box-shadow:
        0 12px 22px rgba(0,0,0,0.55),
        inset 0 2px 6px rgba(255,255,255,0.18),
        0 0 18px rgba(88,255,33,0.40);
    animation: storyProRotateBorder 5s linear infinite;
}

#story-pro-upload-icon img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    animation: storyProRotateBorderReverse 5s linear infinite;
}

#story-pro-upload-icon .story-pro-plus {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.92);
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    animation: storyProRotateBorderReverse 5s linear infinite;
}

#story-pro-upload-icon:hover::after {
    content: "+ Feltöltés";
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(0,0,0,0.92);
    color: #fff;
    border: 1px solid rgba(255,69,0,0.45);
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.story-pro-item {
    width: 70px;
    height: 70px;
    overflow: visible;
    border: 2px solid rgba(255,69,0,0.65);
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.88));
    box-shadow:
        0 14px 26px rgba(0,0,0,0.58),
        inset 0 2px 5px rgba(255,255,255,0.14),
        inset 0 -8px 13px rgba(0,0,0,0.42);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.story-pro-neon-on .story-pro-item {
    border-color: var(--wsp-neon-color, rgba(255,69,0,0.85));
    box-shadow:
        0 0 0 1px var(--wsp-neon-color, rgba(255,69,0,0.85)),
        0 0 18px var(--wsp-neon-color, rgba(255,69,0,0.85)),
        0 14px 26px rgba(0,0,0,0.62),
        inset 0 2px 5px rgba(255,255,255,0.14),
        inset 0 -8px 13px rgba(0,0,0,0.42);
}

.story-pro-neon-off .story-pro-item {
    border-color: rgba(255,69,0,0.38);
    box-shadow:
        0 14px 26px rgba(0,0,0,0.58),
        inset 0 2px 5px rgba(255,255,255,0.14),
        inset 0 -8px 13px rgba(0,0,0,0.42);
}

.story-pro-item:hover {
    transform: translateY(-3px) scale(1.035);
}

.story-pro-item-inner {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
}

.story-pro-item img,
.story-pro-item video {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.story-pro-delete-icon {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 3;
    width: 23px;
    height: 23px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ff4500, #320900);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 7px 14px rgba(0,0,0,0.55);
    font-size: 13px;
    line-height: 1;
}

#story-pro-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255,69,0,0.18), transparent 32%),
        rgba(0,0,0,0.88);
    backdrop-filter: blur(10px);
}

#story-pro-modal-content {
    width: min(95vw, 760px);
    max-height: 92vh;
    overflow-y: auto;
    color: #fff;
    border-radius: 24px;
    padding: 16px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.88)),
        radial-gradient(circle at 20% 0%, rgba(255,69,0,0.22), transparent 35%);
    border: 1px solid rgba(255,69,0,0.35);
    box-shadow:
        0 32px 80px rgba(0,0,0,0.76),
        inset 0 1px 0 rgba(255,255,255,0.14),
        inset 0 -24px 60px rgba(0,0,0,0.45);
}

#story-pro-modal-content::-webkit-scrollbar,
#story-pro-comments::-webkit-scrollbar {
    width: 8px;
}

#story-pro-modal-content::-webkit-scrollbar-thumb,
#story-pro-comments::-webkit-scrollbar-thumb {
    background: rgba(255,69,0,0.55);
    border-radius: 20px;
}

#story-pro-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    min-height: 48px;
    padding: 0 64px 10px;
}

#story-pro-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    cursor: default;
    border: 2px solid rgba(255,69,0,0.68);
    box-shadow: 0 0 12px rgba(255,69,0,0.30), 0 8px 18px rgba(0,0,0,0.42);
}

#story-pro-author-name {
    cursor: default;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.72);
}

#story-pro-close {
    position: absolute;
    right: 0;
    top: 0;
    min-width: 44px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    color: var(--wsp-x-button-text, #fff);
    background: linear-gradient(145deg, var(--wsp-x-button-bg, #ff4500), #140300);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 12px 22px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.22);
    transition: transform .16s ease, filter .16s ease;
}

#story-pro-close:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

#story-pro-body {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
}

#story-pro-media {
    width: min(62vw, 460px);
    max-height: 560px;
    border-radius: 20px;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 22px 50px rgba(0,0,0,0.64),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

#story-pro-media img,
#story-pro-media video {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #000;
}

#story-pro-sidebar {
    min-width: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 8px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(0,0,0,0.45));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#story-pro-reactions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.story-pro-reaction-btn {
    min-width: 54px;
    min-height: 42px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 14px;
    cursor: pointer;
    color: rgba(255,255,255,0.72);
    background: rgba(0,0,0,0.36);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 16px rgba(0,0,0,0.34);
    font-size: 23px;
    line-height: 1;
    transition: transform .15s ease, color .15s ease, background .15s ease, opacity .15s ease;
}

.story-pro-reaction-btn span {
    font-size: 18px;
    font-weight: 900;
}

.story-pro-reaction-btn:hover,
.story-pro-reaction-btn.active {
    color: #fff;
    background: rgba(255,69,0,0.18);
    border-color: rgba(255,69,0,0.45);
    transform: translateY(-1px);
}

#story-pro-views,
#story-pro-delete {
    min-width: 54px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 14px;
    background: rgba(0,0,0,0.36);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 16px rgba(0,0,0,0.34);
    font-size: 20px;
    font-weight: 900;
}

#story-pro-delete {
    cursor: pointer;
    color: #fff;
}

#story-pro-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 14px 0 8px;
    flex-wrap: wrap;
}

#story-pro-add-comment,
#story-pro-submit-comment,
#story-pro-close-btn {
    border: 0;
    border-radius: 14px;
    padding: 9px 16px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .2px;
    box-shadow: 0 12px 22px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.20);
    transition: transform .16s ease, filter .16s ease;
}

#story-pro-add-comment,
#story-pro-submit-comment {
    color: var(--wsp-comment-button-text, #fff);
    background: linear-gradient(145deg, var(--wsp-comment-button-bg, #ff4500), #130300);
}

#story-pro-close-btn {
    color: var(--wsp-close-button-text, #fff);
    background: linear-gradient(145deg, var(--wsp-close-button-bg, #ff4500), #130300);
}

#story-pro-add-comment:hover,
#story-pro-submit-comment:hover,
#story-pro-close-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

#story-pro-countdown {
    margin-top: 8px;
    text-align: center;
    color: rgba(255,255,255,0.84);
    font-size: 14px;
    font-weight: 800;
}

#story-pro-comments {
    width: min(100%, 560px);
    max-height: 190px;
    overflow-y: auto;
    margin: 14px auto 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.story-pro-comment {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 8px 38px 8px 8px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(0,0,0,0.38));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.story-pro-comment-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255,69,0,0.58);
    box-shadow: 0 6px 13px rgba(0,0,0,0.38);
}

.story-pro-comment-body {
    min-width: 0;
    flex: 1;
}

.story-pro-comment-author {
    display: inline-block;
    margin-bottom: 2px;
    color: #ff8a55;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.story-pro-comment-text {
    color: #fff;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.35;
}

.story-pro-delete-comment {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,69,0,0.18);
    border: 1px solid rgba(255,69,0,0.42);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
}

#story-pro-comment-input {
    display: block;
    width: min(100%, 560px);
    min-height: 82px;
    margin: 8px auto 8px;
    resize: vertical;
    border-radius: 16px;
    padding: 12px;
    background: rgba(0,0,0,0.58);
    color: #fff;
    border: 1px solid rgba(255,69,0,0.35);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 22px rgba(0,0,0,0.30);
}

#story-pro-comment-input:focus {
    border-color: rgba(255,69,0,0.80);
    box-shadow: 0 0 0 3px rgba(255,69,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

@keyframes storyProRotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes storyProRotateBorderReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@media screen and (max-width: 768px) {
    #story-pro-wrapper {
        max-width: 480px !important;
    }
}

@media screen and (min-width: 769px) {
    #story-pro-wrapper {
        max-width: 1120px !important;
    }
}

@media (max-width: 640px) {
    #story-pro-modal {
        padding: 12px;
        align-items: flex-start;
    }

    #story-pro-modal-content {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 20px;
        padding: 12px;
    }

    #story-pro-header {
        padding: 0 54px 10px;
    }

    #story-pro-body {
        flex-direction: column;
        align-items: center;
    }

    #story-pro-media {
        width: 100%;
        max-height: 62vh;
    }

    #story-pro-media img,
    #story-pro-media video {
        max-height: 62vh;
    }

    #story-pro-sidebar {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px;
    }

    #story-pro-reactions {
        flex-direction: row;
    }

    .story-pro-reaction-btn,
    #story-pro-views,
    #story-pro-delete {
        min-width: 48px;
    }

    .story-pro-reaction-user {
        flex-wrap: wrap;
    }

    .story-pro-reaction-user-type {
        width: 100%;
        margin-left: 36px;
        text-align: left;
    }
}


#story-pro-reaction-users {
    width: min(100%, 560px);
    margin: 10px auto 2px;
}

.story-pro-reaction-users-title {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.86);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.story-pro-reaction-user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.story-pro-reaction-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(0,0,0,0.34));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.story-pro-reaction-user-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255,69,0,0.45);
}

.story-pro-reaction-user-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.story-pro-reaction-user-type {
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
    color: #ffb088;
    text-align: right;
}



/* WebTom Story Pro v1.1.3 - kizárólag alsó tartalom/görgetés javítás */
#story-pro-modal {
    overflow-y: auto;
    overscroll-behavior: contain;
}

#story-pro-modal-content {
    max-height: calc(100dvh - 56px);
    padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

#story-pro-comments {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    margin-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

#story-pro-comment-actions {
    margin-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
    #story-pro-modal {
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    #story-pro-modal-content {
        max-height: calc(100dvh - 104px);
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    #story-pro-comments {
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
        margin-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}

@supports not (height: 100dvh) {
    #story-pro-modal-content {
        max-height: calc(100vh - 56px);
    }

    @media (max-width: 640px) {
        #story-pro-modal-content {
            max-height: calc(100vh - 104px);
        }
    }
}


/* WebTom Story Pro v1.1.4 - kizárólag hozzászólás lista összefolyás javítás */
#story-pro-comments {
    max-height: none !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
}

.story-pro-comment {
    width: 100% !important;
    min-height: unset !important;
    height: auto !important;
    flex: 0 0 auto !important;
    align-items: flex-start !important;
    margin: 0 !important;
    overflow: visible !important;
    position: relative !important;
    clear: both !important;
}

.story-pro-comment-body {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
}

.story-pro-comment-text {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.45 !important;
}

.story-pro-reaction-user {
    min-height: 58px !important;
    height: auto !important;
    flex: 0 0 auto !important;
}

@media (max-width: 640px) {
    #story-pro-modal {
        align-items: flex-start !important;
        overflow-y: auto !important;
    }

    #story-pro-modal-content {
        overflow-y: auto !important;
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    }

    #story-pro-comments {
        gap: 14px !important;
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .story-pro-comment {
        padding: 10px 34px 10px 10px !important;
    }
}


/* WebTom Story Pro v1.1.5 - kizárólag mobil/desktop hozzászólás blokk tördelés javítás */
#story-pro-reaction-users {
    margin-bottom: 16px !important;
}

#story-pro-comments {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    margin-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
}

#story-pro-comments .story-pro-comment {
    display: grid !important;
    grid-template-columns: 42px minmax(0,1fr);
    grid-auto-rows: auto;
    column-gap: 10px !important;
    row-gap: 0 !important;
    align-items: start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 14px 0 !important;
    padding: 10px 40px 12px 10px !important;
    overflow: visible !important;
}

#story-pro-comments .story-pro-comment:last-child {
    margin-bottom: 0 !important;
}

#story-pro-comments .story-pro-comment-avatar {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
}

#story-pro-comments .story-pro-comment-body {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
}

#story-pro-comments .story-pro-comment-author {
    display: block !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.25 !important;
}

#story-pro-comments .story-pro-comment-text {
    display: block !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

#story-pro-comments .story-pro-delete-comment {
    top: 10px !important;
    right: 10px !important;
}

@media (max-width: 640px) {
    #story-pro-comments .story-pro-comment {
        grid-template-columns: 40px minmax(0,1fr) !important;
        padding: 10px 36px 12px 10px !important;
    }
}
