/* =====================================================================
   Club FM — public site styles
   Palette from the logo: ink #17181c · paper #f3f3ef · signal orange #ff7417
   ===================================================================== */

:root {
  --orange: #ff7417;
  --orange-2: #ff9a4d;
  --orange-soft: rgba(255, 116, 23, .12);
  --ink: #17181c;
  --paper: #f3f3ef;

  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --footer-h: 44px;
  --header-top: 12px;
  --header-h: 64px;

  /* light theme (default) */
  --bg: #f4f3ef;
  --bg-2: #ebe9e3;
  --surface: rgba(255, 255, 255, .7);
  --surface-solid: #ffffff;
  --surface-2: rgba(23, 24, 28, .035);
  --text: #17181c;
  --text-2: #4b4d55;
  --muted: #7f828b;
  --line: rgba(23, 24, 28, .08);
  --line-2: rgba(23, 24, 28, .15);
  --glass: rgba(246, 245, 241, .66);
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 16px 40px -18px rgba(20, 20, 30, .18);
  --glow: rgba(255, 116, 23, .35);
  --grid-line: rgba(23, 24, 28, .05);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0e11;
  --bg-2: #131418;
  --surface: rgba(30, 31, 37, .62);
  --surface-solid: #1b1c21;
  --surface-2: rgba(255, 255, 255, .035);
  --text: #f3f3ef;
  --text-2: #b6b8bf;
  --muted: #7c7f88;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --glass: rgba(14, 15, 18, .58);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .7);
  --glow: rgba(255, 116, 23, .4);
  --grid-line: rgba(255, 255, 255, .04);
  color-scheme: dark;
}

/* No-JS fallback follows the system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0d0e11; --bg-2: #131418; --surface: rgba(30, 31, 37, .62); --surface-solid: #1b1c21;
    --surface-2: rgba(255, 255, 255, .035); --text: #f3f3ef; --text-2: #b6b8bf; --muted: #7c7f88;
    --line: rgba(255, 255, 255, .075); --line-2: rgba(255, 255, 255, .14); --glass: rgba(14, 15, 18, .58);
    --grid-line: rgba(255, 255, 255, .04); color-scheme: dark;
  }
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .3s;
}
body.no-scroll { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--orange); color: var(--ink); font-weight: 700; transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
main:focus { outline: none; }

/* ---------- Ambient background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* Static soft glows (no blur filters or animation — cheap to render on phones) */
.orb { position: absolute; border-radius: 50%; }
.orb--1 { width: 110vmax; height: 110vmax; left: -55vmax; top: -60vmax; background: radial-gradient(circle, rgba(255, 116, 23, .22), rgba(255, 116, 23, .06) 35%, transparent 60%); }
.orb--2 { width: 80vmax; height: 80vmax; right: -45vmax; top: 10vh; background: radial-gradient(circle, rgba(255, 154, 77, .12), transparent 55%); }
[data-theme="dark"] .orb--1 { opacity: .8; }
[data-theme="dark"] .orb--2 { opacity: .7; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 25%, transparent 75%);
}

/* ---------- Header (floating glass island) ---------- */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 50%;
  z-index: 50;
  width: min(1240px, 100% - 32px);
  height: var(--header-h);
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 10px 0 20px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 30px -14px rgba(0, 0, 0, .2);
  transition: box-shadow .4s var(--ease), background-color .4s, height .4s var(--ease), top .4s var(--ease);
}
[data-theme="dark"] .site-header { box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 8px 30px -14px rgba(0, 0, 0, .6); }
.site-header.is-scrolled { --header-h: 58px; box-shadow: var(--shadow); }

