/* ============================================================
   BEATS SITE — дизайн-система в стиле lewdbeats.com
   Тёмная тема, розовый акцент, шрифты Manrope + Space Grotesk
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-elev: #0e0e11;
  --surface: #141417;
  --surface-2: #1b1b20;
  --surface-3: #232329;
  --text: #f4f4f6;
  --text-2: #a4a4ad;
  --text-3: #6c6c76;
  --accent: #ff2d6f;
  --accent-2: #6600ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 45, 111, .16);
  --accent-line: rgba(255, 45, 111, .38);
  --gradient: linear-gradient(135deg, #ff0066, #6600ff);
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.18);
  --pill-music: #c4b5fd;   --pill-music-bg: rgba(139,92,246,.14);
  --pill-star: #cda7ff;    --pill-star-bg: rgba(170,120,255,.13);
  --pill-artist: #fcd34d;  --pill-artist-bg: rgba(245,200,60,.12);
  --pill-char: #5eead4;    --pill-char-bg: rgba(20,184,166,.13);
  --r-sm: 7px;
  --r: 11px;
  --r-lg: 16px;
  --r-xl: 22px;
  --dur: .34s;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --header-h: 64px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-ui);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark {
  width: 30px; height: 30px;
  filter: drop-shadow(0 0 7px rgba(255,45,111,.45));
  perspective: 240px;
}
/* Play <-> H: резкий переворот по наведению; transition доигрывает
   в обе стороны без рестартов, поэтому быстрые движения курсора не лагают */
.lm-flip {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .22s var(--ease-out);
}
.logo:hover .lm-flip { transform: rotateY(180deg); }
.lm-face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  backface-visibility: hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #fff;
  line-height: 1;
}
.lm-h { transform: rotateY(180deg); }
.lm-play svg { margin-left: 3px; }

/* Лого-текст в стиле видео-заставки: жирный HOLO + рукописный неоновый PMV */
.logo-name {
  font-family: "Montserrat", var(--font-display);
  font-weight: 800; font-size: 18px;
  letter-spacing: .01em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 14px rgba(255,255,255,.35);
  display: inline-flex; align-items: baseline;
}
.pmv-neon {
  position: relative;
  font: inherit;                       /* тот же Montserrat 800, что и HOLO */
  color: var(--accent);
  padding: 0 2px;
  text-shadow: 0 0 10px rgba(255,45,111,.45);
  animation: pmvSurge 7s steps(1) infinite;
}
/* лёгкий всплеск яркости в момент удара молнии */
@keyframes pmvSurge {
  0%, 100% { filter: brightness(1); }
  4% { filter: brightness(1.35); }
  6% { filter: brightness(1); }
  8% { filter: brightness(1.2); }
  9% { filter: brightness(1); }
}
/* молнии: зигзаг с белым ядром и розовым свечением, бьют с двух сторон */
.bolt {
  position: absolute; inset: -55% -14%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M2 30 L24 20 L18 26 L44 12 L36 22 L66 8 L58 16 L98 4' fill='none' stroke='%23ff2d6f' stroke-width='3.4' stroke-linejoin='round' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M2 30 L24 20 L18 26 L44 12 L36 22 L66 8 L58 16 L98 4' fill='none' stroke='%23ffffff' stroke-width='1.3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255,45,111,.6));
}
.bolt.b1 { animation: boltFlash 7s steps(1) infinite; }
.bolt.b2 {
  transform: scaleX(-1) scaleY(-.8) rotate(6deg);
  animation: boltFlash 7s steps(1) 3.6s infinite;
}
@keyframes boltFlash {
  0%, 100% { opacity: 0; }
  4% { opacity: .7; }
  6% { opacity: 0; }
  8% { opacity: .45; }
  9% { opacity: 0; }
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); }

.nav-patreon {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent) !important;
  font-size: 13px; font-weight: 700;
  transition: box-shadow .25s, background .25s;
}
.nav-patreon:hover { background: rgba(255,45,111,.26) !important; box-shadow: 0 0 18px rgba(255,45,111,.35); }
.nav-patreon { white-space: nowrap; }
/* кнопка заказа: фиолетовая, не переносится */
.order-nav {
  border-color: rgba(139,92,246,.45) !important;
  background: rgba(139,92,246,.14) !important;
  color: #c4b5fd !important;
}
.order-nav:hover { background: rgba(139,92,246,.3) !important; box-shadow: 0 0 18px rgba(139,92,246,.4); }

