/* ========================================================================
   VTRK — Боевой индастриал-трэп
   Структура:
   reset → переменные → layout → .mainport → .slider → .blackwall →
   .streams → .player → .modal → .mobile-* → media queries
   ======================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #1a1a1a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }

@media (hover: none) {
  .streams__btn:hover { transform: none; }
  .streams__btn:hover .streams__img--bw    { opacity: 1; }
  .streams__btn:hover .streams__img--color { opacity: 0; }
  .streams__btn { touch-action: manipulation; }
}

/* ---------- переменные ---------- */
:root {
  --bg:           #1a1a1a;
  --accent:       #ff3d2b;
  --accent-deep:  #e30613;
  --white:        #fff;
  --muted:        rgba(255,255,255,0.6);
  --muted-soft:   rgba(255,255,255,0.5);
  --blackwall:    rgba(0,0,0,0.5);
  --card:         #1f1f1f;
  --card-border:  rgba(255,255,255,0.1);
  --t:            0.25s ease;

  /* слайдер */
  --split: 50%;
  --word-offset: 0px;
  --mx: 0; --my: 0;

  /* TWEAKS — управляются JS, дефолты задают стартовое состояние */
  --word-speed: 150ms;
  --boevoy-top: 53%;
  --boevoy-left: 50%;
  --industrial-top: 45%;
  --industrial-left: 50%;
  --parallax-mult: 1;
}

/* ---------- layout / каркас ---------- */
.page-bg {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  display: block;
}

/* Логотип VTRK на красной полосе (PNG) — упирается в левый край */
.logo-bar {
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 30; /* перекрывает левый край .mainport */
  display: block;
  transition: transform var(--t);
}
.logo-bar img {
  display: block;
  height: auto;
  width: 18vw;
  max-width: 360px;
  min-width: 140px;
}
.logo-bar:hover { transform: translateX(-2px); }

/* Copyright */
.copyright {
  text-align: center;
  color: var(--muted-soft);
  font-size: 14px;
  margin: 22px 0 24px;
  letter-spacing: 0.02em;
}

/* ---------- .mainport ---------- */
.mainport {
  position: relative;
  margin: 75px 75px 0;
  /* Подстраивается под соотношение монитора:
     заполняет всё пространство между верхним отступом и копирайтом.
     Фоны 21:9 обрезаются через object-fit: cover, если экран уже 21:9. */
  width: calc(100vw - 150px);
  height: calc(100dvh - 75px - 70px);
  /* Защита на короткие/широкие окна */
  min-height: 360px;
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 60px rgba(255,255,255,0.04);
}
.mainport-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 60px rgba(255,255,255,0.04);
  z-index: 20;
}

/* Соцсети правый верх */
.socials {
  position: absolute;
  top: 32px; right: 40px;
  display: flex;
  gap: 28px;
  z-index: 15;
}
.socials__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: #fff;
  transition: color var(--t), transform var(--t);
}
.socials__btn svg { width: 100%; height: 100%; display: block; }
.socials__btn:hover { transform: translateY(-1px); }
.socials__btn--tg:hover, .socials__btn--tg:focus-visible { color: #229ED9; }
.socials__btn--vk:hover, .socials__btn--vk:focus-visible { color: #0077FF; }
.socials__btn:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 4px; border-radius: 6px; }

/* ---------- .slider (before / after) ---------- */
.slider {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}

.slider__half {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.slider__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Дневная половина — основа, не обрезается */
.slider__day  { z-index: 1; }
/* Ночная половина — обрезается слева на величину --split */
.slider__night {
  z-index: 2;
  clip-path: inset(0 0 0 var(--split));
}

/* Веterok'и — центр-низ, статичны */
.slider__veterok {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 92%;
  width: auto;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.45));
}
.slider__veterok--night {
  /* ночная фигура — z-index 5 в правой половине */
  z-index: 5;
}