.brand { display: flex; align-items: center; flex: none; transition: transform .4s var(--ease-spring); }
.logo { height: 30px; width: auto; }
.logo--dark { display: none; }
[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark { display: block; }

.nav {
  position: relative; display: flex; gap: 2px; margin-inline: auto; padding: 4px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 10px; font-weight: 700; font-size: .93rem; color: var(--text-2);
  transition: color .25s;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px; border-radius: 2px;
  background: var(--orange); translate: -50% 0; transform: skewX(-24deg);
}
.nav-pill {
  position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0;
  border-radius: 10px; background: var(--surface-solid); opacity: 0;
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, .12);

}
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* Language segmented switch */
.lang-switch {
  position: relative; display: inline-flex; padding: 3px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); font: 700 .78rem/1 var(--font-mono);
}
.lang-switch a {
  position: relative; z-index: 1; width: 38px; padding: 10px 0; text-align: center;
  border-radius: 9px; color: var(--muted); transition: color .3s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { color: var(--ink); }
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 38px; border-radius: 9px;
  background: var(--orange); box-shadow: 0 4px 14px -4px var(--glow);
  transition: transform .5s var(--ease-spring);
}
.lang-switch[data-lang="en"] .lang-thumb { transform: translateX(38px); }

/* Icon buttons, theme toggle, burger */
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: background .3s, border-color .3s, transform .3s var(--ease), color .3s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-solid); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 19px; height: 19px; }
.theme-toggle { overflow: hidden; }
.theme-toggle .ti { position: absolute; inset: 0; display: grid; place-items: center; }
.ti--sun { color: var(--orange); }
:root:not([data-theme="dark"]) .ti--moon { opacity: 0; }
[data-theme="dark"] .ti--sun { opacity: 0; }

.burger { display: none; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; right: 16px; }
.burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19.5px; right: 12px; transform: rotate(-45deg); }

