.stories-container {
    display: flex;
    background: #0d1361;
    box-shadow: inset 0px 20px 14px 6px rgba(0, 0, 0, 0.3);
    width: 100%;
    margin: 0 auto;
    padding: 20px 36px;
    gap: 48px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #0d1361 #eee;
    box-sizing: border-box;
}


    .stories-container::-webkit-scrollbar {
        height: 6px;
    }

    .stories-container::-webkit-scrollbar-track {
        background: #eee;
        border-radius: 10px;
    }

    .stories-container::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #dd2a7b, #f58529);
        border-radius: 10px;
    }

    .stories-container .content {
        position: relative;
        cursor: pointer;
    }

        .stories-container .content img {
            height: 90px;
            width: 90px;
            border-radius: 50%;
            object-fit: cover;
            position: relative;
            vertical-align: middle;
            z-index: 300;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .stories-container .content:hover img {
            transform: scale(1.1);
            box-shadow: 0 0 15px rgba(255, 99, 71, 0.7);
            z-index: 500;
        }

        .stories-container .content::before {
            content: "";
            height: 98px;
            width: 98px;
            background: #fff;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 101;
        }

        .stories-container .content::after {
            content: "";
            height: 106px;
            width: 106px;
            background: linear-gradient(135deg, #000000 0%, #999900 20%, #FFEA00 50%, #FFFF66 80%, #000000 100%);
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            animation: rotateGradient 4s linear infinite;
            transform-origin: center center;
        }

@keyframes rotateGradient {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.story-full {
    background: #222;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 150ms ease;
}

    .story-full.active {
        opacity: 1;
        pointer-events: auto;
    }

    .story-full .close-btn {
        position: fixed;
        right: 32px;
        top: 32px;
        width: 32px;
        cursor: pointer;
    }

    .story-full .content {
        height: 100%;
        display: flex;
        align-items: center;
        position: relative;
    }

    .story-full img {
        height: 90%;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        transition: transform 0.3s ease;
    }

    .story-full .content .left-arrow,
    .story-full .content .right-arrow {
        width: 60px;
        cursor: pointer;
        background: rgba(0,0,0,0.4);
        border-radius: 50%;
        padding: 10px;
        filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
        transition: background 0.3s ease;
    }

        .story-full .content .left-arrow:hover,
        .story-full .content .right-arrow:hover {
            background: rgba(0,0,0,0.7);
        }

    .story-full .content .title {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 12px 20px;
        font-family: IRANSans, sans-serif;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        color: #fff;
        background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
        box-shadow: 0 2px 10px rgba(0,0,0,0.4);
        z-index: 2;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        backdrop-filter: blur(5px);
    }

    /* Progress bar for story */
    .story-full .progress-bar {
        position: absolute;
        top: 0;
        left: 0;
        height: 5px;
        width: 100%;
        background: rgba(255,255,255,0.25);
        border-radius: 0 0 8px 8px;
        overflow: hidden;
        z-index: 20;
    }

    .story-full .progress-bar-fill {
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, #dd2a7b, #f58529);
        animation: progressAnim 5s linear forwards;
    }

@keyframes progressAnim {
    to {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .stories-container {
        width: 90%;
        padding: 10px 15px;
        gap: 20px;
    }

        .stories-container .content img {
            width: 60px;
            height: 60px;
        }

        .stories-container .content::before {
            height: 70px;
            width: 70px;
        }

        .stories-container .content::after {
            width: 80px;
            height: 80px;
        }

    .story-full .content img {
        height: 65%;
    }

    .story-full .content .left-arrow,
    .story-full .content .right-arrow {
        width: 45px;
    }
}