.header-spacer { flex: 1; }

.search-box {
  display: flex; align-items: center; gap: 8px;
  flex: 0 1 300px; min-width: 150px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.search-box input { min-width: 0; width: 100%; }
.search-box:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box svg { flex-shrink: 0; opacity: .5; }
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 13.5px;
}
.search-box input::placeholder { color: var(--text-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.lang-btn { padding: 8px 13px; font-size: 12px; letter-spacing: .08em; flex-shrink: 0; color: var(--text-2); }
.lang-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 18px rgba(255,45,111,.35);
}
.btn-accent:hover { background: #ff4581; box-shadow: 0 6px 26px rgba(255,45,111,.5); transform: translateY(-1px); }
.btn-gradient {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 20px rgba(160,30,180,.4);
}
.btn-gradient:hover { filter: brightness(1.15); box-shadow: 0 6px 30px rgba(160,30,180,.6); }
.btn-discord { background: #5865F2; color: #fff; box-shadow: 0 4px 18px rgba(88,101,242,.35); }
.btn-discord:hover { background: #6b76f5; transform: translateY(-1px); box-shadow: 0 6px 26px rgba(88,101,242,.5); }
.btn-telegram {
  background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff;
  box-shadow: 0 4px 18px rgba(42,171,238,.35);
}
.btn-telegram:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 26px rgba(42,171,238,.5); }
/* фирменная кнопка Patreon */
.btn-patreon {
  background: #ff424d; color: #fff;
  box-shadow: 0 4px 18px rgba(255,66,77,.35);
}
.btn-patreon:hover { background: #ff5a63; box-shadow: 0 6px 26px rgba(255,66,77,.5); transform: translateY(-1px); }
.btn-patreon svg { flex-shrink: 0; }

/* ============ LAYOUT ============ */
main { padding-top: var(--header-h); min-height: 100vh; }
.container { padding: 0 var(--gutter); max-width: 1680px; margin: 0 auto; }

/* ============ HERO CAROUSEL ============ */
.hero-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px;
  margin-top: 26px;
}
.hero-wrap > * { min-width: 0; }
@media (max-width: 1000px) { .hero-wrap { grid-template-columns: minmax(0, 1fr); } }

.hero {
  position: relative; z-index: 1; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 21/10; min-height: 300px;
  background: var(--surface);
  isolation: isolate;
  contain: paint;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .7s var(--ease);
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 9s var(--ease-out) forwards;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,10,.88) 0%, rgba(8,8,10,.45) 45%, rgba(8,8,10,.05) 75%),
    linear-gradient(0deg, rgba(8,8,10,.75) 0%, transparent 40%);
}
.hero-content {
  position: absolute; z-index: 2; inset: auto auto 0 0;
  padding: clamp(18px, 3.5vw, 44px);
  max-width: 62%;
  display: flex; flex-direction: column; gap: 13px;
}
@media (max-width: 700px) { .hero-content { max-width: 92%; } }

.hero-badges { display: flex; gap: 8px; }
.hero-badge {
  padding: 5px 12px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.hero-badge.primary { background: var(--accent); color: #fff; box-shadow: 0 0 16px rgba(255,45,111,.5); }
.hero-badge.dim { background: rgba(255,255,255,.1); color: var(--text-2); backdrop-filter: blur(6px); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}

.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--text-2); flex-wrap: wrap; }
.hero-meta .rating { color: var(--accent); font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.hero-music { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }

.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.hero-actions .btn-accent { padding: 12px 26px; font-size: 14.5px; }

.hero-dashes {
  position: absolute; z-index: 3; top: 22px; left: clamp(18px, 3.5vw, 44px);
  display: flex; gap: 7px;
}
.hero-dash {
  width: 26px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.25);
  overflow: hidden; cursor: pointer; position: relative;
  transition: background .3s;
}
.hero-dash .fill {
  position: absolute; inset: 0; width: 0%;
  background: var(--accent); border-radius: 4px;
}
.hero-dash.done .fill { width: 100%; }
.hero-dash.running .fill { animation: dashFill var(--dash-dur, 7s) linear forwards; }
@keyframes dashFill { from { width: 0%; } to { width: 100%; } }

.hero-arrow {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(14,14,17,.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  color: var(--text); opacity: 0; transition: opacity .3s, background .2s, transform .2s;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

/* hero sidebar — uploader card */
.hero-side {
  position: relative; z-index: 2;
  border-radius: var(--r-xl); padding: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 15px;
}
.hero-side .label { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }
.side-user { display: flex; align-items: center; gap: 13px; }
.side-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 0 18px rgba(255,45,111,.3);
  overflow: hidden;
}
.side-avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; }
.side-user span { font-size: 12.5px; color: var(--text-3); }
.side-bio { font-size: 12.5px; color: var(--text-2); line-height: 1.55; max-height: 4.6em; overflow: hidden; }
.side-stats { display: flex; gap: 26px; }
.side-stats > div { display: flex; flex-direction: column; }
.side-stats b { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.side-stats span { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.hero-side .btn-accent { margin-top: auto; }

/* ============ FILTER BAR ============ */
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  background: linear-gradient(180deg, var(--bg) 75%, transparent);
  margin-top: 22px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 16px; border-radius: 999px; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .22s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.chip.active {
  color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: 0 3px 14px rgba(255,45,111,.4);
}
.chip-divider { width: 1px; height: 22px; background: var(--line-2); flex-shrink: 0; margin: 0 4px; }

.sort-select {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: border-color .2s;
  position: relative;
}
.sort-select:hover { border-color: var(--line-strong); color: var(--text); }
.sort-select select {
  appearance: none; background: none; border: none; outline: none;
  color: inherit; font: inherit; cursor: pointer; padding-right: 14px;
}
.sort-select select option { background: var(--surface-2); color: var(--text); }
.sort-select::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* ============ SECTIONS & RAILS ============ */
.section { margin: 34px 0 10px; }
.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.section-title-group { display: flex; flex-direction: column; gap: 2px; }
.section-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--accent); text-transform: uppercase;
}
.section-eyebrow::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--accent); }
.section-head h2 { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.result-count {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 11px; border-radius: 999px; vertical-align: 3px; margin-left: 6px;
  white-space: nowrap;
}
.section-head .view-all {
  margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text-2);
  transition: color .2s;
}
.section-head .view-all:hover { color: var(--accent); }
.rail-arrows { display: flex; gap: 8px; }
.rail-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); transition: all .2s;
}
.rail-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 22vw, 320px);
  gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 2px 18px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px; padding: 6px 2px 18px;
}

