 html, body {
    overflow-x: hidden !important;  /* 💀 УБИТЬ горизонтальный скролл */
     overflow-y: scroll; /* даже если контента мало */
}
 body {
   
    margin-top: 10px!important;
    background: #111;
    color: white; margin: 0;
}

body.modal-open {
  padding-right: 0 !important;
}


/* <!-- Модальное окно для удаления видео --> */
#deleteVideoModal {
  z-index: 99999 !important; /* сама модалка */
}

#deleteVideoModal .modal-backdrop {
  z-index: 99998 !important; /* подложка ниже */
}

.delete-video-modal {
  width: 350px !important;
  height: 150px !important;
  background: #111;
  color: #fff;
  border-radius: 12px;
  border: 2px solid #f00;
  display: flex;
  flex-direction: column;
}

.delete-video-title {
  font-size: 14px;
  color: #fff;
}

.delete-video-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}

.delete-video-cancel,
.delete-video-confirm {
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.delete-video-cancel {
  background: #444;
  color: #fff;
}

.delete-video-cancel:hover {
  background: #666;
}

.delete-video-confirm {
  background: #d00;
  color: #fff;
}

.delete-video-confirm:hover {
  background: #f33;
}


/* <!-- Модальное окно для удаления комментария --> */
/* сама модалка */
#deleteCommentModal {
  z-index: 99999 !important;
}


/* стили для контента */
.delete-comment-modal {
  width: 300px !important;
  height: 150px !important;
  background: #111;
  color: #fff;
  border-radius: 12px;
  border: 2px solid #f00;
  display: flex;
  flex-direction: column;
  margin-left: 15px!important;
}


.delete-comment-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}

