/* Bolinha flutuante no canto esquerdo com vídeo rodando */
.story-floating-bubble {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    z-index: 999998;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 4px solid #e91e63;
}

.story-floating-bubble:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(233, 30, 99, 0.5);
}

.story-floating-bubble video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Anel animado ao redor da bolinha */
.story-bubble-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid #e91e63;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal - CENTRO DA TELA */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    height: 80vh;
    max-height: 750px;
}

.story-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.7);
}

#story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.story-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.story-prev-btn,
.story-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.story-prev-btn {
    left: -70px;
}

.story-next-btn {
    right: -70px;
}

.story-prev-btn:hover,
.story-next-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.story-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.story-play-pause-btn,
.story-sound-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.story-play-pause-btn:hover,
.story-sound-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsivo */
@media (max-width: 768px) {
    .story-floating-bubble {
        width: 80px;
        height: 80px;
        left: 15px;
    }

    .story-modal-content {
        width: 95%;
        height: 70vh;
    }

    .story-prev-btn,
    .story-next-btn {
        width: 45px;
        height: 45px;
        font-size: 32px;
    }

    .story-prev-btn {
        left: 10px;
    }

    .story-next-btn {
        right: 10px;
    }

    .story-close-btn {
        top: -40px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }

    .story-controls {
        bottom: 20px;
        gap: 12px;
    }

    .story-play-pause-btn,
    .story-sound-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .story-floating-bubble {
        width: 70px;
        height: 70px;
        left: 10px;
    }
}