/* ============ VIDEO CARD ============ */
.card {
  display: flex; flex-direction: column; gap: 10px;
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); }

.card-thumb {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16/9; background: var(--surface-2);
  isolation: isolate;
}
.card-thumb::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  pointer-events: none; z-index: 3;
}
.card:hover .card-thumb::after {
  border-color: var(--accent-line);
  box-shadow: 0 8px 34px rgba(255,45,111,.25), inset 0 0 24px rgba(255,45,111,.06);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), opacity .3s;
}
.card:hover .card-thumb img.static { opacity: 0; }
.card-thumb img.preview {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
}
.card:hover .card-thumb img.preview { opacity: 1; }
.card:hover .card-thumb img { transform: scale(1.05); }

.badge-cat {
  position: absolute; z-index: 2; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(10,10,12,.72); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255,45,111,.3);
}
.badge-rating {
  position: absolute; z-index: 2; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(10,10,12,.72); backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 800; color: #fff;
}
.badge-rating .heart { color: var(--accent); font-size: 11px; }
.badge-dur {
  position: absolute; z-index: 2; bottom: 10px; right: 10px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(10,10,12,.8); backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.card-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-play { opacity: 1; }
.card-play .ring {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,45,111,.9);
  box-shadow: 0 0 30px rgba(255,45,111,.6);
  animation: playPulse 1.6s ease-in-out infinite;
}
@keyframes playPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 24px rgba(255,45,111,.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(255,45,111,.8); }
}

