/* ═══════════════════════════════════════════════════════════════════
   ВЕРТИКАЛЬ — оценки релизов в прямом эфире
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 1. Токены ─────────────────────────────────────────────────── */

:root {
  --bg:          #07080c;
  --bg-deep:     #040508;

  --ink:         #edeef4;
  --ink-2:       #a3a8bb;
  --ink-3:       #6d7288;
  --ink-4:       #474c5e;

  --line:        rgba(255, 255, 255, .085);
  --line-soft:   rgba(255, 255, 255, .05);
  --line-strong: rgba(255, 255, 255, .17);

  --glass:       rgba(255, 255, 255, .042);
  --glass-hi:    rgba(255, 255, 255, .075);
  --glass-lo:    rgba(255, 255, 255, .025);
  --sheet:       rgba(14, 15, 22, .72);

  --accent:      #9db4ff;
  --accent-dim:  rgba(157, 180, 255, .14);
  --danger:      #ff6b6b;
  --live:        #ff4d5e;

  --blur:        blur(26px) saturate(165%);
  --blur-lite:   blur(14px) saturate(140%);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-card: 0 26px 60px -34px rgba(0, 0, 0, .95), 0 4px 14px -8px rgba(0, 0, 0, .6);
  --shadow-pop:  0 44px 120px -40px rgba(0, 0, 0, .95);

  --ease: cubic-bezier(.22, .8, .26, 1);
  --shell: 1360px;

  --font-ui: 'Onest', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-display: 'Unbounded', 'Onest', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(157, 180, 255, .28); }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); background-clip: content-box; }

.icon { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── 2. Фон ────────────────────────────────────────────────────── */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.scene::after {
  /* тонкое зерно — убивает «пластиковый» градиентный вид */
  content: '';
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .5;
  will-change: transform;
}

.orb-1 {
  width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle, #2b3a86 0%, rgba(43, 58, 134, 0) 68%);
  animation: drift-a 34s var(--ease) infinite alternate;
}
.orb-2 {
  width: 40vw; height: 40vw; min-width: 360px; min-height: 360px;
  top: 22vh; right: -10vw;
  background: radial-gradient(circle, #7a2340 0%, rgba(122, 35, 64, 0) 68%);
  animation: drift-b 42s var(--ease) infinite alternate;
}
.orb-3 {
  width: 38vw; height: 38vw; min-width: 320px; min-height: 320px;
  bottom: -14vw; left: 26vw;
  background: radial-gradient(circle, #0f5f5a 0%, rgba(15, 95, 90, 0) 68%);
  animation: drift-c 38s var(--ease) infinite alternate;
  opacity: .38;
}

@keyframes drift-a { to { transform: translate3d(9vw, 7vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-8vw, 10vh, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(6vw, -8vh, 0) scale(1.18); } }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .06s !important; }
}

/* ─── 3. Стеклянная поверхность ─────────────────────────────────── */

.glass {
  position: relative;
  background: linear-gradient(158deg, var(--glass-hi) 0%, var(--glass-lo) 62%);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* верхний световой кант — «стекло», а не просто прозрачный блок */
.glass::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255, 255, 255, .32) 22%,
    rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, .32) 78%, transparent 100%);
  opacity: .6;
  pointer-events: none;
}

