

        /* Contêiner para a imagem de perfil e sua borda degradê */
        .home-story-wrapper {
            position: relative;
            width: 108px; /* Tamanho da imagem + padding da borda */
            height: 108px; /* Tamanho da imagem + padding da borda */
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .home-story-wrapper:hover {
            transform: scale(1.05);
        }

        /* Pseudo-elemento para a borda degradê "acesa" */
        .home-story-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 50%;
            padding: 5px; /* Espessura da borda */
            background: conic-gradient(from 0deg, #ff6b00, #ff00ff, #ff6b00); /* Gradiente cônico */
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            z-index: -1; /* Fica atrás da imagem */
            transition: background 0.3s ease; /* Transição para a borda */
        }

        /* Estilo para a borda "apagada" */
        .home-story-wrapper.seen::before {
            background: #ccc; /* Cor sólida cinza para a borda "apagada" */
        }

        .home-story-wrapper.seen #homeStoryIcon {
            filter: grayscale(0%); /* Deixa a imagem um pouco mais apagada */
        }

        .home-story-wrapper #homeStoryIcon {
            width: 100px; /* Tamanho da imagem de perfil */
            height: 100px; /* Tamanho da imagem de perfil */
            border-radius: 50%; /* Torna a imagem redonda */
            object-fit: cover; /* Garante que a imagem preencha o círculo */
            display: #2d9df9; /* Remove espaço extra abaixo da imagem */
        }

        /* Estilos para o contêiner dos stories */
        .stories-container {
            width: 300px; /* Largura padrão para mobile */
            height: 500px; /* Altura padrão para mobile */
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 4px 8px #2d9df9;
            background-color: #2d9df9; /* Fundo preto para os stories */
            display: none; /* Escondido por padrão */
            z-index: 20; /* Garante que fique por cima da home screen */
        }

        .stories-container.active {
            display: block; /* Mostra quando ativo */
        }

        .story {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: black;
        }

        .story.active {
            opacity: 1;
            z-index: 1;
        }

        .story img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain; /* Garante que a imagem se ajuste sem cortar */
        }

        .story-progress-bar-container {
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            display: flex;
            gap: 5px;
            z-index: 2;
        }

        .story-progress-bar {
            flex-grow: 1;
            height: 3px;
            background-color: rgba(255, 255, 255, 0.5);
            border-radius: 5px;
            overflow: hidden;
        }

        .story-progress {
            height: 100%;
            width: 0%;
            background-color: #fff;
            border-radius: 5px;
            transition: width 0.1s linear;
        }

        .story-navigation {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            z-index: 2;
        }

        .story-navigation-area {
            flex: 1;
            cursor: pointer;
        }

        .story-navigation-area.left {
            margin-right: auto;
        }

        .story-navigation-area.right {
            margin-left: auto;
        }

        /* Botão de fechar */
        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            font-size: 18px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 3;
            transition: background 0.3s ease;
        }

        .close-button:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        /* Media Queries para responsividade */

        /* Para telas maiores que 768px (tablets e desktops) */
        @media (min-width: 768px) {
            .stories-container {
                width: 360px; /* Largura um pouco maior para desktop */
                height: 640px; /* Altura um pouco maior para desktop */
            }
        }

        /* Para telas muito grandes (desktops grandes) */
        @media (min-width: 1024px) {
            .stories-container {
                width: 400px;
                height: 700px;
            }
        }