/* ==========================================================================
   WIDGET DE STORIES - ESTILO PREMIUM (PÁGINAS PÚBLICAS)
   ========================================================================== */

/* CONTAINER PRINCIPAL DO CARROSSEL */
body .clubPublic_storiesCarouselContainer {
    position: relative;
    width: 100%;
    margin: 20px 0;
    padding: 0 10px;
    z-index: 10;
    min-height: 106px; /* Evita quebras de layout (CLS) reservando espaço para os stories */
}

@media (max-width: 768px) {
    body .clubPublic_storiesCarouselContainer {
        min-height: 96px; /* Altura proporcional para mobile */
    }
}

/* ENVELOPE DE ROLAGEM HORIZONTAL */
body .clubPublic_storiesCarouselWrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    /* Ocultar barra de rolagem no Firefox e IE */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Ocultar barra de rolagem no Chrome/Safari */
body .clubPublic_storiesCarouselWrapper::-webkit-scrollbar {
    display: none;
}

/* ITEM INDIVIDUAL DO CARROSSEL */
body .clubPublic_storiesCarouselItem {
    flex: 0 0 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body .clubPublic_storiesCarouselItem:hover {
    transform: scale(1.06);
}

body .clubPublic_storiesCarouselItem:active {
    transform: scale(0.96);
}

/* ENVELOPE DO AVATAR COM GRADIENTE DE BORDA (NÃO VISUALIZADO) */
body .clubPublic_storiesAvatarWrapper {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(45deg, #5d11cf, #9f10d8);
    padding: 2.5px;
    box-shadow: 0 4px 12px rgba(159, 16, 216, 0.2);
    transition: box-shadow 0.25s ease;
}

body .clubPublic_storiesCarouselItem:hover .clubPublic_storiesAvatarWrapper {
    box-shadow: 0 6px 16px rgba(159, 16, 216, 0.4), 0 0 8px rgba(93, 17, 207, 0.3);
}

/* IMAGEM DO AVATAR */
body .clubPublic_storiesAvatarWrapper img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid #100025; /* Separação entre avatar e borda gradiente */
    display: block;
    background-color: #100025;
}

/* ESTADO DE VISUALIZADO (BORDA DIMINUÍDA) */
body .clubPublic_storiesCarouselItem.clubPublic_storiesCarouselItem--viewed .clubPublic_storiesAvatarWrapper {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

body .clubPublic_storiesCarouselItem.clubPublic_storiesCarouselItem--viewed:hover .clubPublic_storiesAvatarWrapper {
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

/* BADGE DE VÍDEO NO CANTO DO AVATAR */
body .clubPublic_storiesVideoBadge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffdc00, #9f10d8);
    border: 2px solid #100025;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* NOME DA ACOMPANHANTE */
body .clubPublic_storiesCompanionName {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #e2d9f3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.25s ease;
}

body .clubPublic_storiesCarouselItem:hover .clubPublic_storiesCompanionName {
    color: #ffffff;
}

body .clubPublic_storiesCarouselItem.clubPublic_storiesCarouselItem--viewed .clubPublic_storiesCompanionName {
    color: #8c82a2;
}

/* SETAS DE NAVEGAÇÃO DO CARROSSEL (DESKTOP) */
body .clubPublic_storiesArrow {
    position: absolute;
    top: 47px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body .clubPublic_storiesArrowLeft {
    left: -5px;
}

body .clubPublic_storiesArrowRight {
    right: -5px;
}

body .clubPublic_storiesCarouselContainer:hover .clubPublic_storiesArrow {
    opacity: 1;
    visibility: visible;
}

body .clubPublic_storiesArrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffdc00;
    transform: scale(1.1);
}

body .clubPublic_storiesArrow:active {
    transform: scale(0.95);
}

/* RESPONSIVIDADE MOBILE DO CARROSSEL */
@media (max-width: 768px) {
    body .clubPublic_storiesCarouselItem {
        flex: 0 0 68px;
    }
    body .clubPublic_storiesAvatarWrapper {
        width: 64px;
        height: 64px;
    }
    body .clubPublic_storiesArrow {
        display: none !important; /* Esconde setas em telas touch */
    }
}


/* ==========================================================================
   STORY VIEWER (OFF-CANVAS OVERLAY)
   ========================================================================== */

body .clubPublic_storiesOffCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(8, 0, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex !important; /* Sobrescreve o inline style="display: none" após o CSS carregar */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body .clubPublic_storiesOffCanvas.clubPublic_storiesOffCanvas--active {
    opacity: 1;
    visibility: visible;
}

/* CONTAINER DO SWIPER PRINCIPAL */
body .clubPublic_storiesMainSwiperContainer {
    width: 100%;
    height: 100%;
    max-width: 460px;
    max-height: 850px;
    margin: 0 auto;
    position: relative;
    background: #05000c;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

@media (min-width: 769px) {
    body .clubPublic_storiesMainSwiperContainer {
        border-radius: 16px;
        height: 92vh;
    }
}

/* SLIDE DO STORIES */
body .clubPublic_storiesItem {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
}

/* IMAGENS E VÍDEOS DE MÍDIA */
body .clubPublic_storiesImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body .clubPublic_storiesVideoWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

body .clubPublic_storiesVideoWrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CARREGADOR DO VÍDEO (SPINNER) */
body .clubPublic_storiesVideoLoader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffdc00;
    font-size: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 5;
}

body .clubPublic_storiesVideoWrapper.clubPublic_storiesVideoLoading .clubPublic_storiesVideoLoader {
    opacity: 1;
}

/* SWIPERS INTERNOS (GALERIAS DE FOTOS) */
body .clubPublic_storiesInternalSwiperContainer {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

body .clubPublic_storiesInternalSlide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* CABEÇALHO DO VISUALIZADOR (ESTILO INSTAGRAM) */
body .clubPublic_storiesHeader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 44px 16px 24px 16px; /* Acomoda a barra de progresso no topo */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 100;
    pointer-events: none; /* Evita que o fundo do gradiente bloqueie os toques no swiper */
}

body .clubPublic_storiesHeaderProfile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    pointer-events: auto; /* Permite que o link do perfil receba cliques normalmente */
}

body .clubPublic_storiesHeaderProfileAvatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 1px;
    overflow: hidden;
    background: #100025;
}

body .clubPublic_storiesHeaderProfileAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

body .clubPublic_storiesHeaderProfileInfo {
    display: flex;
    flex-direction: column;
}

body .clubPublic_storiesHeaderProfileName {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

body .clubPublic_storiesHeaderProfileCity {
    color: #ffdc00;
    font-size: 11px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

body .clubPublic_storiesHeaderProfileCity i {
    font-size: 9px;
    margin-right: 2px;
}

/* BOTOES DE NAVEGAÇÃO DO SWIPER PRINCIPAL (VERTICAL) */
body .clubPublic_storiesMainSwiperContainer .swiper-button-prev,
body .clubPublic_storiesMainSwiperContainer .swiper-button-next {
    display: none !important; /* Vamos usar navegação por toque e esconder as setas nativas */
}

/* BOTÃO DE FECHAR VIEWER */
body .clubPublic_storiesCloseIcon {
    position: absolute;
    top: 24px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
}

body .clubPublic_storiesCloseIcon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

/* BARRAS DE PROGRESSO NO TOPO DO VIEWER */
body .clubPublic_storiesProgressBarContainer {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    padding: 0 10px;
    display: flex;
    gap: 4px;
    z-index: 1000;
    pointer-events: none;
}

body .clubPublic_storiesProgressBarSegment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    overflow: hidden;
}

body .clubPublic_storiesProgressBarFill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 4px;
}

/* RODAPÉ E BOTÕES DE AÇÃO RÁPIDA */
body .clubPublic_storiesFooter {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 16px 20px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 0, 12, 0.95) 100%);
    z-index: 100;
    pointer-events: auto;
}