/* ─── 4. Каркас ─────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}

.app { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; padding: 34px 0 100px; }

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: 21px; }
.section-head .eyebrow { margin-bottom: 6px; }

.hairline { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ─── 5. Шапка ──────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(7, 8, 12, .82), rgba(7, 8, 12, .5));
  backdrop-filter: var(--blur-lite);
  -webkit-backdrop-filter: var(--blur-lite);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }

.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.brand-mark svg { width: 19px; height: 19px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.brand-sub { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-4); margin-top: -3px; }

.nav { display: flex; gap: 2px; margin-left: 8px; }

.nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .18s, background .18s;
}
.nav-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav-btn.is-active { color: var(--ink); background: rgba(255, 255, 255, .085); }
.nav-btn .icon { opacity: .75; }
.nav-btn.is-active .icon { opacity: 1; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--glass);
  transition: border-color .18s, background .18s;
}
.user-chip:hover { border-color: var(--line-strong); background: var(--glass-hi); }

.avatar {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11.5px; font-weight: 600;
  background: linear-gradient(150deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
  border: 1px solid var(--line-strong);
  letter-spacing: .02em;
}
.avatar.is-admin { background: linear-gradient(150deg, rgba(157, 180, 255, .45), rgba(157, 180, 255, .1)); }

.user-chip-name { font-size: 13px; font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-role { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: -4px; }

/* ─── 6. Кнопки ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s, border-color .18s, transform .12s var(--ease), color .18s, opacity .18s;
}
.btn:hover { background: var(--glass-hi); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .42; pointer-events: none; }

.btn-primary {
  background: linear-gradient(180deg, #fbfbfd, #dfe1ea);
  color: #0a0b10;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 8px 24px -12px rgba(255, 255, 255, .5);
}
.btn-primary:hover { background: linear-gradient(180deg, #ffffff, #e9ebf2); border-color: transparent; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }

.btn-danger { color: var(--danger); border-color: rgba(255, 107, 107, .25); background: rgba(255, 107, 107, .07); }
.btn-danger:hover { background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .42); }

.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-icon { padding: 9px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ─── 7. Поля ───────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field-hint { font-size: 12px; color: var(--ink-4); }
.field-error { font-size: 12.5px; color: var(--danger); display: flex; align-items: center; gap: 6px; }

.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--ink);
  font-size: 14px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(157, 180, 255, .55);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.textarea { resize: vertical; min-height: 88px; line-height: 1.6; }

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7288' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.select option { background: #14161f; color: var(--ink); }

.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon .input { padding-left: 40px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .col-2 { grid-column: span 2; }

/* ─── 8. Чипы и бейджи ──────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all .18s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, .07); }
.chip.is-on {
  color: #0a0b10;
  background: linear-gradient(180deg, #f4f5f9, #dcdee8);
  border-color: transparent;
  font-weight: 600;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.badge-live {
  color: #ffd9dd;
  border-color: rgba(255, 77, 94, .4);
  background: rgba(255, 77, 94, .16);
}
.badge-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 94, .6);
  animation: pulse 1.9s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(255, 77, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); }
}

/* ─── 9. Оценка ─────────────────────────────────────────────────── */

.score {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--sc, var(--ink));
}

.score-pill {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 5px 11px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--sc, #fff) 34%, transparent);
  background: color-mix(in srgb, var(--sc, #fff) 13%, rgba(10, 11, 16, .55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--sc, var(--ink));
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}
.score-pill .of { font-size: 9.5px; font-weight: 500; opacity: .58; letter-spacing: .04em; }
.score-pill.is-empty { color: var(--ink-3); border-color: var(--line); background: rgba(10, 11, 16, .5); font-weight: 500; }

.tier {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sc, var(--ink-2));
}

/* ─── 10. Эфир ──────────────────────────────────────────────────── */

.onair {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 20px;
  margin-bottom: 28px;
  overflow: hidden;
}
.onair::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(255, 77, 94, .12), transparent 46%);
  pointer-events: none;
}
.onair-cover {
  width: 148px; height: 148px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  position: relative;
  z-index: 1;
}
.onair-cover img { width: 100%; height: 100%; object-fit: cover; }
.onair-body { position: relative; z-index: 1; min-width: 0; }
.onair-title { font-size: 27px; margin: 10px 0 4px; letter-spacing: -.025em; }
.onair-artist { color: var(--ink-2); font-size: 15px; }
.onair-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.onair-side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.onair-score { font-size: 62px; }

