/* ==========================================================================
   EuRadioBot.com

   Direction: the app's yellow-on-charcoal identity, executed as a dark
   *editorial* surface rather than flat boxes on flat black.

   Three rules the previous pass broke, kept deliberately here:
   1. Yellow is an accent, not a body colour. It carries the primary CTA,
      active state and the equaliser, nothing else. Headings are white.
   2. Every raised surface gets a top inner highlight + a soft drop shadow.
      A 1px hairline around a flat fill is what reads as "cheap"; a lit
      top edge is what reads as a physical object.
   3. Uppercase is for 12px labels only. Display type is mixed-case Archivo
      at a wide optical width, the opposite of condensed Impact.
   ========================================================================== */

/* ---------- fonts (self-hosted; no third-party request) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root {
  /* Surfaces climb toward the light, never toward pure black. */
  --bg: #0e0e10;
  --bg-raised: #141417;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --surface-3: #26262c;

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --lit: rgba(255, 255, 255, 0.06); /* top inner highlight */

  --text: #f3f3f0;
  --text-2: #a3a3ad;
  --text-3: #6f6f7a;

  --accent: #fdd835;
  --accent-2: #ffe98a;
  --accent-deep: #c9a41f;
  --accent-tint: rgba(253, 216, 53, 0.12);
  --accent-line: rgba(253, 216, 53, 0.28);
  --ink: #121208; /* text on accent */

  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.95);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1120px;
  --gutter: 24px;
  --header-h: 64px;
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
}

/* ---------- reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
  /* Nothing should ever scroll the page sideways. Belt and braces: no
     component below is allowed to overflow, and this catches it if one does. */
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
svg { fill: currentColor; }
/* A CSS rule beats a presentation attribute, so the blanket `fill:
   currentColor` above silently floods any inline SVG authored with
   fill="none", making outline icons render as solid blobs. This restores
   the author's intent wherever the attribute is declared. */
svg[fill="none"] { fill: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--r-xs);
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.021em;
  line-height: 1.08;
  text-wrap: balance;
}

/* Capped so "inside Telegram." always holds one line in the hero column.
   Above ~60px it wraps and strands the word "inside" on a line of its own. */
.display {
  font-size: clamp(2.375rem, 5.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
@media (max-width: 560px) {
  .display { font-size: clamp(2rem, 9vw, 2.375rem); }
}
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.h3 { font-size: 1.125rem; letter-spacing: -0.012em; line-height: 1.3; }

.eyebrow {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1;
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 52ch;
  text-wrap: pretty;
}
@media (min-width: 800px) { .lead { font-size: 1.125rem; } }

.muted { color: var(--text-2); }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  color: var(--accent-2);
}

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(52px, 7vw, 84px); }
.section--tight { padding-block: clamp(34px, 4.5vw, 52px); }
.section--top { padding-top: clamp(36px, 5vw, 56px); }
/* The stats strip sits between two padded sections; without this its own
   padding stacks with both and opens a ~140px hole in the page. */
.section--strip { padding-block: clamp(28px, 3.5vw, 44px); }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 62ch; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head p { margin-top: 14px; color: var(--text-2); }

.rule { height: 1px; background: var(--line); border: 0; }

/* The recipe that makes a dark surface read as an object: a lifted fill,
   a lit top edge, and a shadow that grounds it. */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 var(--lit), var(--shadow);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn__icon { width: 15px; height: 15px; flex: none; }

