 
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: #000;
      color: #fff;
      overflow: hidden;
      touch-action: pan-y;
    }
    .streams-container {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: hidden;
    }
    .stream-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: #000;
      transition: transform 0.3s ease-out;
    }
    .stream-slide video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
	
	.stream-slide {
overflow: hidden; /* чтобы видео не «выпирало» за границы при пересчёте вьюпорта */
}
.stream-slide video {
position: absolute;
inset: 0;          
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1;        
}
    
    /* Топ бар с аватаркой */
    .top-header {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      padding: 15px;
      padding-top: calc(15px + env(safe-area-inset-top));
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 20;
      background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
    }
    .seller-block {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .seller-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: 2px solid #fff;
      object-fit: cover;
    }
    .seller-info {
      display: flex;
      flex-direction: column;
    }
    .seller-name {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
    }
    .viewers-count {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 13px;
      color: rgba(255,255,255,0.8);
    }
    .close-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.3);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
    }

    /* Правая панель с иконками */
    .right-sidebar {
      position: absolute;
      right: 15px;
      top: 41%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 20px;
      z-index: 20;
    }
    .action-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0px;
      background: none;
      border: none;
      color: #fff;
      cursor: pointer;
      font-size: 12px;
    }
    .action-icon {
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.5);
      border-radius: 50%;
      font-size: 22px;
    }

    /* Кнопки "Розыгрыш" и "Скидка" */
    .promo-buttons {
      position: absolute;
      right: 15px;
      top: 70px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 20;
    }
    .promo-btn {
      background: rgba(0,0,0,0.6);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: 20px;
      padding: 8px 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      white-space: nowrap;
      backdrop-filter: blur(10px);
    }

    /* Товары внизу */
    .products-container {
      position: absolute;
      bottom: 80px;
      left: 0;
      right: 0;
      padding: 0 15px;
      z-index: 20;
      max-height: 180px;
    }
    .products-scroll {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding-bottom: 10px;
      scrollbar-width: none;
    }
    .products-scroll::-webkit-scrollbar {
      display: none;
    }
    .product-empty {
      color: rgba(255, 255, 255, 0.8);
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 80px;
    }

    .product-card {
      min-width: 120px;
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      flex-shrink: 0;
    }
    .product-image {
      width: 100%;
      height: 120px;
      object-fit: cover;
    }
    .product-info {
      padding: 8px;
      color: #000;
    }
    .product-name {
      font-size: 12px;
      margin-bottom: 3px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .product-price {
      font-size: 14px;
      font-weight: 700;
      color: #000;
    }

    /* Плеер (только для оффлайн видео) */
    .video-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
        background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
        display: none;
        z-index: 25;
      }
    .video-controls.show {
        display: block;
      }
      @media (max-width: 768px) {
        .video-controls {
          bottom: 50px;
          bottom: calc(50px + env(safe-area-inset-bottom));
        }
      }
	  
	  /*Fix для нижней панели на iPhone */
.video-controls {
  padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
}
	  
    
	
	.progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 12px;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-bar:hover .progress-thumb,
.progress-bar.dragging .progress-thumb {
  opacity: 1;
}
	
	
	
	
    .controls-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .controls-left {
      display: flex;
      align-items: center;
      gap: 15px;
    }
    .speed-btn, .play-pause-btn {
      background: rgba(255,255,255,0.2);
      border: none;
      color: #fff;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 13px;
      cursor: pointer;
    }
    .play-pause-btn {
      /*width: 60px;*/
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }
    .time-display {
      font-size: 13px;
      color: #fff;
    }
    .like-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      background: none;
      border: none;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
    }

    /* Loader */
    .loader {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 100;
    }
    .spinner {
      width: 50px;
      height: 50px;
      border: 4px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Кнопка unmute */
    .unmute-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0,0,0,0.8);
      color: white;
      border: none;
      padding: 15px 25px;
      border-radius: 50px;
      font-size: 16px;
      cursor: pointer;
      z-index: 50;
      backdrop-filter: blur(10px);
    }

    /* Индикаторы не нужны в стиле Lamoda */
    .stream-indicator {
      display: none;
    }
	
	/* Модальное окно комментария */
.comment-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.comment-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.comment-modal {
  width: 90%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.comment-backdrop.visible .comment-modal {
  transform: scale(1);
}

.comment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.comment-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f1d2b;
}

.comment-modal-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #928f9f;
  padding: 0;
}

.comment-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 2px solid #e8e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.comment-textarea:focus {
  outline: none;
  border-color: #7367f0;
}

.comment-send-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: linear-gradient(135deg, #7367f0, #a678ff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 20px rgba(115, 103, 240, 0.25);
}

.comment-send-btn:active {
  transform: scale(0.98);
}

.comment-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #10b981;
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.comment-success.show {
  opacity: 1;
}
	
	