/* ─── 11. Показатели ────────────────────────────────────────────── */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat {
  padding: 17px 19px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, var(--glass-hi), var(--glass-lo));
  backdrop-filter: var(--blur-lite);
  -webkit-backdrop-filter: var(--blur-lite);
}
.stat-top { display: flex; align-items: center; gap: 8px; color: var(--ink-3); margin-bottom: 10px; }
.stat-value { font-family: var(--font-display); font-size: 27px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-note { font-size: 12px; color: var(--ink-4); margin-top: 7px; }

/* ─── 12. Панель фильтров ───────────────────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  border-radius: var(--r-md);
}
.toolbar .input-icon { flex: 1 1 240px; min-width: 200px; }
.toolbar .input { background: rgba(255, 255, 255, .04); }
.toolbar-sep { width: 1px; align-self: stretch; background: var(--line-soft); }

.viewtoggle { display: flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.viewtoggle button { padding: 6px 9px; border-radius: 7px; color: var(--ink-3); transition: all .18s; }
.viewtoggle button:hover { color: var(--ink-2); }
.viewtoggle button.is-on { background: rgba(255, 255, 255, .1); color: var(--ink); }

/* ─── 13. Карточки релизов ──────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  text-align: left;
  border-radius: var(--r-lg);
  padding: 12px 12px 16px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  backdrop-filter: var(--blur-lite);
  -webkit-backdrop-filter: var(--blur-lite);
  transition: transform .3s var(--ease), border-color .25s, background .25s, box-shadow .3s;
  width: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow-card);
}
.card.is-live { border-color: rgba(255, 77, 94, .38); }

.card-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(150deg, #16181f, #0c0d13);
  border: 1px solid var(--line-soft);
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease), filter .3s;
}
.card:hover .card-cover img { transform: scale(1.045); }
.card-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 8, .68) 0%, transparent 42%);
  pointer-events: none;
}

.cover-blank {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--ink-4);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 9px),
    linear-gradient(150deg, #171922, #0b0c11);
}
.cover-blank svg { width: 40%; height: 40%; max-width: 64px; opacity: .5; }

.card-score { position: absolute; top: 9px; right: 9px; z-index: 2; }
.card-flag { position: absolute; top: 9px; left: 9px; z-index: 2; }

.card-body { padding: 13px 3px 0; }
.card-title {
  font-size: 15px; font-weight: 600; letter-spacing: -.012em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-artist { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 11.5px; color: var(--ink-4); }
.card-foot .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); flex: none; }
.card-type { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: 10px; }

.has-reaction { margin-left: auto; color: var(--ink-3); display: inline-flex; }
.card:hover .has-reaction { color: var(--ink-2); }

.btn-reaction { color: #ff8a8a; border-color: rgba(255, 138, 138, .24); background: rgba(255, 138, 138, .07); }
.btn-reaction:hover { background: rgba(255, 138, 138, .13); border-color: rgba(255, 138, 138, .42); }

.card-bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .07); margin-top: 12px; overflow: hidden; }
.card-bar i { display: block; height: 100%; border-radius: 99px; background: var(--sc, var(--ink-3)); transition: width .5s var(--ease); }

/* Быстрая правка: появляется на карточке при наведении */
.card-edit {
  position: absolute;
  right: 9px; bottom: 9px;
  z-index: 3;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 11, 16, .66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s var(--ease), background .18s;
}
.card:hover .card-edit,
.card:focus-within .card-edit { opacity: 1; transform: none; }
.card-edit:hover { background: rgba(28, 30, 42, .92); }

.card, .row { cursor: pointer; }

/* Список */
.list { display: flex; flex-direction: column; gap: 8px; }

.row {
  display: grid;
  grid-template-columns: 34px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px 16px 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .026);
  text-align: left;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.row:hover { background: rgba(255, 255, 255, .06); border-color: var(--line); transform: translateX(3px); }
.row.is-live { border-color: rgba(255, 77, 94, .38); }
.row-index { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; text-align: right; }
.row-cover { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: #0e0f15; }
.row-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-title { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { display: flex; align-items: center; gap: 14px; }
.row-tier { text-align: right; min-width: 96px; }
.row-tier .tier { display: block; font-size: 9.5px; }
.row-tier .listeners { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.row-edit { opacity: 0; transition: opacity .2s; }
.row:hover .row-edit, .row:focus-within .row-edit { opacity: 1; }
@media (hover: none) { .card-edit, .row-edit { opacity: 1; transform: none; } }

/* ─── 14. Пустые состояния ──────────────────────────────────────── */

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 72px 28px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, .016);
}
.empty-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--ink-3);
}
.empty h3 { font-size: 17px; }
.empty p { color: var(--ink-3); font-size: 14px; max-width: 380px; }