.btn--accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset,
              0 10px 24px -12px rgba(253, 216, 53, 0.7);
}
.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
              0 16px 30px -12px rgba(253, 216, 53, 0.85);
}
.btn--accent:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn--sm { padding: 9px 15px; font-size: 0.875rem; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- brand mark ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: block; width: 32px; height: 32px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__tile { fill: #1c1c20; }
.brand__body { fill: var(--accent); }
.brand__stroke { stroke: var(--accent); fill: none; }
.brand__cut { fill: #1c1c20; }
.brand__pupil { fill: var(--accent); }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.018em;
  color: var(--text);
}
.brand--sm .brand__mark { width: 28px; height: 28px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  height: var(--header-h);
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav a {
  padding: 7px 12px;
  border-radius: var(--r-xs);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }

/* Square icon links (Telegram channel, X) — same 38px footprint and resting
   colour as the menu toggle they sit next to, so the actions cluster reads as
   one row of controls rather than three unrelated shapes. */
.icon-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  color: var(--text-2);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.icon-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.icon-link svg { width: 17px; height: 17px; fill: currentColor; }

/* JS-free mobile menu */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  cursor: pointer;
  color: var(--text-2);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }
.menu[open] summary { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 208px;
  padding: 8px;
  display: grid;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.menu__panel a {
  padding: 9px 12px;
  border-radius: var(--r-xs);
  font-size: 0.9375rem;
  color: var(--text-2);
}
.menu__panel a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.menu__panel hr { height: 1px; background: var(--line); border: 0; margin: 6px 4px; }

@media (max-width: 780px) {
  .nav { display: none; }
  .menu { display: block; }
  .icon-link { display: none; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 400px) {
  .site-header__bar { gap: 8px; }
  .site-header .btn--sm { padding-inline: 12px; }
}

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 64px);
  overflow: hidden;
}
/* A single warm light source behind the player, so the page has a direction
   of light instead of being uniformly flat. */
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 760px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(253, 216, 53, 0.13), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero > .shell { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
}
.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(253, 216, 53, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(253, 216, 53, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(253, 216, 53, 0.04); }
}

.hero h1 { margin-top: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead { margin-top: 20px; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
/* Once they stack, ragged-width buttons read as an accident, so match them. */
@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
}
.hero__note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ---------- hero media (links out to the real player) ---------- */

.hero__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--lit), var(--shadow-lg);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.hero__media:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: inset 0 1px 0 var(--lit), var(--shadow-lg),
              0 30px 60px -30px rgba(253, 216, 53, 0.4);
}
.hero__media video,
.hero__media img { width: 100%; height: auto; }
.hero__media-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__media-motion { display: none; }
  .hero__media-still { display: block; }
}

/* A caption bar under the artwork, not an overlay on top of it. The banner
   is a finished composition with its own type, and floating a pill over it
   just covers the tagline. */
.hero__media-cta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.22s ease, background-color 0.22s ease;
}
.hero__media-cta svg { width: 12px; height: 12px; flex: none; color: var(--accent); }
.hero__media-cta::after {
  content: "→";
  margin-left: auto;
  color: var(--text-3);
  transition: transform 0.22s ease, color 0.22s ease;
}
.hero__media:hover .hero__media-cta { color: var(--text); background: rgba(253, 216, 53, 0.07); }
.hero__media:hover .hero__media-cta::after { color: var(--accent); transform: translateX(3px); }

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
  padding-block: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker ul {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  width: max-content;
  animation: marquee 72s linear infinite;
}
.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-2);
  white-space: nowrap;
}
.ticker__genre {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006));
  overflow: hidden;
}
.stat { padding: clamp(20px, 3vw, 30px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
/* Three stats stay on one row all the way down. Two columns would orphan
   the third. Only the padding and label size shrink. */
@media (max-width: 600px) {
  .stat { padding: 18px 10px; }
  /* Small enough that "Live stations" still holds one line. A single
     wrapping label makes the three cells sit on different baselines. */
  .stat span { font-size: 0.625rem; letter-spacing: 0.04em; margin-top: 8px; }
}

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

.feature {
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-raised);
  transition: background-color 0.22s ease;
}
.feature:hover { background: var(--surface); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.feature__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.9375rem; color: var(--text-2); text-wrap: pretty; }

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--line-2); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step h3 { margin-bottom: 7px; }
.step p { font-size: 0.9375rem; color: var(--text-2); }

/* ---------- cta band ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 160% at 88% 0%, rgba(253, 216, 53, 0.12), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta p { margin-top: 10px; color: var(--text-2); max-width: 54ch; }
/* Two buttons where the panel used to hold one: they wrap together as a unit
   rather than the second one stranding on its own line. */
.cta__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- product cards ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}
@media (max-width: 760px) { .products { grid-template-columns: minmax(0, 1fr); } }

.product {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
}
.product__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.product__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product h2 { font-size: 1.375rem; margin-bottom: 10px; }
.product p { color: var(--text-2); font-size: 0.9375rem; }
.product ul {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 9px;
}
.product li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.product li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-deep);
}
.product__foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
}

/* ==========================================================================
   STATIONS
   ========================================================================== */

