/* POISONPRICE — общий стиль сайта и кабинета продюсера */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #000;
  --surface: #121212;
  --raised: #1d1d1d;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --faint: #5f5f5f;
  --poison: #9eff2e;
  --poison-dim: rgba(158, 255, 46, 0.14);
  --danger: #ff5a5a;
  --warn: #ffb547;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ── Кнопки и поля ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--raised); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: #262626; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary { background: var(--poison); border-color: var(--poison); color: #000; }
.btn-primary:hover { background: #b2ff5c; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--raised); color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .15s ease;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--poison); }
.hint { font-size: 12px; color: var(--faint); }
.error-text { color: var(--danger); font-size: 14px; }

/* ── Лендинг ───────────────────────────────────────────────── */
.landing {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(158, 255, 46, .16), transparent 70%), var(--bg);
}
.landing-inner { max-width: 640px; display: grid; gap: 28px; justify-items: center; }
.landing-logo { width: min(420px, 82vw); }
.landing h1 { margin: 0; font-size: clamp(18px, 3vw, 22px); font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.landing .producers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.landing footer { margin-top: 24px; font-size: 13px; color: var(--faint); }

/* ── Страница бита ─────────────────────────────────────────── */
.beat-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(158, 255, 46, .12), transparent 70%), var(--bg); }
.beat-share { width: min(420px, 100%); display: grid; gap: 10px; justify-items: center; text-align: center; }
.beat-share .brand img { width: 160px; margin-bottom: 18px; }
.beat-share-cover { width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.beat-share-cover img { width: 100%; height: 100%; object-fit: cover; }
.beat-share h1 { margin: 12px 0 0; font-size: 28px; font-weight: 800; }
.beat-share .facts { color: var(--poison); font-weight: 600; margin: 0; }
.beat-share audio { width: 100%; margin-top: 8px; }

/* ── Вход ──────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(158, 255, 46, .13), transparent 70%), var(--bg); }
.auth-card { width: min(400px, 100%); display: grid; gap: 14px; }
.auth-card .logo { width: 200px; justify-self: center; margin-bottom: 4px; }
.auth-card h2 { margin: 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: none; }
.link:hover { color: var(--text); }
.link.accent { color: var(--poison); font-weight: 600; }
.code-input { text-align: center; font-size: 24px; letter-spacing: .3em; font-weight: 700; height: 56px; }

/* ── Кабинет ───────────────────────────────────────────────── */
.studio { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 22px 14px; border-right: 1px solid var(--line); background: #070707;
}
.sidebar .logo { width: 150px; margin: 0 8px 22px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 600;
}
.nav-link svg { width: 19px; height: 19px; flex: none; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--poison-dim); color: var(--poison); }
.nav-upload { margin: 14px 0; }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--poison), #1a7333); color: #000; font-weight: 900; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-text { min-width: 0; flex: 1; }
.me-text b, .me-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text span { font-size: 12px; color: var(--muted); }

.main { padding: 32px clamp(16px, 4vw, 48px) 64px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }

.segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.segmented button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 8px; color: var(--muted); font-weight: 600; cursor: pointer; }
.segmented button.active { background: var(--raised); color: var(--text); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { margin: 0 0 16px; font-size: 16px; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--faint); }

