.story-element .story-lists {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    scrollbar-width: none;
}

.story-element .story-lists::-webkit-scrollbar {
    display: none;
}

.story-element .story-item-box {
    flex-shrink: 0;
}

.story-element .story-cover-img {
    position: relative;
    width: 75px;
    height: 75px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.story-element .story-cover-img:active {
    transform: scale(0.92);
}

.story-element .story-cover-img img {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    object-fit: cover;
    padding: 4px;
}

.story-element .story-cover-img svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #e6123d;
    stroke-width: 2.5px;
    stroke-linecap: round;
}

.story-element .story.seen svg {
    stroke: #dbdbdb;
}

.story-element .story-title {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    color: #333;
    font-weight: 500;
}

.story-element .story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.story-element .story-overlay.active {
    opacity: 1;
    visibility: visible;
}

.story-element .overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
    z-index: 1;
}

.story-element .story-popup-window {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 80vh;
    max-height: 700px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    pointer-events: none;
    margin: 0;
}

.story-element .story-overlay.active .story-popup-window {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.story-element .story-inner-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 12;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.story-element .story-bar-container {
    background: rgba(255, 255, 255, 0.3);
    height: 3px;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.story-element .story-bar-fill {
    background: #fff;
    height: 100%;
    width: 0;
    transition: width 0.1s linear;
}

.story-element .story-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
}

.story-element .story-user-info img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.story-element .story-controls {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.story-element .close-story-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.story-element .play-pause-btn {
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.story-element .play-pause-btn svg {
    width: 100%;
    height: 100%;
}

.story-element .play-pause-btn .icon-play {
    display: none;
}

.story-element .play-pause-btn.paused .icon-pause {
    display: none;
}

.story-element .play-pause-btn.paused .icon-play {
    display: block;
}

.story-element .story-media-view {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.story-element .story-media-view img,
.story-element .story-media-view video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-element .text-view {
    color: #fff;
    padding: 40px;
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .story-element .story-popup-window {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        transform: scale(1);
    }

    .story-element .story-overlay.active .story-popup-window {
        transform: scale(1);
    }
}

.story-element .story-media-view {
    position: relative;
}

.story-element .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 20;
    user-select: none;
    transition: background 0.3s;
}

.story-element .nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.story-element .nav-btn.prev {
    right: 10px;
}

.story-element .nav-btn.next {
    left: 10px;
}

body.story-open {
    overflow: hidden !important;
    touch-action: none;
    height: 100%;
}

@media (max-width: 480px) {
    .story-element .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
	
	.story-element .story-inner-header {
		top: 30px;
	}
}