/* Mobile navigation sheet */
.mobile-nav {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center;
  padding: 110px 24px calc(var(--footer-h) + 40px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav nav { display: flex; flex-direction: column; }
.m-link {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font: italic 800 clamp(1.9rem, 9vw, 2.6rem)/1.1 var(--font-display); letter-spacing: -.03em;
}
.m-link .icon { width: 28px; height: 28px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.m-link:hover .icon, .m-link.is-active .icon { color: var(--orange); }
.m-link.is-active { color: var(--orange); }
.m-foot { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--orange); --b-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border: 0; border-radius: 14px;
  background: var(--b-bg); color: var(--b-fg);
  font: 800 .98rem/1 var(--font-body); letter-spacing: .01em; white-space: nowrap;
  transform: skewX(-8deg);
  box-shadow: 0 12px 32px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s, color .3s;
}
.btn > * { transform: skewX(8deg); }
.btn .icon { width: 19px; height: 19px; }
.btn:hover { box-shadow: 0 18px 40px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--ghost {
  --b-bg: var(--surface); --b-fg: var(--text);
  border: 1px solid var(--line-2); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--orange); box-shadow: 0 12px 30px -16px var(--glow); }
.btn--light { --b-bg: var(--paper); --b-fg: var(--ink); box-shadow: none; }
.btn--sm { height: 40px; padding: 0 16px; font-size: .86rem; border-radius: 11px; gap: 8px; }
.btn--sm .icon { width: 17px; height: 17px; }
.btn--block { width: 100%; }

/* ---------- Shared typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font: 700 .76rem/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: currentColor; transform: skewX(-24deg); }
.h2 {
  margin: 18px 0 0; font: italic 800 clamp(1.9rem, 4.4vw, 3.4rem)/1.04 var(--font-display);
  letter-spacing: -.035em;
}
.section { position: relative; padding: clamp(72px, 11vw, 128px) 0; }
.section--tight { padding-top: 0; }
.section-head { max-width: 760px; }
.section-pad-bottom { padding-bottom: clamp(64px, 9vw, 110px); }


/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 1000px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 96px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, transparent 80%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

.hero-title {
  margin: 0 0 26px;
  font: italic 800 clamp(2.5rem, 7vw, 6rem)/1 var(--font-display);
  letter-spacing: -.04em;
}
/* Extra right padding keeps the italic overhang of the last letter visible */
.hero-title .line { display: block; padding-right: .15em; }
.accent { color: var(--orange); }

.hero-text { max-width: 34rem; margin: 0 0 34px; font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Receiver card */
.radio { position: relative; perspective: 1400px; }

.radio-card {
  position: relative; padding: 16px; border-radius: 30px; color: var(--paper);
  background: linear-gradient(155deg, #26272e 0%, #17181c 45%, #111215 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .6), 0 30px 60px -40px rgba(255, 116, 23, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg));
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;

}
.radio-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 116, 23, .7), transparent 35%, transparent 70%, rgba(255, 255, 255, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.rc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 14px;
  font: 700 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #8e9099;
}
.rc-live { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.rc-band { padding: 5px 8px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .12); }
.rc-screen {
  position: relative; overflow: hidden; border-radius: 20px; background: #0a0b0d;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 60px rgba(255, 116, 23, .07), inset 0 2px 10px rgba(0, 0, 0, .6);
}
.rc-screen::after { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.rc-freq { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 8px; }
.rc-freq-val {
  font: 700 clamp(2rem, 4.4vw, 3.1rem)/1 var(--font-mono); letter-spacing: -.03em; color: #ffb27a;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255, 116, 23, .55);
}
.rc-freq-unit { margin-left: 8px; font: 700 .85rem var(--font-mono); color: #8e9099; }
.rc-mode {
  padding: 7px 10px; border-radius: 9px; background: rgba(255, 116, 23, .14); color: var(--orange);
  font: 700 .68rem/1 var(--font-mono); letter-spacing: .12em; white-space: nowrap;
}
.rc-dial { width: 100%; height: 38px; }
.rc-spectrum { width: 100%; height: 86px; }
.rc-waterfall { width: 100%; height: 118px; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 8px 4px; }
.smeter { display: flex; align-items: flex-end; gap: 3px; }
.smeter b { margin-right: 6px; font: 700 .7rem var(--font-mono); color: #8e9099; }
.smeter i { width: 7px; height: 16px; border-radius: 2px; background: rgba(255, 255, 255, .09); transition: background .12s, box-shadow .12s; }
.smeter i.on { background: var(--orange); box-shadow: 0 0 8px rgba(255, 116, 23, .7); }
.smeter i.on.hot { background: #ff4b2b; box-shadow: 0 0 8px rgba(255, 75, 43, .7); }
.rc-knobs { display: flex; align-items: center; gap: 10px; }
.knob {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a3b43, #16171b 70%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
  rotate: 30deg;
}
.knob::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); }
.knob--sm { width: 28px; height: 28px; rotate: -40deg; }
.knob--sm::after { height: 6px; top: 4px; }


/* ---------- Ticker ---------- */
.ticker-zone { position: relative; height: 100px; overflow: hidden; display: grid; place-items: center; }
.ticker {
  position: absolute; left: -5vw; width: 110vw; padding: 14px 0; overflow: hidden;
  background: var(--orange); color: var(--ink);
  transform: rotate(-2deg);
}
.ticker-track { display: flex; width: max-content; animation: marquee 60s linear infinite; will-change: transform; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker-group { display: flex; flex: none; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap;
  font: italic 800 1.1rem/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase;
}
.ticker-item::after { content: ""; width: 12px; height: 12px; border-radius: 2px; background: currentColor; transform: skewX(-14deg); opacity: .85; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-text { margin-top: 26px; font-size: 1.08rem; }
.about-media { position: relative; }
.about-media::before {
  content: ""; position: absolute; inset: 9% -5% -6% 10%; z-index: -1; border-radius: 34px; opacity: .5;
  background: repeating-linear-gradient(-55deg, var(--orange) 0 2px, transparent 2px 13px);
}
.about-frame {
  position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: 30px;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-sticker {
  position: absolute; left: -20px; bottom: 36px; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px; background: var(--orange); color: var(--ink);
  font: italic 800 1.05rem/1 var(--font-display); transform: rotate(-6deg) skewX(-6deg);
  box-shadow: 0 18px 30px -14px var(--glow);
}
.about-sticker .icon { width: 22px; height: 22px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(44px, 7vw, 80px); }
.stat {
  position: relative; overflow: hidden; padding: 26px 24px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  border: 1.5px solid var(--orange); opacity: .18; box-shadow: 0 0 0 14px rgba(255, 116, 23, .05), 0 0 0 28px rgba(255, 116, 23, .03);
}
.stat-val { font: italic 800 clamp(2rem, 3.6vw, 2.9rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-val em { font-style: inherit; color: var(--orange); }
.stat-label { margin-top: 10px; color: var(--text-2); font-weight: 600; font-size: .93rem; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.card, .guide-card, .next-guide {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
}
.card { padding: 30px 26px 28px; }
.card:hover, .guide-card:hover, .next-guide:hover { border-color: rgba(255, 116, 23, .4); box-shadow: var(--shadow); }
.card-num { position: absolute; right: 22px; top: 22px; font: 700 .78rem var(--font-mono); color: var(--muted); }
.card-icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 26px;
  border-radius: 16px; background: var(--orange-soft); color: var(--orange); transform: skewX(-8deg);
  transition: transform .6s var(--ease-spring), background .4s, color .4s;
}
.card-icon .icon { width: 26px; height: 26px; transform: skewX(8deg); }
.card:hover .card-icon { background: var(--orange); color: var(--ink); }
.card h3 { margin: 0 0 10px; font: 700 1.12rem/1.25 var(--font-display); letter-spacing: -.015em; }
.card p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 6vw, 72px); border-radius: 34px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 116, 23, .35), transparent 50%), var(--ink);
  color: var(--paper);
}
[data-theme="dark"] .cta { border: 1px solid var(--line-2); }
.cta-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; z-index: -1; opacity: .55; }
.cta-waves path { fill: none; stroke: var(--orange); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cta-waves path:nth-child(2) { opacity: .5; }
.cta-waves path:nth-child(3) { opacity: .3; }
.cta-copy { max-width: 560px; }
.cta .h2 { margin: 0 0 14px; }
.cta p { margin: 0; color: rgba(243, 243, 239, .72); font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: calc(var(--header-top) + var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(32px, 5vw, 52px); }
.page-title { margin: 18px 0 16px; font: italic 800 clamp(2.3rem, 6vw, 4.6rem)/1 var(--font-display); letter-spacing: -.045em; }
.page-lead { max-width: 42rem; margin: 0; color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.14rem); }
.admin-notice {
  display: flex; align-items: center; gap: 10px; margin-top: calc(var(--header-top) + var(--header-h) + 20px); margin-bottom: -40px;
  padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--orange); background: var(--orange-soft);
  font-weight: 600; font-size: .9rem;
}
.admin-notice + .admin-notice { margin-top: 50px; }
.admin-notice .icon { color: var(--orange); }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 14px; min-height: 260px; padding: 28px; }
.guide-card.is-draft { border-style: dashed; }
.guide-num { font: italic 800 2.6rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--orange); letter-spacing: -.04em; }
.guide-card h3 { margin: 0; font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.02em; }
.guide-card p { flex: 1; margin: 0; color: var(--text-2); }
.guide-meta { display: flex; align-items: center; justify-content: space-between; font: 600 .78rem var(--font-mono); color: var(--muted); }
.guide-meta > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.guide-meta .icon { width: 16px; height: 16px; }
.guide-arrow {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: background .4s, color .4s, transform .6s var(--ease-spring), border-color .4s;
}
.guide-arrow .icon { width: 19px; height: 19px; }
.guide-card:hover .guide-arrow, .next-guide:hover .guide-arrow { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* Article */
.page-article .read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; }
.read-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--glow); }
.article { max-width: 800px; padding-top: calc(var(--header-top) + var(--header-h) + clamp(40px, 7vw, 80px)); padding-bottom: clamp(64px, 9vw, 110px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); transition: color .3s, gap .4s var(--ease); }
.back-link .icon { width: 18px; height: 18px; }
.back-link:hover { color: var(--orange); gap: 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font: 600 .82rem var(--font-mono); color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .icon { width: 16px; height: 16px; color: var(--orange); }
.next-guide { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; margin-top: 56px; padding: 26px 28px; }
.next-label { font: 700 .74rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.next-title { grid-column: 1; font: 700 1.2rem/1.3 var(--font-display); }
.next-guide .guide-arrow { grid-column: 2; grid-row: 1 / span 2; }

/* Prose */
.prose { font-size: 1.06rem; line-height: 1.78; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; color: var(--text-2); }
.prose h2 { margin: 2.1em 0 .65em; font: 700 1.6rem/1.2 var(--font-display); letter-spacing: -.025em; }
.prose h3 { margin: 1.8em 0 .55em; font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.02em; }
.prose h4, .prose h5 { margin: 1.6em 0 .5em; font-size: 1.05rem; }
.prose h2::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 12px; border-radius: 3px; background: var(--orange); transform: skewX(-14deg); vertical-align: .12em; }
.prose a { color: var(--orange); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 800; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; color: var(--text-2); }
.prose li { margin: .4em 0; padding-left: .3em; }
.prose li::marker { color: var(--orange); font-weight: 800; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 22px; border-left: 3px solid var(--orange); border-radius: 0 18px 18px 0;
  background: var(--surface);
}
.prose blockquote p { margin: 0; color: var(--text); }
.prose code { padding: .15em .45em; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font: 600 .86em var(--font-mono); }
.prose pre {
  margin: 1.4em 0; padding: 20px 22px; overflow: auto; border-radius: 18px;
  background: #121317; color: #f3f3ef; border: 1px solid rgba(255, 255, 255, .06);
  font: 500 .9rem/1.65 var(--font-mono);
}
.prose pre code { padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.prose img { height: auto; margin: 1.6em 0; border-radius: 18px; border: 1px solid var(--line); }
.prose hr { height: 1px; margin: 2.2em 0; border: 0; background: var(--line-2); }

/* ---------- File manager ---------- */
.fm {
  overflow: hidden; border-radius: 30px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.fm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 280px; max-width: 460px; display: block; }
.search > .icon { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 44px 0 46px; border-radius: 15px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: 600 .95rem var(--font-body);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search input:focus { outline: none; border-color: var(--orange); background: var(--surface-solid); box-shadow: 0 0 0 4px var(--orange-soft); }
.search-kbd {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%; min-width: 24px; padding: 4px 6px; border-radius: 7px;
  border: 1px solid var(--line-2); font: 700 .72rem/1 var(--font-mono); text-align: center; color: var(--muted);
}
.search input:focus + .search-kbd { opacity: 0; }
.fm-tools { display: flex; align-items: center; gap: 10px; }
.fm-total { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font: 700 .82rem var(--font-mono); color: var(--text-2); }
.fm-total .icon { width: 16px; height: 16px; color: var(--orange); }
.view-toggle { position: relative; display: flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.view-toggle button { width: 40px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--muted); transition: background .3s, color .3s; }
.view-toggle button .icon { width: 18px; height: 18px; }
.view-toggle button.is-active { background: var(--surface-solid); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .15); }

.chips { display: flex; gap: 8px; padding: 14px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); font-weight: 700; font-size: .88rem; color: var(--text-2);
  transition: border-color .3s, color .3s, background .3s, transform .4s var(--ease);
}
.chip .icon { width: 16px; height: 16px; }
.chip .count { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font: 700 .72rem/1.4 var(--font-mono); color: var(--muted); }
.chip:hover { border-color: var(--orange); color: var(--text); }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: var(--ink); box-shadow: 0 8px 20px -10px var(--glow); }
.chip.is-active .count { background: rgba(0, 0, 0, .12); color: var(--ink); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 22px; font-size: .9rem; color: var(--muted); }
.crumbs a, .crumbs .current { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { transition: color .25s; }
.crumbs a:hover { color: var(--orange); }
.crumbs .icon { width: 15px; height: 15px; }
.crumbs .current { color: var(--text); font-weight: 700; }
.crumbs-count { margin-left: auto; font: 600 .78rem var(--font-mono); }

.fm-list { list-style: none; margin: 0; padding: 4px 8px 10px; }
.fm-item {
  position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 18px; transition: background .3s;
}
.fm-item:hover { background: var(--surface-2); }
.fm-item + .fm-item::before { content: ""; position: absolute; left: 72px; right: 12px; top: 0; height: 1px; background: var(--line); }
.fm-item:hover::before, .fm-item:hover + .fm-item::before { opacity: 0; }
.fm-row-link { display: contents; }
.fm-ic {
  --c: var(--orange);
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c);
  transition: transform .5s var(--ease-spring);
}
.fm-ic .icon { width: 22px; height: 22px; }
.fm-dir .fm-ic { --c: var(--orange); }
.fm-up .fm-ic { --c: var(--muted); }
.fm-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.fm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 500 .76rem var(--font-mono); color: var(--muted); }
.fm-ext { padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--c, var(--muted)) 14%, transparent); color: var(--c, var(--muted)); font-weight: 700; text-transform: uppercase; }
.fm-path { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); }
.fm-path .icon { width: 13px; height: 13px; }
.fm-go { color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.fm-go .icon { width: 20px; height: 20px; }
.fm-dir:hover .fm-go { color: var(--orange); }
.fm-dir:hover .fm-name { color: var(--orange); }

/* Grid view */
.fm-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; padding: 16px; }
.is-grid .fm-item { grid-template-columns: 1fr; align-content: start; gap: 14px; padding: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.is-grid .fm-item::before { display: none; }
.is-grid .fm-item:hover { border-color: rgba(255, 116, 23, .4); }
.is-grid .fm-ic { width: 56px; height: 56px; border-radius: 16px; }
.is-grid .fm-go { position: absolute; right: 16px; top: 18px; }
.is-grid .fm-actions .btn { width: 100%; }
.is-grid .fm-date { display: none; }

.empty { display: grid; justify-items: center; gap: 6px; padding: 72px 20px; text-align: center; color: var(--muted); font-weight: 600; }
.empty p { margin: 0; }
.empty-ic {
  position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 12px;
  border-radius: 26px; background: var(--orange-soft); color: var(--orange);
}
.empty-ic .icon { width: 34px; height: 34px; }

/* ---------- Error page ---------- */
.error { min-height: calc(100svh - var(--footer-h)); display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 60px); padding-bottom: 60px; }
.error-scope { width: min(600px, 100%); height: 120px; margin-bottom: 20px; }
.error-scope svg { width: 100%; height: 100%; overflow: visible; }
.error-line { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.error .page-lead { margin-bottom: 34px; }

/* ---------- Footer (thin, always visible) ---------- */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--footer-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
}
.footer-inner { height: var(--footer-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--muted); }
.socials { display: flex; gap: 2px; flex: none; }
.social {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2);
  transition: color .3s, background .3s, transform .45s var(--ease-spring);
}
.social .icon { width: 18px; height: 18px; }
.social:hover { color: var(--orange); background: var(--orange-soft); }

