:root {
  --void: #000000;
  --obsidian: #121212;
  --graphite: #1f1f1f;
  --ash: #333333;
  --steel: #767676;
  --cloud: #b3b3b3;
  --white: #ffffff;
  --green: #1ed760;
  --red: #f26b72;
  --green-soft: rgba(30, 215, 96, .1);
  --red-soft: rgba(242, 107, 114, .1);
  --surface-raised: #171717;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-control: 4px;
  --radius-surface: 6px;
  --radius-pill: 9999px;
  --header-height: 56px;
  --mobile-rank-column-width: 42px;
  --mobile-artist-column-width: 184px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--void);
  color: var(--white);
  font: 400 14px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
input::placeholder { color: var(--steel); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
[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;
}
.page-shell { width: min(1560px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(5, 5, 5, .94);
  border-bottom: 1px solid #292929;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  backdrop-filter: saturate(120%) blur(12px);
}
.header-inner {
  position: relative;
  width: min(1560px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  transition: opacity 150ms ease;
}
.wordmark-mark {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green);
}
.wordmark-mark svg { width: 28px; height: 28px; display: block; overflow: visible; }
.wordmark-mark-bg {
  fill: #151515;
  stroke: #343434;
  stroke-width: 1.5;
  transition: fill 150ms ease, stroke 150ms ease;
}
.wordmark-bars {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  transition: transform 150ms ease;
  transform-origin: center;
}
.wordmark-label {
  display: inline-flex;
  align-items: baseline;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.wordmark-accent { color: var(--green); }
.wordmark:hover .wordmark-mark-bg { fill: #191f1b; stroke: rgba(30, 215, 96, .62); }
.wordmark:hover .wordmark-bars { transform: scaleY(.88); }
.wordmark:hover .wordmark-label { color: #f4f4f4; }
.site-header .desktop-nav { display: flex; align-items: stretch; height: 100%; gap: 4px; }
.site-header .desktop-nav { justify-self: end; }
.rankings-nav { position: relative; height: 100%; display: flex; align-items: stretch; }
.rankings-menu-trigger {
  position: relative;
  padding: 18px 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--cloud);
  font-size: 13px;
  font-weight: 600;
  transition: color 140ms ease, background 140ms ease;
}
.rankings-menu-trigger:hover,
.rankings-menu-trigger[aria-expanded="true"] { color: var(--white); background: var(--surface-raised); }
.rankings-menu-trigger.is-active { color: var(--white); }
.rankings-menu-trigger.is-active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: var(--green);
}
.rankings-menu-caret { color: var(--steel); font-size: 10px; transition: transform 140ms ease; }
.rankings-menu-trigger[aria-expanded="true"] .rankings-menu-caret { transform: rotate(180deg); }
.rankings-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  z-index: 70;
  width: min(560px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--ash);
  background: #0b0b0b;
}
.rankings-menu-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; }
.rankings-menu-column { min-width: 0; }
.rankings-menu-genres { padding-left: 22px; border-left: 1px solid var(--ash); }
.rankings-menu-title,
.rankings-menu-label {
  margin: 0;
  color: var(--steel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.rankings-menu-title { margin: 0 10px 10px; color: var(--green); }
.rankings-menu-primary { padding-bottom: 14px; display: grid; gap: 2px; border-bottom: 1px solid var(--ash); }
.rankings-menu-section { padding-top: 15px; display: grid; gap: 2px; }
.rankings-menu-label { margin: 0 10px 7px; }
.rankings-menu-link {
  position: relative;
  min-width: 0;
  padding: 7px 10px;
  border-radius: var(--radius-control);
  color: var(--cloud);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  transition: color 120ms ease, background 120ms ease;
}
.rankings-menu-link:hover,
.rankings-menu-link:focus-visible { background: var(--surface-raised); color: var(--white); }
.rankings-menu-link.is-active { padding-left: 20px; background: var(--graphite); color: var(--white); }
.rankings-menu-link.is-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--green);
  transform: translateY(-50%);
}
.mobile-menu-toggle, .mobile-nav { display: none; }

.app-shell { padding-bottom: 40px; }
.breadcrumbs { padding: 16px 0 0; color: var(--steel); font-size: 12px; }
.breadcrumbs ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ash); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current="page"] { color: var(--cloud); }
.overview {
  min-height: 132px;
  padding: 24px 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--ash);
}
.overview-copy { min-width: 0; }
.page-kicker, .section-label {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.page-kicker, .section-label { display: inline-flex; align-items: center; gap: 8px; }
.page-kicker::before, .section-label::before {
  content: "";
  width: 2px;
  height: 7px;
  flex: 0 0 2px;
  margin-right: 12px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 4px -3px 0 currentColor, 8px 2px 0 currentColor, 12px -1px 0 currentColor;
}
h1, h2, h3 { margin: 0; font-family: var(--font-ui); }
h1 { font-size: 28px; line-height: 1.14; letter-spacing: -.035em; }
h2 { font-size: 21px; line-height: 1.16; letter-spacing: -.025em; }
h3 { font-size: 16px; line-height: 1.2; }
.overview-copy > p:last-child, .page-lead {
  margin: 6px 0 0;
  color: var(--cloud);
  font-size: 14px;
}
.overview-meta {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  flex: 0 0 auto;
}
.overview-meta div { display: flex; flex-direction: column; gap: 4px; }
.overview-meta span, .intro-meta dt {
  color: var(--steel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.overview-meta strong {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.workspace-section { padding: 24px 0 40px; scroll-margin-top: calc(var(--header-height) + 8px); }
.workspace-section + .workspace-section { border-top: 1px solid var(--ash); }
.section-header {
  position: relative;
  min-height: 40px;
  margin-bottom: 12px;
  padding-bottom: 11px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #252525;
}
.section-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 54px;
  height: 1px;
  background: var(--green);
}
.section-note {
  padding-bottom: 2px;
  color: var(--steel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.control-bar {
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, .7fr)) auto;
  align-items: end;
  gap: 8px;
  border: 1px solid var(--ash);
  border-radius: var(--radius-surface) var(--radius-surface) 0 0;
  background: #101010;
}
.control { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.control > span {
  color: var(--steel);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.control input, .control select, .directory-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ash);
  border-radius: var(--radius-control);
  background: var(--graphite);
  font-size: 13px;
  transition: border-color 140ms ease, background 140ms ease;
}
.control-search input, .directory-search input { border-radius: var(--radius-pill); }
.control input:hover, .control select:hover, .directory-search input:hover { border-color: #555; background: #242424; }
.control input:focus, .control select:focus, .directory-search input:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 2px var(--green-soft);
}
.result-count {
  align-self: center;
  padding: 17px 4px 0 8px;
  white-space: nowrap;
  color: var(--cloud);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.table-wrap { min-width: 0; max-width: 100%; border: 1px solid var(--ash); border-top: 0; border-radius: 0 0 var(--radius-surface) var(--radius-surface); }
.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) var(--obsidian);
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: var(--obsidian); }
.table-scroll::-webkit-scrollbar-thumb { border-radius: var(--radius-pill); background: var(--steel); }
table {
  width: 100%;
  min-width: 900px;
  border-spacing: 0;
  border-collapse: separate;
  font-variant-numeric: tabular-nums;
}
.wide-table { min-width: 920px; }
th, td { padding: 0 12px; text-align: left; vertical-align: middle; }
th {
  position: sticky;
  top: var(--header-height);
  z-index: 4;
  height: 42px;
  background: #101010;
  border-bottom: 1px solid var(--ash);
  color: var(--steel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
td {
  height: 62px;
  border-bottom: 1px solid var(--graphite);
  font-size: 13px;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 140ms ease; }
tbody tr:hover { background: var(--surface-raised); }
tbody tr[data-rank="1"], tbody tr[data-rank="2"], tbody tr[data-rank="3"] { background: rgba(255, 255, 255, .025); }
tbody tr[data-rank="1"] { box-shadow: inset 2px 0 0 var(--green); }
.rank-cell {
  width: 68px;
  color: var(--cloud);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.rank-label-short { display: none; }
tr[data-rank="1"] .rank-cell { color: var(--green); }
tr[data-rank="2"] .rank-cell, tr[data-rank="3"] .rank-cell { color: var(--white); }
.artist-cell { min-width: 240px; }
.artist-identity { min-width: 180px; display: flex; align-items: center; gap: 10px; }
.artist-identity > div { min-width: 0; flex: 1; }
.artist-cover {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
  border-radius: var(--radius-control);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform 160ms ease, filter 160ms ease;
}
.artist-avatar { width: 40px; height: 40px; overflow: hidden; border-radius: var(--radius-pill); object-fit: cover; }
.artist-name { display: block; overflow: hidden; color: var(--white); font-size: 14px; font-weight: 650; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
tbody tr:hover .artist-cover { transform: scale(1.035); filter: saturate(1.08); }
.numeric { text-align: right; white-space: nowrap; }
.genre-list { min-width: 170px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.genre-tag {
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: var(--graphite);
  color: var(--cloud);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.genre-separator { display: none; }
.movement, .growth-number { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; font-weight: 600; }
.movement i { font-size: 12px; font-style: normal; }
.movement-up, .growth-up { color: var(--green); }
.movement-down, .growth-down { color: var(--red); }
.movement-flat, .growth-flat, .muted { color: var(--steel); }
.action-column { width: 76px; text-align: center; }
.listen-action {
  width: 32px;
  height: 32px;
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ash);
  border-radius: var(--radius-pill);
  color: var(--cloud);
  font-size: 11px;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
}
.listen-action:hover { border-color: var(--green); background: var(--green-soft); color: var(--green); transform: translateY(-1px) scale(1.04); }
.listen-action:active { transform: scale(.96); }
.empty-state {
  margin: 0;
  padding: 28px 16px;
  border: 1px solid var(--ash);
  border-top: 0;
  color: var(--cloud);
  text-align: center;
}

.directory-tools { display: flex; align-items: end; justify-content: flex-end; gap: 14px; }
.directory-tools > a { padding-bottom: 8px; color: var(--cloud); font-size: 12px; font-weight: 700; white-space: nowrap; }
.directory-tools > a:hover { color: var(--white); }
.directory-search { width: min(280px, 100%); }
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.genre-tile {
  position: relative;
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--ash);
  border-radius: var(--radius-control);
  background: var(--obsidian);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.genre-tile strong { font-size: 14px; }
.genre-tile span { color: var(--cloud); font-size: 12px; font-variant-numeric: tabular-nums; }
a.genre-tile:hover,
a.genre-tile:focus-visible { border-color: var(--green); background: rgba(30, 215, 96, .05); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); transform: translateY(-2px); }
.genre-tile.is-link::after {
  content: "→";
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--green);
  font-size: 14px;
}

.movement-section { padding-top: 4px; }
.movement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.movement-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #0d0d0d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
}
.movement-panel-growing { border-top: 2px solid var(--green); }
.movement-panel-falling { border-top: 2px solid var(--red); }
.movement-panel .section-header { min-height: 104px; margin: 0; padding: 17px 18px 15px; align-items: flex-start; background: #111; }
.movement-panel-falling .section-label { color: var(--red); }
.movement-panel-falling .section-header::after { background: var(--red); }
.movement-context { margin: 6px 0 0; color: var(--steel); font-size: 11px; }
.movement-list {
  margin: 0;
  padding: 0;
  border-top: 0;
  list-style: none;
}
.movement-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--graphite);
  transition: background 140ms ease, box-shadow 140ms ease;
}
.movement-list-growing .movement-item:hover { background: var(--surface-raised); box-shadow: inset 2px 0 0 var(--green); }
.movement-list-falling .movement-item:hover { background: var(--surface-raised); box-shadow: inset 2px 0 0 var(--red); }
.movement-rank { color: var(--steel); font-size: 11px; font-variant-numeric: tabular-nums; }
.movement-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.movement-cover {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  border-radius: var(--radius-control);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.movement-copy { min-width: 0; display: grid; gap: 3px; }
.movement-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.movement-copy small { display: flex; align-items: center; gap: 7px; color: var(--steel); font-size: 10px; white-space: nowrap; }
.movement-genre {
  padding: 2px 5px;
  border-radius: var(--radius-pill);
  background: var(--graphite);
  color: var(--cloud);
  font-weight: 600;
}
.movement-delta { padding: 4px 8px; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.movement-delta.is-positive { border-color: rgba(30, 215, 96, .18); background: var(--green-soft); color: var(--green); }
.movement-delta.is-negative { border-color: rgba(242, 107, 114, .18); background: var(--red-soft); color: var(--red); }
.methodology-teaser > p { max-width: 760px; margin: 0 0 10px; color: var(--cloud); }
.text-action { color: var(--green); font-size: 13px; font-weight: 700; }
.text-action:hover { color: var(--white); }

.methodology-page { max-width: 980px; padding: 32px 0 48px; }
.methodology-intro { padding-bottom: 28px; border-bottom: 1px solid var(--ash); }
.methodology-intro .page-lead { max-width: 720px; margin-top: 10px; }
.methodology-section {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  border-bottom: 1px solid var(--graphite);
}
.methodology-section h2 { font-size: 16px; }
.methodology-section p { margin: 0; color: var(--cloud); font-size: 13px; }
.methodology-section p + p { margin-top: 12px; }
.directory { border-top: 1px solid var(--ash); }
.directory-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--graphite);
  transition: background 120ms ease;
}
a.directory-row:hover { background: var(--surface-raised); box-shadow: inset 2px 0 0 var(--green); }
.directory-index { color: var(--steel); font-size: 12px; font-variant-numeric: tabular-nums; }
.directory-row strong { font-size: 14px; }
.directory-row > span:last-child { color: var(--cloud); font-size: 13px; font-variant-numeric: tabular-nums; }
.directory-row.is-active strong::after { content: "Открыть"; margin-left: 10px; color: var(--green); font-size: 11px; font-weight: 600; text-transform: uppercase; }

.rankings-hub-intro { grid-template-columns: minmax(0, 1fr); }
.rankings-hub { padding-top: 24px; }
.rankings-directory { border-top: 1px solid var(--ash); }
.ranking-catalog-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--graphite);
  transition: background 120ms ease;
}
.ranking-catalog-row:hover { background: var(--surface-raised); box-shadow: inset 2px 0 0 var(--green); }
.ranking-catalog-copy { display: grid; gap: 5px; }
.ranking-catalog-copy strong { font-size: 15px; }
.ranking-catalog-copy small { color: var(--cloud); font-size: 12px; line-height: 1.45; }
.ranking-catalog-count { color: var(--cloud); font-size: 13px; font-variant-numeric: tabular-nums; }
.ranking-catalog-action { color: var(--green); font-size: 12px; font-weight: 600; white-space: nowrap; }

.ranking-intro {
  min-height: 164px;
  padding: 24px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--ash);
}
.ranking-intro h1 { margin-top: 2px; }
.factual-summary { max-width: 760px; margin: 12px 0 0; color: var(--cloud); font-size: 13px; }
.intro-meta { margin: 0; display: flex; gap: 28px; }
.intro-meta div { min-width: 130px; }
.intro-meta dt { margin-bottom: 4px; }
.intro-meta dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.filter-toggle {
  display: none;
  width: 100%;
  margin: 16px 0 0;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ash);
  border-radius: var(--radius-control);
  background: var(--obsidian);
  font-weight: 600;
  transition: border-color 140ms ease, background 140ms ease;
}
.filter-toggle:hover,
.filter-toggle[aria-expanded="true"] { border-color: #555; background: var(--surface-raised); }
.filter-toggle span {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--graphite);
  color: var(--cloud);
  font-size: 11px;
}
.ranking-layout {
  padding: 24px 0 28px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  scroll-margin-top: calc(var(--header-height) + 8px);
}
.filter-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  max-height: calc(100vh - var(--header-height) - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ash);
  border-radius: var(--radius-surface);
  background: var(--obsidian);
}
.filter-sidebar-head { flex: 0 0 auto; padding: 22px 24px 24px; border-bottom: 1px solid var(--ash); }
.filter-sidebar-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.filter-sidebar-title > div { display: flex; flex-direction: column; min-width: 0; }
.filter-panel-label { display: none; }
.filter-sidebar-head span, .filter-sidebar-head small { color: var(--steel); font-size: 11px; text-transform: uppercase; }
.filter-sidebar-head strong { margin-top: 2px; font-size: 16px; }
.filter-sidebar-head small { display: block; margin-top: 6px; }
.filter-sidebar-scroll { min-height: 0; padding: 0 24px 12px; overflow-y: auto; scrollbar-width: thin; }
.filter-group { min-width: 0; margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid var(--ash); }
.filter-group:last-child { border-bottom: 0; }
.filter-group legend {
  width: 100%;
  margin-bottom: 18px;
  color: var(--steel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.filter-group label {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cloud);
  font-size: 13px;
  cursor: pointer;
}
.filter-group label + label { margin-top: 14px; }
.filter-group label:hover { color: var(--white); }
.filter-group input { margin: 0; accent-color: var(--green); }
.filter-group label small { margin-left: auto; color: var(--steel); font-size: 11px; font-variant-numeric: tabular-nums; }
.reset-filters {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--ash);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--cloud);
  font-size: 12px;
  font-weight: 600;
}
.reset-filters:hover { border-color: var(--green); color: var(--white); }
.reset-filters[hidden] { display: none; }
.reset-filters-mobile { display: none; }
.reset-filters-desktop {
  width: 100%;
  margin: 20px 0 12px;
  padding-block: 8px;
}
.ranking-main { min-width: 0; }
.compact-header { margin-bottom: 12px; }
.ranking-controls { grid-template-columns: minmax(220px, 1fr) minmax(170px, 240px) auto; }