.delete-comment-cancel,
.delete-comment-confirm {
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.delete-comment-cancel {
  background: #444;
  color: #fff;
}

.delete-comment-cancel:hover {
  background: #666;
}

.delete-comment-confirm {
  background: #d00;
  color: #fff;
}

.delete-comment-confirm:hover {
  background: #f33;
}





.stars-wrapper {
  position: relative;
  display: inline-block;
  padding: 22px 44px 32px 44px;
  left: 50%;
  top:-20px!important;
  margin-bottom:-35px!important;
  transform: translateX(-50%);
}

.stars-title {
    
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  /* Более насыщенный золотой градиент! */
  background: linear-gradient(92deg,
    #fffad1 5%,   /* Яркое золото */
    #ffe85d 18%,  /* Жёлтое золото */
    #ffd700 45%,  /* Классическое золото */
    #ffae00 75%,  /* Глубокое золото */
    #fffbe7 100%  /* Глянец */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 22px #fff7a7b8,   /* Жёлтое свечение */
    0 1px 1px #ffe53f,      /* Мягкая золотая тень */
    0 0px 15px #ffd70099;   /* Эффект сияния */
  /* Яркое, заметное мерцание */
  animation: gold-glow 1.5s cubic-bezier(.4,0,.6,1) infinite alternate;
  position: relative;
  z-index: 1;
}

.stars-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(115deg, transparent 66%, #fff9c8cc 81%, transparent 97%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  z-index: 2;
  animation: gloss-move 2.4s linear infinite;
}

@keyframes gold-glow {
  0%   { filter: brightness(1.10) drop-shadow(0 0 14px #fffecb); }
  35%  { filter: brightness(1.3) drop-shadow(0 0 33px #fff7b4cc); }
  60%  { filter: brightness(1.13) drop-shadow(0 0 17px #ffe55e); }
  85%  { filter: brightness(1.55) drop-shadow(0 0 44px #ffdf4db6); }
  100% { filter: brightness(1.08) drop-shadow(0 0 9px #ffd700c7); }
}
@keyframes gloss-move {
  0%   { background-position: -120% 0; }
  100% { background-position: 120% 0; }
}

/* Пар золотых звёзд */
.stars-steam {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 130%;
  height: 95px;
  pointer-events: none;
  z-index: 10;
}

.steam-star {
  position: absolute;
  left: 50%;
  bottom: 0;
  font-size: 1.12em;
  opacity: 0;
  color: #fffad1;
  filter:
    drop-shadow(0 0 4px #fff8)
    drop-shadow(0 0 11px #ffe55e88)
    drop-shadow(0 0 6px #ffd700aa);
  pointer-events: none;
  animation: steam-rise 2.2s linear forwards;
  will-change: transform, opacity;
}

@keyframes steam-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.80) rotate(-9deg);
  }
  9% {
    opacity: 1;
  }
  38% {
    opacity: 1;
    transform: translate(-50%, -36px) scale(1.16) rotate(8deg);
  }
  80% {
    opacity: 0.98;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100px) scale(1.02) rotate(19deg);
  }
}


#video-grid .row {
  margin-left: -5px!important;
  margin-right: -5px!important;
}

#video-grid .col-6,
#video-grid .col-md-4,
#video-grid .col-lg-3 {
  padding-left: 0!important;
  padding-right: 0!important;
}

@media (max-width: 576px) {
  #overlay {
    width: 100vw!important;
    height: 100vh!important;
    top: 0!important;
    left: 0!important;
    transform: none!important;
    border-radius: 0!important;
  }

  /* имя и автар на карточках */
  .card-avatar {
    
    width: 20px !important;
    height: 20px !important;
    border:none!important;
  }

  .card-username {
    font-size: 0.5rem !important;
    margin-top:2px!important;
  }

  .card-description {
  font-size: 0.5rem !important;
  color: #ccc !important;
  white-space: wrap !important;         /* 👈 одна строка */
  overflow: hidden !important;            /* 👈 скрываем лишнее */
  text-overflow: ellipsis !important;     /* 👈 добавляем ... */
  max-width: 100% !important;             /* 👈 безопасно */
  
  color: #ccc !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2; /* 👈 сколько строк оставить */
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}


 /* Размер и место видео */
 .swiper-slide {
  position: relative !important; /* ⬅ обязательно */
  height: 100vh!important;
}

.video-wrapper {
  position: relative !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
 bottom: 10px!important;
  
}
.video-wrapper video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  background: #000 !important;
  
}

/* реальная высота экрана, чтобы не плавал 100vh */
:root { --vh: 1vh; }
#overlay, #overlay .swiper, #overlay .swiper-wrapper { height: calc(var(--vh) * 100) !important; }
#overlay .swiper-slide{
  height: calc(var(--vh) * 100 + 2px) !important;
  margin-top: -1px !important;
  margin-bottom: -1px !important;
  background:#000 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
.video-wrapper{ width:100vw !important; height:calc(var(--vh)*100) !important; background:#000 !important; overflow:hidden !important; }
.video-wrapper video{ width:100% !important; height:100% !important; object-fit:cover !important; object-position:center top !important; }

/* Андроид: используем 100dvh (если есть) и чутка «поджимаем» видео без щели */
.is-android #overlay,
.is-android #overlay .swiper,
.is-android #overlay .swiper-wrapper,
.is-android #overlay .swiper-slide,
.is-android .video-wrapper {
  height: 100dvh !important;
}

@supports not (height: 100dvh) {
  /* фоллбек — визуальный вьюпорт через var(--vh) ниже в JS */
  .is-android #overlay,
  .is-android #overlay .swiper,
  .is-android #overlay .swiper-wrapper,
  .is-android #overlay .swiper-slide,
  .is-android .video-wrapper {
    height: calc(var(--vh, 1vh) * 100) !important;
  }
}

/* убираем твой bottom-хак только на Android */
.is-android .video-wrapper {
  bottom: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

/* видео на весь контейнер, но чуть масштабируем, чтобы низ не уезжал */
.is-android .video-wrapper video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;     /* верх фиксируем красиво */
  transform: translateY(var(--android-shift, 0px)) scale(var(--android-scale, 0.96)) !important;
  transform-origin: center center !important;
  display: block !important;
  background: #000 !important;
}

/* перекрываем возможный «шов» из-за округлений */

/* Убираем шов между слайдами на Android */
.is-android #overlay .swiper-slide {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background: #000 !important;
}




/* Пользунок */


/* Базовая геометрия */
.slider-wrapper {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 8px 12px 10px !important; /* базовый отступ */
  pointer-events: none;               /* если надо: кликабельность только у дочерних */
}
.slider-wrapper .video-slider {
  pointer-events: auto;
  margin: 0 !important;              /* больше не используем margin на слайдере */
}


/* iOS Приложение высота ползунка */
html.ios-browser .slider-wrapper {
  padding-bottom: 0 !important;
}

/* ANDROID Приложение высота ползунка */
html.android-browser .slider-wrapper {
  padding-bottom: 48px !important;
}

/* Дефолт — Android приложение */
.video-slider {
  appearance: none !important;
  width: 100% !important;
  height: 3px !important;
  background: #444;
  border-radius: 5px;
  outline: none !important;
  z-index: 10001 !important;
  transition: height 0.2s ease;
  margin-bottom: -50px !important; /* по дефолту для Android */
}

/* iOS ПРИЛОЖЕНИЕ (WebView/PWA) */
/* iOS WebView/PWA — используем вычисленный safe-bottom */
/* iOS приложение */
body.ios .video-slider {
  bottom: 2px !important; /* на iOS чуть выше */
}



.video-slider:active {
  height: 6px !important; /* увеличиваем линию */
}

/* WebKit (Chrome, Safari) */
.video-slider::-webkit-slider-thumb {
  appearance: none;
  width: 4px !important;
  height: 4px !important;
  background: #00ffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px #00ffff;
  z-index: 10000 !important;
  transition: all 0.2s ease; /* анимация */
   /* 🔑 увеличиваем реальную зону клика */
  border: 8px solid transparent!important; 

}

.video-slider:active::-webkit-slider-thumb {
  width: 14px !important;
  height: 14px !important;
}

/* Firefox */
.video-slider::-moz-range-thumb {
  width: 4px !important;
  height: 4px !important;
  background: #00ffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px #00ffff;
  z-index: 10000 !important;
  transition: all 0.2s ease;
   /* 🔑 увеличиваем реальную зону клика */
  border: 8px solid transparent!important; 
   
}

.video-slider:active::-moz-range-thumb {
  width: 10px !important;
  height: 10px !important;
}

/* Время над ползунком */
.slider-container {
  margin-bottom: 50px !important;
  position: relative;
  width: 100%;
}

.slider-tooltip {
  position: absolute!important;
  bottom: 100px!important; /* над ползунком */
  left: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #00ffff;
  padding: 2px 6px!important;
  font-size: 16px!important;
  border-radius: 4px!important;
  white-space: nowrap;
  display: none;
  pointer-events: none;
  z-index: 9999;
}





/* Имя пользователя на Stars */

.top-left-user {
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  font-size: 0.7rem !important;
}

/* iOS */
@supports (-webkit-touch-callout: none) {
  .top-left-user img {
    margin-top: -2px !important;
  }
}

/* Android — fallback */
@supports not (-webkit-touch-callout: none) {
  .top-left-user img {
    margin-top: 25px !important;
  }
}


/* Дата */
.upload-date {
  font-size: 8px!important;
  color: #ccc;
  opacity: 0.8;
  margin-top: 2px;
  display: inline-block;
}

}




    
    #overlay {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 90vh;
  background: #000;
  z-index: 9999;
  border-radius: 16px;
  overflow: hidden;
  
}

.card {
  background-color: #000;
}

.card video { width: 100%; max-height: 200px; object-fit: cover; }


/* имя и автар на карточках */
.card-body img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #fff;
}

.card-body .username {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #fff;
}

.card-body .description {
  font-size: 0.85rem;
  color: #ccc;
  margin: 0;
}

 /* Размер и место видео */
.swiper-slide {
  position: relative ; /* ⬅ обязательно */
  height: 100vh;
  width: 100% ;
}


 .video-wrapper {
  position: relative ;
  display: flex ;
  justify-content: center ;
  align-items: center ;
  height: 100vh ;
  width: 100% ;
  overflow: hidden ; /* ✅ важно добавить */
  bottom: 60px;
}

.video-wrapper video {
  height: 100vh ;
  width: 100% ;
  object-fit: cover ; /* ✅ вот так */
  
}


/* Пользунок */

/* Пользунок */

.video-slider {
  appearance: none !important;
  width: 100% ;
  height: 3px;
  background: #444;
  border-radius: 5px;
  outline: none !important;
  margin-top: 240px ;
  z-index: 10001 !important;
  transition: height 0.2s ease; /* анимация */
}

.video-slider:active {
  height: 6px; /* увеличиваем линию */
}

/* WebKit (Chrome, Safari) */
.video-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px ;
  height: 12px ;
  background: #00ffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px #00ffff;
  z-index: 10000 !important;
  transition: all 0.2s ease; /* анимация */
  
}

.video-slider:active::-webkit-slider-thumb {
  width: 18px ;
  height: 18px;
}

/* Firefox */
.video-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: #00ffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px #00ffff;
  z-index: 10000 !important;
  transition: all 0.2s ease;
  /* 🔑 увеличиваем реальную зону клика */
  border: 12px solid transparent; 
   box-shadow: 0 0 0 60px rgba(0,0,0,0);
}

.video-slider:active::-moz-range-thumb {
  width: 18px ;
  height: 18px;
}

/* Время над ползунком */
.slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 50px;
}

.slider-tooltip {
  position: absolute!important;
  bottom: 60px; /* над ползунком */
  left: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #00ffff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px!important;
  white-space: nowrap;
  display: none;
  pointer-events: none;
  z-index: 9999;
}


/* Описание */

.bottom-description {
  position: absolute ;
  bottom: 70px ; 
  left: 50% ;
  transform: translateX(-50%) ;
  z-index: 50 ;
  background: rgba(0,0,0,0.2) ;
  padding: 6px 12px ;
  border-radius: 8px ;
  color: white ;
  font-size: 16px ;
  font-weight: bold ;
   width: max-content;  
  max-width: 90% ;
  text-align: center ;
  pointer-events: none ;
   word-wrap: break-word;    /* 👈 перенос слов если слишком длинно */
  white-space: normal;      /* 👈 перенос разрешён */
}


.top-left-user,
.top-right-desc,

.bottom-comments {
  position: absolute;
  z-index: 10;
  color: white;
}

.top-left-user {
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
}

.top-left-user img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Дата */
.upload-date {
  font-size: 12px;
  color: #ccc;
  opacity: 0.8;
  margin-top: 2px;
  display: inline-block;
}




.top-right-desc {
  top: 10px;
  right: 10px;
  max-width: 40%;
  text-align: right;
  font-size: 0.9rem;
}

.side-buttons {
  display: flex!important;
  flex-direction: column;
  align-items: center !important;
  position: absolute!important;
  top: 55%;
  right: 10px;
  transform: translateY(-50%);
  gap: 7px;
}

.side-buttons button {
  background: none;
  border: none;
  outline: none;
  color: white;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 20px;
  font-size: 28px;
}
@media (max-width: 576px) {
  .side-buttons {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    position: absolute !important;
    top: 450px !important;
    transform: translateY(-50%);
    gap: 7px;
  }

  /* Android / desktop */
  body:not(.ios) .side-buttons {
    right: 5 !important;
    
  }

  /* iOS fix */
  body.ios .side-buttons {
    right: -10px !important;
  }
}


.side-buttons .count {
  font-size: 12px;
  margin-top: 2px;
  color: white;
}
/* 🎯 Обновлённый селектор — НЕ применять к лайкам и дизлайкам */
.side-buttons button:not(.like-btn):not(.dislike-btn),
.side-buttons span {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: bold;
  color: black;
}

.bottom-comments {
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}


    .object-fit-cover {
  object-fit: cover;
}

.ratio.ratio-1x1 {
  background-color: black;
}

/* Список тех кто просмотрел */
#viewersModal {
  z-index: 10000 !important; /* выше overlay */
}


    #close-overlay {
  border-radius: 50%;
  padding: 8px 12px;
  font-size: 20px;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  border: none;
}

