/* Модальное окно для видео */

/* Курсор для кликабельных видео */
.review-box-img,
.review-card-image {
  cursor: pointer;
  position: relative;
}

.review-box-img:hover .icon-play,
.review-card-image:hover .play-button {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1;
}

.video-modal.show .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 12px;
  cursor: pointer;
  color: #ffffff;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.video-modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Заголовок видео */
.video-modal-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #ffffff;
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  font-weight: 500;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal-content:hover .video-modal-title {
  opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    max-width: none;
    border-radius: 12px;
  }
  
  .video-modal-close {
    top: -45px;
    width: 36px;
    height: 36px;
    padding: 10px;
  }
  
  .video-modal-close svg {
    width: 20px;
    height: 20px;
  }
  
  .video-modal-title {
    font-size: 14px;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    width: 98%;
    border-radius: 8px;
  }
  
  .video-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .video-modal-title {
    font-size: 13px;
    padding: 12px 16px;
  }
}

/* Анимации */
@keyframes videoModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes videoModalScaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.video-modal.show {
  animation: videoModalFadeIn 0.3s ease;
}

.video-modal.show .video-modal-content {
  animation: videoModalScaleIn 0.3s ease;
}