.history-panel {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 320px);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--ash);
  border-top: 0;
  background: #0b0b0b;
}
.history-panel[hidden] { display: none; }
.history-panel > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.history-label { color: var(--cloud); font-size: 12px; font-weight: 600; }
.history-status { color: var(--steel); font-size: 11px; }
.history-periods { display: flex; gap: 4px; }
.history-periods button {
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--ash);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--cloud);
  font-size: 11px;
  font-weight: 700;
}
.history-periods button:hover:not(:disabled), .history-periods button.is-active { border-color: var(--green); color: var(--white); }
.history-periods button:disabled { cursor: not-allowed; opacity: .38; }
.history-chart { height: 36px; display: flex; align-items: center; justify-content: flex-end; }
.history-chart svg { width: 100%; height: 36px; overflow: visible; }
.history-chart polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.history-chart .history-up { stroke: var(--green); }
.history-chart .history-down { stroke: var(--red); }
.history-placeholder { width: 100%; height: 1px; display: block; background: repeating-linear-gradient(90deg, var(--ash) 0 8px, transparent 8px 14px); }

.faq-section {
  padding: 24px 0 8px;
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 24px;
  border-top: 1px solid var(--ash);
}
.faq-list { min-width: 0; }
details { border-top: 1px solid var(--ash); }
details:last-child { border-bottom: 1px solid var(--ash); }
summary { padding: 12px 0; color: var(--white); font-weight: 600; cursor: pointer; transition: color 140ms ease; }
summary:hover { color: var(--green); }
details p { margin: 0; padding: 0 0 12px; color: var(--cloud); font-size: 13px; }

