/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

video::-webkit-media-controls,
video::-webkit-media-controls-enclosure {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {

  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

:root {
  --glass-bg: rgba(8, 8, 9, 0.72);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #f2f2f2;
  --text-secondary: rgba(242, 242, 242, 0.42);
  --text-muted: rgba(242, 242, 242, 0.22);
  --accent: #d6d6d6;
  --accent-2: #888888;
  --radius-card: 20px;
  --radius-sm: 10px;
  --font-main: 'Outfit', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: #050507;
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  /* Запрет выделения текста */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== BACKGROUND VIDEO ===== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.3);
  transform: translate3d(0, 0, 0) scale(1.05);
  pointer-events: none;
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform, opacity, filter;
  /* Плавный фейд при смене трека + плавная смена фильтра */
  transition: opacity 0.5s ease, filter 0.9s ease;
}

/* Состояние фейд-аут при смене видео */
.bg-video.bg-fading {
  opacity: 0;
}

.bg-darken {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  /* Плавная смена при смене трека */
  transition: background 0.8s ease;
}



/* ===== CURSOR ===== */
.cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(220, 220, 220, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  transition: width .18s, height .18s, border-color .18s, background .18s;
  will-change: transform, width, height;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor.hovering {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════
   AUTOPLAY OVERLAY — vibes blur entrance
═══════════════════════════════════════ */
.autoplay-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  /* чистый блюр без тёмной подложки */
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(28px) brightness(0.5) saturate(0.6);
  -webkit-backdrop-filter: blur(28px) brightness(0.5) saturate(0.6);
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.4s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.autoplay-overlay.dissolving {
  opacity: 0;
  /* Уходит влево — открывает карточки сбоку */
  transform: translateX(-100%);
  backdrop-filter: blur(0px) brightness(1);
  -webkit-backdrop-filter: blur(0px) brightness(1);
  pointer-events: none;
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.95s cubic-bezier(0.76, 0, 0.24, 1),
    backdrop-filter 0.95s;
}

/* контент оверлея — чисто текст по центру */
.ao-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: ao-in 0.9s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
  position: relative;
}

@keyframes ao-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* скрываем старые кольца и круг */
.ao-pulse-ring {
  display: none;
}

.ao-circle {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* атмосферный glow позади */
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.18)) drop-shadow(0 0 80px rgba(255, 255, 255, 0.06));
  transition: filter 0.3s;
}

.autoplay-overlay:hover .ao-circle {
  filter: drop-shadow(0 0 55px rgba(255, 255, 255, 0.28)) drop-shadow(0 0 100px rgba(255, 255, 255, 0.1));
}

.dissolving .ao-content {
  animation: ao-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes ao-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ao-arrows — >>> */
.ao-arrows {
  font-family: 'Outfit', monospace;
  font-size: 36px;
  letter-spacing: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1;
  user-select: none;
  display: block;
}

/* hint */
.ao-hint {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.28);
}

/* ===== WRAPPER ===== */
.site-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* центр по вертикали */
  gap: clamp(10px, 1.2vh, 16px);
  min-height: 100vh;
  padding: clamp(20px, 4vh, 50px) clamp(12px, 3vw, 28px);
  /* Перспектива для 3D-флипа карточек при входе */
  perspective: 1100px;
  perspective-origin: 50% 40%;
  /* zoom убран — мешал респонсиву */
}

/* ===== CARDS ===== */
.card {
  position: relative;
  width: 100%;
  /* Карточка не больше 480px на больших экранах, не шире 92% viewport на маленьких */
  max-width: min(480px, 92vw);
  /* стиль "агентство насилия" по умолчанию: чёрный полупрозрачный (на 10% светлее) */
  background: rgba(0, 0, 0, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-card);
  /* blur снижен 16→8: карточка на 70% непрозрачная, блюр почти не виден,
     но пере-блюр каждого кадра playing-видео — главный GPU-расход. 8px вдвое легче */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background 0.8s ease;
}

/* dot-grid pattern ON cards only */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: -1;
}

.card:hover {
  border-color: var(--glass-border-hover);
  /* Убрали translateY(-2px) — transform занят float-анимацией.
     Вместо этого усиливаем shadow для hover-фидбека */
  box-shadow: 0 0 55px rgba(255, 255, 255, 0.07), 0 28px 70px rgba(0, 0, 0, 0.6);
}

/* ═══ SPIN-IN — карточка крутится 2 оборота при появлении (быстро) ═══ */
@keyframes card-spin-in {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.2);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(720deg) scale(1);
  }
}

