:root {
  color-scheme: dark;
  --page: oklch(0.13 0.008 230);
  --surface: oklch(0.17 0.009 230);
  --surface-raised: oklch(0.205 0.01 230);
  --surface-active: oklch(0.24 0.016 230);
  --ink: oklch(0.96 0.004 230);
  --muted: oklch(0.71 0.012 230);
  --quiet: oklch(0.58 0.012 230);
  --line: oklch(0.29 0.012 230);
  --line-strong: oklch(0.42 0.016 230);
  --accent: oklch(0.79 0.15 230);
  --accent-ink: oklch(0.12 0.015 230);
  --success: oklch(0.79 0.17 153);
  --warning: oklch(0.82 0.17 82);
  --danger: oklch(0.68 0.2 27);
  --disabled: oklch(0.52 0.015 230);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 72px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  padding-bottom: 88px;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", Aptos, system-ui, sans-serif;
  font-size: 1rem;
  font-kerning: normal;
  font-optical-sizing: auto;
  line-height: 1.5;
}

button,
input,
select,
textarea { font: inherit; }

button,
a,
select,
input[type="date"] { touch-action: manipulation; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

button { color: inherit; }

img { max-width: 100%; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-140%);
  transition: transform 160ms var(--ease);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 48px;
  padding-right: 18px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-module {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-weight: 650;
}

.signal-switch {
  position: relative;
  display: grid;
  width: 74px;
  min-height: 60px;
  place-items: center;
  border-inline: 1px solid var(--line);
  color: var(--accent);
  overflow: visible;
}

.signal-switch::before,
.signal-switch::after {
  position: absolute;
  inset: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.signal-switch::after { inset: 15px 20px; }

.signal-switch svg {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 40px;
}

.ruble-headband {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 3;
}

.ruble-ear { fill: var(--accent); }

.ruble-glyph {
  fill: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.signal-switch span {
  position: absolute;
  top: calc(100% + 4px);
  width: max-content;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.signal-switch:hover::before { border-color: var(--accent); transform: scale(1.12); }
.signal-switch:hover::after { transform: scale(0.82); }
.signal-switch:hover span,
.signal-switch:focus-visible span { opacity: 1; transform: translateY(0); }

.primary-nav {
  display: flex;
  align-items: stretch;
  gap: 24px;
  height: var(--header-height);
  margin-left: 28px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  color: var(--muted);
  font-weight: 650;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.primary-nav a:hover,
.primary-nav a.is-active { color: var(--ink); }

.primary-nav a.is-active::after { opacity: 1; transform: scaleX(1); }

.request-count {
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.75rem;
  text-align: center;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.online,
.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.status-led {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--disabled);
}

.status-led.is-live { background: var(--success); }
.status-led.is-busy { background: var(--warning); }

.login-link {
  display: inline-grid;
  min-width: 88px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 700;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.login-link:hover { border-color: var(--accent); background: var(--surface); }

main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.search-stage {
  padding: 48px 0 28px;
}

.search-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 { text-wrap: balance; }

h1 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.search-heading > p,
.search-heading > div > p:last-child {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
}

.search-intro {
  display: flex;
  max-width: 56ch;
  align-items: flex-end;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}

.search-intro p { margin: 0; color: var(--muted); }
.artist-onboarding { min-width: 210px; }

.search-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(160px, 0.65fr) minmax(160px, 0.65fr) minmax(170px, 0.7fr) auto;
  gap: 12px;
}

.search-controls label,
.request-grid label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.search-field svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  width: 21px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

input,
select { padding: 0 15px; }

.search-field input { padding-left: 48px; }

textarea { min-height: 112px; padding: 12px 15px; resize: vertical; }

input::placeholder,
textarea::placeholder { color: var(--quiet); opacity: 1; }

input:hover,
select:hover,
textarea:hover { border-color: var(--line-strong); }

input:focus,
select:focus,
textarea:focus { border-color: var(--accent); background: var(--surface-raised); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 150ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px) scale(0.99); }

.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: oklch(0.84 0.13 230); }

.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); background: var(--surface-raised); }
.button:disabled { border-color: var(--line); background: transparent; color: var(--disabled); cursor: not-allowed; transform: none; }

.featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(250px, 0.62fr) minmax(500px, 1.5fr);
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.artist-photo,
.profile-cover,
.artist-thumb {
  background-color: var(--surface-raised);
  background-image: url("/booking/assets/dj-portraits.webp");
  background-repeat: no-repeat;
}

.artist-photo {
  position: relative;
  min-height: 430px;
  background-position: 0 0;
  background-size: 200% 200%;
}

.artist-photo.is-meleshkin,
.profile-cover.is-meleshkin {
  background-image: url("/booking/assets/dj-meleshkin.webp");
  background-position: 38% 50%;
  background-size: cover;
}

.artist-photo[data-portrait="0"], .profile-cover[data-portrait="0"] { background-position: 0 0; }
.artist-photo[data-portrait="1"], .profile-cover[data-portrait="1"] { background-position: 100% 0; }
.artist-photo[data-portrait="2"], .profile-cover[data-portrait="2"] { background-position: 0 100%; }
.artist-photo[data-portrait="3"], .profile-cover[data-portrait="3"] { background-position: 100% 100%; }

.photo-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--page);
  color: var(--muted);
  font-size: 0.8rem;
}

