:root {
  --bg: #0b0f1a;
  --fg: #e7edf5;
  --muted: #aab3c0;
  --card: #121826;
  --accent: #4f46e5;
  --border: #1f2937;
  --warning: #f59e0b;
  --retro-green: #00ff00;
  --retro-bg: #1a1f2d;
  --retro-highlight: #00cc00;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Courier New', monospace;
  background-image: radial-gradient(circle, #1a1f2d 0%, #0b0f1a 100%);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}

h1 { 
  margin: 0 0 16px; 
  font-size: 32px; 
  color: var(--retro-green);
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

p { 
  margin: 0 0 24px; 
  color: var(--muted);
  font-size: 16px;
}

.radio-interface {
  background: var(--retro-bg);
  border: 2px solid #4a5568;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.scan-display {
  margin-bottom: 32px;
}

.frequency {
  font-size: 18px;
  color: var(--retro-green);
  margin-bottom: 20px;
  height: 24px;
  font-family: 'Courier New', monospace;
}

.meter-container {
  position: relative;
  margin: 0 auto 20px;
  max-width: 400px;
}

.meter {
  height: 120px;
  background: #000;
  border: 2px solid #4a5568;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.meter-scale {
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  height: 20px;
  display: flex;
  justify-content: space-between;
}

.meter-scale div {
  width: 2px;
  height: 100%;
  background: var(--retro-green);
}

.meter-scale div.major {
  width: 3px;
  height: 150%;
}

.needle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--retro-green);
  transform-origin: bottom center;
  transform: rotate(-45deg);
  box-shadow: 0 0 10px var(--retro-green);
  transition: transform 0.1s ease-out;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.tuning-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid var(--retro-green);
  border-radius: 50%;
  display: none;
}

.tuning-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid var(--retro-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tuning-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--retro-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.transmission-found {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid var(--retro-green);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.date-display {
  margin-bottom: 16px;
}

.date {
  display: block;
  font-size: 24px;
  color: var(--retro-green);
  margin-bottom: 8px;
  font-weight: bold;
}

.time {
  font-size: 18px;
  color: var(--muted);
}

.signal-strength {
  display: flex;
  justify-content: center;
}

.bars {
  display: flex;
  gap: 4px;
}

.bar {
  width: 8px;
  background: var(--retro-green);
  animation: signal 1s infinite alternate;
}

.bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.bar:nth-child(2) { height: 15px; animation-delay: 0.2s; }
.bar:nth-child(3) { height: 20px; animation-delay: 0.4s; }
.bar:nth-child(4) { height: 15px; animation-delay: 0.6s; }
.bar:nth-child(5) { height: 10px; animation-delay: 0.8s; }

@keyframes signal {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.controls {
  margin: 24px 0;
}

.scan-button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Courier New', monospace;
  border: 2px solid transparent;
}

.scan-button:hover {
  background: #3c32cc;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent);
}

.status { 
  margin: 16px 0; 
  min-height: 24px; 
  color: var(--muted);
  font-size: 16px;
}

.now-playing {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
}

.now-playing h3 {
  margin-top: 0;
  color: var(--accent);
}

.article-info {
  margin-bottom: 16px;
}

.article-info h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--fg);
}

.article-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.play-pause, .stop {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.play-pause:hover, .stop:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* Animation for scanning */
.scanning .needle {
  animation: scan 1.5s ease-in-out infinite alternate;
}

@keyframes scan {
  0% { transform: rotate(-60deg); }
  100% { transform: rotate(60deg); }
}

.locking .needle {
  animation: lock 0.5s ease-out forwards;
}

@keyframes lock {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(15deg); }
}

@media (max-width: 600px) {
  .container {
    padding: 16px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .radio-interface {
    padding: 16px;
  }
}