.card.spin-in {
  animation: card-spin-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ═══ FLOAT — карточка покачивается вверх/вниз + чуть влево/вправо ═══ */
@keyframes panel-float {
  0%, 100% { transform: translateY(0px)   rotate(0deg);   }
  25%       { transform: translateY(-4px)  rotate(0.6deg);  }
  50%       { transform: translateY(-9px)  rotate(0deg);   }
  75%       { transform: translateY(-4px)  rotate(-0.6deg); }
}

/* Класс добавляется JS после завершения entrance-анимации */
.card.float-active {
  animation: panel-float 7s ease-in-out infinite;
}
/* Разные фазы — карточки не синхронны, выглядит органично */
.player-card.float-active { animation-delay: -2.4s; }
.links-card.float-active  { animation-delay: -4.9s; }

.card-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(20px);
}

.player-glow {
  background: radial-gradient(circle, rgba(180, 180, 180, 0.07) 0%, transparent 70%);
}

.links-glow {
  background: radial-gradient(circle, rgba(200, 200, 200, 0.05) 0%, transparent 70%);
}

.pasazalka-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}

/* ===== PROFILE CARD ===== */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  z-index: 10;
}

.avatar-wrap {
  position: relative;
  width: clamp(72px, 11vw, 110px);
  height: clamp(72px, 11vw, 110px);
}

/* мягкое свечение вместо крутящегося кольца */
.avatar-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
  filter: blur(6px);
  animation: avatar-breathe 3s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes avatar-breathe {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.avatar-neon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.5),
    0 0 24px rgba(255, 255, 255, 0.2),
    inset 0 0 8px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.avatar-img {
  /* Адаптивный размер: от 72px на узком экране до 110px на большом */
  width: clamp(72px, 11vw, 110px);
  height: clamp(72px, 11vw, 110px);
  border-radius: 50%;
  /* окно к фоновому видео — внутри клон bg-video */
  background: transparent;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}

.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}

/* SVG ник */
.username-svg {
  width: clamp(180px, 30vw, 280px);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
  user-select: none;
  pointer-events: none;
  position: relative;
  animation: nick-breathe 4s ease-in-out infinite;
}

@keyframes nick-breathe {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.2));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.4));
  }
}

/* Обёртка ника */
.username-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.username-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  filter: blur(12px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  animation: bg-glow-pulse 4s ease-in-out infinite;
}

@keyframes bg-glow-pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.bio-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.06em;
  font-style: italic;
}

.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.05em;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.tag:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

/* ═══ 3D-флип карточек статистики ═══ */
.stat-flip {
  position: relative;
  perspective: 600px;
  height: 36px;
  cursor: default;
}

.stat-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}

.stat-front {
  transform: rotateY(0deg);
}

.stat-back {
  transform: rotateY(180deg);
  gap: 2px;
}

.stat-flip:hover .stat-front {
  transform: rotateY(-180deg);
}

.stat-flip:hover .stat-back {
  transform: rotateY(0deg);
}

.stat-back-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.stat-back-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* stat icon */
.stat-icon {
  opacity: 0.35;
  margin-bottom: 1px;
  flex-shrink: 0;
}

.stat-top {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 0.88rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
  flex-shrink: 0;
}

/* loc pin */
.loc-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.loc-pin {
  opacity: 0.7;
  flex-shrink: 0;
}

/* social tooltip */
.social-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(12, 12, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.social-tip.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* shake for social icons */
@keyframes social-shake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  40% {
    transform: rotate(8deg);
  }

  60% {
    transform: rotate(-5deg);
  }

  80% {
    transform: rotate(5deg);
  }
}

.social-btn.shaking svg {
  animation: social-shake 0.45s ease;
}

.socials-row {
  display: flex;
  gap: 10px;
  position: relative;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
/* Тултип соцкнопок рисуется через JS (.social-tip) — он же делает shake при клике.
   CSS ::after убран чтобы не было двойного тултипа. */

/* ===== PLAYER CARD ===== */
.player-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  z-index: 20;
}

.links-card {
  z-index: 20;
}

.player-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.player-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.player-avatar svg {
  width: 100%;
  height: 100%;
}

.player-spinning-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.75);
  border-right-color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  animation: ringRotate 1.6s linear infinite;
  animation-play-state: paused;
}

.player-ring-2 {
  inset: -8px;
  border-top-color: rgba(255, 255, 255, 0.25);
  border-right-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  animation-duration: 3.5s;
  animation-direction: reverse;
}

