/* =========================================================
   DM Music Distribution — дизайн-система
   Тёмная студийная тема, акцент — «сигнальный» циан из логотипа
   ========================================================= */

:root {
  --bg: #06080b;
  --bg-2: #0b0f14;
  --bg-3: #111720;
  --card: #0d1218;
  --card-2: #131a23;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eef4f7;
  --muted: #93a3ae;
  --dim: #5f6d77;
  --accent: #2fe0ff;
  --accent-2: #12b8d9;
  --accent-ink: #00141a;
  --accent-soft: rgba(47, 224, 255, 0.1);
  --ok: #3ee09a;
  --ok-soft: rgba(62, 224, 154, 0.12);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, 0.12);
  --bad: #ff5d6c;
  --bad-soft: rgba(255, 93, 108, 0.12);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #1e2833 var(--bg); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6.4vw, 76px); }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.accent { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand-text { font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav a.is-active { color: var(--text); background: rgba(255,255,255,0.07); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
  }
  .nav a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #6beaff; box-shadow: 0 8px 30px -10px rgba(47, 224, 255, .6); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { border: 1px solid rgba(255,93,108,.35); color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(47, 224, 255, 0.13), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; }
.hero-meta div { font-size: 14px; color: var(--muted); }
.hero-meta b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }

.wave { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1vw, 10px); height: 320px; }
.wave i {
  display: block; width: clamp(8px, 1.1vw, 13px); border-radius: 99px;
  background: linear-gradient(180deg, #8ff2ff, var(--accent) 40%, #0a8fb0);
  height: var(--h); animation: wave 1.6s var(--d) ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes wave { from { transform: scaleY(0.35); opacity: .65; } to { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wave { height: 160px; order: -1; justify-content: flex-start; }
}

/* ---------------- marquee ---------------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(16px, 2vw, 22px); font-weight: 700; color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------------- sections ---------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px 24px; border-top: 2px solid var(--line-2); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.cta-band {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 60px);
  background: radial-gradient(120% 140% at 100% 0%, rgba(47,224,255,.14), transparent 55%), var(--card);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { max-width: 560px; }

/* ---------------- page head ---------------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 640px; }

/* ---------------- pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; }
.plan.is-featured { border-color: rgba(47,224,255,.45); background: linear-gradient(180deg, rgba(47,224,255,.07), transparent 40%), var(--card); }
.plan-name { font-weight: 700; color: var(--muted); font-size: 15px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-price { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
.plan-price small { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fe0ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan-note { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------------- platforms ---------------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.platform { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; font-size: 15px; }
.platform i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-size: 13px; color: var(--accent-ink); background: var(--c, var(--accent)); flex-shrink: 0; }

/* ---------------- prose ---------------- */
.prose { color: var(--muted); font-size: 16px; }
.prose h2 { font-size: 22px; color: var(--text); margin: 40px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }

/* ---------------- forms ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 36px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.req { color: var(--accent); }
.hint { font-size: 13px; color: var(--dim); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 15px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s; font-size: 15px;
}
.textarea { height: auto; min-height: 120px; padding: 13px 15px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a3ae' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.select option { background: var(--bg-3); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255,255,255,.22); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,224,255,.12); background: var(--bg); }
.is-invalid, .is-invalid:hover { border-color: var(--bad) !important; box-shadow: 0 0 0 4px rgba(255,93,108,.1) !important; }
.input[readonly] { color: var(--muted); background: rgba(255,255,255,.02); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.check input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2.5px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--accent); }

/* segmented radio */
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 13px; }
.seg label { flex: 1; min-width: max-content; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

/* chip (tags) input */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: text; transition: border-color .15s, box-shadow .15s; }
.chips:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,224,255,.12); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.chip button:hover { background: rgba(255,255,255,.08); color: var(--text); }
.chips input { flex: 1; min-width: 120px; height: 34px; border: 0; background: transparent; outline: none; padding: 0 6px; font-size: 15px; }
.chips input::placeholder { color: var(--dim); }

/* dropzone */
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; min-height: 76px; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: rgba(47,224,255,.04); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.drop-ico svg { width: 20px; height: 20px; }
.drop-text { min-width: 0; flex: 1; }
.drop-text b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-text small { color: var(--dim); font-size: 13px; }
.drop.has-file { border-style: solid; border-color: rgba(62,224,154,.4); }
.drop.has-file .drop-ico { background: var(--ok-soft); color: var(--ok); }
.drop.is-error { border-color: var(--bad); }

.cover-drop { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; }
.cover-preview { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--bg-2) repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,.02) 10px 20px); border: 1.5px dashed var(--line-2); overflow: hidden; display: grid; place-items: center; cursor: pointer; transition: border-color .15s; }
.cover-preview:hover, .cover-preview.is-over { border-color: var(--accent); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cover-preview .ph { text-align: center; color: var(--dim); font-size: 13px; padding: 12px; }
.cover-preview .ph svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--accent); }
.cover-preview.is-error { border-color: var(--bad); }
@media (max-width: 560px) { .cover-drop { grid-template-columns: 1fr; } .cover-preview { max-width: 240px; } }