/* Текст-надписи в ночной половине */
.slider__word {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform var(--word-speed) ease-out;
}
/* «БОЕВОЙ» — изначально полностью скрыт за мужчиной (центр), выезжает влево */
.slider__word--boevoy {
  top: var(--boevoy-top);
  left: var(--boevoy-left);
  width: 15%;
  transform: translate(-50%, -50%)
             translateX(calc(var(--word-offset) * -1))
             translate(calc(var(--mx) * var(--parallax-mult) * -8px),
                       calc(var(--my) * var(--parallax-mult) * -4px));
  z-index: 3;
}
/* «ИНДАСТРИАЛ» — изначально полностью скрыт за мужчиной (центр), выезжает вправо */
.slider__word--industrial {
  top: var(--industrial-top);
  left: var(--industrial-left);
  width: 20%;
  transform: translate(-50%, -50%)
             translateX(var(--word-offset))
             translate(calc(var(--mx) * var(--parallax-mult) * 8px),
                       calc(var(--my) * var(--parallax-mult) * 4px));
  z-index: 4;
}
/* «ТРЭП» — красный, перед мужчиной, параллакс по мыши */
.slider__word--trap {
  bottom: 18%;
  left: 50%;
  width: 26%;
  transform: translate(-50%, 0)
             translate3d(calc(var(--mx) * var(--parallax-mult) * 14px),
                         calc(var(--my) * var(--parallax-mult) * 10px), 0);
  z-index: 6;
  transition: transform 0.2s ease-out;
  filter: drop-shadow(0 8px 20px rgba(255, 0, 0, 0.35));
}

/* Ручка слайдера */
.slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
  touch-action: none;
}
.slider__handle:focus-visible { outline: none; }
.slider__handle:focus-visible .slider__knob {
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.45),
    0 4px 14px rgba(0,0,0,0.6);
}
.slider__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(0,0,0,0.85);
  transform: translateX(-50%);
  pointer-events: none;
}
.slider__knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 4px 14px rgba(0,0,0,0.6);
  transition: box-shadow var(--t), transform var(--t);
}
.slider__knob svg { width: 20px; height: 20px; display: block; }
.slider__handle:hover .slider__knob,
.slider__handle.is-dragging .slider__knob {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.25),
    0 4px 18px rgba(0,0,0,0.7);
  transform: translate(-50%, -50%) scale(1.05);
}

/* ---------- .blackwall ---------- */
/* Контейнер для стримингов и плеера (без фона — фон даёт slider__blackwall) */
.blackwall {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 145px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 13; /* выше веterok'ов */
  pointer-events: auto;
}

/* Чёрная подложка внутри каждой половины слайдера —
   находится ПОЗАДИ veterok'а, обрезается вместе с половиной. */
.slider__blackwall {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 145px;
  background: rgba(0,0,0,0.5);
  z-index: 2; /* за veterok'ом (z=5), но впереди фона */
  pointer-events: none;
}

/* ---------- .streams ---------- */
.streams {
  display: flex;
  align-items: center;
  gap: 22px;
}
.streams__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 4px;
  transition: transform var(--t);
}
.streams__btn:hover { transform: translateY(-2px); }

/* Всплывающая подсказка — рисуется через JS как элемент в body,
   чтобы не обрезаться overflow:hidden у .mainport */
.tip {
  position: fixed;
  top: 0; left: 0;
  background: #0a0a0a;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.2s ease;
}
.tip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: calc(50% + var(--arrow-x, 0px));
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 5px solid transparent;
  border-top-color: #0a0a0a;
  border-bottom: 0;
}
.tip.is-visible { opacity: 1; }
.streams__img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity var(--t);
}
.streams__img--bw    { position: relative; opacity: 1; }
.streams__img--color { position: absolute; inset: 4px; opacity: 0; }
.streams__btn:hover .streams__img--bw,
.streams__btn:focus-visible .streams__img--bw    { opacity: 0; }
.streams__btn:hover .streams__img--color,
.streams__btn:focus-visible .streams__img--color { opacity: 1; }
.streams__btn:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 4px; border-radius: 6px; }