.chart { position: relative; height: 240px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .bar { fill: var(--poison); }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .bar-hit:hover + .bar, .chart .bar.hover { fill: #c4ff80; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-size: 11px; }
.tooltip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); background: var(--raised); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; font-size: 12px; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.tooltip b { font-size: 15px; display: block; }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

/* ── Таблица битов ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.beats { width: 100%; border-collapse: collapse; font-size: 14px; }
table.beats th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 10px; white-space: nowrap; }
table.beats td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.beats td.num, table.beats th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.beats tr.row { cursor: pointer; }
table.beats tr.row:hover td { background: #171717; }
.beat-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--raised); overflow: hidden; flex: none; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(0,0,0,.45); opacity: 0; cursor: pointer; color: #fff; transition: opacity .15s; }
.thumb:hover .play, .play.playing { opacity: 1; }
.play svg { width: 18px; height: 18px; }
.beat-title { font-weight: 600; }
.beat-meta { font-size: 12px; color: var(--muted); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.published { background: var(--poison-dim); color: var(--poison); }
.badge.draft { background: #2a2a2a; color: var(--muted); }
.badge.hidden { background: rgba(255, 181, 71, .14); color: var(--warn); }
.badge.sold_exclusive { background: rgba(255, 90, 90, .14); color: var(--danger); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { max-width: 280px; height: 38px; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }

/* ── Загрузка ──────────────────────────────────────────────── */
.upload-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.drop {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center; padding: 22px;
  border: 1.5px dashed #3a3a3a; border-radius: var(--radius); background: var(--surface); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--poison); background: #141a0c; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 28px; height: 28px; color: var(--poison); }
.drop b { font-size: 15px; }
.cover-drop { aspect-ratio: 1; padding: 0; overflow: hidden; }
.cover-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-drop .cover-empty { display: grid; gap: 6px; justify-items: center; padding: 20px; }
.file-picked { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.file-picked .info { flex: 1; min-width: 0; }
.file-picked .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.credits { display: grid; gap: 8px; }
.credit-row { display: grid; grid-template-columns: 1fr 110px 34px; gap: 8px; align-items: center; }
.share-input { position: relative; }
.share-input .input { padding-right: 30px; text-align: right; }
.share-input::after { content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.status-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-choice label { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.status-choice input { display: none; }
.status-choice label:has(input:checked) { border-color: var(--poison); background: #121a08; }
.status-choice b { font-size: 14px; }
.status-choice span { font-size: 12px; color: var(--muted); }

.progress { display: grid; gap: 8px; }
.progress-bar { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.progress-bar div { height: 100%; width: 0; background: var(--poison); transition: width .2s ease; }
.steps { display: grid; gap: 6px; font-size: 14px; }
.step { display: flex; gap: 10px; align-items: center; color: var(--faint); }
.step.active { color: var(--text); }
.step.done { color: var(--poison); }
.step .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.step.active .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 12px 32px rgba(0,0,0,.6); z-index: 50; animation: toast-in .2s ease; }
.toast.error { border-color: rgba(255, 90, 90, .5); color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.producer-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.producer-row:first-of-type { border-top: 0; }
.producer-row form { display: flex; gap: 8px; }

/* ── Телефон ───────────────────────────────────────────────── */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  table.beats .opt { display: none; }
  .sidebar { display: none; }
  .mobile-bar { display: flex; position: sticky; top: 0; z-index: 10; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 16px; background: rgba(0,0,0,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mobile-bar .logo { width: 110px; }
  .mobile-nav { display: flex; gap: 2px; overflow-x: auto; }
  .mobile-nav .nav-link { height: 36px; padding: 0 10px; font-size: 13px; }
  .mobile-nav .nav-link span { display: none; }
  .main { padding-top: 20px; }
  .grid-2, .upload-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .producer-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
}

/* ── Админка ───────────────────────────────────────────────── */
.nav-group { margin: 18px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mobile-nav .nav-group { display: none; }
.star { border: 0; background: none; padding: 6px; cursor: pointer; color: #3a3a3a; display: grid; place-items: center; border-radius: 8px; }
.star svg { width: 18px; height: 18px; }
.star:hover { color: var(--muted); background: var(--raised); }
.star.on { color: var(--poison); }
a.stat { color: inherit; transition: border-color .15s; }
a.stat:hover { border-color: #3a3a3a; }
.report.resolved { opacity: .55; }

/* ── Вход через Google ─────────────────────────────────────── */
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.btn-google:hover { background: #ececec; }

/* ── Витрина ───────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(0,0,0,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-logo img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 18px; font-weight: 600; }
.site-header nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-header nav a.active, .site-header nav a:not(.btn):hover { color: var(--text); }
.store { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 120px; }
.store-hero { padding: 24px 0 28px; }
.store-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); font-weight: 900; letter-spacing: -.02em; }
.store-hero p { margin: 6px 0 0; }
.catalog-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.catalog-head .input { max-width: 320px; height: 40px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.chip-btn:hover, .chip-btn.active { color: #000; background: var(--poison); border-color: var(--poison); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; }
.card { min-width: 0; }
.card-cover { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-cover img { transform: scale(1.04); }
.card-play { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--poison); color: #000;
  display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(6px); transition: all .18s ease; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.card-play svg, .big-play svg { width: 22px; height: 22px; }
.card:hover .card-play, .card-play.playing, .card-play:focus-visible { opacity: 1; transform: none; }
.card-badge { position: absolute; left: 10px; top: 10px; background: var(--poison); color: #000; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.card-title { display: block; font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title:hover { text-decoration: underline; }
.card-sub, .card-facts { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-facts { color: var(--faint); font-size: 12px; }

/* Страница бита */
.beat-hero { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 32px; align-items: start; }
.beat-hero-cover { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.beat-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.beat-hero-info { min-width: 0; display: grid; gap: 14px; }
.beat-hero-top { display: flex; gap: 16px; align-items: center; }
.beat-hero-top h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.beat-hero-top p { margin: 4px 0 0; }
.big-play { flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--poison); color: #000; display: grid; place-items: center; cursor: pointer; transition: transform .12s; }
.big-play:active { transform: scale(.94); }
.facts { margin: 0; color: var(--poison); font-weight: 600; }
.beat-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wave { position: relative; height: 96px; cursor: pointer; margin-bottom: 18px; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave-base rect { fill: #3a3a3a; }
.wave-played rect { fill: var(--poison); }
.wave-played { clip-path: inset(0 calc((1 - var(--progress, 0)) * 100%) 0 0); }
.wave:hover .wave-base rect { fill: #4a4a4a; }
.wave-marks { position: absolute; left: 0; right: 0; bottom: -16px; height: 20px; }
.wave-mark { position: absolute; transform: translateX(-50%); width: 18px; height: 18px; padding: 0; border: 1.5px solid #000; border-radius: 50%; overflow: visible;
  background: linear-gradient(135deg, var(--poison), #1a7333); cursor: pointer; display: grid; place-items: center; font-size: 9px; font-weight: 900; color: #000; }
.wave-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wave-tip { display: none; position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 240px; white-space: normal; text-align: left;
  background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 400; color: var(--text); z-index: 5; }
.wave-mark:hover .wave-tip, .wave-mark:focus-visible .wave-tip { display: block; }
.beat-stats { margin-top: 4px; }
.comments { max-width: 760px; margin-top: 44px; }
.comments h2, .more h2 { font-size: 20px; margin: 0 0 14px; }
.comment-form { display: flex; gap: 10px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.comment p { margin: 4px 0 0; }
.avatar.small { width: 32px; height: 32px; font-size: 13px; }
.more { margin-top: 48px; }

/* Окна */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: toast-in .15s ease; }
.modal-card { position: relative; width: min(440px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 12px; }
.modal-card h2 { margin: 0; font-size: 20px; }
.modal-card p { margin: 0; }
.modal-close { position: absolute; right: 12px; top: 12px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 6px; }
.modal-form { display: grid; gap: 10px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money .input { padding-left: 28px; }

/* Плеер снизу */
.has-player { padding-bottom: 84px; }
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(200px, 2fr) auto; gap: 20px; align-items: center;
  padding: 10px clamp(12px, 3vw, 28px); background: rgba(14,14,14,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.player-beat { display: flex; gap: 12px; align-items: center; min-width: 0; text-decoration: none; }
.player-beat img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.player-beat b, .player-beat span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-beat span { font-size: 12px; color: var(--muted); }
.player-controls { display: flex; gap: 6px; align-items: center; }
.player-controls button { border: 0; background: none; color: var(--text); width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.player-controls button:disabled { color: var(--faint); cursor: default; }
.player-controls button svg { width: 18px; height: 18px; }
.player-controls .big { background: var(--text); color: #000; width: 42px; height: 42px; }
.player-progress { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-progress .track { flex: 1; height: 4px; background: #333; border-radius: 2px; cursor: pointer; position: relative; }
.player-progress .track div { height: 100%; width: 0; background: var(--poison); border-radius: 2px; }
.player-next { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Встроенный плеер */
.embed-body { background: transparent; }
.embed { display: flex; gap: 14px; padding: 14px; background: #0d0d0d; border: 1px solid var(--line); border-radius: 14px; height: 160px; }
.embed > img { width: 130px; height: 130px; border-radius: 10px; object-fit: cover; flex: none; }
.embed-main { flex: 1; min-width: 0; display: grid; align-content: space-between; }
.embed-top { display: flex; gap: 12px; align-items: center; }
.embed-top .big-play { width: 44px; height: 44px; }
.embed-text { flex: 1; min-width: 0; }
.embed-text a { text-decoration: none; }
.embed-text b, .embed-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-text span { font-size: 12px; color: var(--muted); }
.embed-logo { height: 18px; width: auto; opacity: .8; }
.embed .wave { height: 56px; margin: 0; }

@media (max-width: 800px) {
  .beat-hero { grid-template-columns: 1fr; }
  .beat-hero-cover { max-width: 360px; }
  .player { grid-template-columns: 1fr auto; gap: 10px; }
  .player-progress { grid-column: 1 / -1; order: 3; }
  .player-next { display: none; }
  .has-player { padding-bottom: 120px; }
  .card-play { opacity: 1; transform: none; width: 40px; height: 40px; }
  .site-logo img { height: 26px; }
}
@media (max-width: 480px) {
  .embed > img { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}

/* ── Кабинет: офферы, география, переключатели ─────────────── */
.offer-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.offer-head .beat-cell { flex: 1; min-width: 200px; }
.offer-amount { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offer-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-line { height: 8px; background: var(--raised); border-radius: 4px; overflow: hidden; }
.bar-line div { height: 100%; background: var(--poison); border-radius: 4px; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.toggle input { margin-top: 3px; accent-color: var(--poison); width: 16px; height: 16px; flex: none; }
.toggle b { display: block; font-size: 14px; }
.toggle small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .toggles { grid-template-columns: 1fr; } }

/* ── Продюсеры и аккаунт ───────────────────────────────────── */
.plink { color: inherit; text-decoration: none; }
.plink:hover { color: var(--text); text-decoration: underline; }
.avatar.xl { width: 128px; height: 128px; font-size: 48px; }
.producer-hero { display: flex; gap: 28px; align-items: center; margin: 12px 0 36px; flex-wrap: wrap; }
.producer-hero h1 { margin: 2px 0 4px; font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -.02em; }
.producer-hero p { margin: 0 0 12px; }
.producer-bio { max-width: 640px; white-space: pre-wrap; }
.producer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.producer-card { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.producer-card:hover { border-color: var(--poison); transform: translateY(-2px); }
.producer-card .avatar.xl { width: 110px; height: 110px; margin-bottom: 8px; }
.like-btn.on { color: var(--poison); }
.list { display: grid; }
.list-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list-row a { font-weight: 600; text-decoration: none; }
.store h2 { font-size: 20px; }

/* ── Лента (как в SoundCloud) ──────────────────────────────── */
.feed { display: grid; gap: 4px; max-width: 980px; }
.feed-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feed-cover { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); align-self: start; }
.feed-cover img { width: 100%; height: 100%; object-fit: cover; }
.feed-main { min-width: 0; display: grid; gap: 10px; }
.feed-top { display: flex; gap: 12px; align-items: center; }
.feed-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--poison); color: #000; display: grid; place-items: center; cursor: pointer; }
.feed-play svg { width: 20px; height: 20px; }
.feed-titles { min-width: 0; flex: 1; }
.feed-title { display: block; font-size: 17px; font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-title:hover { text-decoration: underline; }
.feed-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.feed-tags span { font-size: 12px; color: var(--muted); background: var(--raised); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.feed .wave { height: 64px; margin-bottom: 14px; }
.feed-comment .input { height: 34px; font-size: 13px; border-radius: 9px; }
.feed-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.feed-act { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.feed-act:hover { color: var(--text); border-color: #3a3a3a; }
.feed-act.on { color: var(--poison); border-color: rgba(158, 255, 46, .4); }
.feed-plays { margin-left: 6px; }
.feed-spacer { flex: 1; }
@media (max-width: 640px) {
  .feed-row { grid-template-columns: 72px 1fr; gap: 12px; }
  .feed-tags { display: none; }
  .feed-play { width: 40px; height: 40px; }
  .feed-spacer { flex-basis: 100%; height: 0; }
}

/* ── Профиль продюсера ─────────────────────────────────────── */
.profile-banner { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #1b2a0a, #0b0b0b 60%); margin-bottom: 28px; }
.profile-banner-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.2)); }
.profile-banner-inner { position: relative; z-index: 1; display: flex; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 40px); flex-wrap: wrap; }
.profile-banner .avatar.xl { width: clamp(110px, 16vw, 180px); height: clamp(110px, 16vw, 180px); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.profile-id h1 { margin: 0; font-size: clamp(32px, 6vw, 60px); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.profile-id p { margin: 8px 0 16px; color: rgba(255,255,255,.75); font-weight: 600; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.profile-tabs { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; }
.profile-tabs .active { font-weight: 800; font-size: 17px; color: var(--poison); }
.profile-side { position: sticky; top: 80px; display: grid; gap: 22px; }
.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 6px; }
.side-stats b { display: block; font-size: 22px; font-weight: 800; }
.side-stats span { font-size: 12px; color: var(--muted); }
.side-block h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.side-block .producer-bio { margin: 0; color: var(--muted); font-size: 14px; }
.side-block .chips { margin: 0; }
.chip-btn { text-decoration: none; }
.side-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.side-links a { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.side-links a:hover { border-color: var(--poison); color: var(--poison); }
.side-person { display: flex; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; }
.side-person .avatar { width: 46px; height: 46px; }
.side-person b, .side-person span { display: block; }
.side-person:hover b { text-decoration: underline; }
.profile-layout .feed { max-width: none; }
@media (max-width: 960px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; order: -1; }
}

/* Редактор профиля */
.profile-edit { display: grid; gap: 18px; max-width: 860px; }
.banner-drop { aspect-ratio: 16 / 5; padding: 0; overflow: hidden; }
.banner-drop img, .avatar-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-edit-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.avatar-drop { width: 150px; height: 150px; border-radius: 50%; padding: 0; overflow: hidden; flex: none; }

/* ══ SoundCloud-стиль (перекрывает старые правила выше) ══════ */
a { text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--poison); }
.btn:hover, .site-logo:hover, .feed-cover:hover, .sc-mini-row:hover { color: inherit; }
.btn-primary:hover { color: #000; }
.plink:hover, .card-title:hover, .feed-title:hover { text-decoration: none; color: var(--poison); }
.site-header nav a:not(.btn):hover { color: var(--poison); }

/* Волна: столбики + отражение, время по краям */
.wave { height: 72px; margin-bottom: 16px; }
.wave-base rect { fill: #5a5a5a; }
.wave-base rect.r { fill: #3a3a3a; }
.wave-played rect { fill: var(--poison); }
.wave-played rect.r { fill: #5f8f22; }
.wave:hover .wave-base rect { fill: #707070; }
.wave:hover .wave-base rect.r { fill: #444; }
.wave-time { position: absolute; top: 46%; font-size: 11px; line-height: 1; padding: 2px 4px; background: rgba(0,0,0,.75); color: #ddd; border-radius: 3px; pointer-events: none; font-variant-numeric: tabular-nums; }
.wave-time.now { left: 0; color: var(--poison); }
.wave-time.now:empty { display: none; }
.wave-time.dur { right: 0; }
.wave-marks { bottom: -14px; }

/* Строка ленты */
.feed { max-width: none; }
.feed-row { grid-template-columns: 160px 1fr; gap: 20px; padding: 20px 0; border-bottom: 0; }
.feed-row.current .feed-play { box-shadow: 0 0 0 4px rgba(158,255,46,.18); }
.feed-top { align-items: flex-start; }
.feed-play { width: 48px; height: 48px; background: #fff; }
.feed-play.playing, .feed-row.current .feed-play { background: var(--poison); }
.feed-artist { font-size: 14px; color: var(--muted); }
.feed-artist .plink { color: var(--muted); }
.feed-title { font-size: 16px; white-space: normal; line-height: 1.3; }
.feed-facts { color: var(--faint); font-weight: 500; font-size: 13px; margin-left: 4px; }
.feed-meta { display: grid; justify-items: end; gap: 6px; flex: none; }
.feed-ago { font-size: 13px; color: var(--faint); }
.feed-tag { font-size: 13px; color: #ddd; background: #2a2a2a; padding: 4px 10px; border-radius: 999px; }
.feed-tag:hover { background: var(--poison); color: #000; }
.feed-actions { gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-width: 36px; padding: 0 9px; justify-content: center; border: 1px solid #333; border-radius: 6px; background: #1c1c1c; color: #ddd; cursor: pointer; font-weight: 700; font-size: 13px; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: #555; color: #fff; }
.icon-btn.on { color: var(--poison); border-color: rgba(158,255,46,.45); }
.icon-btn.accent { background: var(--poison); border-color: var(--poison); color: #000; }
.icon-btn.accent:hover { background: #b6ff63; }
.feed-stats { display: flex; gap: 14px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.feed-stats span, .feed-stats a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.feed-stats svg { width: 13px; height: 13px; }
.feed-stats a:hover { color: var(--poison); }
.sc-heading { font-size: 22px; font-weight: 800; margin: 8px 0 4px; }

/* Профиль */
.sc-banner { position: relative; display: flex; align-items: center; gap: 32px; min-height: 260px; padding: 32px; margin: -28px calc(-1 * clamp(16px, 4vw, 40px)) 0;
  background: linear-gradient(135deg, #3b3b3b, #8c8c8c); overflow: hidden; }
.sc-banner[style]::before { content: ""; position: absolute; inset: -30px; background: var(--banner) center / cover; filter: blur(28px) saturate(1.2) brightness(.8); transform: scale(1.1); }
.sc-banner > * { position: relative; z-index: 1; }
.sc-avatar { width: 200px; height: 200px; font-size: 72px; flex: none; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.sc-names h1 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.4; }
.sc-names span { background: #000; color: #fff; padding: 4px 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sc-names p { margin: 8px 0 0; font-size: 15px; }
.sc-names p span { background: rgba(0,0,0,.85); color: #ccc; padding: 3px 8px; }
.sc-banner-actions { position: absolute; top: 18px; right: 18px; }
.sc-dark { background: #000; color: #fff; border-color: #000; }
.sc-bar { position: sticky; top: 59px; z-index: 15; display: flex; align-items: center; gap: 16px; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.sc-mini { display: none; align-items: center; gap: 10px; font-size: 18px; }
.sc-mini .avatar { width: 32px; height: 32px; font-size: 14px; }
.sc-bar.stuck .sc-mini { display: flex; }
.sc-bar.stuck .sc-tabs { display: none; }
.sc-tabs { display: flex; gap: 22px; }
.sc-tabs button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 15px; padding: 6px 0; cursor: pointer; border-bottom: 2px solid transparent; }
.sc-tabs button:hover { color: var(--text); }
.sc-tabs button.active { color: var(--text); border-bottom-color: var(--text); }
.sc-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.sc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.sc-side { position: sticky; top: 130px; display: grid; gap: 24px; padding-left: 24px; border-left: 1px solid var(--line); }
.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.sc-stats span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.sc-stats b { display: block; font-size: 26px; font-weight: 800; }
.sc-links { display: grid; gap: 8px; }
.sc-links a { display: flex; align-items: center; gap: 10px; color: #ccc; font-weight: 600; font-size: 14px; }
.sc-links svg { width: 18px; height: 18px; color: var(--muted); }
.sc-links a:hover, .sc-links a:hover svg { color: var(--poison); }
.sc-block h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sc-bio { margin: 0; color: #bbb; font-size: 14px; white-space: pre-wrap; }
.sc-mini-row { display: flex; gap: 12px; padding: 8px 0; align-items: center; }
.sc-mini-row img { width: 50px; height: 50px; object-fit: cover; flex: none; }
.sc-mini-row div { min-width: 0; display: grid; font-size: 13px; }
.sc-mini-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-mini-row:hover b { color: var(--poison); }
.sc-mini-stats { display: flex; gap: 4px; align-items: center; color: var(--muted); font-size: 12px; }
.sc-mini-stats svg { width: 11px; height: 11px; margin-left: 4px; }
.sc-person { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--text); }
.sc-person .avatar { width: 52px; height: 52px; font-size: 20px; }
.sc-person div { flex: 1; min-width: 0; display: grid; }
.sc-person div span { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.sc-person div span svg { width: 11px; height: 11px; }
.sc-person:hover b { color: var(--poison); }
.sc-list-row { display: grid; padding: 8px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.sc-list-row span { font-size: 12px; color: var(--muted); }
.sc-list-row:hover b { color: var(--poison); }
.sc-explore { font-size: 13px; color: var(--faint); }
.sc-explore a { color: var(--muted); }
.sc-explore a:hover { color: var(--poison); }

/* Страница «Producers» */
.producer-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.producer-card { padding: 34px 20px 26px; gap: 8px; color: var(--text); }
.producer-card .avatar.xl { width: 180px; height: 180px; font-size: 64px; margin-bottom: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.producer-card b { font-size: 20px; }
.producer-card:hover { color: var(--text); background: #161d0d; }
.producer-card:hover b { color: var(--poison); }
.producer-card:hover .avatar.xl { transform: scale(1.04); box-shadow: 0 0 0 4px var(--poison); }

@media (max-width: 960px) {
  .sc-layout { grid-template-columns: 1fr; }
  .sc-side { position: static; padding-left: 0; border-left: 0; order: -1; }
  .sc-banner { flex-direction: column; align-items: flex-start; min-height: 0; gap: 18px; }
  .sc-avatar { width: 130px; height: 130px; font-size: 48px; }
}
@media (max-width: 640px) {
  .feed-row { grid-template-columns: 1fr; }
  .feed-cover { display: none; }
  .feed-meta { display: none; }
  .sc-tabs { gap: 14px; overflow-x: auto; }
}
