/* assets/css/pfv-style.css */

/* Заголовок блоку */
.pfv-block-title {
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  text-align: center;
}

.pfv-slider-wrapper {
  max-width: 1200px;
  margin: 0 auto 2rem;
  position: relative;
}

/* Сам Swiper-контейнер */
.swiper-container.pfv-casino-videos {
  width: 100%;
  overflow: hidden; 
  padding-bottom: 2rem;
  box-sizing: content-box;
}

/* Вирівнювання висоти всіх слайдів */
.swiper-wrapper {
  display: flex;
  align-items: stretch !important;
}

/* Окрема слайд-картка */
.swiper-slide.pfv-video-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  height: auto;
  cursor: pointer;
  background: #f1f3f4;
}
.swiper-slide.pfv-video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Прев'ю-зображення із фіксованим співвідношенням */
.pfv-video-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  flex-shrink: 0;
  max-width: 374px;
}

/* Заголовок всередині картки */
.pfv-video-item h3 {
  flex-grow: 1;
  margin: 0;
  padding: 0 12px 0 12px;
  font-size: 1rem;
  line-height: 1.3;
  color: #222;
}

/* Стрілки Swiper — ВИПРАВЛЕНО для симетричного розташування */
.swiper-button-prev,
.swiper-button-next {
  /* Скидаємо всі стандартні стилі Swiper */
  width: 40px !important;
  height: 40px !important;
  margin-top: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  
  /* Позиціонування */
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  
  /* Центрування вмісту */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Перехід */
  transition: all 0.2s ease !important;
}

.swiper-button-prev {
  left: 10px !important; /* Відступ від лівого краю */
}

.swiper-button-next {
  right: 10px !important; /* Відступ від правого краю */
}

/* Ховер ефекти */
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Стилі для іконок стрілок */
.swiper-button-prev:after,
.swiper-button-next:after {
  font-family: swiper-icons !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #7f8c8d !important;
  line-height: 1 !important;
}

/* Стан вимкнених стрілок */
.swiper-button-disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

.swiper-button-disabled:hover {
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

/* Responsive поведінка для мобільних пристроїв */
@media (max-width: 768px) {
  .pfv-slider-wrapper {
    padding: 0 50px;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 35px !important;
    height: 35px !important;
  }
  
  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .pfv-slider-wrapper {
    padding: 0 45px;
  }
  
  .swiper-button-prev {
    left: 5px !important;
  }
  
  .swiper-button-next {
    right: 5px !important;
  }
}

/* --- МОДАЛЬНЕ ВІКНО --- */
.pfv-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.pfv-modal[aria-hidden="false"] {
  display: flex;
}
.pfv-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  cursor: pointer;
}
.pfv-modal__content {
  position: relative;
  background: #fff;
  border-radius: .5rem;
  width: 90%;
  max-width: 900px;
  padding: 1rem 1.5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.pfv-modal__close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
}
.pfv-modal__title {
  margin: 0 0 .75rem;
  padding-right: 2rem;
  font-size: 1.25rem;
  line-height: 1.3;
}
.pfv-modal__video {
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: .5rem;
  position: relative;
  overflow: hidden;
}
.pfv-modal__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.pfv-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 55px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55C3.97,2.33,2.27,4.81,1.48,7.74,0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="%23f00"></path><path d="M 45,24 27,14 27,34" fill="%23fff"></path></svg>') center / contain no-repeat;
  border: none;
  cursor: pointer;
  transition: transform .2s;
  background-color: transparent;
}
.pfv-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.pfv-modal__video iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.pfv-modal__buttons {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.pfv-btn {
  padding: .6rem 1.2rem;
  font-size: .9rem;
  font-weight: 500;
  border-radius: .3rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.pfv-modal__buttons .pfv-btn {
  color: #fff !important;
}
.pfv-btn--review {
  background: #6c757d;
}
.pfv-btn--review:hover {
  background: #5a6268;
}
.pfv-btn--casino {
  background: #dc3545;
}
.pfv-btn--casino:hover {
  background: #c82333;
}