.card-body { display: flex; flex-direction: column; gap: 7px; padding: 0 3px; }
.card-title {
  font-family: var(--font-display); font-size: 14.5px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.card:hover .card-title { color: var(--accent); }

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-pill {
  padding: 2.5px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
  transition: background .2s, color .2s;
}
.tag-pill:hover { background: var(--accent-soft); color: var(--accent); }
.tag-pill.more { color: var(--text-3); }
.card-music {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--pill-music);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.card-music span { overflow: hidden; text-overflow: ellipsis; }

.card-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.card-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient); display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #fff; overflow: hidden;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-footer .uploader { color: var(--text-2); font-weight: 600; }
.card-footer .uploader:hover { color: var(--accent); }
.card-footer .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* ============ WATCH PAGE ============ */
.watch-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px; margin-top: 24px;
}
@media (max-width: 1100px) { .watch-layout { grid-template-columns: minmax(0, 1fr); } }
.watch-layout > * { min-width: 0; }

.player-shell { position: relative; border-radius: var(--r-lg); isolation: isolate; }
/* цвета ambient-подсветки анимируются плавно (Chrome/Edge; в других — мгновенно) */
@property --amb1 { syntax: "<color>"; inherits: false; initial-value: #ff0066; }
@property --amb2 { syntax: "<color>"; inherits: false; initial-value: #6600ff; }
.player-glow.dynamic {
  background:
    radial-gradient(50% 65% at 22% 42%, var(--amb1), transparent 72%),
    radial-gradient(55% 70% at 78% 58%, var(--amb2), transparent 72%);
  filter: blur(60px) saturate(1.35);
  opacity: .6;
  transition: --amb1 2s ease, --amb2 2s ease;
}
/* Ambient glow: размытая миниатюра видео светится за плеером */
.player-glow {
  position: absolute; inset: -55px -45px; z-index: -1;
  pointer-events: none;
  transition: opacity .6s;
  animation: ambientPulse 7s ease-in-out infinite alternate;
}
.player-glow img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 60px;
  filter: blur(65px) saturate(1.6) brightness(.9);
  opacity: .6;
}
.player-glow.fallback {
  filter: blur(60px); opacity: .5;
  background:
    radial-gradient(40% 55% at 25% 45%, rgba(255,0,102,.5), transparent 70%),
    radial-gradient(45% 60% at 75% 55%, rgba(102,0,255,.5), transparent 70%);
}
.player-shell.no-glow .player-glow { opacity: 0; }
@keyframes ambientPulse {
  0%   { transform: scale(1); }
  100% { transform: scale(1.05); }
}
.player-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16/9; background: #000;
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 60px rgba(0,0,0,.6);
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 4px 0; font-size: 12.5px; color: var(--text-3);
}
.toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; user-select: none;
}
.toggle .tk {
  width: 32px; height: 18px; border-radius: 999px; position: relative;
  background: var(--surface-3); transition: background .25s;
}
.toggle .tk::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--text-2);
  transition: transform .25s var(--ease), background .25s;
}
.toggle input { display: none; }
.toggle input:checked + .tk { background: var(--accent); }
.toggle input:checked + .tk::after { transform: translateX(14px); background: #fff; }

.watch-title-row { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.watch-title { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.015em; }
.watch-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.watch-meta .rating { color: var(--accent); font-weight: 800; }
.watch-meta .badge-cat { position: static; }
.watch-meta .warn {
  padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(250,204,21,.12); color: #facc15; border: 1px solid rgba(250,204,21,.25);
}

.meta-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.meta-line .k { color: var(--text-3); font-weight: 700; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: filter .2s; }
.pill:hover { filter: brightness(1.3); }
.pill.music { background: var(--pill-music-bg); color: var(--pill-music); }
.pill.star  { background: var(--pill-star-bg);  color: var(--pill-star); }
.pill.tag   { background: var(--surface-2); color: var(--text-2); }
.pill.tag:hover { background: var(--accent-soft); color: var(--accent); }

.watch-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--text-2);
  transition: all .22s var(--ease);
}
.action-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.action-btn.liked { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.uploader-card {
  margin-top: 20px; padding: 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.uploader-card .head { display: flex; align-items: center; gap: 13px; }
.uploader-card .head .btn { margin-left: auto; }
.uploader-desc {
  font-size: 13px; color: var(--text-2); line-height: 1.65; white-space: pre-wrap;
  max-height: 130px; overflow: hidden; position: relative;
  transition: max-height .4s var(--ease);
}
.uploader-desc.open { max-height: 2000px; }
.uploader-desc:not(.open)::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 50px;
  background: linear-gradient(transparent, var(--surface));
}
.desc-toggle { font-size: 12.5px; font-weight: 700; color: var(--accent); align-self: flex-start; }

/* comments */
.comments { margin-top: 26px; }
.comments h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 14px; }
.comment-login {
  padding: 22px; border-radius: var(--r-lg); text-align: center;
  background: var(--surface); border: 1px dashed var(--line-2);
  color: var(--text-3); font-size: 13.5px;
}
.comment-login a { color: var(--accent); font-weight: 700; }

