
/* Стили для диалога */
.video-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.video-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.video-dialog-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.video-dialog-content {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 900px;
  position: relative;
}

.video-dialog-header {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.video-close-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.video-wrapper {
  width: 100%;
  background: #000;
  position: relative;
}

.video-player-dialog {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  background: #000;
}

.video-player-dialog::-webkit-media-controls {
  display: flex !important;
}

/* Кастомные контролы */
.video-custom-controls {
  display: none;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 12px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-stop-btn {
  background: rgba(255, 0, 0, 0.3);
}

.video-stop-btn:hover {
  background: rgba(255, 0, 0, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
  .video-dialog-container {
    padding: 10px;
  }

  .video-dialog-content {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .video-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .video-player-dialog {
    width: 270px;
    height: 600px;
    max-height: 100%;
    object-fit: contain;
  }

  .video-custom-controls {
    display: flex;
    flex-shrink: 0;
  }

  .video-dialog-header {
    top: 5px;
    right: 5px;
  }

  .video-close-btn {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 320px) {
  .video-player-dialog {
    width: 100%;
    height: auto;
  }
}

/* Анимация появления */
@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-dialog-container {
  animation: dialogFadeIn 0.3s ease-out;
}
