/* Пантера — каталог живого интернет-радио.
   Дизайн-система: структура и токены Vercel Geist (vercel.com/geist),
   палитра, оранжевая hero-панель и «региональная» подача — Cloudflare.
   Шрифты Geist / Geist Mono подключены локально (OFL), внешних запросов нет. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;

  /* Geist · dark (значения сняты с vercel.com/geist/colors) */
  --bg:        #0a0a0a;   /* background-100 */
  --bg-2:      #000000;   /* background-200 */
  --gray-100:  #1a1a1a;
  --gray-200:  #1f1f1f;
  --gray-300:  #292929;
  --gray-400:  #2e2e2e;
  --gray-500:  #454545;
  --gray-600:  #878787;
  --gray-700:  #8f8f8f;
  --gray-900:  #a1a1a1;
  --gray-1000: #ededed;

  --ink:       var(--gray-1000);
  --ink-2:     var(--gray-900);
  --ink-3:     var(--gray-700);
  --line:      var(--gray-200);            /* разделители секций */
  --ring:      rgba(255, 255, 255, .145);  /* --ds-shadow-border-base */
  --ring-2:    rgba(255, 255, 255, .28);
  --surface:   #0f0f0f;
  --surface-2: var(--gray-100);

  /* Cloudflare 2026 */
  --accent:      #ff5e1f;
  --accent-hi:   #ff7a45;
  --accent-ink:  #fffbf5;
  --accent-text: #ff7a45;
  --cream:       #fffbf5;
  --cream-2:     #f0e3de;

  --blue:   #52a8ff;   /* focus */
  --green:  #62c073;
  --green-fill: #46a758;
  --red:    #ff6166;
  --amber:  #ffb224;

  --r-sm: 6px;  --r-md: 8px;  --r-lg: 12px;  --r-xl: 16px;  --r-pill: 999px;
  --container: 1240px;
  --gutter: 24px;
  --header-h: 64px;
  --player-h: 80px;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --shadow-menu: 0 0 0 1px var(--ring), 0 1px 1px #00000005, 0 4px 8px -4px #0000000a, 0 16px 24px -8px #0000000f;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg:        #ffffff;
  --bg-2:      #fafafa;
  --gray-100:  #f2f2f2;
  --gray-200:  #ebebeb;
  --gray-300:  #e6e6e6;
  --gray-400:  #ebebeb;
  --gray-500:  #c9c9c9;
  --gray-600:  #a8a8a8;
  --gray-700:  #8f8f8f;
  --gray-900:  #666666;
  --gray-1000: #171717;
  --ring:      rgba(0, 0, 0, .08);
  --ring-2:    rgba(0, 0, 0, .22);
  --surface:   #ffffff;
  --accent-text: #c93f00;
  --blue:   #0072f5;
  --green:  #1a7f37;
  --green-fill: #1a7f37;
  --red:    #d92d20;
  --amber:  #b45309;
  --shadow-menu: 0 0 0 1px var(--ring), 0 1px 1px #00000005, 0 4px 8px -4px #0000000a, 0 16px 24px -8px #0000000f;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--player-h);
  min-height: 100vh;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 300; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; transition: top .18s var(--ease); }
.skip:focus { top: 12px; }

