/* Depoimentos em vídeo no estilo stories (item 9, Fase 3).
   SPEC_SITE_HOME_EMBAIXADORA.md, 4.1 H5, 4.3 A6 e 4.4 F1. */

/* ---------- cartões ---------- */
.stories-cartoes {
  display: flex; gap: 16px; margin-top: 40px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  scrollbar-width: none;
}
.stories-cartoes::-webkit-scrollbar { display: none; }
.story {
  /* Dois lado a lado no celular; com mais vídeos, a fila rola de lado. */
  position: relative; flex: 0 0 auto; width: min(240px, calc(50% - 8px)); aspect-ratio: 9 / 16;
  border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: #0d0d0c; color: #f6f0e4; scroll-snap-align: start;
  box-shadow: 0 18px 40px -26px rgba(0,0,0,.6);
  transition: transform .3s ease;
}
.story:hover { transform: translateY(-3px); }
.story:focus-visible { outline: 2px solid var(--accent-texto, #6E5518); outline-offset: 3px; }
.story__previa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(13,13,12,.82) 0%, rgba(13,13,12,0) 46%);
}
.story__play {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(13,13,12,.45); border: 1px solid rgba(246,240,228,.5); color: #f6f0e4;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.story__quem {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1;
  display: grid; gap: 2px; text-align: left; font-size: .8rem; color: rgba(246,240,228,.82);
}
.story__quem strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 400; color: #f6f0e4; }

/* ---------- tela cheia ---------- */
.stories {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; background: #0d0d0c; color: #f6f0e4;
}
.stories::backdrop { background: rgba(13,13,12,.92); }
.stories__palco {
  position: relative; height: 100%; margin: 0 auto;
  aspect-ratio: 9 / 16; max-width: 100%;
}
.stories__video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.stories__barras {
  position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); left: 12px; right: 64px; z-index: 3;
  display: flex; gap: 4px;
}
.stories__barra { flex: 1; height: 3px; border-radius: 2px; background: rgba(246,240,228,.3); overflow: hidden; }
.stories__barra i { display: block; height: 100%; width: 0; background: #f6f0e4; }
.stories__barra.feita i { width: 100%; }
.stories__quem {
  position: absolute; top: calc(max(12px, env(safe-area-inset-top, 0px)) + 14px); left: 14px; z-index: 3;
  margin: 0; font-size: .9rem; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.stories__erro {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  margin: 0; background: #1b1a17; font-size: 1rem; color: rgba(246,240,228,.85);
}
.stories__erro[hidden] { display: none; }
.stories__zona {
  position: absolute; top: 64px; bottom: 0; z-index: 2;
  border: 0; padding: 0; background: transparent; cursor: pointer;
}
.stories__zona--ant { left: 0; width: 30%; }
.stories__zona--pausa { left: 30%; width: 40%; }
.stories__zona--prox { right: 0; width: 30%; }
.stories__zona:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.stories__fechar {
  position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); right: 8px; z-index: 4;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(13,13,12,.4); color: #f6f0e4; cursor: pointer;
}
.stories__fechar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .story { transition: none; }
  .story:hover { transform: none; }
}