.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.rules li { display: flex; gap: 10px; }
.rules li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

.progress { height: 6px; border-radius: 9px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.alert { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.alert-error { background: var(--bad-soft); color: #ffb3ba; border: 1px solid rgba(255,93,108,.25); }
.alert-ok { background: var(--ok-soft); color: #a6f3cd; border: 1px solid rgba(62,224,154,.25); }
.alert-warn { background: var(--warn-soft); color: #ffd79c; border: 1px solid rgba(255,181,71,.25); }
.alert-info { background: var(--accent-soft); color: #b9f4ff; border: 1px solid rgba(47,224,255,.22); }

/* ---------------- auth ---------------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 70px); }
.auth-side { position: relative; padding: clamp(32px, 6vw, 80px); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--bg-2); }
.auth-side .wave { position: absolute; right: -40px; bottom: 30px; height: 220px; opacity: .35; }
.auth-side h2 { margin-bottom: 16px; position: relative; }
.auth-side ul { position: relative; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 30px; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; }
.tabs button { flex: 1; height: 40px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--muted); transition: background .15s, color .15s; }
.tabs button.is-active { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.stack { display: grid; gap: 16px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------------- release form ---------------- */
.rf-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 80px; }
.rf-nav { position: sticky; top: 94px; display: grid; gap: 2px; }
.rf-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.rf-nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.rf-nav a b { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line-2); }
.rf-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.rf-section { scroll-margin-top: 90px; }
.rf-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rf-section > header h2 { font-size: 21px; margin-bottom: 4px; }
.rf-section > header p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) { .rf-layout { grid-template-columns: minmax(0, 1fr); } .rf-nav { display: none; } }

.type-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; white-space: nowrap; }

.track { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.track + .track { margin-top: 12px; }
.track-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; user-select: none; }
.track-num { width: 32px; height: 32px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-display); font-size: 13px; flex-shrink: 0; }
.track-title { flex: 1; min-width: 0; }
.track-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.track-title small { color: var(--dim); font-size: 13px; }
.track-state { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.track-state.ok { background: var(--ok-soft); color: var(--ok); }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; transition: background .15s, color .15s; }
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.danger:hover { color: var(--bad); background: var(--bad-soft); }
.chev { transition: transform .25s var(--ease); }
.track.is-open .chev { transform: rotate(180deg); }
.track-body { padding: 6px 16px 20px; border-top: 1px solid var(--line); display: none; }
.track.is-open .track-body { display: block; }
.track-body .form-grid { margin-top: 16px; }
.subhead { grid-column: 1 / -1; font-size: 12.5px; font-weight: 800; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 6px; }
.subhead:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.add-track { width: 100%; margin-top: 12px; height: 56px; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; transition: border-color .15s, color .15s, background .15s; }
.add-track:hover { border-color: var(--accent); color: var(--accent); background: rgba(47,224,255,.03); }
.add-track svg { width: 18px; height: 18px; }

.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 14px; }
.stores .check { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); align-items: center; color: var(--text); font-weight: 600; font-size: 14px; }

.submit-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 22px; border-radius: 18px; background: rgba(13,18,24,.92); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.submit-bar .summary { font-size: 14px; color: var(--muted); min-width: 0; }
.submit-bar .summary b { color: var(--text); }
@media (max-width: 560px) { .submit-bar { flex-direction: column; align-items: stretch; padding: 14px; } }

