/* =========================================================
   Stories CSS (extraído dos echo '<style>...</style>')
   Cole isso no seu arquivo .css
   ========================================================= */

/* Backdrop global (fica atrás do story, mas em cima do site) */
#storiesBackdrop{
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;           /* storyContainer usa 1000 */
  display: none;
}

/* Quando modal estiver aberto */
html.stories-modal-open,
body.stories-modal-open{
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  background: #000 !important;
}

/* Opcional: evita “piscar” em alguns navegadores */
.storyContainer{
  width: 100vw;
  height: 100vh;
}



/* Wrapper */
.mediaWrapper{
  position: relative;
}

/* Texto do story (overlay) */
.storyTextOverlay{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 90px; /* ajusta se quiser mais acima/abaixo */
  padding: 0 14px;
  z-index: 2000;
  pointer-events: none;
  text-align: center;
  margin-right: 200px;
}

.storyTextBox{
  display: inline-block;
  max-width: 100%;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 26px;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  overflow-wrap: anywhere;
}


/* Vídeo / object */
video,
object{
  min-height: 100%;
  min-width: 100%;
}

/* Timeline (primeiro bloco) */
.timelineBar{
  height: 4px;
  background: rgba(255,255,255,.25);
  flex-grow: 1;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.timelineBar .fill{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: red;
}
.timelineBar.active{
  background: white;
}

/* Lista de usuários (bolinhas) */
.userStoriesContainer{
  display: -webkit-box;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
  border-bottom: 1px solid #333030;
}
.userStoriesContainer:active{
  cursor: grabbing;
}

.userStory{
  text-align: center;
  cursor: pointer;
  width: 8%;
}

.userAvatar{
  margin-bottom: 10px;
  width: 60%;
  border: 3px solid white;
}
.userAvatar.is-seen{
  border: 3px solid yellow !important;
}

.userName{
  color: white;
  text-transform: capitalize;
  margin-bottom: 12px !important;
  font-size: 14px;
}

/* Container do story (full screen) */
.storyContainer{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  /* transição só entre usuários (containers) */
  transform: translateX(0);
  transition: transform .28s ease;
  will-change: transform;
}

/* Transições entre usuários */
.storyContainer.out-left{
  transform: translateX(-14%);
}
.storyContainer.out-right{
  transform: translateX(14%);
}
.storyContainer.in-from-right{
  transform: translateX(14%);
}
.storyContainer.in-from-left{
  transform: translateX(-14%);
}
.storyContainer.in-active{
  transform: translateX(0);
}

/* Vídeo wrapper */
.videoWrapper{
  position: initial;
  width: 100%;
  max-width: 400px;
  padding-topp: 56.25%; /* (typo original mantido) 16:9 Aspect Ratio */
}
.videoWrapper video{
  position: initial;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Header */
.storyHeader{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  color: white;
}

.storyAvatar{
  width: 40px;
  height: auto;
}

.storyUserName,
.lastUpdate{
  font-size: 16px;
  margin-left: 10px;
}

.closeStory{
  background: transparent!important;
  border: none!important;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Timeline (segundo bloco, mantido como estava) */
.timelineWrapper{
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  gap: 5px;
  padding: 0 10px;
  justify-content: center;
}

.timelineBar{
  height: 1px;
  background-color: gray;
  flex-grow: 1;
}

.active{
  background-color: pink;
  height: 4px;
}

/* Botões prev/next (estão hidden) */
.prevStory,
.nextStory{
  position: absolute;
  top: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  display: none;
}
.prevStory{
  left: 20px;
}
.nextStory{
  right: 20px;
}

imgg{
  width: 75%;
}

/* Controle de volume */
.volume-control{
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000; /* Ensure it is above all video elements */
}
.volume-control:hover{
  color: #ccc;
}

/* Scrollbar */
::-webkit-scrollbar{
  width: 12px;
  height: 12px;
}

/* Responsivo */
@media (max-width: 800px){
  .hide-mobile{
    height: auto !important;
  }
}

@media (min-width: 1px) and (max-width: 800px){
  .userStory{
    text-align: center;
    cursor: pointer;
    width: 20% !important;
  }
}
