/* === Контейнер всего виджета === */
.floating-video-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  /* Очень высокий z-index */
  z-index: 99999999999 !important;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* === Миниатюрное видео (125×222) === */
.video-thumbnail {
  width: 125px;
  height: 222px;
  overflow: visible;
  border-radius: 8px; /* Можете менять на 12px, если нужно сильнее закруглить */
  cursor: pointer;
  position: relative;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
}

/* Легкое увеличение при наведении на свернутое видео */
.video-thumbnail:hover {
  transform: scale(1.05);
}

/* Само мини-видео */
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* === Кнопка (крестик) в мини-видео === */
.thumb-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 20px; /* Меньше базовый размер */
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #8B6F62; /* Цвет кнопки */
  color: #fff;
  font-size: 14px;      /* Чуть уменьшен */
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0; /* Скрыта по умолчанию */
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* При наведении на мини-видео — показываем кнопку, 
   но НЕ сильно увеличиваем */
.video-thumbnail:hover .thumb-close-btn {
  opacity: 1;
  transform: scale(1.0); /* Можно поставить 1.1 или 1.05, если нужно чуть увеличить */
}

/* === Развёрнутое видео (315×560) === */
.video-modal {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 315px;
  height: 560px;
  border-radius: 12px;
  /* Тоже огромный z-index */
  z-index: 99999999999 !important;
}

/* Само большое видео */
.video-full {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Скрываем стандартные элементы управления */
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* === Кнопка сворачивания (минус) === */
.video-minimize-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #8B6F62;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-minimize-btn:hover {
  transform: scale(1.1);
}