.rights-intro {
  max-width: 860px;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--ash);
}
.rights-intro .page-lead { max-width: 780px; margin-top: 10px; }
.rights-layout {
  padding: 24px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 360px);
  align-items: start;
  gap: 24px;
}
.rights-form, .rights-contact {
  border: 1px solid var(--ash);
  border-radius: var(--radius-surface);
  background: var(--obsidian);
}
.rights-form { padding: 18px; }
.rights-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rights-field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rights-field > span { color: var(--cloud); font-size: 12px; font-weight: 600; }
.rights-field-wide { grid-column: 1 / -1; }
.rights-field input, .rights-field select, .rights-field textarea {
  width: 100%;
  border: 1px solid var(--ash);
  border-radius: var(--radius-control);
  background: var(--graphite);
}
.rights-field input, .rights-field select { height: 40px; padding: 0 12px; }
.rights-field textarea { min-height: 128px; padding: 10px 12px; resize: vertical; }
.rights-field input:hover, .rights-field select:hover, .rights-field textarea:hover { border-color: var(--steel); }
.rights-field input:focus, .rights-field select:focus, .rights-field textarea:focus { border-color: var(--white); outline: 0; }
.rights-submit {
  min-height: 38px;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid var(--ash);
  border-radius: var(--radius-control);
  background: var(--graphite);
  color: var(--steel);
  font-weight: 600;
  cursor: not-allowed;
}
.rights-form-status { margin: 10px 0 0; color: var(--steel); font-size: 12px; }
.rights-contact { padding: 18px; }
.rights-contact h2 { margin-top: 2px; }
.rights-contact > p:not(.section-label) { margin: 10px 0 0; color: var(--cloud); font-size: 13px; }
.telegram-action {
  min-height: 40px;
  margin-top: 18px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: var(--radius-pill);
  color: var(--green);
  font-weight: 700;
}
.telegram-action:hover { background: rgba(30, 215, 96, .08); color: var(--white); }

