.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

:root {
  --pm-img-center-y: 35%;
}

/* ===============================
     MODO STORIES: MOBILE FULLSCREEN
     - no mobile: overlay cobre tudo
     - no desktop: fica contido no main (card)
     =============================== */
.pmStoriesOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer; /* cursor hand */
}

/* Loading dots */
.pm-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  display: inline-block;
  animation: pmDot 1s infinite ease-in-out;
}

.pm-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.pm-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pmDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* no desktop vira "player" contido */
@media (min-width: 1024px) {
  .pmStoriesOverlay {
    position: relative;
    inset: auto;
    z-index: auto;
    height: min(78vh, 760px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    margin-top: 0;
  }
}

/* Ken Burns
* não altere, pois é necessário para o efeito de zoom suave
*/
.story-image {
  transition: transform 10s linear;
  transform: scale(1);
}

.active .story-image {
  will-change: transform;
  transform: scale(1.2);
}

/* Overlay temático (leve) */
.theme-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;

  /* sempre estático e leve */
  opacity: 0.55;
  transition: none;
  transform: none;

  /* remove coisas caras no mobile */
  mix-blend-mode: normal;
  filter: none;
}

.active .theme-overlay {
  opacity: 0.55; /* não precisa mudar no active */
}

/* brilho neutro base (bem leve) */
.theme-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  opacity: 0.95;
  pointer-events: none;
}

.story-overlay {
  background: linear-gradient(to top, black 0%, black 35%, transparent 70%);
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* mobile: sem blur (muito mais leve) */
@media (max-width: 1023px) {
  .glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.12);
  }
}

.pm-stories-exit {
  position: absolute; /* funciona no overlay fixed e no desktop relative */
  top: 14px;
  right: 14px;
  z-index: 10050;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: #000;
  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.9);

  /* “brilho preto” / glow+sombra */
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.85),
    0 8px 22px rgba(0, 0, 0, 0.55);

  display: grid;
  place-items: center;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pm-stories-exit:active {
  transform: scale(0.96);
}