/* sidebar */
.related h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.related-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.related-list { display: flex; flex-direction: column; gap: 12px; }
.rel-card {
  display: grid; grid-template-columns: 168px 1fr; gap: 12px;
  border-radius: var(--r); padding: 6px;
  transition: background .2s;
}
.rel-card:hover { background: var(--surface); }
.rel-thumb {
  position: relative; border-radius: var(--r-sm); overflow: hidden;
  aspect-ratio: 16/9; background: var(--surface-2);
}
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.rel-card:hover .rel-thumb img { transform: scale(1.06); }
.rel-thumb .badge-dur { bottom: 6px; right: 6px; padding: 2px 6px; font-size: 10.5px; }
.rel-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rel-info .t {
  font-size: 13px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rel-card:hover .rel-info .t { color: var(--accent); }
.rel-info .u { font-size: 11.5px; color: var(--text-2); }
.rel-info .m { font-size: 11.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.rel-info .m .heart { color: var(--accent); }

/* up next strip */
.upnext { margin-top: 26px; }
.upnext-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.upnext-head h3 { font-family: var(--font-display); font-size: 16px; }
.upnext-head .toggle { margin-left: auto; }

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 60px; border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 44px var(--gutter) 28px;
}
.footer-grid {
  max-width: 1680px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 12px; font-size: 13px; color: var(--text-3); max-width: 340px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2); transition: all .2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1680px; margin: 34px auto 0; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3);
}

/* ============ AUTH ============ */
.user-chip {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 5px 12px 5px 5px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s;
}
.user-chip:hover { border-color: var(--line-strong); }
.user-ava {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: var(--gradient); display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff;
}
.user-ava img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 700; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu {
  position: fixed; top: calc(var(--header-h) + 6px); right: var(--gutter); z-index: 120;
  min-width: 250px; padding: 14px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  display: none; flex-direction: column; gap: 8px;
}
.user-menu.open { display: flex; animation: menuDrop .2s var(--ease); }
.um-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.um-row { font-size: 12.5px; color: var(--text-2); }
.um-btn {
  text-align: left; padding: 9px 12px; border-radius: var(--r);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface); transition: all .2s;
}
.um-btn:hover { color: var(--text); background: var(--surface-3); }
.um-btn.danger:hover { color: #f87171; }

/* ============ PAGINATION ============ */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 26px 0 10px; flex-wrap: wrap;
}
.page-btn {
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--text-2);
  transition: all .2s var(--ease);
}
.page-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.page-btn.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 3px 14px rgba(255,45,111,.4);
}
.page-btn:disabled { opacity: .35; cursor: default; }
.page-dots { color: var(--text-3); padding: 0 2px; }
.pager-info { width: 100%; text-align: center; font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ============ MOBILE MENU ============ */
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  place-items: center; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: rgba(12,12,15,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
  padding: 14px var(--gutter) 20px;
  display: none; flex-direction: column; gap: 4px;
  animation: menuDrop .25s var(--ease);
}
.mobile-menu.open { display: flex; }
@keyframes menuDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
  padding: 12px 10px; border-radius: var(--r);
  font-size: 15px; font-weight: 700; color: var(--text-2);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); background: var(--surface-2); }
.mobile-menu .mm-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-top: 1px solid var(--line); margin-top: 8px;
}
.mobile-menu .tier-switch { display: flex; }

