/* ============================================================
   33-Radio-Dial — Vibe Code News · הרדיו
   Vintage radio cabinet aesthetic. Large dial, frequency numbers.
   Soft amber glow. Drag dial → frequency → content shifts.
   Click frequency → full article. Chat top styled as "speaker grille".
   - No neon, no cyberpunk, no neomorphism.
   ============================================================ */

/* ─── Palette: Vintage Radio Cabinet ─── */
:root {
  /* Cabinet wood — walnut / mahogany */
  --cab-deepest:    #0c0703;
  --cab-dark:       #1c0f06;
  --cab-mid:        #2d1a0c;
  --cab-warm:       #4a2a14;
  --cab-grain:      #3a1f10;
  --cab-shine:      #6b3f24;

  /* Dial face — aged ivory / cream */
  --face-paper:     #ecdcb8;
  --face-cream:     #e6d5ac;
  --face-edge:      #b89968;
  --face-stain:     #8a6c3a;
  --face-fade:      #c9b48b;

  /* Amber glow */
  --amber-hot:      #ffb84d;
  --amber-mid:      #ff9a1c;
  --amber-deep:     #c46c0c;
  --amber-soft:     #f5a04a;
  --amber-glow:     rgba(255, 154, 28, 0.45);
  --amber-haze:     rgba(255, 184, 77, 0.18);

  /* Brass */
  --brass-bright:   #f0c878;
  --brass-mid:      #b8893a;
  --brass-deep:     #8a6420;
  --brass-shade:    #5a3f18;

  /* Ink (printed numerals on dial) */
  --ink-black:      #1a0d04;
  --ink-soft:       #3a2410;
  --ink-faint:      #6b4a28;

  /* Speaker grille (chat) — black mesh + amber */
  --grille-bg:      #0c0805;
  --grille-holes:   #1a0d04;
  --grille-rim:     #3a2410;
  --grille-amber:   #c46c0c;

  /* Chat skin — WhatsApp (default) */
  --skin-wa-bg:     #ece5dd;
  --skin-wa-out:    #dcf8c6;
  --skin-wa-in:     #ffffff;
  --skin-wa-accent: #075e54;
  --skin-wa-dot:    #25d366;

  /* Chat skin — Telegram */
  --skin-tg-bg:     #e7eef5;
  --skin-tg-out:    #c8e1f0;
  --skin-tg-in:     #ffffff;
  --skin-tg-accent: #2aabee;
  --skin-tg-dot:    #2aabee;

  /* Chat skin — Messenger */
  --skin-ms-bg:     #eef0f3;
  --skin-ms-out:    #b7d6ff;
  --skin-ms-in:     #ffffff;
  --skin-ms-accent: #7b68ee;
  --skin-ms-dot:    #ff5e7e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Heebo', 'Arial Hebrew', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--face-paper);
}

body {
  min-height: 100vh;
  background:
    /* Subtle warm lighting from above */
    radial-gradient(
      ellipse at 50% -10%,
      rgba(255, 154, 28, 0.10) 0%,
      transparent 60%
    ),
    /* Walnut wood grain vertical streaks */
    repeating-linear-gradient(
      90deg,
      transparent 0 18px,
      rgba(0, 0, 0, 0.08) 18px 19px,
      transparent 19px 36px,
      rgba(255, 200, 140, 0.04) 36px 37px
    ),
    /* Wood plank horizontal seams */
    repeating-linear-gradient(
      0deg,
      transparent 0 240px,
      rgba(0, 0, 0, 0.18) 240px 242px,
      transparent 242px 480px,
      rgba(0, 0, 0, 0.14) 480px 482px
    ),
    /* Base cabinet wood */
    radial-gradient(
      ellipse at 50% 30%,
      var(--cab-warm) 0%,
      var(--cab-mid) 40%,
      var(--cab-dark) 80%,
      var(--cab-deepest) 100%
    );
  background-attachment: fixed;
  padding-top: 132px; /* POLISHED: tighter */
  padding-bottom: 60px; /* POLISHED: tighter */
}

/* Reserve room when an article is "tuned in" */
body.tuned-in {
  padding-bottom: 460px;
}

/* ═════════════════════════════════════════════════════════════
   SPEAKER GRILLE — CHAT, top, fixed
   Styled as a vintage radio speaker grille: dark perforated fabric
   behind a metal rim, with amber light bleeding through.
   ═════════════════════════════════════════════════════════════ */
#chat-host {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  direction: rtl;
  width: min(1280px, calc(100% - 32px));
}

