:root {
  --bg: #0a0c11;
  --soft: #11141c;
  --soft-2: #161a24;
  --line: #1e2330;
  --line-2: #39435c;
  --text: #e7e9f0;
  --muted: #8b93a7;
  --dim: #626a7d;
  --gold: #e8b04b;
  --gold-2: #f0be5f;
  --gold-dim: #a97f2f;
  --ok: #4ec98a;
  --r: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; padding-bottom: 96px; }

.glow {
  position: fixed;
  top: -32vh; left: 50%;
  transform: translateX(-50%);
  width: 130vw; height: 72vh;
  background: radial-gradient(ellipse at center, rgba(232,176,75,.13), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}

.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 24px;
  max-width: 1120px; margin: 0 auto;
  padding: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fbe0a6, var(--gold) 42%, var(--gold-dim) 78%);
  box-shadow: 0 0 22px rgba(232,176,75,.45);
}
.brand-name { font-size: 18px; font-weight: 500; letter-spacing: -.2px; }
.brand-name b { font-weight: 700; color: var(--gold); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .18s; }
.nav a:hover { color: var(--text); }

.live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  background: var(--soft); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--muted);
  white-space: nowrap;
}

main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px 60px; }

.hero { padding: 64px 0 72px; max-width: 720px; }
.eyebrow {
  margin: 0 0 18px; font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.08; letter-spacing: -1.4px; font-weight: 600;
}
.lede { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.68; }
.lede.narrow { max-width: 620px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: transform .16s, background .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #17130a; }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-2); }

.stats {
  display: flex; flex-wrap: wrap; gap: 36px;
  margin: 44px 0 0; padding: 0;
}
.stats div { margin: 0; }
.stats dt { font-size: 12.5px; color: var(--dim); letter-spacing: .04em; }
.stats dd {
  margin: 5px 0 0; font-size: 26px; font-weight: 600;
  letter-spacing: -.6px; font-variant-numeric: tabular-nums;
}

.section { padding: 52px 0; border-top: 1px solid var(--line); }

.section-head {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.section-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.4px; }

.search {
  margin-left: auto;
  width: min(300px, 100%);
  height: 40px; padding: 0 15px;
  background: var(--soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 14px;
  outline: none; transition: border-color .18s;
}
.search::placeholder { color: var(--dim); }
.search:focus { border-color: var(--line-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 7px 14px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 13px; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { color: #17130a; background: var(--gold); border-color: var(--gold); font-weight: 500; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.card {
  display: flex; flex-direction: column; gap: 11px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer; text-align: left;
  color: inherit; font: inherit;
  transition: border-color .18s, background .18s, transform .16s;
}
.card:hover { border-color: var(--line-2); background: var(--soft-2); transform: translateY(-2px); }
.card[aria-current="true"] { border-color: var(--gold); }

.card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-art {
  flex: none; width: 48px; height: 48px;
  border-radius: 10px; object-fit: cover;
  background: #0e1118;
}
.card-art.ph { display: block; background: linear-gradient(135deg, #1a1f2b, #11141c); }
.card-id { min-width: 0; }
.card-name {
  display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-tags { display: block; margin-top: 3px; font-size: 12.5px; color: var(--gold-dim); }

.card-desc {
  margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 4px;
  font-size: 12px; color: var(--dim);
}
.card-track {
  min-width: 0; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-live { flex: none; font-variant-numeric: tabular-nums; }
.card-live:not(:empty)::after { content: " слуш."; }

.empty { margin: 26px 0 0; color: var(--muted); font-size: 15px; }

.fineprint {
  margin: 26px 0 0; max-width: 720px;
  font-size: 13px; line-height: 1.7; color: #6b7387;
}
.fineprint a { color: var(--gold-dim); }

.nodes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.node {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--soft); border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(78,201,138,.6); }
.muted { color: var(--muted); font-size: 14px; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.cols p { margin: 0; color: var(--muted); line-height: 1.72; font-size: 15px; }

.player {
  position: fixed; left: 50%; bottom: 20px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex; align-items: center; gap: 14px;
  width: min(620px, calc(100vw - 28px));
  padding: 10px 12px 10px 10px;
  background: rgba(17,20,28,.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
}

.p-art { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #0e1118; }
.p-info { min-width: 0; flex: 1; }
.p-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-track { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-eq { display: flex; align-items: flex-end; gap: 2.5px; height: 18px; flex: none; }
.p-eq i { display: block; width: 3px; background: var(--gold); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.p-eq i:nth-child(1) { height: 7px;  animation-delay: 0s; }
.p-eq i:nth-child(2) { height: 15px; animation-delay: .18s; }
.p-eq i:nth-child(3) { height: 10px; animation-delay: .36s; }
.p-eq i:nth-child(4) { height: 17px; animation-delay: .54s; }
.player.paused .p-eq i { animation-play-state: paused; opacity: .3; }

@keyframes eq { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

.p-btn {
  flex: none; width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: var(--gold); color: #17130a;
  cursor: pointer; display: grid; place-items: center;
}
.p-btn svg { fill: currentColor; }

.p-vol { flex: none; display: flex; align-items: center; }
.p-vol input { width: 82px; accent-color: var(--gold); background: transparent; }

.p-close {
  flex: none; background: none; border: 0;
  color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px 2px;
}
.p-close:hover { color: var(--text); }

.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  max-width: 1120px; margin: 0 auto;
  padding: 24px 24px 36px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}

@media (max-width: 720px) {
  .nav { display: none; }
  .live { margin-left: auto; }
  .hero { padding: 44px 0 56px; }
  .stats { gap: 26px; }
  .stats dd { font-size: 22px; }
  .search { margin-left: 0; width: 100%; }
  .p-vol { display: none; }
  .p-art { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .p-eq i { animation: none; }
  .card, .btn { transition: none; }
}

.card-art.mono {
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  user-select: none;
}

.card.dead { opacity: .42; }
.card.dead:hover { transform: none; border-color: var(--line); background: var(--soft); }
.card.dead .card-live { color: #7a5b5b; }