/* ============ TIERS & LOCKS ============ */
.badge-tier {
  position: absolute; z-index: 2; top: 10px; right: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  backdrop-filter: blur(6px);
}
.badge-tier.pro {
  background: rgba(250,204,21,.16); color: #facc15; border: 1px solid rgba(250,204,21,.4);
  text-shadow: 0 0 10px rgba(250,204,21,.4);
}
.badge-tier.vip {
  background: linear-gradient(135deg, rgba(255,0,102,.25), rgba(102,0,255,.3));
  color: #e9b8ff; border: 1px solid rgba(205,120,255,.5);
  text-shadow: 0 0 10px rgba(205,120,255,.5);
}
.badge-tier.inline { position: static; }
.badge-tier.big { font-size: 12px; padding: 6px 16px; }
.badge-tier + .badge-rating { top: 42px; }

.card.locked .card-thumb img.static { filter: blur(6px) brightness(.55) saturate(.8); transform: scale(1.06); }
.card.locked:hover .card-thumb img.static { filter: blur(4px) brightness(.65) saturate(.9); }
.card-lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-align: center;
  background: linear-gradient(180deg, rgba(10,10,12,.15), rgba(10,10,12,.45));
}
.card-lock svg { filter: drop-shadow(0 0 12px rgba(255,45,111,.6)); }
.card-lock b {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  padding: 5px 13px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 3px 16px rgba(255,45,111,.5);
  transform: translateY(4px); opacity: .95;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.card.locked:hover .card-lock b { transform: translateY(0) scale(1.05); box-shadow: 0 5px 24px rgba(255,45,111,.7); }

/* пейволл на странице просмотра */
.paywall-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(18px) brightness(.35) saturate(.85);
  transform: scale(1.1);
}
.paywall {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center;
}
.paywall svg { color: var(--accent); filter: drop-shadow(0 0 18px rgba(255,45,111,.6)); }
.paywall h2 { font-family: var(--font-display); font-size: clamp(17px, 2.4vw, 24px); font-weight: 700; }
.paywall p { max-width: 440px; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.paywall .btn-accent { margin-top: 6px; padding: 12px 26px; }

/* переключатель уровня (предпросмотр ролей) */
.tier-switch {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
}
.tier-opt {
  padding: 6px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  color: var(--text-3); transition: all .2s;
}
.tier-opt:hover { color: var(--text); }
.tier-opt.active.free { background: var(--surface-3); color: var(--text); }
.tier-opt.active.pro { background: rgba(250,204,21,.15); color: #facc15; }
.tier-opt.active.vip { background: linear-gradient(135deg, rgba(255,0,102,.3), rgba(102,0,255,.35)); color: #e9b8ff; }

.rel-lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(10,10,12,.55); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
}
.rel-card.locked .rel-thumb img { filter: blur(4px) brightness(.6); }

/* ============ FRIENDS ============ */
.friends-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px; padding: 6px 2px 18px;
}
.friend-card {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 22px 16px; border-radius: var(--r-lg); text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), border-color .3s, box-shadow .3s;
}
.friend-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 8px 34px rgba(255,45,111,.15);
}
.fr-ava {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--gradient); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #fff;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 0 20px rgba(255,45,111,.2);
}
.fr-ava img { width: 100%; height: 100%; object-fit: cover; }
.friend-card b { font-family: var(--font-display); font-size: 15px; }
.friend-card p {
  font-size: 12px; color: var(--text-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fr-links { display: flex; gap: 8px; margin-top: 2px; }
.fr-link {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2); transition: all .2s;
}
.fr-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ============ COMMUNITY ============ */
.comm-wrap { max-width: 780px; margin: 0 auto 60px; }
.comm-gate {
  margin-top: 90px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 44px 24px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line-2);
}
.comm-gate svg { color: var(--accent); filter: drop-shadow(0 0 18px rgba(255,45,111,.5)); }
.comm-gate h1 { font-family: var(--font-display); font-size: 26px; }
.comm-gate p { color: var(--text-2); font-size: 14px; max-width: 420px; }
.comm-gate-count {
  font-size: 12.5px; font-weight: 700; color: var(--pill-artist);
  background: var(--pill-artist-bg); padding: 5px 13px; border-radius: 999px;
}