/* ─── 15. Модальные окна ────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 4, 7, .66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade .22s var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.modal {
  width: 100%;
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: linear-gradient(158deg, rgba(30, 32, 44, .84), rgba(12, 13, 19, .9));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  animation: rise .3s var(--ease);
  overflow: hidden;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }

.modal-sm { max-width: 430px; }
.modal-md { max-width: 720px; }
.modal-lg { max-width: 940px; }

.modal-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.modal-head h2 { font-size: 19px; }
.modal-head .eyebrow { margin-bottom: 5px; }
.modal-head .btn-icon { margin-left: auto; }

.modal-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, .18);
  flex: none;
}
.modal-foot .spacer { margin-left: auto; }

/* ─── 16. Карточка релиза (детально) ────────────────────────────── */

.detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
.detail > * { min-width: 0; }

.detail-cover {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0e13;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.detail-facts { margin-top: 16px; display: flex; flex-direction: column; gap: 1px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-soft); }
.fact {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, .028);
  font-size: 13px;
}
.fact .icon { color: var(--ink-4); }
.fact-key { color: var(--ink-3); }
.fact-val { margin-left: auto; text-align: right; color: var(--ink); font-weight: 500; }

.detail-title { font-size: 30px; letter-spacing: -.03em; margin: 8px 0 5px; }
.detail-artist { font-size: 16px; color: var(--ink-2); }

.verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--sc, #fff) 22%, var(--line));
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--sc, #fff) 11%, transparent), transparent 62%),
    rgba(255, 255, 255, .03);
}
.verdict-score { font-size: 66px; }
.verdict-of { font-size: 15px; color: var(--ink-3); font-weight: 400; margin-left: 3px; letter-spacing: 0; }
.verdict-meta { min-width: 0; }
.verdict-by { font-size: 12px; color: var(--ink-3); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.verdict-review {
  margin-top: 13px;
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--sc, #fff) 45%, transparent);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.62;
  white-space: pre-wrap;
}
.verdict.is-empty { border-style: dashed; }
.verdict-none { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; }

.detail-notes {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .022);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  white-space: pre-wrap;
}

.audience {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .022);
}
.audience-num { font-family: var(--font-display); font-size: 25px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--sc, var(--ink)); }

/* ─── 17. Слайдер оценки ────────────────────────────────────────── */

.rater {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
}
.rater-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rater-live { display: flex; align-items: baseline; gap: 9px; }
.rater-value { font-size: 46px; }
.rater-of { font-size: 13px; color: var(--ink-3); }

.slider { position: relative; padding: 6px 0 0; }

.slider-rail {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
  overflow: hidden;
}
/* Градиент растянут на всю шкалу и обрезается по текущему значению —
   поэтому правый край заливки всегда того же цвета, что и сам балл. */
.slider-fill {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #e5484d 0%, #f2762e 25%, #f5c542 46.667%, #a3d955 66.667%, #46d67f 83.333%, #2fe0b0 100%);
  clip-path: inset(0 calc(100% - var(--pct, 0%)) 0 0 round 99px);
  transition: clip-path .12s linear;
}

.slider input[type="range"] {
  position: absolute;
  left: 0; right: 0;
  top: -1px;
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: grab;
}
.slider input[type="range"]:active { cursor: grabbing; }

.slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sc, #fff);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .6), 0 0 0 0 color-mix(in srgb, var(--sc, #fff) 40%, transparent);
  transition: box-shadow .2s, transform .12s var(--ease);
}
.slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.1); }
.slider input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.16);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .6), 0 0 0 8px color-mix(in srgb, var(--sc, #fff) 22%, transparent);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sc, #fff);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .6);
}
.slider input[type="range"]::-moz-range-track { background: transparent; }

.slider-ticks { display: flex; justify-content: space-between; margin-top: 12px; }
.slider-tick {
  font-size: 10.5px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  position: relative;
  padding-top: 8px;
}
.slider-tick::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 4px;
  background: var(--line);
}
.slider-tick:first-child::before { left: 0; }
.slider-tick:last-child::before { left: auto; right: 0; }

