/* =============================================
   VIDEO STORIES — Seção de Vídeos Verticais
   v3.4 - 5 vídeos visíveis + slider
   ============================================= */

.video-stories-section {
  background-color: #ffffff;
  padding: 48px 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Cabeçalho */
.video-stories-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 20px;
}

.video-stories-titulo {
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

/* Wrapper externo — setas ficam fora do grupo de vídeos */
.vs-slider-outer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 70px;
  box-sizing: border-box;
}

/* =============================================
   GRID — regras originais com !important
   ============================================= */
.video-stories-grid {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  max-width: 1600px;
  gap: 0 !important;
}

/* Card base */
.video-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}

/* Label */
.video-story-label {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 10px;
  text-align: center;
}

/* Wrapper proporção 9:16 */
.video-story-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%;
  height: 0;
  overflow: hidden;
  background: #000;
  border: 5px solid #fff;
  box-sizing: border-box;
}

.video-story-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   LATERAIS INTERNAS (2º e 4º vídeo)
   ============================================= */
.video-story-side {
  width: 18% !important;
  z-index: 2;
  opacity: 0.78;
}

.video-story-side.vs-left {
  margin-right: -20px;
  transform: scale(0.88);
  transform-origin: right center;
}

.video-story-side.vs-right {
  margin-left: -20px;
  transform: scale(0.88);
  transform-origin: left center;
}

.video-story-side .video-story-wrapper {
  border-radius: 14px;
}

/* =============================================
   EXTREMOS (1º e 5º vídeo — menores)
   ============================================= */
.video-story-side.vs-far-left {
  width: 12% !important;
  z-index: 1;
  opacity: 0.45;
  margin-right: -16px;
  transform: scale(0.75);
  transform-origin: right center;
}

.video-story-side.vs-far-right {
  width: 12% !important;
  z-index: 1;
  opacity: 0.45;
  margin-left: -16px;
  transform: scale(0.75);
  transform-origin: left center;
}

.video-story-side.vs-far-left .video-story-wrapper,
.video-story-side.vs-far-right .video-story-wrapper {
  border-radius: 10px;
}

/* =============================================
   CENTRO (maior, destaque)
   ============================================= */
.video-story-center {
  width: 26% !important;
  z-index: 3;
  opacity: 1;
}

.video-story-center .video-story-wrapper {
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.40);
}

/* =============================================
   SETAS — fora do grupo, sempre visíveis
   ============================================= */
.vs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.vs-arrow:hover {
  background: #111;
  color: #fff;
}

.vs-arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}

.vs-arrow-prev { left: 4px; }
.vs-arrow-next { right: 4px; }

/* =============================================
   DOTS
   ============================================= */
.vs-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.vs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  display: inline-block;
}

.vs-dot-active {
  background: #111;
  transform: scale(1.3);
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1024px) {
  .video-story-side { width: 20% !important; }
  .video-story-side.vs-far-left,
  .video-story-side.vs-far-right { width: 13% !important; }
  .video-story-center { width: 28% !important; }
}

@media (max-width: 768px) {
  /* Em tablet/mobile: mostra 3 (oculta os extremos) */
  .video-story-side.vs-far-left,
  .video-story-side.vs-far-right {
    display: none !important;
  }
  .video-story-side { width: 26% !important; }
  .video-story-center { width: 34% !important; }
  .vs-slider-outer { padding: 0 50px; }
}

@media (max-width: 600px) {
  .video-stories-section {
    padding: 32px 16px;
  }
  .video-stories-titulo {
    font-size: 22px;
  }
  .vs-slider-outer {
    padding: 0 44px;
  }
  .video-stories-grid {
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
  }
  .video-story-side,
  .video-story-center,
  .video-story-side.vs-far-left,
  .video-story-side.vs-far-right {
    display: flex !important;
    width: 85vw !important;
    transform: scale(1) !important;
    transform-origin: center !important;
    margin: 0 !important;
    opacity: 1 !important;
  }
  .video-story-center .video-story-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
}