.pause-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none!important;
  z-index: 10;
  opacity: 0; /* 🔴 по умолчанию скрыта */
  transition: opacity 0.2s ease;
}

.pause-icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.pause-icon.show {
  opacity: 1;
}


/* Кнопки лайк и дислайк  */

.like-btn.active,
.dislike-btn.active {
  font-weight: normal ; 
  font-size: 28px ;     

  font-size: 30px !important;
  align-items: flex-end; 
  min-width: 40px;
}
.like-btn {

  font-size: 38px;         /* 🔸 до нажатия — ✩ */
  transition: transform 0.2s ease, font-size 0.2s ease;
  background: none;      /* 🔥 нет фона */
  border: none;                 /* 🔥 убираем границу */
  outline: none;                /* 🔥 убираем обводку */
  color: white;
  font-weight: normal; /* тонкий */
  padding: 4px;
  display: flex;
  flex-direction: column;   /* 👈 размещаем по вертикали */
  align-items: center;      /* 👈 по центру */
  justify-content: center;
  font-size: 30px !important;
  align-items: flex-end; 
  min-width: 40px;
 
}


.dislike-btn {
  font-size: 25px !important;         /* 🤍 до нажатия */
  transition: transform 0.2s ease, font-size 0.2s ease;
  background: none;      /* 🔥 нет фона */
  border: none;                 /* 🔥 убираем границу */
  outline: none;                /* 🔥 убираем обводку */
  color: white;
  font-weight: normal!important; /* тонкий */
  display: flex;
  flex-direction: column;   /* 👈 размещаем по вертикали */
 
}

.count {
  font-size: 12px ; /* 👈 меняй размер */
 
  font-weight: normal!important;
  color: white!important;
  background: none!important;      /* 🔥 нет фона */
  border: none!important;                 /* 🔥 убираем границу */
  outline: none!important;                /* 🔥 убираем обводку */
}
.like-btn .icon,
.dislike-btn .icon {
  pointer-events: none; /* 🔒 отключаем клики по иконке */
  color: white;
  margin-left: auto;
  background: none;      /* 🔥 нет фона */
  border: none;                 /* 🔥 убираем границу */
  outline: none;                /* 🔥 убираем обводку */
  font-weight: normal!important;
}