footer { margin-top: 32px; padding: 32px 0; border-top: 1px solid var(--ash); }
.footer-inner { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(112px, auto)); align-items: start; gap: 48px; }
.footer-brand p { max-width: 520px; margin: 8px 0 0; color: var(--steel); font-size: 12px; }
.footer-brand .footer-copyright { margin-top: 18px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--cloud); font-size: 12px; font-weight: 600; }
.footer-column strong { margin-bottom: 2px; color: var(--steel); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-column a:hover { color: var(--white); }

@media (min-width: 901px) {
  .filter-sidebar-head { padding: 24px 24px 28px; }
  .filter-category { gap: 5px; }
  .filter-sidebar-head strong { margin-top: 0; line-height: 1.25; }
  .filter-sidebar-head small { margin-top: 8px; }
  .filter-sidebar-scroll { padding-bottom: 18px; }
  .filter-group { padding-block: 24px 26px; }
  .filter-group legend {
    float: left;
    margin: 0 0 18px;
  }
  .filter-group legend + * { clear: both; }
  .filter-group label { min-height: 22px; }
  .filter-group label + label { margin-top: 16px; }
}

@media (min-width: 1300px) {
  .table-scroll { overflow-x: visible; }
}

@media (max-width: 1299px) {
  th { position: static; }
}

@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .rankings-menu-trigger { padding-inline: 8px; }
  .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-bar { grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(130px, .7fr)); }
  .result-count { grid-column: 1 / -1; padding: 0 2px; }
  .ranking-controls { grid-template-columns: minmax(200px, 1fr) minmax(160px, 220px) auto; }
  .ranking-controls .result-count { grid-column: auto; padding-top: 17px; }
}

