/* ============================================================
   DUSK FM — 黄昏电台
   A radio station made of type, light and generated air.
   ============================================================ */

:root {
  --bg: #0e0b09;
  --bg-deep: #090706;
  --panel: #191310;
  --screen: #0f0b09;
  --cream: #efe6d6;
  --muted: #b0a28f;
  --faint: #918574;
  --line: rgba(239, 230, 214, 0.13);
  --line-soft: rgba(239, 230, 214, 0.07);
  --accent: #e5a15c;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Mono", "JetBrains Mono", "Roboto Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #17100a; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #17100a;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- atmosphere ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -30%, rgba(239, 230, 214, 0.045), transparent 55%),
    radial-gradient(90% 70% at 80% 10%, rgba(120, 96, 72, 0.05), transparent 60%),
    linear-gradient(180deg, #100c0a 0%, #0e0b09 45%, #0a0806 100%);
}

.horizon {
  position: fixed;
  left: 50%;
  bottom: -28vh;
  width: 140vw;
  height: 70vh;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    48% 50% at 50% 60%,
    color-mix(in srgb, var(--accent) 20%, transparent) 0%,
    color-mix(in srgb, var(--accent) 7%, transparent) 42%,
    transparent 72%
  );
  opacity: 0.5;
  filter: blur(30px);
  transition: background 1.2s ease;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.site {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 44px;
}

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

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 30px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
  color: var(--accent);
}

.brand-mark { width: 30px; height: 30px; flex: none; }

.brand-text { display: flex; flex-direction: column; }

.brand-zh {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: var(--cream);
}

.brand-en {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.32em;
  color: var(--faint);
}

.on-air {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.on-air-dot {
  position: relative;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #d0714b;
  box-shadow: 0 0 10px rgba(208, 113, 75, 0.7);
}
.on-air-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(208, 113, 75, 0.45);
  animation: ping 2.8s var(--ease) infinite;
}

.on-air-rule { width: 26px; height: 1px; background: var(--line); }

.clock {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cream);
}

.site-nav { justify-self: end; display: flex; align-items: center; gap: 10px; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.nav-btn svg { width: 13px; height: 13px; color: var(--faint); transition: color 0.3s; }
.nav-btn:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.nav-btn:hover svg { color: var(--accent); }
.nav-back { color: var(--faint); }
.nav-back:hover { color: var(--cream); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 64px;
  padding: clamp(44px, 7vh, 92px) 0 clamp(38px, 5.5vh, 64px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--faint);
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  flex: none;
  background: var(--accent-line);
}

.hero h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero h1 .hl {
  color: var(--accent);
  text-shadow: 0 0 50px var(--accent-soft);
  transition: color 0.8s ease;
}

.hero-aside {
  padding-bottom: 8px;
  max-width: 390px;
  justify-self: end;
}

.aside-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-copy {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.hero-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-decoration: none;
}

.cue-circle {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.cue-circle svg { width: 14px; height: 14px; }
.hero-cue:hover .cue-circle {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(3px);
}

/* ---------- console ---------- */

.console {
  position: relative;
  padding: clamp(12px, 1.6vw, 20px);
  border: 1px solid rgba(239, 230, 214, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(120% 100% at 8% 0%, rgba(255, 255, 255, 0.055), transparent 45%),
    linear-gradient(180deg, #221a15 0%, #191310 46%, #150f0c 100%);
  box-shadow:
    0 70px 120px -50px rgba(0, 0, 0, 0.9),
    0 20px 40px -30px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.console-screws { position: absolute; inset: 0; pointer-events: none; }
.console-screws i {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a4a3c, #221a15 72%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 1px rgba(0, 0, 0, 0.8);
}
.console-screws i:nth-child(1) { top: 7px; left: 10px; }
.console-screws i:nth-child(2) { top: 7px; right: 10px; }
.console-screws i:nth-child(3) { bottom: 7px; left: 10px; }
.console-screws i:nth-child(4) { bottom: 7px; right: 10px; }

.console-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 0.84fr) minmax(0, 1.16fr);
  min-height: 408px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    radial-gradient(130% 130% at 16% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 52%),
    var(--screen);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: background 0.8s ease;
}

.console-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0%, transparent 34%);
}

.screen-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 32px 22px;
}

