
/* ... outros estilos ... */

/* Esconde a versão mobile por padrão */
.lg-mobile-stories-container {
    display: none !important;
}

/* Em telas menores, esconde a versão desktop */
@media (max-width: 768px) { /* Ajuste 768px conforme seu breakpoint mobile */
    .lg-desktop-stories {
        display: none !important;
    }
}

/*
 * Styles for Brand Stories Frontend
 */

/* Contêiner dos Stories */
.lg-stories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin: 40px auto;
    padding: 0 15px;
    max-width: 900px;
}
.lg-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    max-width: 100px;
}
.lg-story-item:hover {
    transform: translateY(-5px);
}

/* O círculo com borda colorida */
.lg-story-circle-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFD700, #FFA500); /* Laranja/Amarelo (não visualizado) */
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.lg-story-circle-wrapper.viewed {
    background: linear-gradient(45deg, #28a745, #1d7e35); /* Verde (visualizado) */
}

/* O círculo interno da imagem */
.lg-story-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.lg-story-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lg-story-title {
    font-size: 0.9em;
    font-weight: 500;
    color: #555;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Modal do Story */
.lg-story-modal {
    display: none; /* ESCONDIDO POR PADRÃO, JS o exibirá */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Evita scroll desnecessário no body */
    background-color: rgba(0,0,0,0.85); /* Fundo mais escuro */
    justify-content: center; /* Permite o flexbox */
    align-items: center; /* Permite o flexbox */
    /* Transição para aparecer suavemente */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.lg-story-modal.active {
    opacity: 1;
    display: flex; /* Exibe como flexbox quando ativo */
}

.lg-story-modal-content {
    background-color: #fefefe;
    border-radius: 10px;
    width: 95%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lg-story-modal-close {
    color: #fff;
    font-size: 36px;
    font-weight: normal;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.lg-story-modal-close:hover,
.lg-story-modal-close:focus {
    color: #eee;
    text-decoration: none;
}
.lg-story-modal-title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 20px 20px 10px 20px;
    color: #333;
    text-align: center;
}
.lg-story-player-area {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
}
.lg-story-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.lg-story-video-player iframe,
.lg-story-video-player video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Botões de Navegação do Carrossel */
.lg-story-nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 9999;
    pointer-events: none;
    padding: 0 10px;
}
.lg-story-nav-buttons button {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lg-story-nav-buttons button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.lg-story-nav-buttons button:hover {
    background-color: rgba(0,0,0,0.7);
}
.lg-story-nav-buttons button.hidden {
    display: none;
}


/* Responsividade do Modal */
@media (max-width: 768px) {
    .lg-story-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    .lg-story-modal-title {
        font-size: 1.3em;
        margin: 15px 15px 8px 15px;
    }
    .lg-story-nav-buttons button {
        padding: 8px 12px;
        font-size: 1.2em;
    }
}
@media (max-width: 480px) {
    .lg-story-item {
        max-width: 70px;
    }
    .lg-story-circle-wrapper {
        width: 60px;
        height: 60px;
    }
    .lg-story-title {
        font-size: 0.8em;
    }
    .lg-story-modal-title {
        font-size: 1.2em;
    }
    .lg-story-modal-close {
        font-size: 24px;
        top: 5px;
        right: 10px;
    }
}