/* ---------- .player ---------- */
.player {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 380px;
  height: 110px;
  color: #fff;
}
.player__cover-btn {
  flex-shrink: 0;
  width: 100px; height: 100px;
  overflow: hidden;
  border-radius: 4px;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.player__cover-btn:hover { transform: scale(1.03); box-shadow: 0 6px 22px rgba(0,0,0,0.55); }
.player__cover {
  width: 100%; height: 100%;
  object-fit: cover;
}

.player__main {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.player__title-box {
  overflow: hidden;
  height: 22px;
  position: relative;
}
.player__title {
  white-space: nowrap;
  display: inline-block;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.01em;
}
.player__title-text { padding-right: 40px; }
.player__title--marquee {
  animation: marquee 12s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}
.player__btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  border-radius: 50%;
  transition: opacity var(--t), background var(--t), transform var(--t);
}
.player__btn:hover { opacity: 0.75; }
.player__btn svg { width: 18px; height: 18px; display: block; }
.player__btn--play { width: 38px; height: 38px; }
.player__btn--play svg { width: 22px; height: 22px; }

.player__btn .player__icon--pause { display: none; }
.player.is-playing .player__btn .player__icon--play  { display: none; }
.player.is-playing .player__btn .player__icon--pause { display: block; }

.player__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
}
.player__wave {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  cursor: pointer;
  touch-action: none;
}
.player__wave-bg,
.player__wave-fill {
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-position: left center;
  background-size: 4px 100%;
  /* Звуковая волна — псевдо-волна, повторяющаяся: чередуем разной высоты полосы через градиент */
}
.player__wave-bg {
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255,255,255,0.85) 0 1px,
      transparent 1px 2px,
      rgba(255,255,255,0.55) 2px 3px,
      transparent 3px 4px
    );
  /* Натуральные пики — маска формы волны */
  -webkit-mask: linear-gradient(#000, #000);
  mask: linear-gradient(#000, #000);
}
.player__wave-fill {
  width: 100%;
  clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0);
  background-image:
    repeating-linear-gradient(
      to right,
      var(--accent) 0 1px,
      transparent 1px 2px,
      #b30c00 2px 3px,
      transparent 3px 4px
    );
  transition: clip-path 0.08s linear;
}
/* Имитация «биения волны» — высота баров через мини-svg в background */
.player__wave-bg, .player__wave-fill {
  /* динамическая волна через svg */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'><g fill='%23ffffff' opacity='0.85'>\
<rect x='0' y='9' width='2' height='4'/><rect x='3' y='7' width='2' height='8'/><rect x='6' y='5' width='2' height='12'/><rect x='9' y='8' width='2' height='6'/>\
<rect x='12' y='3' width='2' height='16'/><rect x='15' y='6' width='2' height='10'/><rect x='18' y='9' width='2' height='4'/><rect x='21' y='4' width='2' height='14'/>\
<rect x='24' y='7' width='2' height='8'/><rect x='27' y='8' width='2' height='6'/><rect x='30' y='2' width='2' height='18'/><rect x='33' y='5' width='2' height='12'/>\
<rect x='36' y='9' width='2' height='4'/><rect x='39' y='6' width='2' height='10'/><rect x='42' y='3' width='2' height='16'/><rect x='45' y='8' width='2' height='6'/>\
<rect x='48' y='7' width='2' height='8'/><rect x='51' y='4' width='2' height='14'/><rect x='54' y='9' width='2' height='4'/><rect x='57' y='5' width='2' height='12'/>\
<rect x='60' y='8' width='2' height='6'/><rect x='63' y='2' width='2' height='18'/><rect x='66' y='7' width='2' height='8'/><rect x='69' y='9' width='2' height='4'/>\
<rect x='72' y='4' width='2' height='14'/><rect x='75' y='6' width='2' height='10'/><rect x='78' y='3' width='2' height='16'/><rect x='81' y='8' width='2' height='6'/>\
<rect x='84' y='9' width='2' height='4'/><rect x='87' y='5' width='2' height='12'/><rect x='90' y='7' width='2' height='8'/><rect x='93' y='4' width='2' height='14'/>\
<rect x='96' y='9' width='2' height='4'/><rect x='99' y='2' width='2' height='18'/><rect x='102' y='6' width='2' height='10'/><rect x='105' y='8' width='2' height='6'/>\
<rect x='108' y='3' width='2' height='16'/><rect x='111' y='9' width='2' height='4'/><rect x='114' y='5' width='2' height='12'/><rect x='117' y='7' width='2' height='8'/>\
<rect x='120' y='4' width='2' height='14'/><rect x='123' y='8' width='2' height='6'/><rect x='126' y='9' width='2' height='4'/><rect x='129' y='2' width='2' height='18'/>\
<rect x='132' y='6' width='2' height='10'/><rect x='135' y='3' width='2' height='16'/><rect x='138' y='9' width='2' height='4'/><rect x='141' y='7' width='2' height='8'/>\
<rect x='144' y='4' width='2' height='14'/><rect x='147' y='8' width='2' height='6'/><rect x='150' y='5' width='2' height='12'/><rect x='153' y='9' width='2' height='4'/>\
<rect x='156' y='3' width='2' height='16'/><rect x='159' y='6' width='2' height='10'/><rect x='162' y='8' width='2' height='6'/><rect x='165' y='2' width='2' height='18'/>\
<rect x='168' y='9' width='2' height='4'/><rect x='171' y='7' width='2' height='8'/><rect x='174' y='5' width='2' height='12'/><rect x='177' y='4' width='2' height='14'/>\
<rect x='180' y='9' width='2' height='4'/><rect x='183' y='3' width='2' height='16'/><rect x='186' y='6' width='2' height='10'/><rect x='189' y='8' width='2' height='6'/>\
<rect x='192' y='9' width='2' height='4'/><rect x='195' y='5' width='2' height='12'/><rect x='198' y='7' width='2' height='8'/><rect x='201' y='4' width='2' height='14'/>\
<rect x='204' y='2' width='2' height='18'/><rect x='207' y='9' width='2' height='4'/><rect x='210' y='6' width='2' height='10'/><rect x='213' y='3' width='2' height='16'/>\
<rect x='216' y='8' width='2' height='6'/><rect x='219' y='9' width='2' height='4'/><rect x='222' y='5' width='2' height='12'/><rect x='225' y='7' width='2' height='8'/>\
<rect x='228' y='4' width='2' height='14'/><rect x='231' y='8' width='2' height='6'/><rect x='234' y='9' width='2' height='4'/><rect x='237' y='3' width='2' height='16'/>\
</g></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.player__wave-fill {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'><g fill='%23ff3d2b'>\
<rect x='0' y='9' width='2' height='4'/><rect x='3' y='7' width='2' height='8'/><rect x='6' y='5' width='2' height='12'/><rect x='9' y='8' width='2' height='6'/>\
<rect x='12' y='3' width='2' height='16'/><rect x='15' y='6' width='2' height='10'/><rect x='18' y='9' width='2' height='4'/><rect x='21' y='4' width='2' height='14'/>\
<rect x='24' y='7' width='2' height='8'/><rect x='27' y='8' width='2' height='6'/><rect x='30' y='2' width='2' height='18'/><rect x='33' y='5' width='2' height='12'/>\
<rect x='36' y='9' width='2' height='4'/><rect x='39' y='6' width='2' height='10'/><rect x='42' y='3' width='2' height='16'/><rect x='45' y='8' width='2' height='6'/>\
<rect x='48' y='7' width='2' height='8'/><rect x='51' y='4' width='2' height='14'/><rect x='54' y='9' width='2' height='4'/><rect x='57' y='5' width='2' height='12'/>\
<rect x='60' y='8' width='2' height='6'/><rect x='63' y='2' width='2' height='18'/><rect x='66' y='7' width='2' height='8'/><rect x='69' y='9' width='2' height='4'/>\
<rect x='72' y='4' width='2' height='14'/><rect x='75' y='6' width='2' height='10'/><rect x='78' y='3' width='2' height='16'/><rect x='81' y='8' width='2' height='6'/>\
<rect x='84' y='9' width='2' height='4'/><rect x='87' y='5' width='2' height='12'/><rect x='90' y='7' width='2' height='8'/><rect x='93' y='4' width='2' height='14'/>\
<rect x='96' y='9' width='2' height='4'/><rect x='99' y='2' width='2' height='18'/><rect x='102' y='6' width='2' height='10'/><rect x='105' y='8' width='2' height='6'/>\
<rect x='108' y='3' width='2' height='16'/><rect x='111' y='9' width='2' height='4'/><rect x='114' y='5' width='2' height='12'/><rect x='117' y='7' width='2' height='8'/>\
<rect x='120' y='4' width='2' height='14'/><rect x='123' y='8' width='2' height='6'/><rect x='126' y='9' width='2' height='4'/><rect x='129' y='2' width='2' height='18'/>\
<rect x='132' y='6' width='2' height='10'/><rect x='135' y='3' width='2' height='16'/><rect x='138' y='9' width='2' height='4'/><rect x='141' y='7' width='2' height='8'/>\
<rect x='144' y='4' width='2' height='14'/><rect x='147' y='8' width='2' height='6'/><rect x='150' y='5' width='2' height='12'/><rect x='153' y='9' width='2' height='4'/>\
<rect x='156' y='3' width='2' height='16'/><rect x='159' y='6' width='2' height='10'/><rect x='162' y='8' width='2' height='6'/><rect x='165' y='2' width='2' height='18'/>\
<rect x='168' y='9' width='2' height='4'/><rect x='171' y='7' width='2' height='8'/><rect x='174' y='5' width='2' height='12'/><rect x='177' y='4' width='2' height='14'/>\
<rect x='180' y='9' width='2' height='4'/><rect x='183' y='3' width='2' height='16'/><rect x='186' y='6' width='2' height='10'/><rect x='189' y='8' width='2' height='6'/>\
<rect x='192' y='9' width='2' height='4'/><rect x='195' y='5' width='2' height='12'/><rect x='198' y='7' width='2' height='8'/><rect x='201' y='4' width='2' height='14'/>\
<rect x='204' y='2' width='2' height='18'/><rect x='207' y='9' width='2' height='4'/><rect x='210' y='6' width='2' height='10'/><rect x='213' y='3' width='2' height='16'/>\
<rect x='216' y='8' width='2' height='6'/><rect x='219' y='9' width='2' height='4'/><rect x='222' y='5' width='2' height='12'/><rect x='225' y='7' width='2' height='8'/>\
<rect x='228' y='4' width='2' height='14'/><rect x='231' y='8' width='2' height='6'/><rect x='234' y='9' width='2' height='4'/><rect x='237' y='3' width='2' height='16'/>\
</g></svg>");
}
.player__wave:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 4px; border-radius: 4px; }