.screen-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.band {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--accent);
  transition: color 0.6s, border-color 0.6s;
}

.stereo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: calc(2px + var(--pan-width, 0.5) * 3px);
  height: 12px;
  transition: gap 0.6s var(--ease);
}
.signal-bars i {
  display: block;
  width: 2px;
  height: 3px;
  background: var(--faint);
  border-radius: 1px;
  transition: background 0.3s;
}
.console.is-playing .signal-bars i {
  background: var(--accent);
  animation: signal 1.6s ease-in-out infinite;
}
.console.is-playing .signal-bars i:nth-child(2) { animation-delay: 0.18s; }
.console.is-playing .signal-bars i:nth-child(3) { animation-delay: 0.36s; }
.console.is-playing .signal-bars i:nth-child(4) { animation-delay: 0.54s; }

.stereo.is-mono .signal-bars { gap: 2px; }
.stereo.is-mono .signal-bars i {
  animation: none;
  background: var(--faint);
  opacity: 0.32;
}

.freq-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: clamp(28px, 4.4vh, 46px);
}

.freq {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(68px, 7.2vw, 104px);
  line-height: 0.86;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  text-shadow: 0 0 60px rgba(239, 230, 214, 0.08);
}

.freq-unit {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.station { margin-top: 22px; }

.station-zh {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 34px);
  letter-spacing: 0.08em;
  line-height: 1.25;
  transition: color 0.3s;
}

.station-en {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--accent);
  transition: color 0.6s;
}

.station-note {
  margin-top: 15px;
  max-width: 30ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--faint);
}

.console.is-tuning .station-zh { color: var(--muted); }

.screen-scope {
  position: relative;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.scope-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.24em;
  color: rgba(145, 133, 116, 0.7);
}

#scope {
  display: block;
  width: 100%;
  height: 48px;
}

.screen-right {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 38px 28px;
  border-left: 1px solid var(--line-soft);
}

.screen-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.air-status { display: flex; align-items: center; gap: 8px; }

.live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.4s, box-shadow 0.4s;
}
.console.is-playing .live-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.poem {
  margin-top: clamp(26px, 4vh, 42px);
  padding-left: 26px;
  border-left: 1px solid var(--accent-line);
  transition: opacity 0.25s ease;
}

.poem-line {
  display: block;
  font-family: var(--serif);
  font-size: clamp(17px, 1.45vw, 19.5px);
  line-height: 2.02;
  letter-spacing: 0.025em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(10px);
  animation: lineIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 105ms + 60ms);
}

.signature {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 24px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  transition: opacity 0.25s ease;
}

.console.is-tuning .poem,
.console.is-tuning .signature { opacity: 0; }

.tuning-state {
  position: absolute;
  inset: 106px 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.console.is-tuning .tuning-state { opacity: 1; }

.tuning-noise {
  width: 128px;
  height: 2px;
  margin-bottom: 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 7px);
  opacity: 0.55;
  animation: noiseShift 0.9s steps(8) infinite;
}

.tuning-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--accent);
}

.tuning-sub {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* ---------- controls ---------- */

.console-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 18px 14px 8px;
}

.transport {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.power {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  padding: 0;
  border: 1px solid rgba(239, 230, 214, 0.17);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, #402f22 0%, #231a13 58%, #191310 100%);
  color: var(--cream);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -8px 16px rgba(0, 0, 0, 0.3),
    0 10px 24px -10px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.4s;
}
.power:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}
.power:active { transform: translateY(1px); }

.power svg {
  width: 19px; height: 19px;
  margin-top: -3px;
}
.icon-pause { display: none; }
.console.is-playing .icon-play { display: none; }
.console.is-playing .icon-pause { display: block; }