body .clubPublic_storiesActions {
    display: flex;
    gap: 12px;
    width: 100%;
}

body .clubPublic_storiesBtn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body .clubPublic_storiesBtn i {
    font-size: 16px;
}

/* Botão Ver Perfil (Estilo Glassmorphism Premium) */
body .clubPublic_storiesBtn--profile {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body .clubPublic_storiesBtn--profile:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Botão WhatsApp (Verde Vibrante com Gradiente) */
body .clubPublic_storiesBtn--whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
}

body .clubPublic_storiesBtn--whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

body .clubPublic_storiesBtn:active {
    transform: translateY(1px);
}

/* TOQUE LATERAL PARA NAVEGAÇÃO RÁPIDA */
body .clubPublic_storiesTouchArea {
    position: absolute;
    top: 70px;
    bottom: 90px;
    width: 25%;
    z-index: 120; /* Elevado para ficar sobre o swiper de imagens, garantindo cliques imediatos */
    cursor: pointer;
}

body .clubPublic_storiesTouchArea--left {
    left: 0;
}

body .clubPublic_storiesTouchArea--right {
    right: 0;
    width: 75%; /* Para que a maior parte da tela avance */
}

/* PAGINAÇÃO INTERNA OCULTA/SUTIL */
body .clubPublic_storiesInternalPagination {
    display: none !important; /* Ocultamos os bullets padrão porque usamos as barras no topo */
}

/* ANIMAÇÃO DO SPINNER SVG */
@keyframes clubPublic_storiesSpinnerRotate {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes clubPublic_storiesSpinnerDash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}
body .clubPublic_storiesSpinner {
    animation: clubPublic_storiesSpinnerRotate 2s linear infinite;
}
body .clubPublic_storiesSpinner circle {
    animation: clubPublic_storiesSpinnerDash 1.5s ease-in-out infinite;
}

/* SETAS DE NAVEGAÇÃO INTERNAS PARA IMAGENS HORIZONTAIS */
body .clubPublic_storiesInternalArrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    z-index: 130; /* Fica acima das touchareas */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

body .clubPublic_storiesInternalArrowLeft {
    left: 12px;
}

body .clubPublic_storiesInternalArrowRight {
    right: 12px;
}

body .clubPublic_storiesInternalArrow:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.1);
}

body .clubPublic_storiesInternalArrow:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
    body .clubPublic_storiesInternalArrow {
        width: 32px;
        height: 32px;
    }
    body .clubPublic_storiesInternalArrowLeft {
        left: 8px;
    }
    body .clubPublic_storiesInternalArrowRight {
        right: 8px;
    }
}