/* ---------- .modal ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  animation: fadeIn 0.2s ease;
}
.modal__card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 32px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  animation: cardIn 0.22s cubic-bezier(.2,.7,.3,1.1);
}
.modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.modal__text {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn--primary {
  background: var(--accent-deep);
  color: #fff;
}
.btn--primary:hover { background: #c4050f; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* Лайтбокс обложки */
.modal--lightbox .modal__overlay { background: rgba(0,0,0,0.85); }
.modal__image {
  position: relative;
  z-index: 1;
  max-width: 80vw;
  max-height: 80vh;
  width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  animation: cardIn 0.22s ease;
}
.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  z-index: 2;
  color: #fff;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.modal__close:hover { background: rgba(0,0,0,0.7); }
.modal__close svg { width: 22px; height: 22px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- .tweaks (панель настройки) ---------- */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: rgba(15, 15, 17, 0.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  z-index: 180;
  font-size: 13px;
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tweaks[hidden] { display: none; }
.tweaks__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: grab;
}
.tweaks__header:active { cursor: grabbing; }
.tweaks__title {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.tweaks__close {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  transition: background var(--t), color var(--t);
}
.tweaks__close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tweaks__body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.tweaks__section {
  display: flex; flex-direction: column; gap: 10px;
}
.tweaks__section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.tweaks__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
}
.tweaks__label {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  grid-column: 1;
}
.tweaks__value {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  grid-column: 2;
}
.tweaks__row input[type="range"] {
  grid-column: 1 / -1;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
}
.tweaks__row input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
.tweaks__row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  height: 14px; width: 14px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tweaks__row input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
.tweaks__row input[type="range"]::-moz-range-thumb {
  height: 14px; width: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tweaks__reset {
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.tweaks__reset:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.05); }

/* ---------- .mobile-* ---------- */
.mobile-page {
  position: relative;
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #060a13;
}
.mobile-bg {
  position: absolute;
  inset: 0;
  width: 110%; height: 110%;
  left: 0; top: -5%;
  object-fit: cover;
  z-index: 1;
  will-change: transform;
  transition: transform 0.25s ease-out;
}
.mobile-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 10;
}
.mobile-logo img { height: 80px; width: auto; display: block; margin-top: -10px; margin-left: -20px; }
.mobile-socials { display: flex; gap: 14px; }
.mobile-socials .socials__btn { width: 60px; height: 60px; margin-top: 10px; }