.like-btn .count,
.dislike-btn .count {
  pointer-events: auto!important; /* ✅ разрешаем клики по числу */
  cursor: pointer!important;
}

.star-explosion {
      position: fixed;
      width: 20px;
      height: 20px;
      background: radial-gradient(circle, gold, orange, gold);
      clip-path: polygon(
          50% 0%, 61% 35%, 98% 35%, 
          68% 57%, 79% 91%, 50% 70%, 
          21% 91%, 32% 57%, 2% 35%, 
          39% 35%
      );
      opacity: 1;
      filter: drop-shadow(0 0 10px gold);
      pointer-events: none;
      animation: explode 6s ease-in-out forwards, sparkle 0.5s infinite alternate;
      z-index: 999999;
  }
  
  /* Анимация: разлёт вверх и влево, затем ДЛИННОЕ плавное падение вниз */
  @keyframes explode {
      0% {
          transform: translate(0, 0) scale(1) rotate(0deg);
          opacity: 1;
      }
      20% {
          transform: translate(var(--x), var(--y)) scale(1.5) rotate(30deg); /* Разлет вверх и влево быстрее */
          opacity: 1;
      }
      40% {
          transform: translate(calc(var(--x) * 1.3), calc(var(--y) * 2)) scale(1.2) rotate(60deg); /* Поднимаются чуть выше */
          opacity: 0.9;
      }
      70% {
          transform: translate(calc(var(--x) * 1.5), calc(var(--y) * 2.5)) scale(1) rotate(90deg); /* Начинают плавное падение */
          opacity: 0.8;
      }
      90% {
          transform: translate(calc(var(--x) * 2), calc(var(--y) * 5 + 400px)) scale(0.7) rotate(120deg); /* Долгое падение */
          opacity: 0.6;
      }
      100% {
          transform: translate(calc(var(--x) * 2.5), calc(var(--y) * 7 + 700px)) scale(0.6) rotate(180deg); /* До самого низа */
          opacity: 0;
      }
  }
  
  /* Эффект мерцания */
  @keyframes sparkle {
      0% { filter: drop-shadow(0 0 20px gold); }
      100% { filter: drop-shadow(0 0 40px gold); }
  }



  .heart-explosion {
  position: fixed;
  width: 32px; /* было 20px */
  height: 32px; /* было 20px */
  background: radial-gradient(circle, red);
  clip-path: path("M24 4c-5-5-13-5-18 0-5 5-5 13 0 18l9 9 9-9c5-5 5-13 0-18z");

  opacity: 1;
  filter: drop-shadow(0 0 10px red);
  pointer-events: none;
  animation: explode 6s ease-in-out forwards, sparkle 0.5s infinite alternate;
  z-index: 999999;
  overflow: visible;
}

  
  /* Анимация: разлёт вверх и влево, затем ДЛИННОЕ плавное падение вниз */
  @keyframes heart-explode {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  20% {
    transform: translateX(var(--x)) scale(1.3) rotate(-15deg);
    opacity: 1;
  }
  50% {
    transform: translateX(calc(var(--x) * 1.5)) scale(1.1) rotate(-30deg);
    opacity: 0.9;
  }
  75% {
    transform: translateX(calc(var(--x) * 2)) scale(0.9) rotate(-45deg);
    opacity: 0.7;
  }
  100% {
    transform: translateX(calc(var(--x) * 2.5)) scale(0.7) rotate(-60deg);
    opacity: 0;
  }
}

  /* Эффект мерцания */
  @keyframes heart-fly {
      0% { filter: drop-shadow(0 0 20px red); }
      100% { filter: drop-shadow(0 0 40px red); }
  }


/* Модальное окно просмотр лайки кто поставил */
#reactionModal {
  z-index: 10500 !important; /* Выше чем у #overlay */
}

/* Стили для глаз кто посмотрел Snars */
.viewers-btn {
  font-size: 20px;
  color: white!important;
  background: none!important;
  border: none!important;
  outline: none!important;
  display: flex!important;
  flex-direction: column;
  align-items: center!important;
  justify-content: center;
  padding: 4px;
  
  cursor: pointer;
  transition: transform 0.2s ease;
}

.viewers-btn:hover {
  transform: scale(1.1);
  color: #0dcaf0; /* красивый голубой на ховер */
}

.viewers-btn .count {
  font-size: 12px;
  color: #ccc;
  font-weight: normal;
  margin-top: 2px;
  pointer-events: auto;
  cursor: pointer;
}

/* Кнопка поделиться  */

.share-btn {
  all: unset !important;
  font-size: 22px !important;
  color: white !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 4px !important;
  line-height: 1 !important;
  user-select: none !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
}




/* Модальное окно для комментарии */
.modal.comment-modal {
  z-index: 10500 !important;
}

.modal-body {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: auto;
}

#commentListModal {
  overflow-y: auto;
  flex-grow: 1;
  padding: 1rem;
}

.comment-input-wrapper {
  background-color: #111;
  border-top: 1px solid #333;
  padding: 0.5rem 1rem; /* уменьшить вертикальный отступ */
  position: sticky;
  bottom: 0;
  z-index: 10;
}


/* кнопка комментарии в stars */

.comments-btn {
  font-size: 22px;
  color: white !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  padding: 4px;
  
  cursor: pointer;
  transition: transform 0.2s ease;
}

.comments-btn:hover {
  transform: scale(1.1);
  color: #0dcaf0; /* красивый голубой на ховер */
}

.comments-btn .count {
  font-size: 12px;
  color: #ccc;
  font-weight: normal;
  margin-top: 2px;
  pointer-events: auto;
  cursor: pointer;
}