@media (max-width: 900px) {
  .ranking-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .filter-toggle { display: flex; }
  .filter-sidebar { display: none; position: static; max-height: min(70vh, 560px); }
  .filter-sidebar.is-open { display: flex; }
  .filter-sidebar-title { align-items: center; }
  .filter-sidebar-title > .filter-category,
  .filter-sidebar-head > small { display: none; }
  .filter-panel-label { display: block; }
  .reset-filters-desktop { display: none; }
  .reset-filters-mobile:not([hidden]) {
    display: block;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    color: var(--cloud);
  }
  .filter-group label { min-height: 34px; }
  .table-scroll { overflow-x: auto; }
  th { position: static; }

  .ranking-table.wide-table { min-width: 680px; }
  .ranking-table .genres-column,
  .ranking-table .genres-cell { display: none; }

  .ranking-table th,
  .ranking-table td { padding-inline: 8px; }
  .ranking-table .rank-column,
  .ranking-table .rank-cell {
    position: sticky;
    left: 0;
    width: var(--mobile-rank-column-width);
    min-width: var(--mobile-rank-column-width);
    max-width: var(--mobile-rank-column-width);
    padding-right: 4px;
    padding-left: 8px;
    background: var(--void);
  }
  .ranking-table .artist-column,
  .ranking-table .artist-cell {
    position: sticky;
    left: var(--mobile-rank-column-width);
    width: var(--mobile-artist-column-width);
    min-width: var(--mobile-artist-column-width);
    max-width: var(--mobile-artist-column-width);
    background: var(--void);
    border-right: 1px solid var(--ash);
  }
  .ranking-table .rank-column,
  .ranking-table .artist-column {
    top: auto;
    z-index: 8;
    background: #101010;
  }
  .ranking-table .rank-cell { z-index: 6; }
  .ranking-table .artist-cell { z-index: 5; }
  .ranking-table tbody tr:hover > .rank-cell,
  .ranking-table tbody tr:hover > .artist-cell { background: var(--surface-raised); }
  .ranking-table tbody tr[data-rank="1"] > .rank-cell,
  .ranking-table tbody tr[data-rank="1"] > .artist-cell,
  .ranking-table tbody tr[data-rank="2"] > .rank-cell,
  .ranking-table tbody tr[data-rank="2"] > .artist-cell,
  .ranking-table tbody tr[data-rank="3"] > .rank-cell,
  .ranking-table tbody tr[data-rank="3"] > .artist-cell { background: #060606; }
  .ranking-table .audience-column,
  .ranking-table .audience-cell { min-width: 104px; }
  .ranking-table .rank-label-long { display: none; }
  .ranking-table .rank-label-short { display: inline; }
  .ranking-table .artist-identity { min-width: 0; gap: 10px; }
  .ranking-table .artist-name {
    display: -webkit-box;
    max-height: 2.5em;
    overflow: hidden;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 760px) {
  :root { --header-height: 56px; }
  .site-header { height: var(--header-height); }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) 40px;
    grid-template-areas: "wordmark menu";
    grid-template-rows: 55px;
    gap: 0 16px;
  }
  .wordmark { grid-area: wordmark; }
  .site-header .desktop-nav { display: none; }
  .mobile-menu-toggle {
    grid-area: menu;
    width: 40px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ash);
    border-radius: var(--radius-control);
    background: var(--obsidian);
    color: var(--white);
    font-size: 19px;
    line-height: 1;
  }
  .mobile-menu-toggle { transition: border-color 140ms ease, background 140ms ease, color 140ms ease; }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle[aria-expanded="true"] { border-color: var(--green); background: var(--surface-raised); color: var(--green); }
  .site-header .mobile-nav:not([hidden]) {
    position: absolute;
    top: calc(100% - 1px);
    right: auto;
    left: 50%;
    z-index: 60;
    width: 100vw;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    padding: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--ash);
    border-top: 0;
    border-radius: 0 0 var(--radius-surface) var(--radius-surface);
    background: var(--obsidian);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
    transform: translateX(-50%);
  }
  .mobile-rankings-menu { padding: 12px 10px 16px; }
  .mobile-rankings-menu .rankings-menu-grid { display: block; }
  .mobile-rankings-menu .rankings-menu-title { margin: 0 10px 7px; }
  .mobile-rankings-menu .rankings-menu-genres { padding-left: 0; border-left: 0; }
  .mobile-rankings-menu .rankings-menu-primary { padding: 0 0 12px; }
  .mobile-rankings-menu .rankings-menu-section { padding-top: 14px; }
  .mobile-rankings-menu .rankings-menu-label { margin: 0 8px 5px; }
  .mobile-nav .rankings-menu-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 2px;
    color: var(--cloud);
    font-size: 13px;
    font-weight: 600;
  }
  .mobile-nav .rankings-menu-link:hover,
  .mobile-nav .rankings-menu-link.is-active { background: var(--graphite); color: var(--white); }
  .overview { align-items: flex-start; flex-direction: column; gap: 16px; }
  .overview-meta { width: 100%; justify-content: space-between; }
  .control-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-search { grid-column: 1 / -1; }
  .result-count { grid-column: 1 / -1; }
  .ranking-controls { grid-template-columns: 1fr 1fr; }
  .ranking-controls .result-count { grid-column: 1 / -1; padding: 0 2px; }
  .ranking-intro { grid-template-columns: 1fr; gap: 12px; padding-bottom: 16px; }
  .intro-meta { justify-content: flex-start; }
  .rights-layout { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; gap: 16px; }
  .history-panel { grid-template-columns: minmax(0, 1fr) auto; }
  .history-chart { grid-column: 1 / -1; }
  .movement-grid { grid-template-columns: 1fr; gap: 32px; }
  .methodology-section { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .ranking-catalog-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; }
  .ranking-catalog-count { grid-column: 2; }
  .ranking-catalog-action { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 560px) {
  .page-shell, .header-inner { width: min(100% - 24px, 1560px); }
  .header-inner { gap: 0 10px; }
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  .overview { min-height: 0; padding-top: 20px; }
  .overview-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .workspace-section { padding-block: 20px 32px; }
  .section-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-note { white-space: normal; }
  .control-bar, .ranking-controls { grid-template-columns: 1fr; }
  .control-search, .ranking-controls .result-count { grid-column: auto; }
  .result-count { padding: 2px 0; }
  .directory-tools { width: 100%; align-items: stretch; flex-direction: column; gap: 8px; }
  .directory-tools > a { padding-bottom: 0; }
  .directory-search { width: 100%; }
  .directory-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .ranking-intro { padding-top: 20px; }
  .intro-meta { flex-direction: column; gap: 10px; }
  .intro-meta div { min-width: 0; }
  .ranking-layout { padding-bottom: 32px; }
  .rights-intro { padding-top: 24px; }
  .rights-layout { padding-top: 18px; }
  .rights-form { padding: 14px; }
  .rights-form-grid { grid-template-columns: 1fr; }
  .rights-field-wide { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: auto; }
  .artist-cover { width: 40px; height: 40px; flex-basis: 40px; }
  .movement-copy small > span:last-child { display: none; }
}

@media (max-width: 360px) {
  .genre-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
