:root {
  --ink: #191a17;
  --paper: #e9e2d2;
  --paper-deep: #c7bdab;
  --metal: #a8a59d;
  --orange: #f05a2a;
  --amber: #f6aa3d;
  --screen: #2b2417;
  --green: #8ba576;
  --shadow: rgba(15, 16, 13, .34);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #171815; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.045) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, #141512, #24241f 48%, #11120f);
  background-size: 7px 7px, auto;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { color: inherit; }

.shell {
  width: min(1180px, calc(100% - 36px));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 34px 0 26px;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--paper);
  margin-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font: 700 29px/1 "League Spartan", sans-serif;
  letter-spacing: 0;
}

.brand-mark { display: flex; align-items: end; gap: 3px; height: 24px; }
.brand-mark i { display: block; width: 4px; background: var(--orange); }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 24px; }

.model { font-size: 12px; color: #a3a59c; letter-spacing: 0; }
.model strong { color: var(--paper); font-weight: 500; }
.live-chip { margin-left: auto; font-size: 12px; color: #b8bab1; }
.live-chip span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.receiver {
  position: relative;
  overflow: hidden;
  border: 1px solid #d3ccbc;
  border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.025) 1px 3px),
    linear-gradient(155deg, #c7c1b4, #eee8db 45%, #b4aea2);
  box-shadow: 0 28px 70px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.8);
  min-width: 0;
  max-width: 100%;
}

.receiver::before, .receiver::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #77746c;
  box-shadow: inset 1px 1px #333, 0 1px rgba(255,255,255,.75);
  top: 12px;
}
.receiver::before { left: 12px; }
.receiver::after { right: 12px; }

.receiver-top {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(270px, .8fr);
  gap: 28px;
  padding: 40px 44px 30px;
  min-width: 0;
}

.screen-wrap { min-width: 0; }
.screen {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 22px 28px 24px;
  color: var(--amber);
  border: 10px solid #292a26;
  border-bottom-color: #171814;
  border-radius: 5px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 45% 50%, #473a20, #1e1c16 70%);
  box-shadow: inset 0 0 28px #0d0c09, 0 3px 7px rgba(0,0,0,.38);
  text-shadow: 0 0 10px rgba(246,170,61,.36);
  min-width: 0;
}

.screen-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,.07), transparent 25% 66%, rgba(255,255,255,.025)); }
.signal-row { display: flex; justify-content: space-between; align-items: end; font-size: 12px; }
#signalLabel { margin-left: auto; margin-right: 13px; }
.signal-bars { display: flex; gap: 3px; align-items: end; height: 12px; }
.signal-bars i { display: block; width: 3px; background: currentColor; opacity: .22; }
.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 6px; }
.signal-bars i:nth-child(3) { height: 9px; }
.signal-bars i:nth-child(4) { height: 12px; }
.is-playing .signal-bars i { opacity: 1; animation: signal 1.1s infinite alternate; }
.is-playing .signal-bars i:nth-child(2) { animation-delay: -.4s; }
.is-playing .signal-bars i:nth-child(3) { animation-delay: -.8s; }