.comment-text {
  word-break: break-word; /* 👈 переносит слова при переполнении */
  white-space: normal;
  max-width: 250px!important;
}

 /* ФИЛЬТЕРЫ Категории ДЛЯ МОБИЛЬНОЙ ВЕРСИИ */

 
   
 .desktop-view {
      display: block;
    }
  
    .mobile-view {
      display: none;
    }
  
    @media (max-width: 576px) {
      .desktop-view {
        display: none;
      }
  
      .mobile-view {
        display: block;
      }
    }


    @media (max-width: 576px) {

      /* Название внутри Stars */
      /* Описание */
/* Для iOS (обычно ближе к 19.5:9 и меньше высота) */
@supports (-webkit-touch-callout: none) {
  .bottom-description {
    bottom: 70px !important;
      position: absolute !important;
  
  left: 40% !important;
  transform: translateX(-50%) !important;
  z-index: 50 !important;
  background: rgba(0,0,0,0.2) !important;
  padding: 2px 4px !important;
  border-radius: 8px !important;
  color: white !important;
  font-size: 15px !important;
  font-weight: bold !important;
 width: max-content !important;     /* ✅ ключевая строка */
    max-width: 300px !important;       /* ✅ теперь работает */
  text-align: center !important;
  pointer-events: none !important;
  }
}

/* Для длинных Android (больше 20:9, вытянутые) */
@media screen and (max-aspect-ratio: 9/20) {
  .bottom-description {
    bottom: 120px !important; /* подними выше */
      position: absolute !important;
  
  left: 40% !important;
  transform: translateX(-50%) !important;
  z-index: 50 !important;
  background: rgba(0,0,0,0.2) !important;
  padding: 2px 4px !important;
  border-radius: 8px !important;
  color: white !important;
  font-size: 15px !important;
  font-weight: bold !important;
 width: max-content !important;     /* ✅ ключевая строка */
    max-width: 300px !important;       /* ✅ теперь работает */
  text-align: center !important;
  pointer-events: none !important;
  }
}


     

  /* Стили для кнопки */
  .mobile-filter-button {
    background-color: white; /* Зеленый цвет */
    border: 1px solid grey;
    color: black; /* Белый текст */
    font-size: 16px!important; /* Размер шрифта */
    font-weight: bold; /* Полужирный текст */
    padding: 2px 4px!important; /* Внутренние отступы */
   
    border-radius: 25px!important; /* Скругление */
    
    cursor: pointer; /* Указатель при наведении */
    transition: all 0.3s ease!important; /* Плавный переход */
    
    display: inline-block; /* Кнопка занимает свою ширину */
      margin: 0 !important; /* Убираем центрирование */
      width: auto !important; /* Ширина адаптируется под текст */
      height: auto !important; /* Высота адаптируется */
    text-align: center; /* Центрирование текста */
  }
  
  /* Эффекты при наведении */
  .mobile-filter-button:hover {
    background-color:gold; /* Темно-зеленый при наведении */
    box-shadow: 0 6px 8px  #ffd700; /* Усиленная тень */
  }
  
  /* Эффект нажатия */
  .mobile-filter-button:active {
    transform: scale(1.2); /* Легкое уменьшение */
    box-shadow: 0 16px 32px #ffd700; /* Уменьшение тени */
  }

/* Добавить Stars */
.btn-outline-light{
   color: white; /* Белый текст */
    font-size: 14px!important; /* Размер шрифта */
    font-weight: bold; /* Полужирный текст */
    padding: 2px 4px!important; /* Внутренние отступы */
   
    border-radius: 25px!important; /* Скругление */
    
    cursor: pointer; /* Указатель при наведении */
    transition: all 0.3s ease!important; /* Плавный переход */
}

/* Удалить Stars */
 .delete-btn {
  width: 70px!important;
  position: absolute !important;
  top: 55px !important;
  right: 5px !important;
  z-index: 10 !important;
  background-color: rgba(255, 0, 0, 0.7) !important;
  color: white !important;
  border: none !important;
  outline: none !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  padding: 2px 4px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  z-index: 10!important;
}

.delete-btn:hover {
  background-color: rgba(220, 0, 0, 0.9) !important;
}

.delete-btn:active {
  transform: scale(0.95) !important;
}

/* Кнопка подписаться */

.subscribe-btn {
  width: 90px!important;
  background: transparent !important;
  border: 2px solid white !important;
  color: white !important;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 10px!important;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left:12px!important;
}

.subscribe-btn:hover {
  background: white !important;
  color: black !important;
}

/* Стили для комментарии */

#commentListModal img.me-2 {
  width: 35px !important;
  height: 35px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease;
}
#commentListModal img.me-2:hover {
  transform: scale(1.05);
}

#commentListModal a.text-white.fw-bold.text-decoration-none {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  margin-right: 2px!important;
}
#commentListModal a.text-white.fw-bold.text-decoration-none:hover {
  color: #0dcaf0 !important;
}
/* Дата */
#commentListModal small.text-secondary {
  font-size: 8px !important;
  color: #bbb !important;
  margin-left: 2px!important;
  vertical-align: middle!important;
  opacity: 0.8 !important;
}

/* Корзина */
.delete-comment-btn {
  
  background: transparent!important;
  color: #dc3545!important;
  font-size: 8px!important;
  padding: 2px 6px!important;
  transition: transform 0.2s ease;
  z-index: 5;
}

.delete-comment-btn:hover {
  transform: scale(1.2);
  color: #ff4d4d;
}
/* Лайк и счетчик */
.comment-like-wrapper {
  display: flex;
  align-items: center;
  gap: 4px!important;
}


.comment-like-btn {
  justify-content: flex-end!important;
  background: none;
  border: none;
  color: white;
  font-size: 12px!important;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.comment-like-btn.active {
  color: red;
}

.like-count {
  font-size: 10px!important;
  color: white;
  min-width: 20px;
  text-align: center;
  cursor: pointer;
}
/* Кнопка ответить */
.reply-btn {
  font-size: 12px !important;
  padding: 2px 8px !important;
  background: none !important;
  border: none !important;
  color: white !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.reply-btn:hover {
  color: #0dcaf0 !important; /* светло-голубой при наведении */
}
/* Шрифт комментарии */
.comment-text {
  font-size: 12px!important;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif!important;
  color: #f1f1f1!important;
  line-height: 1.4!important;
  word-break: break-word!important;
}
}

/* Модальное окно комментарии  */
 /* Стили для всех телефонов и маленьких планшетов */
@media only screen and (max-width: 768px) {
 
  .modal.comment-modal {
  z-index: 10500 !important;
  height: 70vh!important;
  top: 100px!important;
   overflow-y: auto!important;
}

.modal-body {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: auto!important;
  margin-bottom: 50px!important;
}

#commentListModal {
  overflow-y: auto;
  flex-grow: 1;
  padding: 1rem;
}
}


