/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-hover: #1a1a26;
  --text: #e8e6e3;
  --text-muted: #8a8a9a;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --border: #1e1e2e;
  --radius: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(108, 92, 231, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(56, 44, 130, 0.15) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

section {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  max-width: 640px;
  margin: 0 auto;
}

.station-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
}

.play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow);
}

.play-btn:active {
  transform: scale(0.95);
}

.play-btn.is-playing {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow); }
}

.play-label {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ===== Now Playing ===== */
.now-playing {
  border-top: 1px solid var(--border);
}

.now-playing-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.album-art {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: var(--bg-card);
  object-fit: cover;
  flex-shrink: 0;
}

.album-art[src=""],
.album-art:not([src]) {
  display: none;
}

.np-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.track-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.track-artist {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.playing-next {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.playing-next:empty {
  display: none;
}

/* ===== Schedule ===== */
.schedule {
  border-top: 1px solid var(--border);
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-block {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.schedule-block:last-child {
  border-bottom: none;
}

.schedule-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 120px;
}

.schedule-name {
  font-weight: 500;
}

/* ===== About ===== */
.about {
  border-top: 1px solid var(--border);
}

.about p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
}

/* ===== Shows ===== */
.shows {
  border-top: 1px solid var(--border);
}

.shows-grid {
  display: grid;
  gap: 1rem;
}

.show-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: background 0.2s;
}

.show-card:hover {
  background: var(--bg-hover);
}

.show-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.show-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.show-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.show-links a {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.show-links a:hover {
  color: var(--text);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.listener-count:empty {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .station-name {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .now-playing-inner {
    flex-direction: column;
    text-align: center;
  }

  .album-art {
    width: 160px;
    height: 160px;
  }

  .schedule-block {
    flex-direction: column;
    gap: 0.25rem;
  }

  .schedule-time {
    min-width: unset;
  }
}