.mobile-words-top {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 60%;
  transform: translateX(-50%);
  z-index: 2;
  will-change: transform;
  transition: transform 0.2s ease-out;
  pointer-events: none;
}
.mobile-veterok {
  position: absolute;
  bottom: 70px;
  left: 59%;
  height: 65dvh;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  z-index: 3;
  will-change: transform;
  transition: transform 0.2s ease-out;
  pointer-events: none;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.45));
}
.mobile-words-bottom {
  position: absolute;
  bottom: 40%;
  left: 43%;
  width: 45%;
  transform: translateX(-50%);
  z-index: 4;
  will-change: transform;
  transition: transform 0.2s ease-out;
  pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(255,0,0,0.35));
}

.mobile-blackwall {
  position: absolute;
  left: 0; right: 0;
  bottom: 110px;
  height: 140px;
  background: rgba(0,0,0,0.55);
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.player--mobile {
  width: 100%;
  height: 90px;
  gap: 12px;
}
.player--mobile .player__cover-btn { width: 100px; height: 100px; }

.mobile-streams {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: #000;
  z-index: 6;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
}
.mobile-streams .streams__btn { height: 40px; }
.mobile-streams .streams__img { height: 50px; }
/* На тач — :active включает цветную */
@media (hover: none) {
  .mobile-streams .streams__btn:active .streams__img--bw    { opacity: 0; }
  .mobile-streams .streams__btn:active .streams__img--color { opacity: 1; }
}

/* ---------- media queries ---------- */

/* Tablet: уменьшаем поля */
@media (max-width: 1180px) {
  .mainport { margin: 60px 40px 0; width: calc(100vw - 80px); }
  .player { width: 340px; }
  .blackwall { padding: 0 28px; height: 130px; }
  .slider__blackwall { height: 130px; }
  .streams { gap: 16px; }
  .streams__img { height: 32px; }
}

@media (max-width: 940px) {
  .mainport { margin: 48px 24px 0; width: calc(100vw - 48px); }
  .socials { top: 24px; right: 28px; gap: 18px; }
  .socials__btn { width: 32px; height: 32px; }
  .player { width: 350px; gap: 12px; }
  .player__cover-btn { width: 82px; height: 82px; }
  .blackwall { height: 110px; padding: 0 20px; }
  .slider__blackwall { height: 110px; }
  .streams { gap: 12px; }
  .streams__img { height: 28px; }
  .copyright { margin-top: 32px; }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  .page-bg { display: none; }
  .mobile-page { display: block; }
}

/* Запрет параллакса по мыши на тач-устройствах */
@media (hover: none) {
  .slider__word--trap {
    transform: translate(-50%, 0);
  }
}