.chat-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: stretch;
  gap: 0;
  background:
    /* Mesh perforation pattern */
    radial-gradient(
      circle at 50% 50%,
      var(--grille-holes) 1px,
      transparent 1.5px
    ) 0 0 / 5px 5px,
    linear-gradient(180deg, #1a0d04 0%, #0c0805 100%);
  border: 2px solid var(--brass-deep);
  border-radius: 8px;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 200, 120, 0.12),
    0 0 24px var(--amber-haze);
  direction: ltr;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle amber bleed behind grille */
.chat-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    var(--amber-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Brass screws at corners */
.chat-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 4px at 8px 8px, var(--brass-bright) 0%, var(--brass-mid) 40%, var(--brass-deep) 100%),
    radial-gradient(circle 4px at calc(100% - 8px) 8px, var(--brass-bright) 0%, var(--brass-mid) 40%, var(--brass-deep) 100%),
    radial-gradient(circle 4px at 8px calc(100% - 8px), var(--brass-bright) 0%, var(--brass-mid) 40%, var(--brass-deep) 100%),
    radial-gradient(circle 4px at calc(100% - 8px) calc(100% - 8px), var(--brass-bright) 0%, var(--brass-mid) 40%, var(--brass-deep) 100%);
  pointer-events: none;
  z-index: 1;
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(20, 12, 6, 0.85) 0%, rgba(10, 6, 3, 0.95) 100%);
  border-right: 1px solid var(--brass-deep);
  min-width: 240px;
  position: relative;
  z-index: 2;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--skin-wa-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px var(--brass-mid),
    0 0 12px var(--amber-glow);
}

.chat-head-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-head-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--amber-hot);
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px var(--amber-glow);
}

.chat-head-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--face-fade);
  font-family: 'JetBrains Mono', monospace;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--skin-wa-dot);
  box-shadow: 0 0 6px var(--skin-wa-dot);
  animation: chatPulse 1.6s ease-in-out infinite;
}

@keyframes chatPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.chat-subs { font-weight: 500; }
.chat-typing-status {
  font-style: italic;
  color: var(--amber-soft);
}

.chat-messages-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.bubble-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--skin-wa-out);
  color: var(--ink-soft);
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  animation: bubbleIn 280ms ease-out;
}

.bubble-strip.urgent {
  background: var(--amber-mid);
  color: #fff;
  border-color: var(--amber-deep);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px var(--amber-glow);
}

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

.bubble-strip-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.bubble-strip-text {
  font-family: 'Heebo', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble-strip-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.65;
  flex-shrink: 0;
}

.urgent-badge {
  background: #fff;
  color: var(--amber-deep);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

.typing-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--brass-deep);
  border-radius: 14px;
  flex-shrink: 0;
}

.typing-strip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-hot);
  box-shadow: 0 0 4px var(--amber-glow);
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-strip-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-strip-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(20, 12, 6, 0.6);
  border-left: 1px solid var(--brass-deep);
  position: relative;
  z-index: 2;
}

.chat-input-field {
  font-size: 12px;
  font-family: 'Heebo', sans-serif;
  color: var(--face-fade);
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 14px;
  min-width: 140px;
  border: 1px solid var(--brass-deep);
}

.chat-send-btn {
  background: var(--amber-mid);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--amber-glow);
}

.chat-skin-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: rgba(20, 12, 6, 0.8);
  border-left: 1px solid var(--brass-deep);
  position: relative;
  z-index: 2;
}

.chat-skin-label {
  font-size: 10px;
  color: var(--face-fade);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skin-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--brass-deep);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--face-paper);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 180ms ease;
}

.skin-btn:hover {
  border-color: var(--amber-mid);
  color: var(--amber-hot);
}

.skin-btn.active {
  background: var(--amber-mid);
  color: #fff;
  border-color: var(--amber-hot);
  box-shadow: 0 0 8px var(--amber-glow);
}

/* Skin colors */
.chat-bar.skin-wa {
  --skin-current-bg: var(--skin-wa-bg);
  --skin-current-out: var(--skin-wa-out);
  --skin-current-in: var(--skin-wa-in);
  --skin-current-accent: var(--skin-wa-accent);
  --skin-current-dot: var(--skin-wa-dot);
}
.chat-bar.skin-tg {
  --skin-current-bg: var(--skin-tg-bg);
  --skin-current-out: var(--skin-tg-out);
  --skin-current-in: var(--skin-tg-in);
  --skin-current-accent: var(--skin-tg-accent);
  --skin-current-dot: var(--skin-tg-dot);
}
.chat-bar.skin-ms {
  --skin-current-bg: var(--skin-ms-bg);
  --skin-current-out: var(--skin-ms-out);
  --skin-current-in: var(--skin-ms-in);
  --skin-current-accent: var(--skin-ms-accent);
  --skin-current-dot: var(--skin-ms-dot);
}