/* ---------- typography (шкала Geist) ---------- */
.t-hero  { font-size: clamp(44px, 7.6vw, 88px); line-height: .98; letter-spacing: -.058em; font-weight: 500; }
.t-h1    { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.06em; font-weight: 600; }
.t-h2    { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -.06em; font-weight: 600; }
.t-h3    { font-size: 24px; line-height: 32px; letter-spacing: -.04em; font-weight: 600; }
.t-h4    { font-size: 20px; line-height: 26px; letter-spacing: -.02em; font-weight: 600; }
.t-lead  { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); }
.t-copy  { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.t-label { font: 500 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.mono    { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted   { color: var(--ink-2); }
.faint   { color: var(--ink-3); }
.accent  { color: var(--accent-text); }

/* ---------- buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border: 0; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--ink); color: var(--bg);
  transition: background-color .15s, box-shadow .15s, transform .15s var(--ease), opacity .15s;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--sm { --h: 32px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn--lg { --h: 48px; padding: 0 24px; font-size: 16px; }
.btn--ghost { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.btn--ghost:hover { background: var(--gray-100); box-shadow: 0 0 0 1px var(--ring-2); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--cream { background: var(--cream); color: #1f1f1f; }
.btn--cream:hover { background: #fff; }
.btn--line-cream { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(255, 251, 245, .45); }
.btn--line-cream:hover { background: rgba(255, 251, 245, .12); }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--gray-100); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.04em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a { padding: 6px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--gray-100); }
.nav a[aria-current="page"] { color: var(--ink); }
.header__act { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .header__in { gap: 12px; }
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 24px 40px -20px #000a;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .nav a { padding: 14px 4px; font-size: 18px; border-radius: 0; box-shadow: 0 1px 0 var(--line); background: none !important; }
  html.nav-open .nav { visibility: visible; opacity: 1; transform: none; }
  .header__act .btn { display: none; }
}

/* ---------- hero (Cloudflare panel) ---------- */
.hero-wrap { padding: 8px 8px 0; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  min-height: min(780px, calc(100svh - var(--header-h) - 24px));
  background: var(--accent); color: var(--cream);
  display: grid; align-items: center; justify-items: center;
  padding: 88px var(--gutter) 200px; text-align: center;
}
.hero::before {                       /* полутоновая сетка */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(60, 12, 0, .26) 1.1px, transparent 1.5px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 105%, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
  mask-image: radial-gradient(90% 80% at 50% 105%, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
}
.hero::after {                        /* свечение снизу */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 38% at 50% 104%, #fff1d6 0%, rgba(255, 214, 160, .75) 30%, rgba(255, 140, 70, 0) 72%),
    radial-gradient(90% 60% at 50% 0%, rgba(255, 122, 69, .0), rgba(120, 30, 0, .18));
}
.hero__in { max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero h1 { color: var(--cream); }
.hero__sub { max-width: 600px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(255, 251, 245, .88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 6px 6px 16px; text-align: left; line-height: 1.3;
  border-radius: var(--r-pill); font-size: 14px; color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 251, 245, .5); background: rgba(255, 251, 245, .06);
  transition: background-color .15s;
}
.pill-link:hover { background: rgba(255, 251, 245, .16); }
.pill-link i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); color: #1f1f1f; }
.pill-link svg { width: 12px; height: 12px; }

/* now-playing «стекло» внизу hero */
.dock {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); text-align: left;
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center;
  padding: 12px 14px 12px 12px; border-radius: var(--r-lg);
  background: rgba(10, 10, 10, .78); color: #ededed;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 60px -16px rgba(60, 10, 0, .55);
}
.dock__art { width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; background: #1a1a1a; }
.dock__art img { width: 100%; height: 100%; object-fit: cover; }
.dock__txt { min-width: 0; }
.dock__lbl { display: flex; align-items: center; gap: 8px; }
.dock__title { margin-top: 4px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock__sub { font-size: 13px; color: #a1a1a1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock .t-label { color: #8f8f8f; }
.play-round {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--cream); color: #1f1f1f; transition: transform .15s var(--ease), background-color .15s;
}
.play-round:hover { background: #fff; transform: scale(1.05); }
.play-round svg { width: 18px; height: 18px; }

/* ---------- live dot / equalizer ---------- */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-fill); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--green-fill); opacity: .35; animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.live-dot.is-off { background: var(--red); } .live-dot.is-off::after { background: var(--red); animation: none; opacity: 0; }
.live-dot.is-warn { background: var(--amber); } .live-dot.is-warn::after { background: var(--amber); }
.live-dot.is-idle { background: var(--gray-600); } .live-dot.is-idle::after { animation: none; opacity: 0; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { display: block; width: 2px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: bottom; transform: scaleY(.25); }
.is-playing .eq i, .eq.on i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; }
.eq i:nth-child(4) { animation-delay: -.15s !important; } .eq i:nth-child(5) { animation-delay: -.45s !important; }
@keyframes eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section + .section { box-shadow: 0 -1px 0 var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .t-lead { max-width: 560px; margin-top: 16px; }
.center { text-align: center; }
.center .t-lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }

/* сетка с «плюсами» в углах — фирменный приём Vercel */
.frame { position: relative; box-shadow: 0 0 0 1px var(--line); border-radius: 0; }
.frame::before, .frame::after, .frame > .plus-bl, .frame > .plus-br {
  content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) center / 1px 100% no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1px no-repeat;
  opacity: .8;
}
.frame::before { top: -5px; left: -5px; } .frame::after { top: -5px; right: -5px; }
.frame > .plus-bl { bottom: -5px; left: -5px; } .frame > .plus-br { bottom: -5px; right: -5px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 28px 28px; box-shadow: inset -1px 0 0 var(--line); }
.stat:last-child { box-shadow: none; }
.stat b { display: block; font-size: clamp(36px, 4.6vw, 56px); line-height: 1; letter-spacing: -.06em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { box-shadow: none; } .stat:nth-child(-n+2) { box-shadow: inset 0 -1px 0 var(--line); }
  .stat:nth-child(1) { box-shadow: inset -1px -1px 0 var(--line); }
  .stat { padding: 24px 20px; }
}

/* ---------- broadcasters row ---------- */
.marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; padding-block: 36px; }
.marks span { font-size: clamp(17px, 2vw, 22px); font-weight: 600; letter-spacing: -.045em; color: var(--ink-3); transition: color .2s; }
.marks span:hover { color: var(--ink); }

/* ---------- toolbar / chips / search ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px; border: 0; border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font-size: 14px; box-shadow: 0 0 0 1px var(--ring);
  transition: box-shadow .15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:hover { box-shadow: 0 0 0 1px var(--ring-2); }
.search input:focus { outline: none; box-shadow: 0 0 0 1px var(--ink-3), 0 0 0 4px color-mix(in srgb, var(--blue) 30%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500;
  box-shadow: 0 0 0 1px var(--ring); transition: background-color .15s, color .15s, box-shadow .15s;
}
.chip:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--ring-2); }
.chip.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }

/* ---------- station cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 1px var(--ring);
  transition: box-shadow .2s, transform .25s var(--ease);
}
.card:hover { box-shadow: 0 0 0 1px var(--ring-2), 0 20px 40px -24px #000c; transform: translateY(-2px); }
.card.is-playing { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.card__art { position: relative; aspect-ratio: 1; background: var(--gray-100); overflow: hidden; }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__art img { transform: scale(1.04); }
.card__tag {
  position: absolute; left: 10px; top: 10px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center;
  font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #ededed;
  background: rgba(10, 10, 10, .62); border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}
.card__play {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 20px -6px #0009; opacity: 0; transform: translateY(6px) scale(.92);
  transition: opacity .2s, transform .25s var(--ease), background-color .15s;
}
.card:hover .card__play, .card:focus-within .card__play, .card.is-playing .card__play { opacity: 1; transform: none; }
.card__play:hover { background: var(--accent-hi); }
.card__play svg { width: 18px; height: 18px; }
.card__play .ic-pause { display: none; }
.card.is-playing .card__play .ic-play { display: none; } .card.is-playing .card__play .ic-pause { display: block; }
@media (hover: none) { .card__play { opacity: 1; transform: none; } }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card__name { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.025em; }
.card__src { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.card__src a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.card__now { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 18px; font: 400 12px/18px var(--mono); color: var(--ink-3); }
.card__now span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__now .eq { color: var(--accent-text); flex: none; }
.empty { grid-column: 1 / -1; padding: 56px 16px; text-align: center; color: var(--ink-3); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 10px 12px 12px; }
  .card__name { font-size: 15px; }
  .card__play { width: 38px; height: 38px; right: 8px; bottom: 8px; }
  .card__tag { left: 8px; top: 8px; }
  .card__now { font-size: 11px; }
}
/* skeleton */
.sk { border-radius: var(--r-sm); background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- network / regions ---------- */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--ring); }
.region { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); box-shadow: inset -1px 0 0 var(--line); min-width: 0; }
.region:last-child { box-shadow: none; }
.region__top { display: flex; align-items: center; justify-content: space-between; }
.region__cc { display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-sm); font: 600 12px/1 var(--mono); background: var(--gray-100); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.region h3 { font-size: 20px; letter-spacing: -.03em; margin-top: 14px; }
.region__host { font: 400 12px/18px var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.region__role { font-size: 14px; color: var(--ink-2); line-height: 20px; }
.region__ms { margin-top: auto; padding-top: 18px; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.region__ms b { font-size: 28px; line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.region__ms span { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: 10px; }
.bars i { flex: 1; min-width: 2px; background: var(--green-fill); border-radius: 1px; opacity: .85; }
.bars i.f { background: var(--red); opacity: .9; } .bars i.n { background: var(--gray-300); }
@media (max-width: 980px) {
  .regions { grid-template-columns: repeat(2, 1fr); }
  .region:nth-child(2) { box-shadow: none; } .region:nth-child(-n+2) { box-shadow: inset 0 -1px 0 var(--line); } .region:nth-child(1) { box-shadow: inset -1px -1px 0 var(--line); }
}
@media (max-width: 560px) {
  .regions { grid-template-columns: 1fr; }
  .region, .region:nth-child(n) { box-shadow: inset 0 -1px 0 var(--line); } .region:last-child { box-shadow: none; }
}

/* ---------- подборки (баннеры с CDN promo) ---------- */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.collection { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--ring); transition: box-shadow .2s, transform .25s var(--ease); }
.collection:hover { box-shadow: 0 0 0 1px var(--ring-2), 0 24px 48px -28px #000d; transform: translateY(-2px); }
.collection img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.collection:hover img { transform: scale(1.03); }
.collection__t { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.collection__t b { font-size: 16px; letter-spacing: -.025em; font-weight: 600; }
@media (max-width: 900px) { .collections { grid-template-columns: 1fr; } }

/* полоса изображений (О проекте) */
.strip { display: grid; grid-template-columns: 1fr 2.67fr; gap: 16px; margin: 20px 0 8px; max-width: 980px; }
.strip figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--ring); background: var(--gray-100); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .strip { grid-template-columns: 1fr; } }

/* ---------- feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--ring); transition: box-shadow .2s; }
.feature:hover { box-shadow: 0 0 0 1px var(--ring-2); }
.feature__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); margin-bottom: 20px; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.feature__ic svg { width: 20px; height: 20px; }
.feature h3 { margin-bottom: 8px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* ---------- CTA panel ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); text-align: center;
  padding: clamp(56px, 8vw, 104px) var(--gutter); background: var(--accent); color: var(--cream);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(60, 12, 0, .22) 1.1px, transparent 1.5px); background-size: 9px 9px; -webkit-mask-image: radial-gradient(80% 90% at 50% 120%, #000, transparent 80%); mask-image: radial-gradient(80% 90% at 50% 120%, #000, transparent 80%); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 50% 118%, #fff1d6 0%, rgba(255, 214, 160, .6) 32%, rgba(255, 140, 70, 0) 72%); }
.cta h2 { color: var(--cream); margin-bottom: 16px; }
.cta p { max-width: 520px; margin: 0 auto 28px; color: rgba(255, 251, 245, .88); font-size: 18px; line-height: 1.55; }

/* ---------- page header (внутренние страницы) ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); box-shadow: 0 1px 0 var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 85% -20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%); }
.page-head .t-lead { max-width: 640px; margin-top: 16px; }
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.crumb a:hover { color: var(--ink); }
.page-body { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 112px); }

/* ---------- list rows (now / status) ---------- */
.rows { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--ring); background: var(--surface); }
.row { display: grid; grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1.5fr) auto; gap: 16px; align-items: center; padding: 12px 16px; box-shadow: 0 1px 0 var(--line); width: 100%; border: 0; background: none; text-align: left; transition: background-color .15s; }
.row:last-child { box-shadow: none; }
button.row:hover { background: var(--gray-100); }
.row.is-playing { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.row__art { width: 48px; height: 48px; border-radius: var(--r-md); overflow: hidden; background: var(--gray-100); }
.row__art img { width: 100%; height: 100%; object-fit: cover; }
.row__st b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 20px; }
.row__st span { display: block; font-size: 13px; color: var(--ink-3); line-height: 18px; }
.row__tr { min-width: 0; }
.row__tr b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__tr span { display: block; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__end { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font: 400 12px/1 var(--mono); }
.row__end .eq { color: var(--accent-text); }
@media (max-width: 700px) {
  .row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
  .row__st { display: none; }
  .row__art { width: 44px; height: 44px; }
}

/* status table */
.svc { width: 100%; border-collapse: collapse; font-size: 14px; }
.svc th { text-align: left; padding: 12px 16px; font: 500 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); box-shadow: 0 1px 0 var(--line); white-space: nowrap; }
.svc td { padding: 14px 16px; box-shadow: 0 1px 0 var(--line); vertical-align: middle; }
.svc tr:last-child td { box-shadow: none; }
.svc .host { font: 400 13px/18px var(--mono); overflow-wrap: anywhere; }
.svc .st { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.svc .ms { font: 400 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--ring); background: var(--surface); }
.banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--ring); margin-bottom: 24px; }
.banner b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.banner .live-dot { width: 10px; height: 10px; }