/* Кнопка закрыть для Stars */
#close-overlay {
  font-size: 22px!important;
  color: white;
  background: none !important;
  border: none !important;
  outline: none !important;
  padding: 4px;
  margin-top:5px!important;
    margin-right:15px!important;
  cursor: pointer;
  z-index: 99999;
  transition: transform 0.2s ease;
}

#close-overlay:hover {
  transform: scale(1.2);
}

/* Кнопка подписаться */

.subscribe-btn {
  background: transparent !important;
  border: 2px solid white !important;
  color: white !important;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background: white !important;
  color: black !important;
}

/* Лайки и счетчик на комментарии */
.comment-like-btn {
  all: unset;
  cursor: pointer;
  font-size: 20px;
  color: white;
  margin-right: 6px;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.comment-like-btn.active {
  color: red;
  transform: scale(1.2);
}

.like-count {
  display: inline-block; /* или flex */
  width: auto;
  padding: 6px 12px; /* 📱 увеличивает область тапа */
  font-size: 14px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
}

.comment-like-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Модальное окно кто лайкнул комментарии */

#likersModal {
  z-index: 99999; /* выше стандартного Bootstrap (1055) */
}

/* Модальное окно поделиться  */

#shareModal {
  z-index: 9999; /* выше, чем у большинства элементов */
}



/* Круг Загрузка подождите  */
#upload-spinner {
  display: none;
  background: rgba(206, 179, 179, 0.21);
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #33ff00ff;
}

#upload-spinner .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}


/* Круг Загрузка подождите для комментарии  */
#comment-upload-spinner {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1055;
  background: rgba(0,0,0,0.7);
  padding: 20px;
  border-radius: 10px;
  color: white;
  text-align: center;
}

.select2-container--default .select2-selection--single {
    background-color: white;
    color: #fff;
    border: 1px solid #666;
  }

  .select2-container--default .select2-results__option {
    color: #000;
  }

  .select2-container--default .select2-results {
    background-color: #fff;
  }
.lazy-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: unset !important;
  max-height: unset !important;
  background: black !important;
}


#mobile-footer-nav.android-footer-fix {
  height: 50px !important;
  min-height: 30px !important;
   padding-bottom: 0 !important;
}


#mobile-footer-nav {
  
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #121212; /* Чёрный фон */
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #333;
  z-index: 9999;
}

.footer-btn {
  color: #ccc;
  text-align: center;
  text-decoration: none;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.2s;
}

.footer-btn i {
  font-size: 18px;
  margin-bottom: 2px;
}

.footer-btn:hover {
  color: #00ccff; /* Цвет при наведении */
}


  /* Модальное окно пожаловаться */

  /* Стли для модальное окно кнопку жалоба Пожаловаться в профиль */
    
  .custom-modal {
        display: none;
        position: fixed;
        z-index: 99999;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.5);
      }
      
      .custom-modal-content {
        background: #fff;
        margin: 10% auto;
        padding: 20px;
        border-radius: 10px;
        max-width: 400px;
        position: relative;
      }
      #customReportModal textarea[name="details"] {
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 15px;
        resize: vertical;
        min-height: 80px;
        transition: border-color 0.3s, box-shadow 0.3s;
        font-family: inherit;
      }
      
      #customReportModal textarea[name="details"]:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
        outline: none;
      }
      
      
      .custom-close {
        position: absolute;
        top: 10px; right: 15px;
        font-size: 20px;
        cursor: pointer;
      }
      
      .submit-btn {
        width: 100%;
        background-color: #dc3545;
        color: white;
        border: none;
        padding: 10px;
        margin-top: 10px;
        border-radius: 6px;
      }
      

/* Кнопка пожаловаться  */
.report-star-btn {
    
    background: transparent !important;
    border: none !important;
    color: #dc3545 !important;
    font-size: 14px !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, color 0.2s ease;
    width: 10px!important;
    margin-left: -8px!important;
  }

  .report-star-btn:hover {
    color: #b02a37 !important;
    transform: scale(1.1);
  }


  /* Кнопка пожаловаться в комментарии */

  .report-comment-btn {
  font-size: 8px;      /* размер иконки ❗ */
  padding: 2px 4px;     /* отступы */
  line-height: 1;       /* компактность */
  border-radius: 4px;   /* скругление */
}



  /* Кнопка сохранить */
  .outline-icon-btn {
  background: transparent!important;
  border: none;
  padding: 5px;
  cursor: pointer;
  outline: none;
}

.outline-icon-btn svg {
  background: transparent!important;
  stroke: white;
  fill: none;
  transition: transform 0.2s;
}

