@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

body {
  background: #0d0d0d;
  color: #e0e0e0;
  font-family: 'Share Tech Mono', monospace;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding: 10px;
}

#visualizer {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 8px 8px 0 0;
  display: block;
}

#radio-body {
  width: 100%;
  background: linear-gradient(180deg, #3a2a1a 0%, #2a1c0e 40%, #1e1408 100%);
  border-radius: 0 0 18px 18px;
  border: 2px solid #4a3520;
  border-top: 1px solid #5a4530;
  padding: 18px 24px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}

#radio-top {
  text-align: center;
  margin-bottom: 14px;
}

#signal-meter {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 8px;
}

#signal-meter .bar {
  width: 6px;
  height: 14px;
  background: #1a1a1a;
  border-radius: 2px;
  border: 1px solid #333;
  transition: background 0.15s;
}

#signal-meter .bar.active {
  background: #4aff4a;
  box-shadow: 0 0 6px #4aff4a;
  border-color: #4aff4a;
}

#signal-meter .bar.active:nth-child(4) { background: #aaff4a; box-shadow: 0 0 6px #aaff4a; }
#signal-meter .bar.active:nth-child(5) { background: #ffcc00; box-shadow: 0 0 6px #ffcc00; }

#freq-display {
  font-size: 2.8rem;
  color: #40ff90;
  text-shadow: 0 0 20px rgba(64,255,144,0.6), 0 0 40px rgba(64,255,144,0.2);
  letter-spacing: 2px;
  line-height: 1;
}

.mhz {
  font-size: 1rem;
  color: #40ff9088;
  vertical-align: super;
}

#station-name {
  font-size: 1.1rem;
  color: #ffcc66;
  text-shadow: 0 0 10px rgba(255,204,102,0.5);
  height: 1.4em;
  transition: opacity 0.4s;
  margin-top: 4px;
}

#dial-container {
  position: relative;
  padding: 8px 0;
}

#dial-ticks {
  position: relative;
  height: 20px;
  margin-bottom: 4px;
}

#dial {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
  border-radius: 4px;
  outline: none;
  border: 1px solid #444;
  cursor: pointer;
}

#dial::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 32px;
  background: linear-gradient(180deg, #c8a050, #a07830, #806020);
  border: 2px solid #d4b060;
  border-radius: 4px;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#dial::-moz-range-thumb {
  width: 24px;
  height: 32px;
  background: linear-gradient(180deg, #c8a050, #a07830, #806020);
  border: 2px solid #d4b060;
  border-radius: 4px;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#dial:active::-webkit-slider-thumb { cursor: grabbing; }
#dial:active::-moz-range-thumb { cursor: grabbing; }

#start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 16px 16px;
  cursor: pointer;
  z-index: 10;
}

#start-overlay span {
  font-size: 1.5rem;
  color: #40ff90;
  text-shadow: 0 0 20px #40ff90;
  letter-spacing: 4px;
}

#start-overlay.hidden { display: none; }

#brand {
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 6px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  #app { padding: 4px; }
  #radio-body { padding: 12px 14px 16px; border-radius: 0 0 12px 12px; }
  #freq-display { font-size: 2.2rem; }
  #dial::-webkit-slider-thumb { width: 30px; height: 38px; }
  #dial::-moz-range-thumb { width: 30px; height: 38px; }
}