.chat-bar.skin-wa .bubble-strip { background: var(--skin-wa-out); }
.chat-bar.skin-wa .chat-avatar { background: var(--skin-wa-accent); }
.chat-bar.skin-wa .live-dot { background: var(--skin-wa-dot); box-shadow: 0 0 6px var(--skin-wa-dot); }

.chat-bar.skin-tg .bubble-strip { background: var(--skin-tg-out); }
.chat-bar.skin-tg .chat-avatar { background: var(--skin-tg-accent); }
.chat-bar.skin-tg .live-dot { background: var(--skin-tg-dot); box-shadow: 0 0 6px var(--skin-tg-dot); }

.chat-bar.skin-ms .bubble-strip {
  background: var(--skin-ms-out);
  background: linear-gradient(135deg, #d8c3ff 0%, #ffb7d3 100%);
}
.chat-bar.skin-ms .chat-avatar {
  background: linear-gradient(135deg, #7b68ee 0%, #ff5e7e 100%);
}
.chat-bar.skin-ms .live-dot { background: var(--skin-ms-dot); box-shadow: 0 0 6px var(--skin-ms-dot); }

/* ═════════════════════════════════════════════════════════════
   RADIO HEADER — Brand band + nav
   ═════════════════════════════════════════════════════════════ */
.radio-header {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(180deg, #3a1f10 0%, #1c0f06 100%);
  border: 2px solid var(--brass-deep);
  border-radius: 8px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 200, 120, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 30%, var(--amber-hot) 0%, var(--amber-mid) 40%, var(--amber-deep) 100%);
  color: var(--cab-deepest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 32px;
  box-shadow:
    0 0 0 2px var(--brass-deep),
    0 0 24px var(--amber-glow),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

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

.brand-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--amber-hot);
  text-shadow: 0 0 10px var(--amber-glow);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--face-fade);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radio-title {
  text-align: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--amber-hot);
  text-shadow: 0 0 8px var(--amber-glow);
}

.radio-title-meta {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--face-fade);
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-shadow: none;
}

.radio-nav {
  display: flex;
  gap: 8px;
}

.radio-nav a {
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--face-paper);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--brass-deep);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  transition: all 180ms ease;
}

.radio-nav a:hover {
  border-color: var(--amber-mid);
  color: var(--amber-hot);
  background: rgba(255, 154, 28, 0.08);
}

.radio-nav a.active {
  background: linear-gradient(180deg, var(--amber-mid) 0%, var(--amber-deep) 100%);
  color: #fff;
  border-color: var(--amber-hot);
  box-shadow: 0 0 12px var(--amber-glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ═════════════════════════════════════════════════════════════
   INTRO — page description text
   ═════════════════════════════════════════════════════════════ */
.radio-intro {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 24px;
  color: var(--face-fade);
  font-size: 14px;
  line-height: 1.7;
}

.radio-intro strong {
  color: var(--amber-hot);
  font-weight: 600;
}

/* ═════════════════════════════════════════════════════════════
   RADIO FACE — the centerpiece
   ============================================================
       _____________________________________
      |                                     |
      |   FREQ   ___      DIAL             |
      |   88.1   |   |     (              ) |
      |   ...    |___|     (    amber     ) |
      |          display    (    glow      ) |
      |                       )            )|
      |_____________________________________|
   ═════════════════════════════════════════════════════════════ */
.radio-room {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.radio-cabinet {
  position: relative;
  background:
    /* Wood grain detail */
    repeating-linear-gradient(
      90deg,
      transparent 0 14px,
      rgba(0, 0, 0, 0.10) 14px 15px,
      transparent 15px 28px,
      rgba(255, 200, 140, 0.04) 28px 29px
    ),
    linear-gradient(180deg, var(--cab-warm) 0%, var(--cab-mid) 50%, var(--cab-dark) 100%);
  border: 3px solid var(--brass-deep);
  border-radius: 12px;
  padding: 28px 28px 32px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.7),
    inset 0 2px 0 rgba(255, 200, 120, 0.18),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 154, 28, 0.12);
}

/* Corner brass plates */
.radio-cabinet::before,
.radio-cabinet::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brass-bright) 0%, var(--brass-mid) 40%, var(--brass-deep) 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.radio-cabinet::before { top: 10px; left: 10px; }
.radio-cabinet::after { top: 10px; right: 10px; }