.frequency-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.frequency { font: 300 clamp(66px, 9vw, 112px)/.9 "DM Mono", monospace; letter-spacing: 0; white-space: nowrap; }
.unit { font-size: 14px; line-height: 1.1; }
.station-copy { display: flex; gap: 18px; align-items: baseline; margin-top: 11px; min-width: 0; }
.station-copy > span { font: 600 20px/1 "League Spartan", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-copy small { font-size: 11px; color: #d59b4b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing { display: grid; grid-template-columns: auto minmax(0, 1fr) 34px; gap: 10px; margin-top: 17px; align-items: center; }
.now-playing span { font-size: 11px; color: #bc8845; }
.now-playing strong { overflow: hidden; color: #ffd27d; font-size: 12px; line-height: 1.45; font-weight: 400; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spotify-search { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #5a813d; border-radius: 50%; color: #151712; background: #8ba576; box-shadow: 0 0 12px rgba(139,165,118,.24); transition: filter .15s, transform .15s, opacity .15s; }
.spotify-search svg { width: 21px; height: 21px; fill: currentColor; }
.spotify-search:hover { filter: brightness(1.15); transform: translateY(-1px); }
.spotify-search:focus-visible { outline: 2px solid #ffd27d; outline-offset: 3px; }
.spotify-search.disabled { pointer-events: none; opacity: .3; filter: grayscale(1); box-shadow: none; }
.meter { margin-top: 15px; }
.meter-labels { display: flex; justify-content: space-between; font-size: 11px; }
.meter-track { height: 19px; position: relative; margin-top: 4px; border-top: 1px solid #b77e33; background: repeating-linear-gradient(90deg, #b77e33 0 1px, transparent 1px calc(5%)); }
.meter-track i { position: absolute; top: -5px; left: 68%; width: 2px; height: 25px; background: #fff0c8; box-shadow: 0 0 7px var(--amber); transition: left .45s cubic-bezier(.2,.9,.2,1); }
.status { min-height: 18px; margin: 11px 0 0; color: #77766e; font-size: 11px; line-height: 1.45; text-align: center; text-transform: uppercase; }
.status.error { color: #a1321c; }

.speaker { display: grid; place-items: center; min-height: 310px; }
.speaker-ring {
  width: min(280px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #33342f 0 2px, #171815 3px 5px);
  box-shadow: 0 3px 4px rgba(255,255,255,.35), inset 0 0 0 8px #3e3f39, inset 0 0 0 13px #161713, inset 0 0 22px 18px #060704;
}
.speaker-cone { width: 50%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #282923 0 27%, #131410 29% 43%, #363731 45% 53%, #0f100d 55%); box-shadow: 0 0 15px #000; }
.speaker-cone span { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 50%; background: #c8c1b2; color: #252620; font: 700 18px/1 "League Spartan", sans-serif; box-shadow: 0 2px 5px #000; }
.is-playing .speaker-cone { animation: breathe .6s ease-in-out infinite alternate; }

.control-deck {
  min-height: 196px;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  padding: 22px 70px 24px;
  border-top: 1px solid #8f8d85;
  background: linear-gradient(#272824, #181916);
  box-shadow: inset 0 1px #4e5049;
  color: #c5c2b8;
  min-width: 0;
}
.knob-control { display: grid; place-items: center; gap: 7px; }
.knob-label { width: 150px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #92948b; }
.knob-label b { color: #d0cec5; font-size: 12px; font-weight: 400; }
.knob { position: relative; width: 102px; height: 102px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.knob input { position: absolute; width: 140px; height: 140px; opacity: 0; cursor: pointer; transform: rotate(-90deg); }
.knob-cap { position: relative; display: block; width: 82px; height: 82px; border-radius: 50%; background: repeating-conic-gradient(#484a44 0 2deg, #292a26 2deg 5deg); box-shadow: inset 0 0 0 5px #252622, inset -10px -8px 18px #0c0d0b, inset 8px 7px 16px #5b5d55, 0 6px 9px #050604; transform: rotate(calc(-135deg + var(--value, 72) * 2.7deg)); transition: transform .12s; }
.knob-cap i { position: absolute; width: 3px; height: 24px; left: calc(50% - 1px); top: 7px; background: #ddd8c9; box-shadow: 0 0 2px #fff; }
.knob-control output { font-size: 11px; color: #989a91; }
.tuning-knob:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.tuning-knob .knob-cap { transform: rotate(var(--tune-rotation, -100deg)); transition: transform .38s ease; }

.transport { display: grid; grid-template-columns: 58px 98px 58px; justify-content: center; align-items: center; gap: 13px; position: relative; }
.skip-button, .play-button { border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 1px rgba(255,255,255,.15), 0 5px 8px #080906; }
.skip-button { width: 58px; height: 58px; border-radius: 50%; color: #aaa89f; background: radial-gradient(circle at 38% 30%, #464842, #1f201c 65%); }
.skip-button span { font-size: 14px; }
.play-button { position: relative; width: 98px; height: 98px; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #ff794b, #dc461d 60%, #8f2811); color: #191a17; }
.play-button:hover { filter: brightness(1.08); }
.play-button:active, .skip-button:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,.35); }
.play-icon { width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 22px solid #27221d; margin-left: 5px; }
.pause-icon { display: none; gap: 6px; }
.pause-icon i { display: block; width: 7px; height: 27px; background: #27221d; }
.is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: flex; }
.power-light { position: absolute; top: 113px; left: 50%; transform: translateX(-50%); width: max-content; font-size: 11px; color: #989a91; }
.power-light span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4d231b; box-shadow: inset 0 1px 2px #111; }
.is-playing .power-light span, .is-loading .power-light span { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

.station-section { padding: 42px 4px 0; color: var(--paper); }
.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.section-title span { color: var(--orange); font-size: 12px; }
.section-title h1 { margin: 5px 0 0; font: 600 28px/1 "League Spartan", sans-serif; letter-spacing: 0; }
.section-title p { margin: 0; color: #9a9c93; font-size: 11px; }
kbd { padding: 3px 5px; border: 1px solid #5f615b; border-radius: 2px; background: #292a26; color: #b9b9b0; font-family: inherit; box-shadow: 0 2px #0c0d0b; }
.station-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 17px; }
.station-filters { display: flex; border: 1px solid #4a4b45; }
.station-filters button { min-height: 42px; padding: 0 17px; border: 0; border-right: 1px solid #4a4b45; background: #1d1e1a; color: #a8aaa1; font-size: 11px; cursor: pointer; }
.station-filters button:last-child { border-right: 0; }
.station-filters button:hover { color: var(--paper); }
.station-filters button.active { background: var(--orange); color: #1b1c18; }
.station-search { position: relative; width: min(290px, 100%); }
.station-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.station-search input { width: 100%; height: 42px; border: 1px solid #4a4b45; border-radius: 0; outline: 0; padding: 0 14px; background: #1d1e1a; color: var(--paper); font-size: 12px; }
.station-search input:focus { border-color: var(--orange); }
.station-search input::placeholder { color: #66685f; }
.station-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #4a4b45; border-left: 1px solid #4a4b45; }
.empty-stations { grid-column: 1 / -1; margin: 0; padding: 30px; border-right: 1px solid #4a4b45; border-bottom: 1px solid #4a4b45; color: #9a9c93; font-size: 12px; text-align: center; }
.station-card { position: relative; min-width: 0; min-height: 136px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 20px 17px; border: 0; border-right: 1px solid #4a4b45; border-bottom: 1px solid #4a4b45; background: #1d1e1a; color: #d1cbbb; text-align: left; cursor: pointer; transition: background .2s; }
.station-card:hover { background: #272822; }
.station-card.active { background: #2e2b22; box-shadow: inset 4px 0 var(--orange); }
.station-number { color: #888a81; font-size: 12px; }
.station-info { min-width: 0; }
.station-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 19px/1.1 "League Spartan", sans-serif; letter-spacing: 0; }
.station-info small { display: block; margin-top: 8px; color: #9a9c93; font-size: 11px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-info .station-track { margin-top: 7px; color: #d3a35e; font-size: 11px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.station-track.offline { color: #64665f; }
.station-freq { color: #b9b5a8; font-size: 13px; }
.station-card.active .station-freq, .station-card.active .station-number { color: var(--orange); }
.card-playing { position: absolute; right: 15px; bottom: 10px; display: none; gap: 2px; align-items: end; }
.card-playing i { width: 2px; background: var(--orange); animation: signal .7s infinite alternate; }
.card-playing i:nth-child(1) { height: 5px; }
.card-playing i:nth-child(2) { height: 9px; animation-delay: -.3s; }
.card-playing i:nth-child(3) { height: 7px; animation-delay: -.5s; }
.is-playing .station-card.active .card-playing { display: flex; }

footer { display: flex; justify-content: space-between; padding-top: 20px; color: #85877e; font-size: 11px; }

@keyframes signal { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes breathe { from { transform: scale(.995); } to { transform: scale(1.01); } }

@media (max-width: 800px) {
  .shell { width: min(100% - 22px, 640px); padding-top: 20px; }
  .model { display: none; }
  .receiver-top { grid-template-columns: 1fr; padding: 32px 24px 22px; }
  .speaker { display: none; }
  .control-deck { padding: 22px 24px 26px; grid-template-columns: .8fr 1.4fr .8fr; }
  .knob { width: 78px; height: 78px; }
  .knob-cap { width: 65px; height: 65px; }
  .knob-cap i { height: 18px; }
  .knob-label { width: 92px; }
  .knob-label span { display: none; }
  .knob-label { justify-content: center; }
  .transport { grid-template-columns: 42px 76px 42px; gap: 8px; }
  .skip-button { width: 42px; height: 42px; }
  .play-button { width: 76px; height: 76px; }
  .power-light { top: 95px; }
  .station-grid { grid-template-columns: repeat(2, 1fr); }
  .station-tools { align-items: stretch; flex-direction: column; }
  .station-search { width: 100%; }
}

@media (max-width: 520px) {
  .masthead { margin-inline: 5px; }
  .live-chip { font-size: 11px; }
  .receiver-top { padding: 28px 14px 18px; }
  .screen { min-height: 278px; padding: 18px 16px; border-width: 7px; }
  .frequency { font-size: clamp(55px, 19vw, 82px); }
  .station-copy { display: block; }
  .station-copy small { display: block; margin-top: 6px; }
  .now-playing { margin-top: 13px; }
  .control-deck { min-height: 168px; grid-template-columns: minmax(76px, .8fr) minmax(146px, 1.8fr); padding-inline: 9px; }
  .knob { width: 62px; height: 62px; }
  .knob input { width: 90px; height: 90px; }
  .knob-cap { width: 56px; height: 56px; }
  .knob-cap i { top: 5px; height: 16px; }
  .knob-label { width: 70px; }
  .tuning-control { display: none; }
  .transport { grid-template-columns: 35px 66px 35px; gap: 5px; }
  .skip-button { width: 35px; height: 35px; }
  .play-button { width: 66px; height: 66px; }
  .play-icon { border-top-width: 10px; border-bottom-width: 10px; border-left-width: 17px; }
  .power-light { top: 83px; }
  .section-title p { display: none; }
  .station-grid { grid-template-columns: 1fr; }
  .station-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .station-filters button { border-bottom: 1px solid #4a4b45; }
  .station-filters button:nth-child(2) { border-right: 0; }
  .station-filters button:nth-child(n+3) { border-bottom: 0; }
  .station-card { min-height: 112px; }
  footer span:nth-child(2) { display: none; }
}

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

@layer later-terminal-redesigns {
@media not all {
/* Terminal CRT interface */
:root {
  --ink: #ffb000;
  --paper: #ffb000;
  --paper-deep: #93670c;
  --metal: #100d08;
  --orange: #ffb000;
  --amber: #ffb000;
  --screen: #060501;
  --green: #ffb000;
  --shadow: rgba(0, 0, 0, .75);
  --term-hot: #ffd36a;
  --term-dim: #8e7950;
  --term-line: rgba(255, 176, 0, .28);
}

html { background: #050504; }

body {
  color: var(--amber);
  background:
    linear-gradient(rgba(255,176,0,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,176,0,.014) 1px, transparent 1px),
    radial-gradient(circle at 50% -15%, #211705 0, #090704 37%, #030303 74%);
  background-size: 32px 32px, 32px 32px, auto;
}

body::before {
  content: "";
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.38) 2px 4px);
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  z-index: 19;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.68) 120%);
}

::selection { color: #090601; background: var(--term-hot); }

.shell {
  width: min(1280px, calc(100% - 36px));
  margin: 26px auto;
  padding: 0;
  border: 1px solid var(--term-line);
  background: rgba(5,5,4,.9);
  box-shadow: 0 30px 100px #000, 0 0 60px rgba(255,176,0,.055), inset 0 0 80px rgba(255,176,0,.018);
}

.masthead {
  height: 54px;
  gap: 22px;
  margin: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--term-line);
  background: linear-gradient(180deg, rgba(255,176,0,.08), rgba(255,176,0,.025));
}

.masthead::before {
  content: "●  ●  ●";
  color: #79560e;
  font-size: 9px;
  letter-spacing: 5px;
  white-space: nowrap;
}

.brand {
  gap: 10px;
  color: var(--term-hot);
  font: 500 18px/1 "DM Mono", monospace;
  letter-spacing: .2em;
  text-shadow: 0 0 12px rgba(255,176,0,.52);
}

.brand::before { content: ">"; animation: term-cursor 1.2s steps(1) infinite; }
.brand-mark { display: none; }
.model { color: var(--term-dim); font-size: 10px; letter-spacing: .08em; }
.model::before { content: "// "; color: #79560e; }
.model strong { color: var(--amber); }

.live-chip {
  padding: 6px 9px;
  border: 1px solid var(--term-line);
  color: var(--amber);
  font-size: 10px;
  letter-spacing: .08em;
}
.live-chip span { width: 6px; height: 6px; margin-right: 4px; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: term-pulse 1.8s ease-in-out infinite; }

.receiver { border: 0; border-bottom: 1px solid var(--term-line); border-radius: 0; background: transparent; box-shadow: none; }
.receiver::before {
  content: "SYS://RADIO_CORE / MONITOR";
  position: static;
  display: block;
  width: auto;
  height: auto;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--term-line);
  border-radius: 0;
  background: transparent;
  color: var(--term-dim);
  box-shadow: none;
  font-size: 10px;
  letter-spacing: .1em;
}
.receiver::after { display: none; }

.receiver-top { grid-template-columns: minmax(0, 1fr) 300px; gap: 0; padding: 0; }
.screen-wrap { padding: 28px; border-right: 1px solid var(--term-line); }
.screen {
  min-height: 360px;
  padding: 24px 28px 22px;
  border: 1px solid rgba(255,176,0,.42);
  border-radius: 0;
  color: var(--amber);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,176,0,.025) 3px 4px),
    radial-gradient(ellipse at 45% 45%, rgba(255,176,0,.09), transparent 65%),
    #060501;
  box-shadow: inset 0 0 45px rgba(255,176,0,.08), 0 0 24px rgba(255,176,0,.035);
  text-shadow: 0 0 8px rgba(255,176,0,.5);
}

.screen::before {
  content: "FALA_OS v1.0.0\A STREAM DECODER READY";
  position: absolute;
  right: 22px;
  bottom: 20px;
  white-space: pre;
  color: rgba(255,176,0,.28);
  font-size: 9px;
  line-height: 1.7;
  text-align: right;
}
.screen-glare { background: linear-gradient(112deg, rgba(255,211,106,.045), transparent 22% 74%, rgba(255,176,0,.02)); }
.signal-row { padding-bottom: 12px; border-bottom: 1px dashed var(--term-line); color: var(--term-dim); font-size: 10px; letter-spacing: .08em; }
#clock::before { content: "TIME "; color: #79560e; }
#signalLabel { color: var(--amber); }
#signalLabel::before { content: "STATUS::"; color: #79560e; }

.frequency-row { align-items: flex-end; gap: 12px; margin-top: 24px; }
.frequency { color: var(--term-hot); font-size: clamp(72px, 9vw, 126px); line-height: .82; letter-spacing: -.08em; text-shadow: 0 0 10px rgba(255,176,0,.65), 0 0 40px rgba(255,176,0,.2); }
.unit { padding-bottom: 7px; color: #79560e; font-size: 11px; }
.station-copy { margin-top: 19px; }
.station-copy > span { color: var(--term-hot); font: 500 19px/1 "DM Mono", monospace; letter-spacing: .08em; }
.station-copy > span::before { content: ">> "; color: #79560e; }
.station-copy small { color: var(--term-dim); font-size: 10px; }

.now-playing { gap: 12px; margin-top: 18px; padding: 12px 0; border-top: 1px dashed var(--term-line); border-bottom: 1px dashed var(--term-line); }
.now-playing span { color: #79560e; font-size: 9px; letter-spacing: .1em; }
.now-playing strong { color: var(--term-hot); font-size: 11px; }
.spotify-search { width: 32px; height: 32px; border-color: var(--term-line); border-radius: 0; color: var(--amber); background: rgba(255,176,0,.1); box-shadow: none; }
.spotify-search svg { width: 18px; height: 18px; }
.spotify-search:hover { color: #070501; background: var(--term-hot); filter: none; }
.spotify-search:focus-visible { outline: 1px solid var(--term-hot); }
.spotify-search.disabled { opacity: .25; }
.meter { margin-top: 19px; }
.meter-labels { color: #79560e; font-size: 9px; }
.meter-track { border-color: var(--term-line); background: repeating-linear-gradient(90deg, var(--term-line) 0 1px, transparent 1px 5%); }
.meter-track i { background: var(--term-hot); box-shadow: 0 0 9px var(--amber); }
.status { margin-top: 10px; color: var(--term-dim); font-size: 9px; text-align: left; }
.status::before { content: "$ stream.status -- "; color: #79560e; }
.status.error { color: #ff684a; }

.speaker {
  position: relative;
  min-height: 360px;
  padding: 28px;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,176,0,.04) 31px 32px);
}
.speaker::before { content: "SIGNAL_SCOPE"; position: absolute; top: 12px; left: 12px; color: var(--term-dim); font-size: 9px; letter-spacing: .1em; }
.speaker-ring {
  width: min(224px, 100%);
  border: 1px solid var(--term-line);
  background:
    linear-gradient(90deg, transparent 49.7%, var(--term-line) 50%, transparent 50.3%),
    linear-gradient(transparent 49.7%, var(--term-line) 50%, transparent 50.3%),
    repeating-radial-gradient(circle, transparent 0 24px, rgba(255,176,0,.14) 25px 26px);
  box-shadow: 0 0 25px rgba(255,176,0,.07), inset 0 0 28px rgba(255,176,0,.04);
}
.speaker-cone { width: 48%; border: 1px dashed var(--term-line); background: radial-gradient(circle, rgba(255,176,0,.19), transparent 64%); box-shadow: none; }
.speaker-cone span { width: 34px; border: 1px solid #79560e; background: #050504; color: var(--term-hot); font: 500 13px/1 "DM Mono", monospace; box-shadow: 0 0 14px rgba(255,176,0,.25); }
.is-playing .speaker-ring { animation: term-radar 5s linear infinite; }
.is-playing .speaker-cone { animation: breathe .6s ease-in-out infinite alternate; }

.control-deck { min-height: 164px; padding: 20px 70px 22px; border-top: 1px solid var(--term-line); background: rgba(255,176,0,.018); box-shadow: none; color: var(--amber); }
.knob-control { gap: 7px; }
.knob-label { color: var(--term-dim); font-size: 9px; }
.knob-label b { color: var(--amber); font-size: 10px; letter-spacing: .08em; }
.knob { width: 80px; height: 80px; border: 1px solid var(--term-line); border-radius: 0; background: #080602; }
.knob::before, .knob::after { content: ""; position: absolute; width: 8px; height: 1px; background: #79560e; }
.knob::before { top: 8px; left: 8px; }
.knob::after { right: 8px; bottom: 8px; }
.knob input { width: 110px; height: 110px; }
.knob-cap { width: 51px; height: 51px; border: 1px solid #79560e; background: radial-gradient(circle, #171207, #080602 68%); box-shadow: inset 0 0 0 5px #0d0a04, 0 0 12px rgba(255,176,0,.1); }
.knob-cap i { width: 2px; height: 17px; top: 4px; background: var(--term-hot); box-shadow: 0 0 5px var(--amber); }
.knob-control output { color: var(--term-dim); font-size: 9px; }
.tuning-knob:focus-visible { outline: 1px solid var(--term-hot); }

.transport { grid-template-columns: 58px 82px 58px; gap: 9px; }
.skip-button, .play-button { border: 1px solid var(--term-line); border-radius: 0; background: #0b0905; box-shadow: inset 0 0 12px rgba(255,176,0,.035); transition: background .15s, color .15s, box-shadow .15s, transform .1s; }
.skip-button { width: 58px; height: 52px; color: var(--term-dim); }
.skip-button span { font-size: 12px; }
.play-button { width: 82px; height: 68px; border-color: #79560e; color: var(--term-hot); background: rgba(255,176,0,.1); box-shadow: inset 0 0 18px rgba(255,176,0,.07), 0 0 12px rgba(255,176,0,.05); }
.play-button:hover, .skip-button:hover { color: #080501; background: var(--amber); filter: none; box-shadow: 0 0 18px rgba(255,176,0,.2); }
.play-icon { border-top-width: 9px; border-bottom-width: 9px; border-left: 14px solid currentColor; }
.pause-icon i { width: 4px; height: 19px; background: currentColor; }
.power-light { top: 86px; color: var(--term-dim); font-size: 8px; letter-spacing: .08em; }
.power-light span { width: 6px; height: 6px; border: 1px solid #79560e; background: transparent; }
.is-playing .power-light span, .is-loading .power-light span { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.station-section { padding: 30px 28px 34px; color: var(--amber); }
.section-title span { color: #79560e; font-size: 9px; letter-spacing: .12em; }
.section-title h1 { color: var(--term-hot); font: 400 20px/1.1 "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.section-title h1::before { content: "$ "; color: #79560e; }
.section-title p { color: var(--term-dim); font-size: 9px; }
kbd { border-color: var(--term-line); border-radius: 0; background: #100d08; color: var(--amber); box-shadow: none; }
.station-tools { margin-bottom: 14px; }
.station-filters { border-color: var(--term-line); }
.station-filters button { min-height: 38px; padding-inline: 15px; border-color: var(--term-line); background: transparent; color: var(--term-dim); font-size: 9px; text-transform: uppercase; }
.station-filters button:hover { color: var(--term-hot); background: rgba(255,176,0,.1); }
.station-filters button.active { color: #090601; background: var(--amber); }
.station-search { width: min(310px, 100%); }
.station-search::before { content: ">"; position: absolute; z-index: 1; left: 12px; top: 10px; color: var(--amber); font-size: 12px; }
.station-search input { height: 38px; border-color: var(--term-line); padding-left: 30px; background: #070602; color: var(--term-hot); caret-color: var(--term-hot); font-size: 10px; }
.station-search input:focus { border-color: var(--amber); box-shadow: 0 0 10px rgba(255,176,0,.08); }
.station-search input::placeholder { color: #68552d; }
.station-grid { border-color: var(--term-line); }
.empty-stations { border-color: var(--term-line); color: var(--term-dim); font-size: 10px; }
.station-card { min-height: 118px; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 17px 15px; border-color: var(--term-line); background: rgba(255,176,0,.012); color: var(--amber); transition: background .15s, box-shadow .15s; }
.station-card:hover { background: rgba(255,176,0,.1); }
.station-card.active { background: rgba(255,176,0,.11); box-shadow: inset 3px 0 var(--amber); }
.station-number { color: #79560e; font-size: 9px; }
.station-number::before { content: "["; }
.station-number::after { content: "]"; }
.station-info strong { color: var(--term-hot); font: 500 13px/1.1 "DM Mono", monospace; letter-spacing: .04em; }
.station-info small { color: var(--term-dim); font-size: 9px; }
.station-info .station-track { color: var(--amber); font-size: 9px; }
.station-track.offline { color: #5c4c2d; }
.station-freq { color: #79560e; font-size: 10px; }
.station-card.active .station-freq, .station-card.active .station-number { color: var(--term-hot); }
.card-playing i { background: var(--amber); box-shadow: 0 0 4px var(--amber); }
footer { padding: 13px 18px; border-top: 1px solid var(--term-line); color: #64532f; font-size: 8px; letter-spacing: .08em; }

@keyframes term-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes term-cursor { 0%, 48% { opacity: 1; } 49%, 100% { opacity: .15; } }
@keyframes term-radar { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .shell { width: min(100% - 22px, 700px); margin-block: 14px; }
  .receiver-top { grid-template-columns: 1fr; }
  .screen-wrap { border-right: 0; }
  .control-deck { padding-inline: 28px; }
}

@media (max-width: 560px) {
  body { background-size: 22px 22px, 22px 22px, auto; }
  .shell { width: calc(100% - 12px); margin-block: 6px; }
  .masthead { height: 48px; padding-inline: 11px; gap: 11px; }
  .masthead::before { content: "●"; }
  .brand { font-size: 15px; }
  .live-chip { padding: 5px 6px; font-size: 8px; }
  .receiver::before { padding-inline: 12px; }
  .screen-wrap { padding: 12px; }
  .screen { min-height: 312px; padding: 17px 15px; }
  .screen::before { display: none; }
  .frequency { font-size: clamp(58px, 19vw, 86px); }
  .control-deck { min-height: 143px; padding: 18px 8px 20px; }
  .knob { width: 62px; height: 62px; }
  .knob-cap { width: 42px; height: 42px; }
  .knob-cap i { height: 14px; }
  .transport { grid-template-columns: 40px 68px 40px; }
  .skip-button { width: 40px; height: 42px; }
  .play-button { width: 68px; height: 56px; }
  .power-light { top: 73px; }
  .station-section { padding: 24px 12px 28px; }
}

/* FALA.TERM — full TUI rebuild */
:root {
  --t-bg: #030403;
  --t-panel: #050604;
  --t-amber: #f5a400;
  --t-hot: #ffc13a;
  --t-dim: #8c641c;
  --t-faint: #3a2a0c;
  --t-line: #6c4700;
  --t-green: #9dbb63;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--t-bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--t-amber);
  font: 400 15px/1.4 "DM Mono", Consolas, monospace;
  background: #020302;
}
body::before {
  content: "";
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.42) 2px 4px);
}
body::after {
  content: "";
  position: fixed;
  z-index: 99;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.58) 125%);
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 1px solid var(--t-hot); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }

.terminal-shell {
  width: calc(100% - 22px);
  max-width: 1900px;
  min-height: calc(100vh - 22px);
  margin: 11px auto;
  filter: drop-shadow(0 0 16px rgba(245,164,0,.055));
}

.panel, .topbar, .keybar {
  border: 1px solid var(--t-line);
  border-radius: 4px;
  background:
    linear-gradient(rgba(245,164,0,.012), rgba(245,164,0,.005)),
    var(--t-panel);
  box-shadow: inset 0 0 24px rgba(245,164,0,.018);
}

.panel h2, .panel h3, .panel-kicker {
  margin: 0;
  color: var(--t-amber);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
}
.panel h2, .panel-kicker { padding: 8px 11px; border-bottom: 1px solid var(--t-line); }
.panel h3 { padding: 9px 11px 5px; }

.topbar {
  min-height: 66px;
  display: grid;
  grid-template-columns: 330px minmax(600px, 1fr) 105px;
  align-items: center;
  gap: 20px;
  padding: 7px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--t-amber);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(245,164,0,.35);
}
.brand::before { content: none; }
.brand-icon { font-size: 12px; line-height: .8; }
.brand strong { display: block; font-size: 24px; line-height: 1; letter-spacing: .03em; }
.brand small { display: block; margin-top: 3px; color: var(--t-dim); font-size: 13px; letter-spacing: .06em; }
.telemetry { display: flex; justify-content: space-between; gap: 20px; margin: 0; }
.telemetry div { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.telemetry dt { color: var(--t-dim); }
.telemetry dd { margin: 0; color: var(--t-amber); }
.online-dot { display: inline-block; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: var(--t-amber); box-shadow: 0 0 8px var(--t-amber); animation: term-pulse 1.4s infinite; }
.mini-signal { height: 17px; display: flex; align-items: end; gap: 3px; }
.mini-signal i { width: 4px; background: var(--t-amber); }
.mini-signal i:nth-child(1){height:4px}.mini-signal i:nth-child(2){height:7px}.mini-signal i:nth-child(3){height:10px}.mini-signal i:nth-child(4){height:13px}.mini-signal i:nth-child(5){height:17px}
.datetime { text-align: right; }
.datetime span, .datetime strong { display: block; font-weight: 400; }
.datetime span { color: var(--t-dim); }

.workspace {
  display: grid;
  grid-template-columns: 270px minmax(600px, 1fr) 310px;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}
.sidebar { min-width: 0; }
.browser-panel { min-height: 560px; }
.station-search { position: relative; display: block; margin: 8px 10px 2px; width: auto; }
.station-search::before { content: "⌕"; position: absolute; left: 10px; top: 7px; color: var(--t-amber); }
.station-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.station-search input {
  width: 100%;
  height: 32px;
  padding: 0 8px 0 30px;
  border: 1px solid var(--t-line);
  border-radius: 2px;
  outline: 0;
  background: #030403;
  color: var(--t-hot);
  caret-color: var(--t-hot);
  font-size: 13px;
}
.station-search input::placeholder { color: #72551e; }
.station-search input:focus { border-color: var(--t-amber); box-shadow: 0 0 8px rgba(245,164,0,.1); }
.station-filters { display: block; margin: 0 9px; border: 1px solid var(--t-faint); }
.station-filters button {
  min-height: 31px;
  width: 100%;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-bottom: 1px solid var(--t-faint);
  background: transparent;
  color: #bc882e;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.station-filters button:last-child { border-bottom: 0; }
.station-filters button b { color: var(--t-dim); font-weight: 400; }
.station-filters button:hover { color: var(--t-hot); background: rgba(245,164,0,.06); }
.station-filters button.active { color: #130d02; background: var(--t-amber); text-shadow: none; }
.station-filters button.active b { color: #3b2907; }
.index-list, .favorites-panel ol, .recent-panel ul { margin: 0 9px 9px; padding: 0; list-style: none; border: 1px solid var(--t-faint); }
.index-list li, .favorites-panel li, .recent-panel li { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 9px; color: #b17d26; font-size: 13px; }
.index-list li + li { border-top: 1px solid rgba(108,71,0,.25); }
.index-list b, .favorites-panel b { color: var(--t-dim); font-weight: 400; }

.command-center { min-width: 0; display: grid; gap: 10px; }
.now-panel { min-height: 260px; }
.now-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 10px 16px 9px; border-bottom: 1px dashed var(--t-line); }
.now-title h1 { margin: 0; color: var(--t-hot); font-size: clamp(24px, 2.2vw, 38px); line-height: 1.1; font-weight: 500; letter-spacing: .03em; text-shadow: 0 0 10px rgba(245,164,0,.22); }
.now-title p { margin: 5px 0 0; color: var(--t-dim); font-size: 13px; }
.frequency-block { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.frequency-block strong { color: var(--t-hot); font-size: 32px; line-height: 1; font-weight: 300; }
.frequency-block span { color: var(--t-dim); font-size: 12px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 10px 16px; }
.data-grid dl, .connection-panel dl, .shortcut-panel dl { margin: 0; }
.data-grid dl div, .connection-panel dl div, .shortcut-panel dl div { display: grid; grid-template-columns: 112px 1fr; gap: 7px; min-width: 0; }
.data-grid dt, .connection-panel dt, .shortcut-panel dt { color: #b17d26; }
.data-grid dd, .connection-panel dd, .shortcut-panel dd { min-width: 0; margin: 0; color: var(--t-amber); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-grid dd::before, .connection-panel dd::before, .shortcut-panel dd::before { content: ": "; color: var(--t-dim); }
#signalLabel { margin: 0; }
.track-line { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 2px 11px 10px; padding: 9px 5px; border-top: 1px dashed var(--t-line); }
.track-line > span { color: #b17d26; }
.track-line strong { overflow: hidden; color: var(--t-hot); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.spotify-search { width: auto; height: auto; padding: 3px 6px; border: 1px solid var(--t-line); border-radius: 0; color: var(--t-amber); background: transparent; font-size: 9px; text-decoration: none; }
.spotify-search:hover { color: #100a00; background: var(--t-amber); }
.spotify-search.disabled { pointer-events: none; opacity: .25; }

.diagnostics { display: grid; grid-template-columns: .85fr 1.25fr .82fr; gap: 10px; }
.diagnostics .panel { min-height: 133px; }
.scale { display: flex; justify-content: space-between; padding: 14px 12px 2px; color: var(--t-dim); font-size: 9px; }
.signal-meter { position: relative; height: 27px; margin: 0 12px; background: repeating-linear-gradient(90deg, var(--t-amber) 0 6px, transparent 6px 9px); clip-path: polygon(0 72%, 100% 0, 100% 100%, 0 100%); }
.signal-meter::after { content: ""; position: absolute; inset: 0 12% 0 86%; background: #241a08; }
.signal-meter i { position: absolute; z-index: 2; top: 0; left: 68%; width: 2px; height: 100%; background: var(--t-hot); box-shadow: 0 0 7px var(--t-hot); transition: left .4s ease; }
.signal-panel p { margin: 10px 12px; color: #b17d26; font-size: 12px; }
.signal-panel p strong { color: var(--t-amber); font-weight: 400; }
.equalizer { height: 92px; display: flex; align-items: end; gap: 4px; padding: 12px 10px 10px; background: repeating-linear-gradient(0deg, transparent 0 15px, rgba(108,71,0,.32) 15px 16px); }
.equalizer i { flex: 1; min-width: 2px; height: 45%; background: repeating-linear-gradient(0deg, var(--t-amber) 0 4px, transparent 4px 6px); }
.equalizer i:nth-child(3n){height:72%}.equalizer i:nth-child(4n){height:36%}.equalizer i:nth-child(5n){height:88%}.equalizer i:nth-child(7n){height:58%}
.is-playing .equalizer i { animation: eq .65s ease-in-out infinite alternate; }
.is-playing .equalizer i:nth-child(2n) { animation-delay: -.22s; }.is-playing .equalizer i:nth-child(3n) { animation-delay: -.44s; }
.connection-panel > p { min-height: 28px; margin: 8px 10px 5px; color: var(--t-green); font-size: 11px; text-transform: uppercase; }
.connection-panel > p::before { content: "● "; }
.connection-panel > p.error { color: #dc684e; }
.connection-panel dl { padding: 0 10px 8px; font-size: 11px; }
.connection-panel dl div { grid-template-columns: 68px 1fr; }

.controls-row { position: relative; display: grid; grid-template-columns: 1fr 250px; gap: 10px; }
.transport { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.transport button, .shortcut-panel button {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--t-line);
  border-radius: 0;
  background: transparent;
  color: #a97928;
  font-size: 12px;
  cursor: pointer;
}
.transport button:hover, .shortcut-panel button:hover { color: #100a00; background: var(--t-amber); }
.transport .play-button { color: var(--t-hot); background: rgba(245,164,0,.08); }
.transport .play-button { width: auto; height: auto; border-radius: 0; box-shadow: none; }
.pause-copy { display: none; }
.is-playing .play-copy { display: none; }
.is-playing .pause-copy { display: inline; }
.volume-panel { position: relative; }
.volume-panel label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 13px 45px 0 12px; }
.volume-panel input { width: 100%; height: 7px; accent-color: var(--t-amber); cursor: pointer; }
.volume-panel output { position: absolute; right: 12px; bottom: 14px; color: var(--t-hot); font-size: 12px; }

.station-section { min-width: 0; padding: 0; color: var(--t-amber); overflow: hidden; }
.table-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 10px; border-bottom: 1px solid var(--t-line); }
.table-heading h2 { border: 0; }
.table-heading h2 span { color: var(--t-dim); font-size: 11px; }
.table-heading > span { color: var(--t-dim); font-size: 11px; }
.station-columns, .station-card { display: grid; grid-template-columns: 38px 1.15fr 1fr 58px 1.55fr 62px; align-items: center; column-gap: 8px; }
.station-columns { min-height: 29px; padding: 0 8px; border-bottom: 1px solid var(--t-faint); color: var(--t-dim); font-size: 10px; }
.station-grid { display: block; border: 0; max-height: 350px; overflow: auto; scrollbar-color: var(--t-line) #040503; scrollbar-width: thin; }
.station-card {
  width: 100%;
  min-height: 38px;
  padding: 3px 8px;
  border: 0;
  border-bottom: 1px solid rgba(108,71,0,.14);
  background: transparent;
  color: #aa7926;
  text-align: left;
  cursor: pointer;
}
.station-card:hover { background: rgba(245,164,0,.06); }
.station-card.active { color: #110b00; background: var(--t-amber); box-shadow: none; text-shadow: none; }
.station-number { color: inherit; font-size: 11px; }
.station-number::before { content: "> "; opacity: 0; }
.station-card.active .station-number::before { opacity: 1; }
.station-name { overflow: hidden; color: inherit; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.station-kind { overflow: hidden; color: inherit; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.station-kind small { display: none; }
.station-freq { color: inherit; font-size: 11px; }
.station-track { overflow: hidden; color: inherit; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.station-track.offline { opacity: .55; }
.station-state { height: 18px; display: flex; align-items: end; justify-content: end; gap: 2px; }
.station-state i { width: 3px; background: currentColor; }
.station-state i:nth-child(1){height:4px}.station-state i:nth-child(2){height:7px}.station-state i:nth-child(3){height:10px}.station-state i:nth-child(4){height:13px}.station-state i:nth-child(5){height:16px}
.is-playing .station-card.active .station-state i { animation: signal .6s infinite alternate; }
.empty-stations { margin: 0; padding: 25px; border: 0; color: var(--t-dim); text-align: center; font-size: 10px; }

.sidebar-right { display: grid; gap: 10px; }
.favorites-panel ol { padding-block: 6px; counter-reset: favorite; }
.favorites-panel li { min-height: 28px; }
.favorites-panel li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-panel ul { padding-block: 6px; border: 0; }
.recent-panel time { color: var(--t-dim); }
.shortcut-panel { min-height: 170px; }
.shortcut-panel dl { padding: 10px 12px; font-size: 12px; }
.shortcut-panel dl div { grid-template-columns: 90px 1fr; }
.shortcut-panel button { margin: 5px 12px 12px; }

.keybar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 5px 12px; color: var(--t-dim); font-size: 11px; }
.keybar kbd { display: inline-block; min-width: 28px; padding: 2px 5px; border: 1px solid var(--t-line); border-radius: 1px; background: transparent; color: var(--t-amber); box-shadow: none; text-align: center; }

@keyframes eq { from { transform: scaleY(.45); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

@media (max-width: 1260px) {
  .topbar { grid-template-columns: 270px 1fr 95px; }
  .telemetry div:nth-child(4), .telemetry div:nth-child(5) { display: none; }
  .workspace { grid-template-columns: 225px minmax(560px,1fr); }
  .sidebar-right { display: none; }
}

@media (max-width: 900px) {
  .terminal-shell { width: calc(100% - 12px); margin-block: 6px; }
  .topbar { grid-template-columns: 1fr auto; min-height: 58px; }
  .brand strong { font-size: 20px; }
  .telemetry { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .sidebar-left { order: 2; }
  .browser-panel { min-height: 0; }
  .browser-panel h3, .index-list { display: none; }
  .station-filters { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 9px; }
  .station-filters button { min-height: 36px; grid-template-columns: 1fr; text-align: center; border-right: 1px solid var(--t-faint); border-bottom: 0; }
  .station-filters button span, .station-filters button b { display: none; }
  .diagnostics { grid-template-columns: 1fr 1.35fr; }
  .connection-panel { display: none; }
  .keybar span:nth-child(-n+4) { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 11px; }
  .brand-icon { display: none; }
  .topbar { padding-inline: 10px; }
  .datetime { font-size: 10px; }
  .now-title { align-items: start; }
  .now-title h1 { font-size: 22px; }
  .frequency-block strong { font-size: 20px; }
  .data-grid { grid-template-columns: 1fr; gap: 0; }
  .data-grid dl:nth-child(2) { display: none; }
  .track-line { grid-template-columns: 68px minmax(0,1fr); }
  .spotify-search { display: none; }
  .diagnostics { grid-template-columns: 1fr; }
  .visualizer-panel { display: none; }
  .controls-row { grid-template-columns: 1fr; }
  .transport { grid-template-columns: repeat(3,1fr); }
  .transport button { padding-inline: 3px; font-size: 8px; }
  .volume-panel { min-height: 75px; }
  .station-columns { display: none; }
  .station-card { grid-template-columns: 28px minmax(90px,1fr) 45px 45px; min-height: 39px; }
  .station-kind, .station-track { display: none; }
  .station-state { grid-column: 4; grid-row: 1; }
  .table-heading > span { display: none; }
  .keybar { justify-content: space-around; }
  .keybar span:nth-child(5) { display: none; }
}
}
}
