:root {
  --bg: #120e09;
  --bg-glow: #1e1609;
  --surface: #1d1711;
  --surface-raised: #2c2316;
  --edge: #3b2f1c;
  --gold: #e0b04f;
  --gold-soft: #b8923a;
  --gold-dim: #7a6433;
  --text: #f3ead7;
  --text-dim: #a89b82;
  --live: #ff5d45;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 480px at 50% -120px, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--gold);
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--edge);
}

.masthead-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 18px rgba(224, 176, 79, 0.35);
}

.brand-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.brand-tag {
  margin: 0.1rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.on-air {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 93, 69, 0.5);
  border-radius: 999px;
  color: var(--live);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: rgba(255, 93, 69, 0.07);
  box-shadow: 0 0 16px rgba(255, 93, 69, 0.15);
  white-space: nowrap;
}

.on-air-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(255, 93, 69, 0.8); }
  50% { opacity: 0.45; box-shadow: 0 0 2px rgba(255, 93, 69, 0.3); }
}

/* ---------- Console ---------- */

.console {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
}

.deck {
  background: linear-gradient(180deg, #221b12, var(--surface));
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Tuner dial */

.tuner {
  position: relative;
  height: 34px;
  margin-bottom: 1.1rem;
  border-radius: 8px;
  background: #15100a;
  border: 1px solid var(--edge);
  overflow: hidden;
}

.tuner-scale {
  position: absolute;
  inset: 7px 10px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--gold-dim) 0,
      var(--gold-dim) 1px,
      transparent 1px,
      transparent 14px
    );
  opacity: 0.7;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tuner-needle {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 50%;
  width: 2px;
  background: var(--live);
  box-shadow: 0 0 10px rgba(255, 93, 69, 0.9);
  transition: left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Now playing */

.now-playing {
  margin-bottom: 1rem;
}

.np-label {
  margin: 0 0 0.2rem;
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.np-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
}

.np-source {
  margin: 0.25rem 0 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* Player */

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--edge);
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0.9rem 0 0.2rem;
}

/* ---------- Stations ---------- */

.stations-heading {
  font-size: 0.8rem;
  margin: 2.25rem 0 0.9rem;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.station {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.station:hover {
  border-color: var(--gold-soft);
}

.station.active {
  border-color: var(--gold);
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(224, 176, 79, 0.12);
}

.station-preset {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  background: #15100a;
}

.station.active .station-preset {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(224, 176, 79, 0.3);
}

.station-title {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.station-source {
  display: block;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--edge);
  padding: 1.25rem 1rem 2rem;
}

.site-footer p {
  max-width: 880px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 540px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .deck {
    padding: 1rem 0.9rem 0.8rem;
  }

  .np-title {
    font-size: 1.2rem;
  }
}