.comm-new {
  padding: 18px; border-radius: var(--r-lg); margin-bottom: 24px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.comm-new > b { font-family: var(--font-display); font-size: 15px; }
.comm-new-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.comm-list { display: flex; flex-direction: column; gap: 14px; }
.comm-post {
  padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.comm-post.closed { opacity: .8; }
.comm-post.locked { padding: 0; overflow: hidden; }
.cp-lockbox {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px; color: var(--text-2); font-size: 13.5px;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.015) 14px 28px);
}
.cp-lockbox svg { color: var(--pill-star); }
.cp-lockbox .btn { margin-left: auto; }
.cp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-who { display: flex; flex-direction: column; min-width: 0; }
.cp-who b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.cp-who span { font-size: 11.5px; color: var(--text-3); }
.cp-pin { font-size: 15px; }
.cp-timer { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.cp-admin { display: flex; gap: 4px; }
.cp-admin .um-btn { padding: 5px 9px; font-size: 12px; }
.cp-text { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.cp-votebar {
  height: 6px; border-radius: 4px; overflow: hidden;
  background: rgba(248,113,113,.25);
}
.cp-votebar span { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 4px; transition: width .4s var(--ease); }
.cp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vote-btn {
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: all .2s;
}
.vote-btn:hover { color: var(--text); transform: translateY(-1px); }
.vote-btn.for.active { background: rgba(16,185,129,.18); color: #34d399; border-color: rgba(16,185,129,.4); }
.vote-btn.against.active { background: rgba(248,113,113,.15); color: #f87171; border-color: rgba(248,113,113,.4); }
.cp-outcome { font-size: 13.5px; font-weight: 700; }
.cp-outcome.for { color: #34d399; }
.cp-outcome.against { color: #f87171; }
.cp-outcome.tie { color: var(--text-2); }
.cp-outcome span { color: var(--text-3); font-weight: 600; }
.cp-comments { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.cmt { display: flex; gap: 9px; align-items: flex-start; }
.cmt b { font-size: 12.5px; }
.cmt-time { font-size: 10.5px; color: var(--text-3); margin-left: 5px; }
.cmt p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cmt .um-btn { margin-left: auto; padding: 3px 8px; }
.cmt-new { display: flex; gap: 8px; }
.cmt-new .f-input { flex: 1; margin: 0; }

/* ============ EARLY ACCESS ============ */
.badge-early {
  position: absolute; z-index: 2; bottom: 10px; left: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  background: rgba(16,185,129,.18); color: #34d399;
  border: 1px solid rgba(16,185,129,.45);
  backdrop-filter: blur(6px);
  text-shadow: 0 0 10px rgba(52,211,153,.4);
}
.badge-early.inline { position: static; }
.early-countdown {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #34d399;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3);
  padding: 8px 16px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* ============ AGE GATE ============ */
#age-gate {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 40%, rgba(30,30,40,.9), rgba(5,5,7,.98)), #000;
  padding: 20px;
}
.age-card {
  width: min(430px, 100%); text-align: center;
  padding: 34px 30px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 0 80px rgba(255,45,111,.12), 0 30px 80px rgba(0,0,0,.6);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.age-logo {
  width: 84px; height: 84px; border-radius: 50%;
  background: #0c0c0f; border: 1px solid var(--line-2);
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .06em; line-height: 1.1;
}
.age-logo span { color: var(--accent); }
.age-card h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.age-sub { font-size: 14px; color: var(--text-2); }
.age-note { font-size: 12.5px; color: var(--text-3); }
.age-warn {
  width: 100%; text-align: left; padding: 13px 15px; border-radius: var(--r);
  background: rgba(250,204,21,.07); border: 1px solid rgba(250,204,21,.25);
}
.age-warn b { color: #facc15; font-size: 13px; }
.age-warn p { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.age-actions { display: flex; gap: 10px; width: 100%; margin-top: 4px; }
.age-yes, .age-no {
  flex: 1; padding: 13px; border-radius: var(--r);
  font-size: 14px; font-weight: 700; transition: all .2s;
}
.age-yes { background: linear-gradient(135deg, #fff, #d9d9e0); color: #111; }
.age-yes:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255,255,255,.2); }
.age-no { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2); }
.age-no:hover { color: var(--text); }
.age-foot { font-size: 11px; color: var(--text-3); margin-top: 6px; }

.order-nav { cursor: pointer; }

/* ============ LEGAL ============ */
.legal-wrap { max-width: 820px; margin: 34px auto 60px; }
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.legal-wrap h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.legal-updated { font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; }
.legal-body h2 { font-family: var(--font-display); font-size: 18px; margin: 26px 0 8px; }
.legal-body p, .legal-body li { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.legal-body ul { padding-left: 22px; margin: 8px 0; }
.legal-body a { color: var(--accent); }

/* ============ ADMIN ============ */
.admin-head { display: flex; align-items: center; gap: 16px; margin: 30px 0 18px; }
.admin-head > div { flex: 1; }
.admin-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.admin-sub { color: var(--text-3); font-size: 13.5px; margin-top: 2px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tab {
  padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .2s;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.stat-card {
  padding: 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.stat-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-2); }
.stat-icon { font-size: 17px; }
.stat-card b { font-family: var(--font-display); font-size: 28px; font-weight: 700; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.ar-thumb { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.ar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-info b { font-size: 14px; }
.ar-info span { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.ar-dim { color: var(--text-3) !important; font-size: 11.5px !important; }
.user-ava.big { width: 46px; height: 46px; font-size: 17px; flex-shrink: 0; }
.user-row .u-name { font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-row .u-mail { color: var(--text-2); font-size: 13px; }
.ov-note { font-size: 11px; font-weight: 700; color: var(--pill-artist); background: var(--pill-artist-bg); padding: 2px 8px; border-radius: 999px; }
.u-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 4px 18px; margin-top: 6px; max-width: 640px;
}
.u-grid span { font-size: 13px; color: var(--text); display: flex; flex-direction: column; }
.u-grid i {
  font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
}

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,6,8,.7); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 40px 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(620px, 100%); border-radius: var(--r-xl);
  background: var(--surface-2); border: 1px solid var(--line-2);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
  animation: menuDrop .25s var(--ease);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-head h2 { font-family: var(--font-display); font-size: 20px; }
.modal-x { font-size: 16px; color: var(--text-3); padding: 6px; }
.modal-x:hover { color: var(--text); }
.f-label { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--text-2); margin-top: 12px; }
.f-hint { font-weight: 500; color: var(--text-3); text-transform: none; }
.f-input {
  width: 100%; padding: 10px 13px; margin-top: 5px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 13.5px; outline: none;
}
.f-input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
select.f-input option { background: var(--surface-2); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-tags-row { display: flex; gap: 8px; align-items: center; }
.f-tags-row .f-input { flex: 1; }
.f-thumb-preview { margin-top: 8px; border-radius: var(--r); max-height: 180px; object-fit: cover; }
.tag-x { cursor: pointer; opacity: .6; font-style: normal; }
.tag-x:hover { opacity: 1; color: #f87171; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ============ MISC ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.empty-state {
  padding: 60px 20px; text-align: center; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-state b { font-family: var(--font-display); font-size: 18px; color: var(--text-2); }

/* хедер: как только всё перестаёт влезать — навигация уходит в бургер */
@media (max-width: 1250px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .search-box { flex: 1 1 auto; min-width: 0; }
  .site-header { gap: 10px; }
  .site-header .btn { flex-shrink: 0; padding: 8px 14px; font-size: 12.5px; }
  .site-header > .tier-switch, .site-header > .lang-btn { display: none; }
}
@media (max-width: 620px) {
  .login-label { display: none; }           /* кнопка входа сжимается до значка */
  .user-name { display: none; }
  .rail { grid-auto-columns: 78vw; }
}

/* карусель на мобильных: выше формат, без стрелок, компактный контент */
@media (max-width: 700px) {
  .hero { aspect-ratio: 4/5; min-height: 380px; max-height: 72vh; }
  .hero-arrow { display: none; }
  .hero-content { max-width: 100%; padding: 18px 16px; gap: 9px; }
  .hero-title { font-size: 26px; }
  .hero-music { display: none; }
  .hero-meta { font-size: 12.5px; gap: 10px; }
  .hero-actions .btn-accent { padding: 11px 22px; font-size: 13.5px; }
  .hero-slide::after {
    background:
      linear-gradient(0deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.35) 45%, rgba(8,8,10,.05) 70%);
  }
  .hero-dashes { top: 14px; left: 16px; }
}