/* upload overlay */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(3,5,7,.8); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.overlay .card { width: 100%; max-width: 480px; }
.up-list { display: grid; gap: 14px; margin-top: 20px; max-height: 50vh; overflow: auto; }
.up-item small { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.up-item small span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- dashboard ---------------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(36px, 5vw, 60px) 0 28px; }
.dash-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.stat { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; transition: border-color .15s, background .15s; }
.stat:hover { border-color: var(--line-2); }
.stat.is-active { border-color: var(--accent); background: linear-gradient(180deg, rgba(47,224,255,.06), transparent), var(--card); }
.stat span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; margin-top: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); flex-shrink: 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pending { color: var(--warn); background: var(--warn-soft); }
.st-changes { color: var(--bad); background: var(--bad-soft); }
.st-approved { color: var(--ok); background: var(--ok-soft); }

.rel-list { display: grid; gap: 10px; }
.rel { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.rel:hover { border-color: var(--line-2); }
.rel-cover { width: 72px; height: 72px; border-radius: 10px; background: var(--bg-3); object-fit: cover; }
.rel-info { min-width: 0; }
.rel-info h3 { font-family: var(--font-body); font-size: 16.5px; font-weight: 800; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-info p { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: var(--dim); }
.rel-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rel-note { grid-column: 1 / -1; margin-top: -2px; }
.rel-note b { display: block; font-size: 13px; margin-bottom: 2px; }
@media (max-width: 620px) {
  .rel { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .rel-cover { width: 56px; height: 56px; }
  .rel-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.empty { text-align: center; padding: 64px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 22px; }

/* drawer (детали релиза) */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(3,5,7,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(720px, 100%); background: var(--bg-2); border-left: 1px solid var(--line-2); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-body { overflow: auto; padding: 22px 20px 40px; display: grid; gap: 22px; align-content: start; }
.d-top { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }
.d-top img { width: 160px; height: 160px; border-radius: 14px; object-fit: cover; background: var(--bg-3); }
.d-top h3 { font-size: 22px; margin-bottom: 6px; overflow-wrap: anywhere; }
@media (max-width: 520px) { .d-top { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }
.d-block h4 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.d-track { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); }
.d-track + .d-track { margin-top: 10px; }
.d-track-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.d-track-head b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.d-track audio { width: 100%; height: 40px; margin: 6px 0 10px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; font-size: 14px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--c, var(--muted)); box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.timeline small { color: var(--dim); display: block; }
.timeline p { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.lyrics { white-space: pre-wrap; font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px; max-height: 220px; overflow: auto; }

/* ---------------- admin ---------------- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.admin-tabs button { padding: 12px 16px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.admin-tabs button.is-active { color: var(--text); border-color: var(--accent); }
.count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--card-2); font-size: 12px; display: inline-grid; place-items: center; color: var(--muted); }
.count.hot { background: var(--accent); color: var(--accent-ink); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { max-width: 340px; height: 42px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chips button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.filter-chips button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: background .12s; }
tbody tr.clickable:hover { background: rgba(255,255,255,.025); }
.t-rel { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.t-rel img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-3); flex-shrink: 0; }
.t-rel b { display: block; }
.t-rel small { color: var(--muted); }
.status-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.status-actions button { height: 44px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.status-actions button.is-current { box-shadow: inset 0 0 0 2px currentColor; }
.status-actions .s-pending { color: var(--warn); }
.status-actions .s-changes { color: var(--bad); }
.status-actions .s-approved { color: var(--ok); }
.status-actions button:hover { background: rgba(255,255,255,.04); }
@media (max-width: 520px) { .status-actions { grid-template-columns: 1fr; } }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.msg + .msg { margin-top: 10px; }
.msg.is-done { opacity: .55; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.msg p { white-space: pre-wrap; color: var(--muted); overflow-wrap: anywhere; }

/* ---------------- toast ---------------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .3s var(--ease); background: var(--card-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; box-shadow: 0 16px 40px -14px rgba(0,0,0,.8); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 80px 0; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* админ-шапка: кнопки всегда видны */
.site-header[data-static] .header-actions .btn-ghost { display: inline-flex; }
.admin-tabs { overflow-y: hidden; scrollbar-width: none; }
.status-actions svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 560px) {
  .track-head { gap: 8px; padding: 12px; }
  .track-state { display: none; }
  .track-head .icon-btn { width: 30px; height: 30px; }
  .track-body { padding: 4px 12px 16px; }
  .submit-bar { gap: 10px; bottom: 10px; }
  .submit-bar .summary { font-size: 13px; }
}