/* ---------- prose ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; line-height: 34px; letter-spacing: -.04em; margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 28px; }
.prose p + p { margin-top: 16px; }
.prose ul { margin-top: 12px; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ring-2); text-underline-offset: 4px; transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose kbd { font: 500 12px/1 var(--mono); padding: 3px 6px; border-radius: 4px; background: var(--gray-100); box-shadow: 0 0 0 1px var(--ring); color: var(--ink); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.kv > div { padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--ring); }
.kv b { display: block; font-size: 15px; letter-spacing: -.02em; margin-bottom: 4px; }
.kv span { color: var(--ink-2); font-size: 14px; line-height: 20px; }

/* sources table */
.src-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.src-table th { text-align: left; padding: 12px 16px; font: 500 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); box-shadow: 0 1px 0 var(--line); white-space: nowrap; }
.src-table td { padding: 12px 16px; box-shadow: 0 1px 0 var(--line); color: var(--ink-2); }
.src-table tr:last-child td { box-shadow: none; }
.src-table td b { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.src-table a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.src-table tbody tr:hover { background: var(--gray-100); }

/* ---------- страница «Сейчас» ---------- */
.now-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.now-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; padding: 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--ring); }
.now-head__art { width: 240px; height: 240px; border-radius: var(--r-lg); overflow: hidden; background: var(--gray-100); box-shadow: 0 0 0 1px var(--ring); }
.now-head__art img { width: 100%; height: 100%; object-fit: cover; }
.now-head__txt { min-width: 0; }
.now-head__txt .t-label { display: flex; align-items: center; margin-bottom: 14px; }
.now-head__txt .t-lead { overflow-wrap: anywhere; }
.now-head__cta { margin-top: 24px; }
.hist { margin-top: 12px; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--ring); background: var(--surface); overflow: hidden; }
.hist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 12px 16px; box-shadow: 0 1px 0 var(--line); }
.hist li:last-child { box-shadow: none; }
.hist b { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist span { grid-column: 1; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist time { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 12px; color: var(--ink-3); }
@media (max-width: 960px) { .now-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .now-head { grid-template-columns: 1fr; } .now-head__art { width: 100%; height: auto; aspect-ratio: 1; } }

/* ---------- footer ---------- */
.footer { box-shadow: 0 -1px 0 var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font: 500 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer li a { font-size: 14px; color: var(--ink-2); transition: color .15s; }
.footer li a:hover { color: var(--ink); }
.footer__about p { max-width: 320px; margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; box-shadow: 0 -1px 0 var(--line); font-size: 13px; color: var(--ink-3); }
.footer__status { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); color: var(--ink-2); box-shadow: 0 0 0 1px var(--ring); transition: box-shadow .15s, color .15s; }
.footer__status:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--ring-2); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- player bar ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; height: var(--player-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 -1px 0 var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.player__in { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; }
.np { display: flex; align-items: center; gap: 14px; min-width: 0; }
.np img { width: 48px; height: 48px; border-radius: var(--r-md); object-fit: cover; background: var(--gray-100); box-shadow: 0 0 0 1px var(--ring); flex: none; }
.np__txt { min-width: 0; display: grid; gap: 1px; }
.np__title { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np__sub { font-size: 13px; line-height: 18px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font: 400 11px/14px var(--mono); color: var(--ink-3); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.status.is-live { color: var(--green); } .status.is-wait { color: var(--amber); } .status.is-err { color: var(--red); }
.transport { display: flex; align-items: center; gap: 8px; }
.tbtn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); transition: background-color .15s, color .15s; }
.tbtn:hover { background: var(--gray-100); color: var(--ink); }
.tbtn svg { width: 18px; height: 18px; }
.tbtn--main { width: 44px; height: 44px; background: var(--ink); color: var(--bg); }
.tbtn--main:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); color: var(--bg); transform: scale(1.04); }
.tbtn--main svg { width: 20px; height: 20px; }
.player__right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.clock { font: 400 12px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.vol { -webkit-appearance: none; appearance: none; width: 104px; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--v, 72%), var(--gray-300) var(--v, 72%)); outline: none; cursor: pointer; }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 4px transparent; transition: box-shadow .15s; }
.vol::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 0; }
.vol:hover::-webkit-slider-thumb, .vol:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 18%, transparent); }
@media (max-width: 760px) {
  :root { --player-h: 72px; }
  .player__in { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .player__right { display: none; }
  .tbtn[data-prev], .tbtn[data-next] { display: none; }
  .np img { width: 44px; height: 44px; }
}

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot::after, .eq i, .sk { animation: none !important; }
  .card, .card__art img, .btn { transition: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - var(--header-h) - var(--player-h)); display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.nf b { display: block; font-size: clamp(96px, 22vw, 220px); line-height: .9; letter-spacing: -.08em; font-weight: 600; color: transparent; -webkit-text-stroke: 1px var(--ring-2); }
.nf h1 { margin: 8px 0 12px; } .nf p { color: var(--ink-2); margin-bottom: 28px; }

@media print { .header, .player, .footer, .hero::before, .hero::after { display: none !important; } body { padding: 0; } }
