/* Container Principal do Carrossel */
.stories-wrapper-full {
    width: 100%;
    padding: 0px 0;
    background-color: transparent;
    overflow: hidden;
}

.stories-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 15px; /* Alterado de '0' para '10px' para dar espaço na parte superior e inferior para o zoom não cortar */
    scrollbar-width: none; /* Firefox */
}
.stories-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Item Individual (Avatar) */
.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    width: 75px; /* Largura aumentada em 30% */
}

/* Borda Avançada e Estilizada (Laranja, Lilás, Azul) */
.story-ring {
    width: 85px; /* Tamanho aumentado em 30% */
    height: 85px; /* Tamanho aumentado em 30% */
    border-radius: 50%;
    padding: 4px; /* Aumentei 1px para a borda colorida acompanhar o novo tamanho */
    background: #333; /* Fundo padrão para sem story */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.story-ring.active-story {
    background: linear-gradient(45deg, #ff7b00, #a832a8, #00d4ff);
    box-shadow: 0 0 10px rgba(255, 123, 0, 0.4);
}

.story-ring.my-story-ring {
    background: #444; /* Cinza para o botão de adicionar */
}

.story-ring:hover {
    transform: scale(1.05);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #1a1a1a; /* Cor do fundo do site para criar espaçamento */
    object-fit: cover;
}

/* Ícone de (+) no Meu Story */
.story-plus-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #2ecc71;
    color: #fff;
    width: 26px; /* Tamanho aumentado em 30% */
    height: 26px; /* Tamanho aumentado em 30% */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Símbolo de mais (+) maior */
    font-weight: bold;
    border: 2px solid #1a1a1a;
}

.story-username {
    color: #ccc;
    font-size: 11px;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px; /* Limite de texto maior acompanhando os 30% */
    text-align: center;
}

/* Modais de Opções (estilo discreto e moderno) */
.story-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.story-modal-content {
    background: #1e1e1e;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #444;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.story-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}
.story-close-btn:hover { color: #fff; }

.story-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-opt-btn {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}
.story-opt-btn:hover { background: #ff7b00; border-color: #ff7b00; }

.story-input-text, .story-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #111;
    border: 1px solid #444;
    color: #fff;
    margin-bottom: 15px;
}

.story-submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff7b00, #d35400);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Modal Tela Cheia (Visualizar Story) */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999999; /* Por cima de tudo */
    display: none;
    flex-direction: column;
}

.story-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.story-viewer-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.story-media {
    max-width: 100%;
    max-height: 80vh; /* Deixa espaço embaixo para os botões */
    object-fit: contain;
    border-radius: 10px;
}

.story-interactions {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.story-action-btn {
    background: none;
    border: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.story-action-btn .material-icons { font-size: 28px; margin-bottom: 5px; }
.story-action-btn:hover { color: #ff7b00; }

/* --- ESTILOS DA LIVE (Animação de Ondulação e Badge) --- */
@keyframes ondaLive {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7), 0 0 10px rgba(255, 123, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0), 0 0 10px rgba(255, 123, 0, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0), 0 0 10px rgba(255, 123, 0, 0.4); }
}

.live-ring-animado {
    background: linear-gradient(45deg, #e74c3c, #ff7b00, #c0392b) !important;
    animation: ondaLive 1.5s infinite;
}

.badge-live-story {
    position: absolute;
    bottom: -8px;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 5px;
    border: 2px solid #1a1a1a;
    letter-spacing: 1px;
    z-index: 10;
}
/* --- BALÃO INFORMATIVO DA LIVE --- */
.live-tooltip-balloon {
    position: absolute;
    top: 40px; /* Alinha o balão com o meio do seu círculo */
    left: 100%; /* Joga o balão para o lado direito do círculo */
    transform: translateY(-50%);
    background-color: #e74c3c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: flutuarBalaoLado 1s infinite alternate ease-in-out;
    pointer-events: none; /* Deixa o usuário clicar através do balão */
    display: none;
}

/* Setinha apontando para a esquerda (em direção ao seu círculo) */
.live-tooltip-balloon::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%; /* Posiciona a seta no lado esquerdo do balão */
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #e74c3c transparent transparent;
}

@keyframes flutuarBalaoLado {
    from { margin-left: 10px; }
    to { margin-left: 18px; }
}

.ring-pulsing-attention {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7) !important;
    animation: pulsarAtencao 1s infinite !important;
}

@keyframes pulsarAtencao {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}