.power-led {
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 3px; height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #4a3b2e;
  transition: background 0.4s, box-shadow 0.4s;
}
.console.is-playing .power-led {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.listen {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 7px;
  min-width: 68px;
}
.listen-text {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.3s;
}
.console.is-playing .listen-text { color: var(--accent); }
.listen-key {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: rgba(145, 133, 116, 0.65);
}

.tuner {
  position: relative;
  padding: 4px 8px 0;
  border-radius: 10px;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.tuner:focus-visible { outline-offset: 6px; }

.scale {
  position: relative;
  height: 82px;
}

.scale::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.tick {
  position: absolute;
  top: 21px;
  width: 1px;
  height: 7px;
  background: rgba(239, 230, 214, 0.18);
  transform: translateX(-50%);
}
.tick.is-major { top: 18px; height: 10px; background: rgba(239, 230, 214, 0.3); }

.tick-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(145, 133, 116, 0.75);
  font-variant-numeric: tabular-nums;
}
.tick-label.is-edge-start { transform: translateX(0); }
.tick-label.is-edge-end { transform: translateX(-100%); }

.marker {
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  color: var(--faint);
  transition: color 0.25s;
  cursor: pointer;
  z-index: 2;
}

.marker-dot {
  width: 6px; height: 6px;
  border: 1px solid rgba(239, 230, 214, 0.32);
  background: var(--screen);
  transform: rotate(45deg);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.marker-name {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
}

.marker:hover { color: var(--cream); }
.marker:hover .marker-dot { border-color: var(--accent); }

.marker.is-active { color: var(--cream); }
.marker.is-active .marker-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: rotate(45deg) scale(1.15);
}

.blank-mark {
  position: absolute;
  top: 24px;
  width: 4px; height: 4px;
  border-radius: 50%;
  border: 1px solid rgba(239, 230, 214, 0.25);
  transform: translate(-50%, -50%);
}

.needle {
  position: absolute;
  top: 6px;
  height: 27px;
  width: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: background 0.6s, box-shadow 0.6s;
  pointer-events: none;
  z-index: 3;
}

.needle-cap {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--accent);
}

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

.mute-btn {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  transition: color 0.25s;
}
.mute-btn svg { width: 16px; height: 16px; }
.mute-btn:hover { color: var(--accent); }
.mute-btn .mute-x { display: none; }
.mute-btn[aria-pressed="true"] .waves { display: none; }
.mute-btn[aria-pressed="true"] .mute-x { display: block; }
.mute-btn[aria-pressed="true"] { color: var(--accent); }

.volume-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.vol-range {
  -webkit-appearance: none;
  appearance: none;
  width: 96px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  --vol: 55%;
}
.vol-range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0 var(--vol), rgba(239, 230, 214, 0.14) var(--vol) 100%);
}
.vol-range::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(239, 230, 214, 0.14);
}
.vol-range::-moz-range-progress {
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(15, 11, 9, 0.8);
  transition: background 0.3s;
}
.vol-range::-moz-range-thumb {
  width: 10px; height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
}
.vol-range:hover::-webkit-slider-thumb { background: var(--accent); }

.console-foot {
  padding: 6px 10px 4px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.34em;
  text-align: center;
  color: rgba(145, 133, 116, 0.52);
}

.console-hint {
  margin-top: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  opacity: 0.82;
}
.console-hint span { opacity: 0.45; margin: 0 5px; }

/* ---------- beliefs ---------- */

.beliefs {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 110px);
  margin-top: clamp(90px, 13vh, 150px);
  padding-top: clamp(52px, 7vh, 76px);
  border-top: 1px solid var(--line-soft);
}

.beliefs-head h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.32;
  letter-spacing: 0.03em;
}

.belief-list {
  border-top: 1px solid var(--line-soft);
}

.belief-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line-soft);
}

.belief-num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 7px;
}

.belief-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.belief-body p {
  margin-top: 9px;
  max-width: 30rem;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--faint);
  text-wrap: pretty;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(80px, 12vh, 130px);
  padding: 26px 0 42px;
  border-top: 1px solid var(--line-soft);
}

.foot-brand {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.16em;
}
.foot-brand span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.26em;
  color: var(--faint);
}

.foot-line {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.foot-link {
  padding: 0;
  background: none;
  border: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.25s;
}
.foot-link:hover { color: var(--accent); }

.foot-copy {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(145, 133, 116, 0.6);
}

/* ---------- modals ---------- */

.modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(90vh, 880px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(239, 230, 214, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(255, 255, 255, 0.045), transparent 40%),
    #171210;
  color: var(--cream);
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.8);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 230, 214, 0.16) transparent;
}
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: rgba(239, 230, 214, 0.16); border-radius: 4px; }