.stations-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.stations-head p { margin-top: 14px; color: var(--text-2); max-width: 56ch; }
.stations-head .updated {
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding-block: 14px;
  background: rgba(14, 14, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.toolbar__row {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 620px) { .toolbar__row { flex-wrap: wrap; } }

.field { position: relative; flex: 1 1 auto; min-width: 0; }
.field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.field input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(253, 216, 53, 0.1);
}
.field input::-webkit-search-cancel-button { filter: invert(1) opacity(0.4); }

.select { position: relative; flex: 0 0 auto; }
.select svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.select select {
  width: 100%;
  padding: 12px 34px 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.16s ease;
}
.select select:focus { border-color: var(--accent-line); }
.select option { background: var(--surface-2); }
@media (max-width: 620px) { .select { flex: 1 1 100%; } }

.chips {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  /* 31 genres never fit one row; the fade is the affordance that says the
     row keeps going rather than ending mid-word. */
  mask-image: linear-gradient(90deg, #000 86%, transparent 99%);
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 99%);
}
/* Touch already swipes the row. A mouse has no equivalent, so on real desktop
   pointers (not just a wide viewport) the row is click-and-draggable, the same
   behaviour as the Mini App's genre row. No scroll-snap: it fights the drag. */
@media (hover: hover) and (pointer: fine) {
  .chips { cursor: grab; }
  .chips.is-dragging { cursor: grabbing; user-select: none; }
  .chips.is-dragging .chip { pointer-events: none; }
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.chip__n { font-size: 0.6875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.chip.is-active .chip__n { color: rgba(18, 18, 8, 0.6); }

.result-count {
  font-size: 0.8125rem;
  color: var(--text-3);
  padding-top: 22px;
  font-variant-numeric: tabular-nums;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-bottom: 24px;
}

.station-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), var(--surface);
  box-shadow: inset 0 1px 0 var(--lit);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.station-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 var(--lit), var(--shadow);
}
/* `display: flex/grid` beats the [hidden] attribute's UA `display: none`,
   so both need saying explicitly or JS-hidden elements stay visible. */
.station-card[hidden] { display: none; }
.station-grid[hidden] { display: none; }

.station-card__top { display: flex; gap: 12px; align-items: center; }
.station-card__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-xs);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.station-card:hover .station-card__mark { background: var(--accent); color: var(--ink); }

.station-card__id { min-width: 0; flex: 1; }
.station-card__name {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Stretched link: the whole card opens Telegram, while the station's own
   website link below stays independently clickable (z-index above this). */
.station-card__link::after { content: ""; position: absolute; inset: 0; z-index: 0; }

.station-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--text-3);
  min-width: 0;
}
.station-card__genre { color: var(--accent-deep); font-weight: 500; flex: none; }
.station-card__dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.station-card__meta { white-space: nowrap; overflow: hidden; }

.station-card__desc {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.55 * 0.8125rem);
}

.station-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.station-card__play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.18s ease;
}
.station-card__play svg { width: 13px; height: 13px; }
.station-card:hover .station-card__play { color: var(--accent); }

.station-card__out {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
  color: var(--text-3);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.station-card__out svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.station-card__out:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.empty {
  text-align: center;
  padding: 72px 20px 96px;
}
.empty h2 { font-size: 1.25rem; margin-bottom: 8px; }
.empty p { color: var(--text-2); font-size: 0.9375rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* No margin-top: the footer is its own tonal band, so the preceding
   section's bottom padding is already the separation. */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}
.site-footer__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 60px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 60px);
}
@media (max-width: 780px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
.site-footer__brand p {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 34ch;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 460px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.site-footer__nav > div { display: grid; align-content: start; gap: 11px; }
.site-footer__nav h2 {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}
.site-footer__nav a { font-size: 0.875rem; color: var(--text-2); transition: color 0.16s ease; }
.site-footer__nav a:hover { color: var(--accent); }

.site-footer__base {
  border-top: 1px solid var(--line);
}
.site-footer__base {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ==========================================================================
   LEGAL / 404
   ========================================================================== */

.legal { max-width: 70ch; }
.legal .updated {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 16px;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1rem; margin-top: 1.6em; margin-bottom: 0.4em; }
.legal p, .legal li { color: var(--text-2); font-size: 0.9375rem; }
.legal p + p { margin-top: 1em; }
.legal ul, .legal ol { margin: 1em 0; padding-left: 1.3em; display: grid; gap: 0.5em; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }

.notfound { text-align: center; padding: clamp(72px, 14vw, 140px) 0; }
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, var(--accent), rgba(253, 216, 53, 0.38));
  -webkit-background-clip: text;
  background-clip: text;
}
.notfound p { margin: 16px auto 30px; color: var(--text-2); max-width: 44ch; }

/* ---------- motion ---------- */

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