/* Стили виджета видео и его окна (modules/video/widgets/views/videomag.php).
   До ТЗ 4 (23.10.2026) стояли блоком <style> прямо в HTML страницы; текст перенесён без
   изменений. Теперь это файл: браузер скачивает его один раз и берёт из кэша.
   Подключается там же, где был блок: CustomView::registerCssFileInPlace — в той же очереди <head>,
   поэтому порядок правил на странице не изменился. Исходник — widget-video.less (CSS = LESS). */
/* Стили для кастомного модального окна */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  overflow: hidden;
  outline: 0;
}
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}
.custom-modal-dialog {
  position: relative;
  width: 80%;
  height: 90%;
  margin: auto;
  z-index: 1050;
  top: 50%;
  transform: translateY(-50%);
}
.custom-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #fff;
  background-clip: padding-box;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  outline: 0;
}
.custom-modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 15px;
  border: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
}
.custom-modal-close {
  color: #fff;
  opacity: 0.8;
  font-size: 30px;
  font-weight: 300;
  text-shadow: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  background: #235C33;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.custom-modal-close:hover {
  opacity: 1;
  background: #ffe500;
  transform: scale(1.1);
}
.custom-modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 0;
  height: 100%;
}
.video-container {
  height: 100%;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Остальные стили остаются без изменений */
.videocaptionz,
.videocaptionzz {
  width: 320px;
  border-radius: 15px 15px 15px 15px;
  position: relative;
}
.videocaptionzz::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-image: url(/image/video/play.png);
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}
.titlevideoz {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 20px;
  text-align: center;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 18px;
  line-height: 16px;
}
/* Серая надпись под заголовком видео (Figma 1:525). Показывается только когда
   виджет вызван с showDescription=true и поле description заполнено. */
.description-videoz {
  margin: 8px 20px 0;
  text-align: center;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(29, 29, 29, 0.6);
}
.slick-arrow {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 30%;
  height: auto !important;
  cursor: pointer;
  transition: all 0.3s ease;
}
/* Задача 5 ТЗ: правая стрелка не должна наезжать на изображение, отступ как у левой */
.slick-arrow.arr-left {
  width: 70px;
  top: 50%;
  right: 95%;
}
.slick-arrow.arr-right {
  width: 70px;
  top: 50%;
  left: 95%;
  transform: translate(50%, -50%);
}
.slick-arrow.arr-left:hover {
  transform: translate(-50%, -50%) scale(1.2);
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}
/* Задача 5 ТЗ: hover для правой стрелки — симметрично левой */
.slick-arrow.arr-right:hover {
  transform: translate(50%, -50%) scale(1.2);
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}
.slick-arrow:hover img {
  opacity: 0.9;
}
.slick-slide .item-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.slick-slide .item {
  flex: 1;
}
.video-thumbnail {
  border-radius: 15px 15px 0px 0px;
  max-width: 100%;
  height: auto;
  width: 320px;
  margin: 0 auto;
}
.cenron {
  height: 270px;
  margin-top: 25px;
  margin-bottom: 25px;
  border-radius: 15px;
  box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.1);
}
.cenron.hovered {
  border-radius: 15px 15px 15px 15px;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}
.titlevideoz.visible {
  color: #235C33;
}
/* Center content inside slides */
.slick-slide {
  display: flex !important;
  justify-content: center;
  align-items: center;
}
/* Optional: if you want to center the entire slider */
.slick-slider {
  margin: 0 auto;
}
/* If you need to center the slides themselves in the container */
.slick-list {
  /* overflow: visible; */
}
/* Center the slide content horizontally */
.slick-slide > div {
  margin: 0 auto;
  /* width: 100%; */
  text-align: center;
}
@media (max-width: 600px) {
  .custom-modal-dialog {
    width: 95%;
    height: 30%;
  }
  .slick-slide > div {
    height: auto;
  }
  #w9,
  #w10,
  #w2,
  #w3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scrollbar-width: thin;
    scrollbar-color: #235C33 #e6e6e6;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
  }
}