.radio-cabinet-corners::before,
.radio-cabinet-corners::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brass-bright) 0%, var(--brass-mid) 40%, var(--brass-deep) 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.radio-cabinet-corners::before { bottom: 10px; left: 10px; }
.radio-cabinet-corners::after  { bottom: 10px; right: 10px; }

.radio-face {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(ellipse at center, var(--face-cream) 0%, var(--face-paper) 60%, var(--face-fade) 100%);
  border: 2px solid var(--brass-deep);
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  min-height: 380px;
}

/* Subtle paper grain texture on dial face */
.radio-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 3px,
      rgba(138, 108, 58, 0.04) 3px 4px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0 3px,
      rgba(138, 108, 58, 0.03) 3px 4px
    );
  pointer-events: none;
}

/* ── Frequency display (the amber-illuminated readout window) ── */
.freq-display {
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(255, 184, 77, 0.6) 0%, rgba(196, 108, 12, 0.4) 70%, rgba(74, 42, 20, 0.95) 100%);
  border: 3px solid var(--brass-deep);
  border-radius: 6px;
  padding: 18px 16px;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.6),
    inset 0 0 24px rgba(255, 184, 77, 0.4),
    0 0 32px var(--amber-glow);
  overflow: hidden;
  text-align: center;
  z-index: 2;
}

.freq-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 1px,
      rgba(255, 184, 77, 0.08) 1px 2px
    );
  pointer-events: none;
}

.freq-display-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--amber-hot);
  text-shadow: 0 0 8px var(--amber-glow);
  margin-bottom: 6px;
}

.freq-display-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--amber-hot);
  text-shadow:
    0 0 12px var(--amber-glow),
    0 0 24px rgba(255, 184, 77, 0.6);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.freq-display-station {
  font-family: 'Heebo', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--amber-soft);
  text-shadow: 0 0 6px rgba(255, 154, 28, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.freq-display-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--amber-hot);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
}

/* ── Tuning knob (the big dial) ── — POLISHED: more compact */
.dial-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  z-index: 1;
}

/* Frequency numbers around the dial */
.dial-scale {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dial-scale svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dial-tick-label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-black);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: auto;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  transition: all 180ms ease;
  user-select: none;
}

.dial-tick-label:hover {
  color: var(--amber-deep);
  background: rgba(255, 154, 28, 0.18);
}

.dial-tick-label.is-active {
  color: var(--amber-deep);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 154, 28, 0.25);
  box-shadow: 0 0 12px rgba(255, 154, 28, 0.4);
}

/* The big rotary knob — POLISHED: slightly smaller for less overwhelming */
.dial-knob {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    /* Knurl pattern */
    repeating-conic-gradient(
      from 0deg,
      var(--brass-mid) 0deg 4deg,
      var(--brass-deep) 4deg 8deg
    );
  border: 4px solid var(--brass-deep);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4),
    0 0 32px var(--amber-haze);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 2;
  transition: box-shadow 280ms ease;
}

.dial-knob:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4),
    0 0 48px var(--amber-glow);
}

.dial-knob.is-dragging {
  cursor: grabbing;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4),
    0 0 64px var(--amber-glow);
}

/* The dial face (inner cap) — POLISHED: smaller */
.dial-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--brass-bright) 0%, var(--brass-mid) 40%, var(--brass-deep) 100%);
  border: 2px solid var(--brass-shade);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.4),
    inset 0 -2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Pointer indicator on the dial — POLISHED: shorter */
.dial-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 64px;
  background: linear-gradient(180deg, var(--amber-hot) 0%, var(--amber-deep) 50%, var(--ink-black) 100%);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--amber-glow);
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dial-knob.is-dragging .dial-pointer {
  transition: none;
}

/* Center cap dot */
.dial-cap::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-black);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 4px var(--amber-haze);
}

/* Label text in the dial cap */
.dial-cap-text {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-black);
  pointer-events: none;
  text-align: center;
}

.dial-cap-text strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-black);
  margin-top: 2px;
}

/* LED indicator on dial */
.dial-led {
  position: absolute;
  bottom: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-hot);
  box-shadow: 0 0 12px var(--amber-glow);
  animation: ledPulse 2.4s ease-in-out infinite;
}

@keyframes ledPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; box-shadow: 0 0 16px var(--amber-glow); }
}

/* ═════════════════════════════════════════════════════════════
   TUNED-IN CARD — Article / News content for current frequency — POLISHED: more compact
   ═════════════════════════════════════════════════════════════ */