.outline-icon-btn:hover svg {
  transform: scale(1.1);
}






  .reply-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .reply-like-btn {
    all: unset;
    color: white !important;
    font-size: 18px !important;
    cursor: pointer !important;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .reply-like-btn.active {
    color: red !important;
  }

  .reply-like-count {
    font-size: 13px !important;
    color: white !important;
    user-select: none !important;
    line-height: 1;
  }

  /* дата  */

  .reply-item small.text-secondary {
  font-size: 8px!important;
  color: #bbbbbb;
  opacity: 0.8;
  margin-left: 4px;
  white-space: nowrap;
  user-select: none;
}

/* Только аватар в ответах */
.replies-wrapper .reply-item img.me-2 {
  margin-right: 0 !important;
  padding-right: 0 !important;
}
.replies-wrapper .reply-item {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.replies-wrapper .reply-item img.me-2 {
  margin-inline-end: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  display: inline-block !important;
}
.reply-item .reply-text {
  font-size: 13px !important;
  color: #e0e0e0 !important;
  line-height: 1.3;
  margin-bottom: 4px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  word-break: break-word !important;       /* 🔥 перенос длинных слов */
  white-space: normal !important;          /* 🔥 разрешаем перенос строк */
  overflow-wrap: anywhere !important;      /* 🔥 для гибкости */
}
.reply-item .flex-grow-1 {
  min-width: 0 !important;
}

.reply-text, .reply-to {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 220px !important; /* ✅ ограничение ширины */
}



@media (max-width: 576px) {

#mobile-footer-nav {
  position: fixed!important;
  left: 0!important;
  bottom: 0!important;
  width: 100vw!important;
  height: 60px!important;
  min-height: 60px!important;
  padding-bottom: max(env(safe-area-inset-bottom, 0), 18px)!important;
  background: #121212;
  display: flex!important;
  justify-content: space-around!important;
  align-items: center!important;
  border-top: 1px solid #333!important;
  z-index: 9999!important;
  box-shadow: 0 -2px 10px #0006!important;
  transition: bottom 0.2s!important;
}

/* ✅ ТОЛЬКО ANDROID-ПРИЛОЖЕНИЕ (Google Play / WebView) */
  body.android-app #mobile-footer-nav {
    bottom: 40px !important;              /* Подняли футер над системной навигацией */
    padding-bottom: 0 !important;
    
  }




.footer-btn {
  color: #ccc;
  text-align: center;
  text-decoration: none;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.2s;
}

.footer-btn i {
  font-size: 18px;
  margin-bottom: 2px;
}

.footer-btn:hover {
  color: #00ccff; /* Цвет при наведении */
}


/* Модальное окно комментарии  */
/* --- Основное окно модалки --- */
/* Диалог и контент на всю высоту экрана */
.comment-modal .modal-dialog {
  max-width: 100% !important;
  height: 100% !important;
  margin-left: 2px !important;
  margin-right: 2px !important;
}

.comment-modal .modal-content {
  height: 100dvh !important; /* dynamic vh, учитывает клавиатуру */
  display: flex !important;
  flex-direction: column !important;
 
  background-color: #1a1a1a !important;
  color: #fff !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 0 25px rgba(0,0,0,0.8) !important;
}

/* Шапка всегда видна (не скроллится) */
.comment-modal .modal-header {
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background: #111 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Тело не скроллится само — внутри сделаем свой скролл */
.comment-modal .modal-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important; /* ключ! */
  padding: 0 !important;
  background: #181818 !important;
}

/* Если в HTML остался класс modal-dialog-scrollable — принудительно отключаем его поведение */
.modal-dialog-scrollable .modal-body {
  overflow-y: visible !important; /* перебиваем bootstrap */
}

/* Список комментариев — единственный скроллящийся блок */
#commentListModal {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 1rem !important;
}

/* Низ с инпутом — всегда виден (не скроллится) */
.comment-input-wrapper {
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  background: #111 !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  z-index: 10 !important;
  padding: 0.75rem !important;
}

/* Текст переносится нормально */
/* Текст комментариев и textarea */
.comment-text,
#newCommentInput {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  color: #fff !important; /* текст в списке комментов */
}

/* Поле ввода комментария */
#newCommentInput {
  background: #222 !important;      /* в тёмной модалке выглядит чище */
  color: #fff !important;
  border: 1px solid #444 !important;
  border-radius: 8px !important;
  font-size: 16px !important;       /* >=16px, чтобы iOS не зумил */
  line-height: 1.35 !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;

  min-height: 38px !important;
  max-height: 40vh !important;      /* авто-рост ограничен */
  overflow-y: auto !important;
  resize: none !important;

  flex: 1 1 auto !important;        /* не раздвигать кнопки рядом */
  min-width: 0 !important;          /* не выталкивать кнопки из ряда */
}

#newCommentInput::placeholder {
  color: #9aa0a6 !important;        /* видимый плейсхолдер */
  opacity: 1 !important;
}

#newCommentInput:focus {
  border-color: #0dcaf0 !important;
  box-shadow: none !important;
  outline: none !important;
}


/* Кнопки */
#attachFileBtn, #submitCommentBtn {
  font-size: 1.2rem !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}




/* Окно ответ на комментарии */
 /* Базовый стиль текста ответа */
.reply-item .reply-text {
  font-size: 13px !important;
  color: #e0e0e0 !important;
  line-height: 1.3 !important;
  margin-bottom: 4px !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}
.reply-item .reply-to {
  font-size: 13px !important;
  color: #a8a8a8 !important;
  margin-bottom: 2px !important;
}
.reply-item .reply-to a {
  color: #0dcaf0 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.reply-item .reply-to a:hover { color: #ffffff !important; }

/* Вложенность ответов */
.reply-item { margin-left: 1rem !important; }
.reply-item .reply-item { margin-left: 0 !important; }

/* Поле ввода ответа — авто-рост до лимита */
.reply-input {
  font-size: 16px !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  color: #ffffff !important;
  background-color: #2c2f34 !important;
  border: 1px solid #495057 !important;
  border-radius: 4px !important;
  min-height: 32px !important;     /* стартовая высота */
  max-height: 30vh !important;      /* лимит роста (30% экрана) */
  overflow-y: auto !important;      /* скролл когда достигнут лимит */
  resize: none !important;          /* запрещаем ручной ресайз */
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
.reply-input::placeholder { color: #bbb !important; opacity: 0.8 !important; }
.reply-input:focus {
  background-color: #33373c !important;
  border-color: #0dcaf0 !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
}
  .reply-item {
  margin-left: 1rem !important; /* фиксированное смещение */
}
.reply-item .reply-item {
  margin-left: 0 !important; /* сброс для вложенных */
}

  /* Кнопка пожаловаться в комментарии */

  .report-comment-btn {
  font-size: 8px!important;      /* размер иконки ❗ */
  
  line-height: 1;       /* компактность */
  border: none !important;   /* скругление */
}


}

/* Комментариев пока нет */
#commentListModal p.text-muted {
  font-size: 16px;
  color: #888;
  text-align: center;
  padding: 20px;
  margin: 0 auto;
  max-width: 90%;
  font-style: italic;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}



/* Фото и видео в комментарии */

.comment-media-wrapper {
  max-width: 200px;
  max-height: 150px;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 8px;
}

.comment-media {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 10px;
  max-height: 150px !important;
}


@media (max-width: 576px) {
  .upload-toast {
  display: none;
  position: fixed;
  width: 300px!important;
  top: 160px !important;
  left: 50%;
  transform: translateX(-50%);
  background: gold;
  color: black;
  padding: 2px 4px !important;
  border-radius: 25px;
  font-weight: bold;
  font-size: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99999;
  animation: fadeInOut 3s ease-in-out;
   text-align: center !important; /* ✅ центрируем текст */
  
  align-items: center !important;
  justify-content: center !important;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  10%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

}


.upload-toast {
  display: none;
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: gold;
  color: black;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99999;
  animation: fadeInOut 3s ease-in-out;
   text-align: center; /* ✅ центрируем текст */
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  10%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

.star {
  position: fixed;
  font-size: 24px;
  color: gold;
  pointer-events: none;
  animation: explode 3s ease-out forwards; /* ⏳ медленнее */
}

@keyframes explode {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(3) translate(var(--x), var(--y));
  }
}




/* Перезагрузка страницы тач вниз */
/* ===== PTR Stars (универсально) ===== */
#ptr-stars{
  position:fixed;left:0;right:0;top:0;height:120px;
  transform:translateY(-100%);transition:transform .18s ease;
  z-index:2147483000;pointer-events:none;
  display:flex;align-items:flex-start;justify-content:center;
  overflow:visible; /* важно, чтобы взрыв не обрезался */
}
#ptr-stars .col{
  position:relative;display:flex;flex-direction:column;
  align-items:center;justify-content:flex-start;gap:6px;padding-top:8px;
}

