* {
  box-sizing: border-box;
}

:root {
  --bg: #07111f;
  --card: #111827;
  --card-soft: #172033;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --green: #22c55e;
  --green-dark: #16a34a;
  --yellow: #facc15;
  --red: #ef4444;
  --blue: #38bdf8;
  --gray: #64748b;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.18), transparent 30%),
    linear-gradient(135deg, #07111f, #0f172a 55%, #111827);
}

.app {
  width: 100%;
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radio-card {
  width: 100%;
  max-width: 660px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.logo {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  font-size: 24px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
}

.location {
  margin: 8px 0 0;
  color: var(--muted);
}

.status-panel,
.now-playing,
.listeners-box,
.info {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(23, 32, 51, 0.7);
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.status-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex: 0 0 15px;
}

.status-dot.standby {
  background: var(--gray);
}

.status-dot.loading {
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.12);
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.13);
}

.status-dot.pause {
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.14);
}

.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.13);
}

.status-label,
.label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-text {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

.now-playing {
  padding: 18px;
  margin-bottom: 16px;
}

.now-playing h2 {
  margin: 0;
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.45;
  word-break: break-word;
}

.listeners-box {
  padding: 18px;
  margin-bottom: 20px;
}

.listeners-box p:last-child {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.primary {
  color: #052e16;
  background: var(--green);
}

.warning {
  color: #422006;
  background: var(--yellow);
}

.secondary {
  color: var(--text);
  background: #253044;
}

.info {
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.info p {
  margin: 0 0 8px;
}

.info p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 560px) {
  .radio-card {
    padding: 24px;
    border-radius: 22px;
  }

  .header {
    align-items: flex-start;
  }

  .logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 16px;
    font-size: 20px;
  }

  .controls {
    grid-template-columns: 1fr;
  }
}