.player-avatar-wrap.playing .player-spinning-ring {
  animation-play-state: running;
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.player-track {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.player-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.player-bar {
  flex: 1;
  height: 6px;
  background: transparent;
  border-radius: 99px;
  position: relative;
  padding: 10px 0;
  margin: -10px 0;
  box-sizing: content-box;
}

.player-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  pointer-events: none;
}

.player-bar:hover .player-bar-thumb {
  opacity: 1 !important;
}

.player-bar-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: linear-gradient(90deg, #888, #fff);
  border-radius: 99px;
  width: 0%;
  pointer-events: none;
  z-index: 1;
}

.player-bar-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  z-index: 2;
  pointer-events: none;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.ctrl-btn:hover {
  color: var(--text-primary);
}

.play-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.play-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Player-card должен пропускать volume-popup за свои границы */
.player-card {
  overflow: visible;
}

/* Volume popup — выезжает ВВЕРХ над кнопкой */
.vol-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.vol-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  margin-bottom: 8px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  /* hide-delay 200ms — успеваешь дотянуться через гэп */
  transition: opacity 0.25s ease 0.2s, transform 0.25s ease 0.2s;
  z-index: 999;
}

/* Прозрачный "мост" под popup'ом — чтобы мышь могла пройти от кнопки к слайдеру без потери hover */
.vol-popup::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 16px;
  /* transparent, но ловит hover */
}

/* Когда volume popup открыт — приподнимаем player-card над соседями */
.player-card:has(.vol-popup:hover),
.player-card:has(.vol-popup.active),
.player-card:hover .vol-wrap:hover {
  z-index: 100;
  position: relative;
}

.vol-wrap:hover .vol-popup,
.vol-popup.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* На hover показываем сразу, без задержки */
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vol-slider-track {
  width: 6px;
  height: 90px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.vol-slider-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.vol-slider-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, #888, #fff);
  border-radius: 99px;
  height: 70%;
  pointer-events: none;
}

.vol-slider-thumb {
  position: absolute;
  left: 50%;
  bottom: 70%;
  transform: translate(-50%, 50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* ═══ Частицы за курсором ═══ */
.cursor-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  animation: cursor-particle-fade 1.1s ease-out forwards;
  font-family: 'Outfit', sans-serif;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  user-select: none;
}

/* Дефолт — белая точка */
.particle-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* poster boy — красные кресты, нарисованные через CSS (как медицинский крест) */
.particle-plus {
  width: 36px;
  height: 36px;
  font-size: 0; /* убираем место под текст */
  filter: drop-shadow(0 0 4px rgba(180, 30, 30, 0.6));
}

.particle-plus::before,
.particle-plus::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg, #c42323 0%, #9a1818 60%, #7b1212 100%);
  border-radius: 2px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

/* вертикальная палка */
.particle-plus::before {
  width: 12px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* горизонтальная палка */
.particle-plus::after {
  width: 100%;
  height: 12px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* агентство насилия — розовые цветочки с белой серединой */
.particle-flower {
  font-size: 36px;
  color: #ff8fbf; /* розовый */
  text-shadow: 0 0 12px rgba(255, 143, 191, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 0 4px #fff);
}

@keyframes cursor-particle-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 10px))) scale(0.3) rotate(var(--rot, 90deg)); }
}

/* ===== LINKS / GALLERY CARD ===== */
.links-card {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.link-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transition: opacity var(--transition);
}

.link-row:hover::before {
  opacity: 1;
}

.link-row:hover,
.link-toggle:hover {
  color: #fff;
}

.link-toggle {
  user-select: none;
}

.link-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  opacity: 0.7;
}

.link-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.link-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.link-row:hover .link-arrow {
  transform: translateX(4px);
  color: rgba(255, 255, 255, 0.7);
}

.toggle-chevron {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: transform var(--transition), color var(--transition);
}

.link-toggle.open .toggle-chevron {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.7);
}

/* Галерея */
.media-gallery {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  overflow: hidden;
}

.media-gallery.open {
  grid-template-rows: 1fr;
}

.gallery-inner {
  min-height: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 16px;
  overflow: hidden;
}

.media-gallery.open .gallery-inner {
  padding: 4px 16px 12px;
}

.media-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  position: relative;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease,
    border-color var(--transition), box-shadow var(--transition);
}

.media-gallery.open .media-thumb {
  transform: scale(1);
  opacity: 1;
}

.media-gallery.open .media-thumb:nth-child(2) {
  transition-delay: 0.08s;
}

