﻿.stories-bar {
    display: -webkit-inline-box;
    gap: 10px;
    overflow-x: auto;
/*    padding: 10px;
*/    height: 120px;
    text-align: center;
    padding-bottom:5px;
    /*         position: absolute; */
    /*         bottom: 10px; */
}

.story-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f9e81a, #e6b23c, #dc2743, #cc2366, #bc1888);
    padding: 3px;
    cursor: pointer;
}

    .story-thumb img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        padding: 2px;
        background-color: white;
        margin-bottom: 9px;
    }

    .story-thumb video {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        padding: 2px;
        background-color: white;
    }

.story-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #000;
    overflow: hidden;
    z-index: 1030;
}

.progress-bar-story {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 4px;
    display: flex;
    z-index: 1030;
}

.progress-story {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-filled-story {
    height: 100%;
    width: 0%;
    background-color: green;
    transition: width linear;
}

.story-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.story {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.controls-story {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1040;
}

    .controls-story button {
        background: rgb(151 18 18 / 80%);
        border: none;
        padding: 8px;
        border-radius: 10px;
        color: #fff;
        cursor: pointer;
        font-size: 18px;
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        width: 30px;
        z-index: 1040;
    }

        .controls-story button svg {
            width: 20px;
            height: 20px;
            stroke: green;
        }

.story video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.click-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1025;
}

    .click-zone.left {
        right: -30px;
    }

    .click-zone.right {
        left: -30px;
    }
