/* =========================================
   Hilbert Scroll Reels — CSS (no overlay)
   ========================================= */

/* Акцент по умолчанию */
:root{ --vrg-accent: #af0b0b; }

/* ===== СЕКЦИЯ ===== */
.vrg2-section{
  padding: 10px 0 120px 250px;
  position: relative;
  background: linear-gradient(180deg,#0e0e12 0%,#0e0e12 50%,#ffffff 50%,#ffffff 100%);
}
.vrg2-title{
  margin: 60px 0 0;
  font-weight: 500;
  font-size: clamp(24px,3.2vw,42px);
  color: #fff;
}

@media (max-width:768px){
  .vrg2-section{ padding: 0 10px 30px 15px; background: linear-gradient(180deg, #0e0e12 0%, #0e0e12 50%, #ffffff 50%, #ffffff 100%); } 
  .vrg2-title { margin: 0; padding-top: 30px; color:#fff; }
  .vrg2-subtitle { max-width: 90%;}
}

/* ===== ЛЕНТА ===== */
.vrg2-rail{ position: relative; }
.vrg2-track{
  --gap: 25px; --visible: 3; --peek-frac: 0.63;
  display: flex; gap: var(--gap);
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.vrg2-track::-webkit-scrollbar{ display: none; }
.vrg2-track.is-dragging,
.vrg2-rail.is-grabbing .vrg2-track{ cursor: grabbing; }

@media (max-width:768px){
  .vrg2-track{ --gap: 12px; --visible: 2; --peek-frac: 0.5; margin-top: 50px; }
}

.vrg2-card{
  position: relative; z-index: 1;
  flex: 0 0 calc(100% / (var(--visible) + var(--peek-frac)));
  min-width: 220px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}

/* ===== КНОПКИ ПРОКРУТКИ ===== */
.vrg2-controls{
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
}
.vrg2-ctrl{
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 999px;
  background: #1c1c1c; color: #fff;
  padding: 10px 14px; cursor: pointer;
}
.vrg2-prev{ visibility: hidden; }
.vrg2-ctrl[disabled]{ opacity: .35; pointer-events: none; }

/* ===== КАРТОЧКА ВИДЕО ===== */
.vrg2-video-wrap{
  position: relative;
  width: 100%; aspect-ratio: 9/16;
  border-radius: 16px; overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Видео под постером; переключение классом .playing */
.vrg2-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity .2s;
  z-index: 1; background: #000;
}
.vrg2-poster{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1; transition: opacity .2s;
  z-index: 2; pointer-events: none; /* не блокирует клики по wrap/video */
}
.vrg2-card.playing .vrg2-video{ opacity: 1; }
.vrg2-card.playing .vrg2-poster{ opacity: 0; }

/* Play — центр, стабильная геометрия */
.vrg2-play,
.vrg2-play:hover,
.vrg2-play:focus,
.vrg2-play:active{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%) translateZ(0)!important;
  width: 64px; height: 64px; border: 0; outline: 0!important; padding: 0;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65); color: #fff; cursor: pointer;
  box-shadow: none!important; transition: opacity .15s ease!important; z-index: 6;
}
.vrg2-play i{ font-size: 20px; pointer-events: none; }
.vrg2-play.is-hidden,
.vrg2-card.playing .vrg2-play{ opacity:0; pointer-events:none; }

/* Кнопка «открыть» отключена в режиме без оверлея */
.vrg2-open{ display:none !important; }

/* Звук для inline */
.vrg2-sound{
  position: absolute; top: 8px; right: 8px; z-index: 7;
  width: 34px; height: 34px; border: none; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
}
.vrg2-card.sound-on .vrg2-ico-muted{ display: none; }
.vrg2-card:not(.sound-on) .vrg2-ico-unmuted{ display: none; }

/* Лоадер */
.vrg2-loader{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 5;
}
.vrg2-loader-svg{ width: 48px; height: 48px; transform: rotate(-90deg); }
.vrg2-loader-track{ fill: none; stroke: rgba(255,255,255,.2); stroke-width: 3; }
.vrg2-loader-bar{ fill: none; stroke: var(--vrg-accent,#af0b0b); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 88; }
.vrg2-video-wrap.is-ready .vrg2-loader{ opacity: 0; transition: opacity .2s; }

/* ===== МЕТА / SHARE ===== */
.vrg-meta{ display: none !important; }
.vrg-caption{ flex: 1 1 auto; color: #fff; font-size: 17px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vrg-share{ position: relative; z-index: 10; }
.vrg-share-toggle{ width: 36px; height: 36px; border: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #1c1c1c; color: #fff; cursor: pointer; }
.vrg-share[aria-expanded="false"] .vrg-share-menu{ display: none; }
.vrg-share-menu{
  position: absolute; right: 0; top: 100%; margin-top: -80px; display: flex; gap: 6px; padding: 6px;
  background: rgba(0,0,0,.8); border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,.25); z-index: 9999;
}
.vrg-share-link{ width: 32px; height: 32px; border: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }

/* Нижний градиент и бар в карточке */
.vrg2-bottomshade{
  position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 30%, rgba(0,0,0,0) 100%);
  pointer-events: none; z-index: 6; padding: 0 10px;
}
.vrg2-bottom{
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: flex-end; gap: 10px; z-index: 7;
}
.vrg2-capline{
  flex: 1 1 auto; color: #fff; font-size: 16px; line-height: 1.3; font-weight: 700;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Share в карточке (круглая кнопка) */
.vrg2-share-btn{
  width: 34px; height: 34px; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff;
}
.vrg-share--round{ position: relative; z-index: 8; }
.vrg-share--round .vrg-share-menu{
  position: absolute; right: 0; bottom: 44px;
  display: flex; gap: 6px; padding: 6px;
  background: rgba(0,0,0,.85); border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,.25);
}
.vrg-share--round[aria-expanded="false"] .vrg-share-menu{ display: none; }

/* ===== ХЕД-НАВИГАЦИЯ (стрелки + дотсы) ===== */
.vrg2-headnav{
  position: absolute; right: clamp(16px,2vw,24px); top: -55px;
  display: flex; align-items: center; gap: 16px; z-index: 20;
}
.vrg2-head-arrows{ display: flex; gap: 18px; }
.vrg2-head-arrows button{
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 22px; line-height: 1; color: #fff;
  width: 36px; height: 36px; display: grid; place-items: center;
}
.vrg2-head-arrows button[disabled]{ color: #bdbdbd; cursor: default; }

.vrg2-dots{ display: flex; align-items: center; gap: 12px; }
.vrg2-dot{
  width: 9px; height: 9px; border-radius: 999px; background: #8e8e8e;
  opacity: .7; border: 0; padding: 0; cursor: pointer; transition: all .25s ease;
}
.vrg2-dot.is-active{
  width: 34px; height: 9px; border-radius: 999px; background: #2b2b2b; opacity: 1;
}
@media (max-width:768px){
  .vrg2-headnav{ right: 10px; top: -50px; gap: 12px; }
  .vrg2-head-arrows button{ font-size: 18px; }
  .vrg2-dots{ gap: 10px; }
}

/* Тонкие стрелки (1px) */
.vrg2-head-arrows button svg,
.vrg2-ctrl svg{
  display: inline-block; vertical-align: middle;
  stroke: currentColor; fill: none; stroke-width: 1;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Нижние дотсы */
.vrg2-footdots{ display: flex; justify-content: center; align-items: center; margin-top: 18px; }
.vrg2-dots--footer{ display: flex; gap: 12px; }

/* Старые нижние кнопки если не нужны */
.vrg2-ctrl{ gap: 8px; }
.vrg2-ctrl[disabled], .vrg2-head-arrows button:disabled{ opacity: .45; cursor: default; }