.media-thumb:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: scale(1.04) !important;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.thumb-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition);
}

.media-thumb:hover .thumb-play-icon {
  opacity: 1;
}

/* ===== ПАСЗАЛКА ===== */
.pasazalka-card {
  padding: 16px 22px;
}

.pasazalka-btn {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: all var(--transition);
}

.pasazalka-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.04);
}

.pasz-sparkle {
  font-size: 0.7rem;
  opacity: 0.5;
  animation: sparkle-spin 4s linear infinite;
  display: inline-block;
}

.pasz-sparkle:last-child {
  animation-direction: reverse;
}

@keyframes sparkle-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: none;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  /* Размер по контенту — нет чёрных рамок вокруг вертикальных видео */
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.88);
  transition: none;
  display: flex;
  background: transparent;
}

.lightbox.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-inner img,
.lightbox-inner video {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  background: #000;
}

/* Toast (пасхалка-уведомление) */
.easter-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.22,1,.36,1);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.easter-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Аватарка как кликабельная — лёгкая обратная связь */
#avatar-wrap {
  transition: transform 0.1s ease;
}

/* Спиннер пока видео грузится */
.lb-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lb-spinner.visible {
  opacity: 1;
}
@keyframes lb-spin {
  to { transform: rotate(360deg); }
}

.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lb-close:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.v2-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: none;
}

.v2-modal.open {
  opacity: 1;
  pointer-events: all;
}

.v2-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.v2-inner {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 1200px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
  transform: scale(0.85) translateY(20px);
  transition: none;
}

.v2-modal.open .v2-inner {
  transform: scale(1) translateY(0);
}

.v2-inner video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 85vh;
}

.v2-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.v2-close:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
}

/* ===== ПАСХАЛКА ===== */
.pasz-ghost {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 16px;
  margin-top: 2px;
  transition: color 0.4s, letter-spacing 0.4s, text-shadow 0.4s;
}

.pasz-ghost:hover {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3em;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

/* ===== PASSWORD MODAL ===== */
.pw-modal {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pw-modal.open {
  opacity: 1;
  pointer-events: all;
}

.pw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pw-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 36px;
  border-radius: 18px;
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pw-modal.open .pw-inner {
  transform: scale(1) translateY(0);
}

.pw-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  font-weight: 300;
}

.pw-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pw-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  letter-spacing: 0.3em;
  width: 140px;
  text-align: center;
  outline: none;
  transition: border-color 0.25s;
  /* Разрешаем выделение внутри инпута пароля */
  -webkit-user-select: auto;
  user-select: auto;
}

.pw-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.pw-submit {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.pw-submit:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pw-error {
  font-size: 0.7rem;
  color: rgba(255, 80, 80, 0.7);
  letter-spacing: 0.05em;
  min-height: 16px;
  transition: opacity 0.2s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

/* ===== FOOTER ===== */
.site-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ===== RESPONSIVE ===== */
/* Среднее уменьшение — планшеты, узкие десктопы, средний зум */
@media (max-width: 720px) {
  .card {
    padding: 22px 20px;
  }
  .player-card {
    gap: 12px;
    padding: 14px 16px;
  }
  .stats-row .stat {
    padding: 10px 8px;
  }
  .stats-row .stat-num {
    font-size: 18px;
  }
  .tag {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Узкий экран — мобила или сильный зум */
@media (max-width: 520px) {
  .site-wrapper {
    padding: 24px 12px 20px;
  }
  .card {
    padding: 18px 16px;
  }
  .player-card {
    gap: 10px;
    padding: 12px 14px;
  }
  .stats-row {
    gap: 6px;
  }
  .tags-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .social-btn {
    width: 38px;
    height: 38px;
  }
  .player-controls {
    gap: 4px;
  }
  .ctrl-btn {
    width: 32px;
    height: 32px;
  }
  .play-btn {
    width: 38px;
    height: 38px;
  }
}

/* Очень узкий — высокий зум или маленькая мобила */
@media (max-width: 380px) {
  .site-wrapper {
    padding: 16px 8px 12px;
    gap: 8px;
  }
  .card {
    padding: 14px 12px;
  }
  .username-svg {
    width: clamp(140px, 50vw, 200px);
  }
  .stats-row .stat-num {
    font-size: 15px;
  }
}

/* Низкая высота — окно меньше 600px по высоте (часто при зуме браузера) */
@media (max-height: 600px) {
  .site-wrapper {
    justify-content: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
    min-height: auto;
  }
  body {
    overflow-y: auto;
  }
}