.rater-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.rater-foot .spacer { margin-left: auto; }
.rater-note { margin-top: 18px; }

.rater-locked {
  display: flex; align-items: center; gap: 13px;
  margin-top: 22px;
  padding: 17px 20px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--ink-3);
  font-size: 13.5px;
}
.rater-locked .icon { color: var(--ink-4); flex: none; }
.rater-locked .btn { margin-left: auto; }

/* ─── 18. Загрузка обложки ──────────────────────────────────────── */

.cover-picker { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.cover-preview {
  width: 116px; height: 116px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .03);
  display: grid; place-items: center;
  color: var(--ink-4);
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-picker-actions { display: flex; gap: 8px; margin-top: 9px; }

/* Импорт релиза по ссылке — верхняя строка формы */
.importer {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(157, 180, 255, .22);
  background: rgba(157, 180, 255, .06);
}
.importer .input { background: rgba(0, 0, 0, .22); }
.importer-hint { margin: 8px 2px 20px; font-size: 12px; color: var(--ink-4); }

@media (max-width: 560px) {
  .importer { flex-direction: column; }
}

/* ─── 18a. Поиск обложек ────────────────────────────────────────── */

.cover-search { display: flex; gap: 10px; margin-bottom: 18px; }

.cover-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}

.cover-result {
  text-align: left;
  border-radius: 14px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .025);
  transition: border-color .18s, background .18s, transform .18s var(--ease), opacity .18s;
}
.cover-result:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.cover-result[disabled] { opacity: .45; pointer-events: none; }
.cover-result.is-busy { opacity: 1; border-color: var(--accent); }

.cover-result-art {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #0e0f15;
  border: 1px solid var(--line-soft);
  margin-bottom: 9px;
}
.cover-result-art img { width: 100%; height: 100%; object-fit: cover; }

.cover-result-title {
  display: block;
  font-size: 12.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cover-result-artist {
  display: block;
  font-size: 11.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cover-result-src {
  display: inline-block;
  margin-top: 6px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4);
}

/* ─── 19. Статистика ────────────────────────────────────────────── */

.panel { padding: 24px; border-radius: var(--r-lg); }

.histogram { display: flex; align-items: flex-end; gap: 6px; height: 190px; margin-top: 22px; }
.hbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.hbar-fill {
  width: 100%;
  min-height: 3px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 82%, transparent), color-mix(in srgb, var(--sc) 26%, transparent));
  border: 1px solid color-mix(in srgb, var(--sc) 42%, transparent);
  border-bottom: 0;
  position: relative;
  transition: height .6s var(--ease);
}
.hbar-count { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hbar-label { font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.rank { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; }
.rank-item { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 9px 10px; border-radius: 11px; transition: background .18s; }
.rank-item:hover { background: rgba(255, 255, 255, .045); }
.rank-pos { font-family: var(--font-display); font-size: 13px; color: var(--ink-4); text-align: right; font-variant-numeric: tabular-nums; }
.rank-cover { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: #0e0f15; border: 1px solid var(--line-soft); }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-title { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-artist { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── 19a. Витрина доната ───────────────────────────────────────── */

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 28px;
  margin-bottom: 22px;
  overflow: hidden;
}
.shop-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(157, 180, 255, .1), transparent 55%);
  pointer-events: none;
}
.shop-hero-body { position: relative; z-index: 1; min-width: 0; }
.shop-name {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 500; letter-spacing: -.02em;
  margin: 12px 0 8px;
}
.shop-note { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; max-width: 60ch; }
.shop-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.shop-contact { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }

/* Шкала 30–90 как декоративный «прайс-лист» справа */
.shop-hero-scale { position: relative; z-index: 1; width: 190px; }
.shop-scale-rail {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #e5484d 0%, #f2762e 25%, #f5c542 46.667%, #a3d955 66.667%, #46d67f 83.333%, #2fe0b0 100%);
}
.shop-scale-marks {
  display: flex; justify-content: space-between;
  margin-top: 9px;
  font-size: 10.5px; letter-spacing: .1em; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  backdrop-filter: var(--blur-lite);
  -webkit-backdrop-filter: var(--blur-lite);
  transition: border-color .22s, transform .22s var(--ease), background .22s;
}
.tier-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
}
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-top h3 { font-size: 15.5px; }
.tier-price {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500; letter-spacing: -.02em;
  white-space: nowrap;
}
.tier-text { font-size: 13px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.tier-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tier-eta { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-4); }

/* Как это работает */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: none; }
.step { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 11px; align-items: start; }
.step-num {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  font-size: 11px; font-weight: 600; color: var(--ink-3);
}
.step-icon { color: var(--ink-3); margin-top: 1px; }
.step-title { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.step-text { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* Заявки */
.orders { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.order {
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .026);
}
/* Заявка без подтверждённой оплаты — приглушена и в очередь не идёт */
.order.is-unpaid {
  border-style: dashed;
  background: rgba(255, 255, 255, .014);
}
.order.is-unpaid .order-title { color: var(--ink-2); }

.panel-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(157, 180, 255, .18);
  background: rgba(157, 180, 255, .06);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.panel-hint .icon { color: var(--accent); flex: none; margin-top: 1px; }

.order-done-warn {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: 12.5px;
  color: var(--ink-3);
}
.order-done-warn .icon { color: var(--ink-3); flex: none; margin-top: 1px; }

.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.order-title { font-size: 14.5px; font-weight: 600; }
.order-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.order-note {
  margin-top: 12px;
  padding-left: 13px;
  border-left: 2px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  white-space: pre-wrap;
}
.order-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 13px; font-size: 12.5px; color: var(--ink-3); }
.order-facts > * { display: inline-flex; align-items: center; gap: 6px; }
.order-facts a:hover, .order-link:hover { color: var(--ink); }
.order-link { color: var(--ink-3); font: inherit; }
.order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.order-actions .spacer { margin-left: auto; }

.order-done { text-align: center; padding: 20px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.order-done-mark {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #46d67f;
  border: 1px solid rgba(70, 214, 127, .4);
  background: rgba(70, 214, 127, .1);
}
.order-done h3 { font-size: 18px; }
.order-done p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; max-width: 44ch; }

/* Надбавка за проход без очереди */
.tier-rush {
  display: flex; align-items: center; gap: 7px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-3);
}
.tier-rush .icon { color: #f5c542; }
.tier-rush b { color: var(--ink); font-weight: 600; }

.rush-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(245, 197, 66, .05);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.rush-switch:hover { border-color: rgba(245, 197, 66, .35); background: rgba(245, 197, 66, .09); }
.rush-switch input { width: 17px; height: 17px; accent-color: #f5c542; cursor: pointer; }
.rush-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.rush-title .icon { color: #f5c542; }
.rush-text { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.rush-price { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: #f5c542; white-space: nowrap; }

.badge-rush {
  color: #f5c542;
  border-color: rgba(245, 197, 66, .38);
  background: rgba(245, 197, 66, .12);
}

.order-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

/* Код заявки — его диктуют в комментарии к донату */
.order-code {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-2);
  vertical-align: 1px;
}

.order-code-box {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .03);
}
.order-code-value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .22em;
  text-indent: .22em;
  color: var(--ink);
}

/* Редактор тарифов */
.tier-editor { display: flex; flex-direction: column; gap: 10px; }
.tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 130px auto;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .022);
}
.tier-row .input { padding: 8px 11px; font-size: 13px; }
.tier-row-desc { grid-column: 1 / -1; }

.switch { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.switch input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.switch span { font-size: 14px; }

@media (max-width: 860px) {
  .shop-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
  .shop-hero-scale { width: 100%; }
  .shop-name { font-size: 27px; }
  .tier-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rush-switch { grid-template-columns: auto minmax(0, 1fr); }
  .rush-price { grid-column: 2; justify-self: start; }
  .tier-row .num, .tier-row [data-f="eta"] { grid-column: auto; }
}

/* ─── 20. Таблица людей ─────────────────────────────────────────── */

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  padding: 0 14px 12px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-4);
  border-bottom: 1px solid var(--line-soft);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .18s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.table .cell-user { display: flex; align-items: center; gap: 11px; }