.modal[open] { animation: modalIn 0.4s var(--ease); }
.modal::backdrop {
  background: rgba(8, 6, 5, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal-inner { padding: 34px 38px 24px; }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.modal-head h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.modal-close svg { width: 13px; height: 13px; }
.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.modal-sub {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.programme {
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.programme-row {
  display: grid;
  grid-template-columns: 102px 50px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 10px;
  text-align: left;
  color: inherit;
  transition: background 0.25s, box-shadow 0.25s;
}
.programme-row:hover { background: rgba(239, 230, 214, 0.035); }
.programme-row.is-current {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.prog-time {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.prog-freq {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.prog-main { min-width: 0; }

.prog-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 17.5px;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.prog-name em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.prog-note {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prog-state {
  justify-self: end;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.prog-state:empty { display: none; }

.modal-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(145, 133, 116, 0.7);
}

.modal-about .about-lead {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.modal-about p:not(.about-lead) {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}

.about-sign {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--faint);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: 92px;
  z-index: 60;
  transform: translate(-50%, -14px);
  padding: 11px 20px;
  background: #241a14;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cream);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  padding: 12px 20px;
  background: #241a14;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--cream);
}

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

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes signal {
  0%, 100% { height: 3px; opacity: 0.65; }
  50% { height: 12px; opacity: 1; }
}

@keyframes lineIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes noiseShift {
  to { background-position: 14px 0; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .site { padding: 0 30px; }
  .hero { gap: 44px; }
  .console-controls { gap: 20px; }
  .listen { display: none; }
  .tuner { padding: 4px 2px 0; }
  .vol-range { width: 80px; }
}

@media (max-width: 1024px) {
  .console-screen { grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); }
  .screen-left { padding: 26px 24px 20px; }
  .screen-right { padding: 26px 26px 24px; }
  .tuning-state { inset: 100px 26px 36px; }
  .poem { padding-left: 20px; }
  .console-controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
  }
  .marker-name { font-size: 9.5px; }
}

@media (max-width: 900px) {
  .site { padding: 0 24px; }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 22px;
  }
  .on-air { display: none; }
  .site-nav { grid-column: 2; }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 52px 0 44px;
  }
  .hero-aside {
    justify-self: start;
    max-width: 440px;
    width: 100%;
    padding-bottom: 0;
  }
  .hero h1 { font-size: clamp(42px, 9vw, 64px); }

  .console-screen { grid-template-columns: 1fr; min-height: 0; }
  .screen-left { padding: 26px 28px 18px; }
  .screen-right {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 24px 28px 28px;
    min-height: 280px;
  }
  .tuning-state { inset: 88px 28px 28px; }
  .freq { font-size: clamp(64px, 12vw, 92px); }
  .station-note { max-width: 44ch; }

  .console-controls {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "transport volume"
      "tuner tuner";
    gap: 12px 18px;
    padding: 16px 6px 6px;
  }
  .transport { grid-area: transport; }
  .tuner { grid-area: tuner; }
  .volume { grid-area: volume; }
  .listen { display: flex; }
  .scale { height: 86px; }

  .beliefs { grid-template-columns: 1fr; gap: 38px; margin-top: 84px; }
  .beliefs-head h2 { font-size: clamp(30px, 5.4vw, 40px); }

  .site-footer {
    flex-wrap: wrap;
    row-gap: 12px;
    align-items: center;
  }
  .foot-line { order: 3; width: 100%; font-size: 10.5px; }
}

@media (max-width: 640px) {
  .site { padding: 0 16px; }

  .site-header { padding: 18px 2px 6px; }
  .brand { gap: 10px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-zh { font-size: 15px; letter-spacing: 0.14em; }
  .brand-en { font-size: 7px; }
  .nav-btn { padding: 8px 13px; font-size: 11px; gap: 8px; }

  .hero { padding: 44px 2px 38px; gap: 28px; }
  .hero h1 { font-size: clamp(38px, 10.6vw, 54px); letter-spacing: 0.015em; }
  .eyebrow { font-size: 8px; letter-spacing: 0.2em; }
  .hero-copy { font-size: 13.5px; }

  .console { border-radius: 22px; padding: 9px; }
  .console-screws i:nth-child(1), .console-screws i:nth-child(3) { left: 6px; }
  .console-screws i:nth-child(2), .console-screws i:nth-child(4) { right: 6px; }
  .console-screws i { width: 4px; height: 4px; }

  .console-screen { border-radius: 15px; }
  .screen-left { padding: 22px 20px 16px; }
  .screen-topline .stereo { font-size: 7px; letter-spacing: 0.12em; }
  .freq-wrap { margin-top: 30px; gap: 8px; }
  .freq { font-size: clamp(60px, 17vw, 78px); }
  .freq-unit { font-size: 8px; }
  .station { margin-top: 16px; }
  .station-zh { font-size: 25px; }
  .station-note { font-size: 12px; margin-top: 11px; }
  .screen-scope { margin-top: 22px; padding-top: 10px; }
  #scope { height: 40px; }

  .screen-right { padding: 20px 20px 24px; min-height: 260px; }
  .screen-meta { font-size: 7.5px; letter-spacing: 0.14em; gap: 10px; }
  .poem { margin-top: 24px; padding-left: 16px; }
  .poem-line { font-size: 16px; line-height: 1.95; letter-spacing: 0.02em; }
  .signature { font-size: 10.5px; padding-top: 20px; }
  .tuning-state { inset: 74px 20px 24px; }

  .console-controls { padding: 14px 0 4px; gap: 8px 12px; }
  .transport { gap: 7px; }
  .power { width: 50px; height: 50px; }
  .icon-btn { width: 33px; height: 33px; }
  .listen { display: none; }
  .volume { gap: 6px; }
  .volume-label { display: none; }
  .vol-range { width: 66px; }

  .scale { height: 108px; }
  .tick-label { font-size: 7.5px; }
  .tick-label:not(.keep) { display: none; }
  .marker { gap: 8px; }
  .marker-name {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 9px;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--faint);
  }
  .marker.is-active .marker-name { color: var(--accent); }
  .marker-dot { width: 5px; height: 5px; }
  .console-foot {
    font-size: 6.5px;
    letter-spacing: 0.22em;
    padding-top: 4px;
  }

  .console-hint { font-size: 8px; letter-spacing: 0.1em; margin-top: 14px; }

  .beliefs { margin-top: 68px; padding-top: 42px; }
  .beliefs-head h2 { font-size: 28px; }
  .belief-list li { grid-template-columns: 36px 1fr; padding: 22px 0 24px; }
  .belief-body h3 { font-size: 19px; }
  .belief-body p { font-size: 13px; }

  .site-footer { margin-top: 64px; padding: 22px 0 34px; }
  .foot-brand { font-size: 13px; }
  .foot-line { display: none; }
  .foot-links { gap: 16px; }

  .modal { width: calc(100vw - 24px); border-radius: 18px; max-height: 86vh; }
  .modal-inner { padding: 24px 20px 18px; }
  .modal-head h2 { font-size: 25px; }
  .modal-sub { font-size: 11.5px; }
  .programme { margin-top: 18px; }
  .programme-row {
    grid-template-columns: 84px 40px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 6px;
  }
  .prog-time { font-size: 8.5px; letter-spacing: 0.02em; white-space: nowrap; }
  .prog-name { font-size: 16px; gap: 7px; }
  .prog-name em { display: none; }
  .prog-note {
    font-size: 10.5px;
    line-height: 1.55;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .prog-state { display: none; }
  .modal-foot { font-size: 7px; }
  .modal-about .about-lead { font-size: 17px; margin-top: 22px; }
  .modal-about p:not(.about-lead) { font-size: 13px; }
  .toast { top: 76px; width: max-content; max-width: calc(100vw - 40px); text-align: center; font-size: 11px; }
}

@media (max-width: 380px) {
  .marker-name { font-size: 8px; }
  .vol-range { width: 52px; }
  .hero h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .poem-line { opacity: 1; transform: none; }
  .on-air-dot::after { display: none; }
}