/* Принудительное отображение для iOS Safari */
@supports (-webkit-touch-callout: none) {
  .right-sidebar,
  .top-header,
  .promo-buttons {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }
  
  .action-btn {
    opacity: 1 !important;
    visibility: visible !important;
  }
}
@supports (-webkit-touch-callout: none) {
.stream-slide video { z-index: 1; }
.top-header,
.right-sidebar,
.promo-buttons,
.products-container,
.video-controls,
.unmute-btn { z-index: 30; }
}

.like-wrap {
position: relative;
}

.hearts-container {
position: absolute;
right: 0;
bottom: 36px;           /* чуть выше кнопки лайка /
width: 120px;
height: 160px;
pointer-events: none;   / чтобы не мешать кликам */
z-index: 30;
overflow: visible;
}

.floating-heart {
position: absolute;
right: 0;
bottom: 0;
font-size: 18px;
opacity: 0;
filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2));
animation: heartFloat var(--dur, 1.5s) ease-in forwards;
will-change: transform, opacity;
}

/* плавный подъём, лёгкий разлёт и увеличение */
@keyframes heartFloat {
0%   { transform: translate3d(0, 0, 0) scale(var(--scale, 1)); opacity: 0; }
10%  { opacity: 1; }
100% { transform: translate3d(var(--dx, 0), -160px, 0) scale(calc(var(--scale, 1) + 0.4)); opacity: 0; }
}


/* Контурный круг вокруг иконки */
.action-icon--outline {
border: 2px solid rgba(255,255,255,0.92);
border-radius: 50%;
background: rgba(0,0,0,0.35);
backdrop-filter: blur(6px);
box-shadow:
0 0 0 1px rgba(255,255,255,0.25) inset,
0 2px 6px rgba(0,0,0,0.35);
}

/* Размер и штрих для «карандашного» SVG */
.action-icon svg {
width: 28px;
height: 28px;
}
.icon-outline {
fill: none;
stroke: #fff;
stroke-width: 2.2;
stroke-linecap: round;
stroke-linejoin: round;
filter: url(#rough-white); /* даст «ручную» неровность, см. defs ниже */
}

/* Анимация/состояния звука */
.icon-sound .wave { opacity: 1; transition: opacity .2s ease, transform .2s ease; }
.icon-sound.muted .wave { opacity: 0; transform: scale(0.9); }
.icon-sound .slash { opacity: 0; transition: opacity .2s ease; }
.icon-sound.muted .slash { opacity: 1; }

.auth-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.auth-btn svg {
  color: white;
}

.comment-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.comment-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.comment-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 520px;
  height: 60vh;
  border-radius: 24px 24px 0 0;
  padding: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.comment-backdrop.visible .comment-modal {
  transform: translateY(0);
}

.comment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.comment-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7367f0, #a678ff);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(115, 103, 240, 0.3);
}

.comment-add-btn:hover {
  transform: scale(1.1);
}

.comment-add-btn svg {
  color: white;
}

.comment-modal-close {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7367f0, #a678ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  color: #1f1d2b;
}

.comment-time {
  font-size: 12px;
  color: #888;
}

.comment-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* Форма добавления комментария */
.comment-form-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 520px;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-backdrop.visible .comment-form-modal {
  transform: translateY(0);
}

.comment-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f1d2b;
}

.comment-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 2px solid rgba(115, 103, 240, 0.2);
  border-radius: 12px;
  font-size: 15px;
  resize: vertical;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
}

.comment-textarea:focus {
  outline: none;
  border-color: #7367f0;
}

.comment-send-btn {
  background: linear-gradient(135deg, #7367f0, #a678ff);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 10px 20px rgba(115, 103, 240, 0.25);
}

.comment-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(115, 103, 240, 0.35);
}

.comment-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 1. Исправление цвета кнопки паузы - сделать белой как play */
.play-pause-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 2. Добавление видимого шарика на конце ползунка */
.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

/* Показывать шарик при наведении или перетаскивании */
.progress-bar:hover .progress-thumb,
.progress-bar.dragging .progress-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

/* Увеличить зону клика для удобства на мобильных */
.progress-bar {
  padding: 4px 0;
  cursor: pointer;
}

/* Сделать заливку прогресса чуть выше для лучшей видимости */
.progress-fill {
  height: 4px;
  background: linear-gradient(90deg, #7367f0, #a678ff);
  border-radius: 4px;
  transition: width 0.1s linear;
}


/* Убрать оранжевый цвет у иконки паузы */
.play-pause-btn #play-icon-0,
.play-pause-btn span[id^="play-icon-"] {
  color: #fff;
  filter: none;
}

/* Или более общий селектор для всех иконок play/pause */
.controls-left button span {
  color: #fff !important;
}

.video-controls .play-pause-btn > span:first-child {
  color: #fff !important;
  background: none !important;
  filter: none !important;
}
.streams-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.stream-slide {
  position: absolute;
  width: 100%;
  height: 100vh;
  transition: transform 0.3s ease;
  will-change: transform;
}

.stream-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* iOS Safari фиксы */
.stream-slide video::-webkit-media-controls {
  display: none !important;
}

.stream-slide video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

	
  