.table .login { font-size: 12.5px; color: var(--ink-3); }
.table .actions { display: flex; gap: 7px; justify-content: flex-end; }

/* ─── 21. Вход ──────────────────────────────────────────────────── */

.auth-tabs { display: flex; gap: 3px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .26); border: 1px solid var(--line-soft); margin-bottom: 22px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: all .2s; }
.auth-tabs button:hover { color: var(--ink-2); }
.auth-tabs button.is-on { background: rgba(255, 255, 255, .1); color: var(--ink); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-hint { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(157, 180, 255, .07); border: 1px solid rgba(157, 180, 255, .18); font-size: 12.5px; color: var(--ink-2); display: flex; gap: 10px; }
.auth-hint .icon { color: var(--accent); flex: none; margin-top: 1px; }
.auth-hint code { font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: rgba(255, 255, 255, .08); padding: 1px 5px; border-radius: 4px; }

/* ─── 22. Уведомления ───────────────────────────────────────────── */

.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 17px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(20, 22, 30, .9);
  backdrop-filter: var(--blur-lite);
  -webkit-backdrop-filter: var(--blur-lite);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  max-width: 360px;
  animation: toast-in .32s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }
.toast-ok .icon { color: #46d67f; }
.toast-err .icon { color: var(--danger); }
.toast-err { border-color: rgba(255, 107, 107, .3); }

/* ─── 23. Скелетоны ─────────────────────────────────────────────── */

.skeleton { border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); position: relative; overflow: hidden; }
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skeleton-card { height: 300px; }

/* ─── 24. Подвал ────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 34px;
  color: var(--ink-4);
  font-size: 12.5px;
}
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--ink-3); transition: color .18s; }
.footer a:hover { color: var(--ink); }
.footer .spacer { margin-left: auto; }

/* ─── 25. Адаптив ───────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .shell { padding: 0 18px; }
  .nav { display: none; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-cover { max-width: 260px; }
  .onair { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
  .onair-cover { width: 96px; height: 96px; }
  .onair-side { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 14px; text-align: left; }
  .onair-score { font-size: 46px; }
  .onair-title { font-size: 21px; }
  .row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
  .row-index { display: none; }
  .row-cover { width: 52px; height: 52px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col-2 { grid-column: auto; }
  .modal { max-height: calc(100vh - 28px); }
  .overlay { padding: 14px; }
  .toasts { left: 14px; right: 14px; bottom: 14px; align-items: stretch; }
  .toast { max-width: none; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
  .topbar-inner { height: 60px; gap: 12px; }
  .brand-sub { display: none; }
  .user-chip-name { display: none; }
  .user-chip { padding: 4px; }
  .verdict { grid-template-columns: 1fr; gap: 12px; }
  .verdict-score { font-size: 52px; }
  .rater { padding: 17px; }
  .rater-value { font-size: 38px; }
  .stat-row { gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 22px; }
  .main { padding: 22px 0 70px; }
}

/* ─── 26. Мобильная навигация ───────────────────────────────────── */

.tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(7, 8, 12, .88);
  backdrop-filter: var(--blur-lite);
  -webkit-backdrop-filter: var(--blur-lite);
  border-top: 1px solid var(--line-soft);
}
.tabbar-inner { display: flex; gap: 4px; }
.tabbar button {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 4px;
  border-radius: 11px;
  font-size: 10px;
  letter-spacing: .03em;
  color: var(--ink-4);
  transition: color .18s, background .18s;
}
.tabbar button.is-active { color: var(--ink); background: rgba(255, 255, 255, .07); }

@media (max-width: 860px) {
  .tabbar { display: block; }
  .main { padding-bottom: 96px; }
  .footer { display: none; }
  .toasts { bottom: 84px; }
}
