* {
  box-sizing: border-box;
}

:root {
  --bg-main: #08111f;
  --bg-card: #111827;
  --bg-soft: #1f2937;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

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

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

.radio-card {
  width: 100%;
  max-width: 620px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -1px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.subtitle {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.status-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.78);
  color: var(--text-muted);
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}

.status-dot.playing {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.status-dot.error {
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
}

.player-box {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(8, 17, 31, 0.68);
}

audio {
  width: 100%;
  display: block;
}

.controls {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  cursor: pointer;
  color: #052e16;
  background: var(--accent);
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button.secondary {
  color: var(--text-main);
  background: var(--bg-soft);
}

button.secondary:hover {
  background: #374151;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.info-grid > div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.58);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-grid strong {
  font-size: 14px;
}

.small-note {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.footer {
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

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

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

  .brand-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
    font-size: 19px;
  }

  .controls {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

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

.status-dot.paused {
  background: #facc15;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.15);
}

.status-dot.loading {
  background: #38bdf8;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.15);
}

.now-playing-box {
  grid-column: 1 / -1;
}

#nowPlayingTitle {
  display: block;
  max-width: 100%;
  color: var(--text-main);
  line-height: 1.5;
  word-break: break-word;
}