.artist-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.artist-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.artist-title-line h2,
.panel-head h2,
.catalog-head h2,
.requests h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
  line-height: 1.1;
}

.verified {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  clip-path: polygon(50% 0, 63% 10%, 79% 8%, 88% 22%, 100% 30%, 96% 47%, 100% 63%, 88% 75%, 81% 91%, 63% 90%, 50% 100%, 36% 91%, 19% 92%, 11% 77%, 0 67%, 4% 49%, 0 33%, 12% 22%, 20% 7%, 37% 10%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.artist-meta {
  margin: 9px 0 0;
  color: var(--muted);
}

.artist-price {
  margin: 18px 0 10px;
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.availability { margin: 0 0 18px; font-size: 0.9rem; }

.artist-copy {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.artist-actions { display: flex; flex-direction: column; gap: 10px; }

.mix-panel {
  min-width: 0;
  padding: 26px;
}

.panel-head,
.catalog-head,
.requests > header,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-head { margin-bottom: 14px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); }

.panel-note {
  color: var(--quiet);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.mix-list { border-top: 1px solid var(--line); }

.mix-row {
  display: grid;
  grid-template-columns: 46px minmax(150px, 0.7fr) minmax(160px, 1.2fr) 54px 46px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.mix-play {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.mix-play:hover { background: var(--accent); color: var(--accent-ink); transform: scale(1.04); }
.mix-play:active { transform: scale(0.96); }

.mix-play:disabled {
  border-color: var(--line);
  color: var(--disabled);
  cursor: not-allowed;
  transform: none;
}

.mix-main { min-width: 0; }
.mix-main strong,
.mix-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix-main strong { font-size: 0.92rem; }
.mix-main span { margin-top: 2px; color: var(--quiet); font-size: 0.78rem; }

.waveform {
  width: 100%;
  height: 44px;
  cursor: pointer;
}

.waveform.is-disabled { cursor: default; opacity: 0.46; }

.mix-stat {
  text-align: center;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.mix-stat span { display: block; color: var(--quiet); font-size: 0.64rem; }

.mix-more {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.mix-more:hover { background: var(--surface-raised); color: var(--ink); }

.catalog { padding: 54px 0 12px; }

.catalog-head { margin-bottom: 18px; }
.catalog-head p,
.requests header p { margin: 5px 0 0; color: var(--muted); }

.catalog-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.catalog-tab {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.catalog-tab.is-active { background: var(--surface-active); color: var(--ink); }

.artist-list { border-top: 1px solid var(--line); }

.artist-row {
  display: grid;
  grid-template-columns: 76px minmax(220px, 1.25fr) minmax(120px, 0.7fr) minmax(150px, 0.7fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms var(--ease);
}

.artist-row:hover,
.artist-row.is-selected { background: var(--surface); }

.artist-row.is-selected { box-shadow: inset 0 0 0 1px var(--accent); }

.artist-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background-size: 200% 200%;
}

.artist-thumb.is-meleshkin {
  background-image: url("/booking/assets/dj-meleshkin.webp");
  background-position: 34% 28%;
  background-size: 190%;
}

.artist-thumb[data-portrait="0"] { background-position: 0 0; }
.artist-thumb[data-portrait="1"] { background-position: 100% 0; }
.artist-thumb[data-portrait="2"] { background-position: 0 100%; }
.artist-thumb[data-portrait="3"] { background-position: 100% 100%; }

.artist-photo.is-placeholder,
.profile-cover.is-placeholder,
.artist-thumb.is-placeholder {
  background-color: var(--surface-raised);
  background-image:
    radial-gradient(circle at 50% 38%, oklch(0.79 0.15 230 / 0.18), transparent 26%),
    linear-gradient(135deg, transparent 0 46%, var(--line) 46% 47%, transparent 47% 100%);
  background-position: center;
  background-size: cover;
}

.artist-row-main { min-width: 0; }
.artist-row-main strong,
.artist-row-main span { display: block; }
.artist-row-main strong { font-size: 1.02rem; }
.artist-row-main span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 0.86rem; text-overflow: ellipsis; white-space: nowrap; }

.row-price { font-weight: 750; font-variant-numeric: tabular-nums; }

.row-availability { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.86rem; }

.row-open {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.row-open:hover { border-color: var(--accent); color: var(--accent); }

.artist-row .button { min-width: 170px; }

.empty-state {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state span { color: var(--muted); }
.empty-state .button { margin-top: 12px; }

.requests {
  margin-top: 56px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.requests header p { max-width: 70ch; }
.request-list { margin-top: 24px; border-top: 1px solid var(--line); }

.request-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(160px, 0.6fr) minmax(120px, 0.45fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.request-row strong,
.request-row span { display: block; }
.request-row span { color: var(--muted); font-size: 0.86rem; }
.draft-badge { color: var(--warning) !important; font-weight: 700; }

.request-delete {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.request-delete:hover { border-color: var(--danger); color: var(--danger); }

.request-empty { padding: 28px 0; color: var(--muted); }

.site-footer {
  display: flex;
  width: min(1480px, calc(100% - 48px));
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer span:first-child { color: var(--ink); font-weight: 750; }
.site-footer a:hover { color: var(--accent); }

.player {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 20px;
  display: grid;
  grid-template-columns: 48px minmax(180px, 0.45fr) minmax(260px, 1.4fr) 64px 44px;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.player-play,
.player-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--page);
  cursor: pointer;
  font-weight: 800;
}

.player-play:hover { border-color: var(--accent); color: var(--accent); }
.player-title strong,
.player-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-title span { color: var(--muted); font-size: 0.8rem; }
#playerWaveform { width: 100%; height: 48px; cursor: pointer; }
#playerTime { font-family: ui-monospace, "Cascadia Code", monospace; color: var(--muted); font-variant-numeric: tabular-nums; }

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

dialog::backdrop { background: oklch(0.05 0.005 230 / 0.86); }

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--page);
  cursor: pointer;
  font-size: 1.4rem;
}

.dialog-close:hover { border-color: var(--accent); color: var(--accent); }

.profile-dialog { width: min(1020px, calc(100vw - 32px)); }

.profile-dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.9fr);
  min-height: 570px;
}

.profile-dialog .dialog-close { position: absolute; z-index: 1; top: 16px; right: 16px; }

.profile-cover {
  min-height: 570px;
  background-position: center;
  background-size: 200% 200%;
}

.profile-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.profile-content h2 { margin-bottom: 6px; font-size: 2.4rem; letter-spacing: -0.03em; }
.profile-content > p:not(.section-label):not(.artist-meta) { margin: 28px 0; color: var(--muted); line-height: 1.65; }

.profile-facts { margin: 0 0 30px; border-top: 1px solid var(--line); }
.profile-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; font-weight: 650; }

.request-dialog { width: min(760px, calc(100vw - 32px)); }
.request-form { padding: 32px; }
.dialog-head { align-items: flex-start; margin-bottom: 26px; }
.dialog-head h2 { margin-bottom: 4px; font-size: 1.8rem; }
.dialog-head p:last-child { margin: 0; color: var(--muted); }

.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.request-wide { grid-column: 1 / -1; }
.form-note { margin: 20px 0 0; color: var(--muted); font-size: 0.85rem; }
.form-message { min-height: 22px; margin: 10px 0 0; color: var(--success); font-weight: 650; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.artist-editor-dialog { width: min(1080px, calc(100vw - 32px)); }
.artist-editor-form { padding: 32px; }

.editor-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--page);
  color: var(--muted);
  font-size: 0.88rem;
}

.editor-status strong { color: var(--ink); }

.artist-editor-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
}

.cover-editor { min-width: 0; }
.cover-editor > p { margin: 12px 0 0; color: var(--quiet); font-size: 0.78rem; line-height: 1.45; }

.cover-preview {
  position: relative;
  display: grid;
  min-height: 305px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.cover-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, oklch(0.08 0.006 230 / 0.74));
  content: "";
}

.cover-preview span {
  position: relative;
  z-index: 1;
  color: var(--quiet);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.file-picker { width: 100%; cursor: pointer; }

.artist-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 18px;
}

.artist-editor-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.artist-editor-grid small { color: var(--quiet); font-size: 0.75rem; font-weight: 500; }
.editor-wide { grid-column: 1 / -1; }
.artist-editor-grid textarea[name="mixes"] { min-height: 98px; }
.artist-editor-actions { align-items: center; justify-content: space-between; }

.toast {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: max(102px, calc(env(safe-area-inset-bottom) + 102px));
  max-width: min(390px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
}

@media (max-width: 1180px) {
  .featured { grid-template-columns: minmax(270px, 0.9fr) minmax(250px, 0.75fr); }
  .mix-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .artist-summary { border-right: 0; }
  .artist-row { grid-template-columns: 64px minmax(180px, 1fr) minmax(110px, 0.55fr) minmax(140px, 0.65fr) auto; }
  .artist-row .button-secondary { display: none; }
  .search-controls { grid-template-columns: minmax(260px, 1.3fr) 1fr 1fr; }
  .search-controls .date-field { grid-column: 1 / 2; }
  .search-controls > .button { grid-column: 2 / -1; }
}

@media (max-width: 860px) {
  :root { --header-height: 64px; }
  body { padding-bottom: 104px; }
  .topbar { grid-template-columns: auto 64px minmax(0, 1fr); padding-inline: 16px; }
  .brand-module,
  .online { display: none; }
  .primary-nav { justify-content: flex-end; gap: 14px; height: var(--header-height); margin-left: 12px; }
  .primary-nav a:first-child { display: none; }
  .top-actions { display: none; }
  main,
  .site-footer { width: min(100% - 32px, 1480px); }
  .search-stage { padding-top: 32px; }
  .search-heading { display: block; }
  .search-heading > p { margin-top: 12px; }
  .search-intro { max-width: none; align-items: flex-start; margin-top: 18px; text-align: left; }
  h1 { font-size: 2.9rem; }
  .search-controls { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .search-controls .date-field { grid-column: 1 / 2; }
  .search-controls > .button { grid-column: 2 / 3; }
  .featured { grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr); }
  .artist-photo { min-height: 370px; }
  .mix-row { grid-template-columns: 46px minmax(150px, 0.8fr) minmax(150px, 1fr) 48px; }
  .mix-row .mix-stat.key { display: none; }
  .artist-row { grid-template-columns: 58px minmax(160px, 1fr) auto auto; gap: 12px; }
  .artist-thumb { width: 52px; height: 52px; }
  .row-availability { display: none; }
  .row-price { font-size: 0.9rem; }
  .artist-row .button { min-width: 150px; padding-inline: 14px; }
  .requests > header { align-items: flex-start; flex-direction: column; }
  .request-row { grid-template-columns: 1fr auto; padding: 12px 0; }
  .request-row > :nth-child(2),
  .request-row > :nth-child(3) { grid-column: 1; }
  .request-delete { grid-column: 2; grid-row: 1 / span 3; }
  .player { grid-template-columns: 48px minmax(0, 1fr) 56px 44px; }
  #playerWaveform { display: none; }
  .profile-dialog-shell { grid-template-columns: 0.85fr 1fr; }
  .profile-content { padding: 34px; }
  .artist-editor-layout { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { padding-bottom: 92px; }
  .topbar { grid-template-columns: auto 58px minmax(0, 1fr); }
  .brand { padding-right: 8px; }
  .brand-name { font-size: 1.05rem; }
  .signal-switch { width: 58px; min-height: 56px; }
  .signal-switch::before { inset: 7px 6px; }
  .signal-switch::after { inset: 15px 14px; }
  .primary-nav { gap: 10px; margin-left: 8px; }
  .primary-nav a { font-size: 0.83rem; }
  .primary-nav a:last-child { font-size: 0; }
  .primary-nav a:last-child::before { content: "Заявки"; font-size: 0.83rem; }
  .request-count { font-size: 0.7rem; }
  main,
  .site-footer { width: min(100% - 24px, 1480px); }
  .search-stage { padding: 26px 0 18px; }
  .section-label { font-size: 0.72rem; }
  h1 { max-width: 12ch; font-size: 2.3rem; line-height: 1.02; }
  .search-controls { grid-template-columns: 1fr; gap: 10px; }
  .search-field,
  .search-controls .date-field,
  .search-controls > .button { grid-column: 1; }
  .featured { display: block; }
  .artist-photo { min-height: 350px; }
  .artist-summary { padding: 24px 20px; border-bottom: 1px solid var(--line); }
  .artist-title-line h2 { font-size: 1.65rem; }
  .artist-copy { max-width: 52ch; }
  .artist-actions { flex-direction: row; }
  .artist-actions .button { min-width: 0; flex: 1 1 0; padding-inline: 12px; }
  .mix-panel { padding: 22px 14px; }
  .panel-note { display: none; }
  .mix-row { grid-template-columns: 46px minmax(0, 1fr) 48px; min-height: 74px; gap: 10px; }
  .mix-row .waveform,
  .mix-row .mix-stat.key { display: none; }
  .catalog { padding-top: 38px; }
  .catalog-head { align-items: flex-start; flex-direction: column; }
  .catalog-tabs { width: 100%; }
  .catalog-tab { flex: 1; }
  .artist-row { grid-template-columns: 56px minmax(0, 1fr) 44px; min-height: 84px; }
  .artist-row .row-price,
  .artist-row .row-availability,
  .artist-row .button { display: none; }
  .artist-row-main span { white-space: normal; }
  .row-open { grid-column: 3; }
  .requests { margin-top: 38px; padding: 24px 18px; }
  .site-footer { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .site-footer span:nth-child(2) { display: none; }
  .player { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; grid-template-columns: 44px minmax(0, 1fr) 48px 44px; min-height: 68px; gap: 8px; padding: 8px; }
  .player-play,
  .player-close { width: 42px; height: 42px; }
  .profile-dialog,
  .request-dialog,
  .artist-editor-dialog { width: 100vw; height: 100svh; border: 0; border-radius: 0; }
  .profile-dialog-shell { display: block; min-height: 100%; }
  .profile-cover { min-height: 42svh; background-position: center 28%; }
  .profile-content { padding: 28px 20px max(28px, env(safe-area-inset-bottom)); }
  .profile-content h2 { font-size: 2rem; }
  .request-form { padding: max(22px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
  .artist-editor-form { padding: max(22px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
  .artist-editor-layout { grid-template-columns: 1fr; }
  .cover-editor { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px 14px; align-items: start; }
  .cover-preview { grid-row: 1 / span 2; min-height: 142px; margin: 0; }
  .cover-editor > p { margin: 0; }
  .artist-editor-grid { margin-top: 8px; }
  .artist-editor-actions { align-items: stretch; flex-direction: column-reverse; }
  .artist-editor-actions .button { width: 100%; }
  .request-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .request-wide { grid-column: 1 / -1; }
  .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}

@media (max-width: 390px) {
  .primary-nav { gap: 6px; }
  .primary-nav a { font-size: 0.78rem; }
  .primary-nav a:last-child::before { font-size: 0.78rem; }
  .artist-actions { flex-direction: column; }
  .request-grid { grid-template-columns: 1fr; }
  .request-wide { grid-column: 1; }
  .artist-editor-grid { grid-template-columns: 1fr; }
  .editor-wide { grid-column: 1; }
}

@media (hover: none) {
  .signal-switch span { display: none; }
  .button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: oklch(0.84 0.01 230);
    --quiet: oklch(0.76 0.01 230);
    --line: oklch(0.5 0.01 230);
    --line-strong: oklch(0.68 0.01 230);
  }
}

@media (forced-colors: active) {
  .verified { clip-path: none; border-radius: 50%; }
  .status-led { border: 1px solid CanvasText; }
}