/* ---------- Guides grouped by topic ---------- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.topic { margin-bottom: clamp(40px, 6vw, 64px); scroll-margin-top: 110px; }
.topic:last-child { margin-bottom: 0; }
.topic-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.topic-num { font: italic 800 1.5rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.3px var(--orange); letter-spacing: -.03em; }
.topic-title { margin: 0; font: italic 800 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.topic-count { margin-left: auto; font: 700 .78rem var(--font-mono); color: var(--muted); }
.topic .guide-card { min-height: 200px; }
.article-topic { margin-top: 26px; }
.article-topic a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: calc(var(--footer-h) + env(safe-area-inset-bottom) + 16px); z-index: 39;
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px;
  background: var(--orange); color: var(--ink); box-shadow: 0 10px 26px -10px var(--glow);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--orange-2); }
.to-top .icon { width: 22px; height: 22px; }
@media (min-width: 1300px) { .to-top { right: max(16px, calc((100vw - 1240px) / 2 - 64px)); } }
@media (max-width: 640px) { .topic .guide-card { min-height: 0; } .to-top { width: 44px; height: 44px; right: 12px; } }

/* ---------- Menu extras ---------- */
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-link { white-space: nowrap; }
.nav-link .icon { width: 16px; height: 16px; }
.nav-link .nav-ext { width: 13px; height: 13px; margin-left: -4px; opacity: .6; }
.nav-link--admin { color: var(--orange); }
.nav-link--admin:hover { color: var(--orange); }
.m-link--admin { color: var(--orange); font-size: clamp(1.2rem, 5.5vw, 1.6rem); border-bottom: 0; margin-top: 8px; }
.m-link--admin .icon { color: var(--orange); width: 24px; height: 24px; }
.mobile-nav { overflow-y: auto; justify-content: safe center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav, .lang-switch--header { display: none; }
  .burger { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: calc(var(--header-top) + var(--header-h) + 56px); padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .radio { max-width: 520px; width: 100%; margin-inline: auto; }
  .radio-card { transform: none; }
  .rc-waterfall { height: 80px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-top: 10px; --header-h: 56px; }
  .site-header { padding: 0 7px 0 14px; border-radius: 17px; }
  .site-header.is-scrolled { --header-h: 52px; }
  .icon-btn { width: 40px; height: 40px; }
  .logo { height: 22px; }
  /* Phone hero: slogan, text and buttons first, then a compact animated receiver */
  .hero { padding-top: calc(var(--header-top) + var(--header-h) + 40px); padding-bottom: 48px; }
  .hero-grid { gap: 32px; }
  .radio { max-width: none; }
  .radio-card { padding: 12px; border-radius: 24px; }
  .rc-head { padding: 2px 4px 10px; font-size: .6rem; letter-spacing: .1em; }
  .rc-screen { border-radius: 16px; }
  .rc-freq { padding: 12px 14px 4px; }
  .rc-freq-val { font-size: 1.9rem; }
  .rc-mode { font-size: .6rem; padding: 6px 8px; }
  .rc-dial { height: 32px; }
  .rc-spectrum { height: 64px; }
  .rc-waterfall { height: 64px; }
  .rc-foot { padding: 10px 4px 2px; }
  .smeter i { width: 6px; height: 13px; }
  .knob { width: 30px; height: 30px; }
  .knob--sm { width: 22px; height: 22px; }
  .hero-text { margin-bottom: 26px; }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 20px 18px; border-radius: 20px; }
  .btn { height: 50px; padding: 0 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .about-sticker { left: 10px; }
  .ticker-zone { height: 80px; }
  .ticker-item { font-size: .92rem; gap: 22px; padding-right: 22px; }
  .section { padding: 64px 0; }
  .fm { border-radius: 24px; }
  .fm-toolbar { padding: 12px; }
  .search { max-width: none; flex-basis: 100%; }
  .search-kbd { display: none; }
  .fm-tools { width: 100%; justify-content: space-between; }
  .crumbs { padding: 12px 16px; }
  .crumbs-count { display: none; }
  .fm-item { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 10px 8px; }
  .fm-ic { width: 40px; height: 40px; border-radius: 12px; }
  .fm-item + .fm-item::before { left: 60px; }
  .fm-list:not(.is-grid) .btn-label { display: none; }
  .fm-list:not(.is-grid) .fm-actions .btn { width: 44px; padding: 0; }
  .fm-list:not(.is-grid) .fm-date { display: none; }
  .fm-list.is-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
  .is-grid .fm-item { padding: 14px; }
  .is-grid .fm-actions .btn-label { display: none; }
  .guide-card { padding: 22px; min-height: 0; }
  .cta { border-radius: 28px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .copy { font-size: .72rem; }
  .social { width: 30px; height: 30px; }
}
@media (max-width: 380px) {
  .fm-list.is-grid { grid-template-columns: 1fr; }
  .lang-switch a { width: 34px; }
  .lang-thumb { width: 34px; }
  .lang-switch[data-lang="en"] .lang-thumb { transform: translateX(34px); }
}

/* Phones in landscape: little height, so everything gets compact */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-top: 6px; --header-h: 50px; --footer-h: 36px; }
  .site-header.is-scrolled { --header-h: 50px; }
  .logo { height: 22px; }
  .icon-btn { width: 38px; height: 38px; }
  .hero { min-height: auto; padding-top: calc(var(--header-top) + var(--header-h) + 28px); padding-bottom: 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .radio { max-width: 460px; margin-top: 8px; }
  .rc-waterfall { height: 56px; }
  .hero-title { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; }
  .hero-text { margin-bottom: 20px; }
  .page-hero, .article { padding-top: calc(var(--header-top) + var(--header-h) + 32px); }
  .mobile-nav { padding: 72px 24px calc(var(--footer-h) + 16px); }
  .m-link { padding: 10px 0; font-size: 1.5rem; }
  .m-foot { margin-top: 16px; }
  .copy { font-size: .72rem; }
  .social { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }

}

@media print {
  .site-header, .site-footer, .bg-fx, .mobile-nav, .read-progress { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
}