/* Полные золотые звезды */
.ptr-star{
  font-size:18px;line-height:1;color:#ffd700;
  text-shadow:
    0 0 4px rgba(255,215,0,.85),
    0 0 10px rgba(255,215,0,.65),
    0 0 18px rgba(255,215,0,.45);
  will-change:transform,opacity;transform:translateZ(0);user-select:none;
}
#ptr-stars.ready .ptr-star{
  color:#fff4b0;
  text-shadow:
    0 0 6px rgba(255,230,128,.95),
    0 0 14px rgba(255,230,128,.75),
    0 0 24px rgba(255,230,128,.55);
}

/* Взрыв — строго из центра колонки */
#ptr-stars .burst{
  position:absolute;
  left:50%;
  top:58px;                     /* центр контейнера по вертикали */
  transform:translate(-50%,-50%); /* идеально по центру */
  pointer-events:none;
  overflow:visible;
}

/* Яркие искры из центра */
#ptr-stars .burst .spark{
  position:absolute;left:0;top:0;
  font-size:20px;color:#ffdf57;opacity:0;
  filter:drop-shadow(0 0 12px rgba(255,220,90,.95));
  --dx:0px;--dy:0px;
  animation:spark-fly .8s ease-out forwards;
}
#ptr-stars { will-change: transform; }

/* Ударная волна из центра */
#ptr-stars .burst .ring{
  position:absolute;left:0;top:0;
  width:2px;height:2px;border:3px solid rgba(255,215,0,.95);
  border-radius:50%;
  filter:drop-shadow(0 0 14px rgba(255,215,0,.9));
  transform:translate(-1px,-1px); /* выравниваем центр в точке (0,0) */
  animation:ring .65s ease-out forwards;
}

/* Полёт искр по заданным векторам */
@keyframes spark-fly{
  0%{transform:translate(0,0) scale(1);opacity:0}
  10%{opacity:1}
  100%{transform:translate(var(--dx),var(--dy)) scale(.92);opacity:0}
}
/* Кольцо ударной волны (сильнее и шире) */
@keyframes ring{
  0%{transform:translate(-1px,-1px) scale(.3);opacity:.98}
  100%{transform:translate(-1px,-1px) scale(10.5);opacity:0}
}

/* Лёгкий димминг во время загрузки */
#ptr-stars.loading .col{opacity:.85}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  #ptr-stars{transition:none}
  .ptr-star,#ptr-stars .burst .spark{animation-duration:.35s!important}
}




/* список в модалке */
.share-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  
}

.share-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color:#fff;
  cursor:pointer;
  text-align:left;
  
}

.share-item:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

/* ✅ Multi-select в "🕓 Последние" (круг + точка) */
.select-inbox {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 2px solid #fff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  box-sizing: border-box;
}

.select-inbox .select-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);      /* ✅ по умолчанию чёрная */
  display: block;        /* ✅ чтобы не была палкой */
}

/* ✅ выбран — точка становится ярко-салатовой */
.share-item.is-selected .select-inbox .select-dot {
  background: #39ff14;
}


.share-item.is-selected .select-inbox .select-dot {
  display: block;
}

/* Нижняя панель "Отправить (N)" */
/* Панель кнопки внизу вкладки "Recent" */
.recent-sendbar{
  padding: 10px 12px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}


.recent-send-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  background: #19c37d;
  color: #fff;
}

.recent-send-btn:disabled {
  opacity: 0.4;
}

.share-item img{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 36px;
}

.share-item .name{
  font-weight:700;
  font-size:14px;
  line-height:1.1;
}

.share-item .meta{
  font-size:12px;
  opacity:.75;
}

/* кнопка "в приложениях" */
.share-external-btn{
  background: linear-gradient(145deg, #25D366, #1EBE5B);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: none;
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 65px;
  height: 65px;
  margin: 10px auto;
  border-radius: 50%;
  transition: all 0.25s ease;
}
.share-external-btn:hover{
  transform: scale(1.12);
  box-shadow: 0 0 15px rgba(37,211,102,0.8);
}







/* ✅ Recent: фиксируем область вкладки без flex */
#shareModal #recentChats{
  position: relative;
  height: 65vh;       /* тут твоя высота */
  overflow: hidden;
}

/* ✅ Список занимает всё место сверху до кнопки */
#shareModal #recentChatsContent{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 64px;       /* высота зоны кнопки */
  overflow-y: auto;
  padding-bottom: 10px;
}

/* ✅ Кнопка всегда снизу вкладки Recent */
#shareModal #recentSendBar{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;       /* должно совпадать с bottom выше */
  padding: 10px 12px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.10);
  z-index: 5;
}