.tuned-card {
  margin-top: 22px;
  padding: 22px 26px; /* POLISHED: less huge */
  background:
    linear-gradient(180deg, var(--face-cream) 0%, var(--face-paper) 100%);
  border: 2px solid var(--brass-deep);
  border-radius: 8px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -2px 4px rgba(255, 255, 255, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 154, 28, 0.06);
  color: var(--ink-soft);
  position: relative;
}

.tuned-card.is-empty {
  padding: 60px 32px;
  text-align: center;
  color: var(--ink-faint);
}

.tuned-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--face-edge);
}

.tuned-card-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--cab-dark);
  color: var(--amber-hot);
  border-radius: 3px;
  border: 1px solid var(--brass-deep);
}

.tuned-card-freq {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  margin-inline-start: auto;
}

.tuned-card-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-black);
  margin: 0 0 12px;
  line-height: 1.25;
}

.tuned-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tuned-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
  display: inline-block;
}

.tuned-card-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-style: italic;
}

.tuned-card-paragraphs {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-height: 360px;
  overflow: hidden;
  position: relative;
}

.tuned-card-paragraphs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, var(--face-paper) 100%);
  pointer-events: none;
}

.tuned-card-paragraphs p {
  margin: 0 0 12px;
}

.tuned-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tuned-card-btn {
  font-family: 'Heebo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, var(--amber-mid) 0%, var(--amber-deep) 100%);
  border: 1px solid var(--amber-deep);
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 180ms ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 8px var(--amber-haze);
}

.tuned-card-btn:hover {
  background: linear-gradient(180deg, var(--amber-hot) 0%, var(--amber-mid) 100%);
  border-color: var(--amber-hot);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 16px var(--amber-glow);
}

.tuned-card-btn.is-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink-soft);
  border: 1px solid var(--face-edge);
  box-shadow: none;
}

.tuned-card-btn.is-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink-black);
  box-shadow: none;
}

.tuned-card-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.urgency-pill.urgency-breaking {
  background: var(--amber-deep);
  color: #fff;
  box-shadow: 0 0 8px var(--amber-glow);
}

.urgency-pill.urgency-high {
  background: var(--cab-mid);
  color: var(--amber-hot);
}

.urgency-pill.urgency-normal {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ink-soft);
}

/* ═════════════════════════════════════════════════════════════
   FREQUENCY STRIP — list of all frequencies (alternative access)
   ═════════════════════════════════════════════════════════════ */
.freq-strip {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #2d1a0c 0%, #1c0f06 100%);
  border: 2px solid var(--brass-deep);
  border-radius: 8px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.freq-strip-label {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber-hot);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding-inline-end: 8px;
  border-inline-end: 1px solid var(--brass-deep);
  margin-inline-end: 4px;
}

.freq-strip-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--brass-deep);
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--face-paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
}

.freq-strip-btn:hover {
  border-color: var(--amber-mid);
  color: var(--amber-hot);
  background: rgba(255, 154, 28, 0.08);
}

.freq-strip-btn.is-active {
  background: linear-gradient(180deg, var(--amber-mid) 0%, var(--amber-deep) 100%);
  color: #fff;
  border-color: var(--amber-hot);
  box-shadow: 0 0 8px var(--amber-glow);
}

.freq-strip-btn-num {
  font-weight: 700;
}

.freq-strip-btn.is-urgent::after {
  content: '●';
  color: var(--amber-hot);
  margin-inline-start: 2px;
}

/* ═════════════════════════════════════════════════════════════
   STATS — bottom bar
   ═════════════════════════════════════════════════════════════ */
.radio-stats {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: linear-gradient(180deg, #2d1a0c 0%, #1c0f06 100%);
  border: 2px solid var(--brass-deep);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 120, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 4px;
  border-inline-end: 1px solid var(--brass-deep);
}

.stat-cell:last-child { border-inline-end: none; }

.stat-num {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--amber-hot);
  text-shadow: 0 0 8px var(--amber-glow);
  line-height: 1;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--face-fade);
  text-transform: uppercase;
}

/* ═════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   MOBILE
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .radio-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .radio-face {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dial-knob {
    width: 160px;
    height: 160px;
  }
  .dial-cap {
    width: 120px;
    height: 120px;
  }
  .dial-pointer { height: 60px; }

  .chat-bar {
    grid-template-columns: 1fr;
  }
  .chat-input-strip, .chat-skin-strip {
    border-left: none;
    border-top: 1px solid var(--brass-deep);
  }
  .chat-brand { border-right: none; border-bottom: 1px solid var(--brass-deep); }

  .radio-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-cell:nth-child(2) { border-inline-end: none; }
}
