:root {
  --ink: #111111;
  --paper: #f3f0e7;
  --green: #17663b;
  --green-soft: rgba(23, 102, 59, 0.10);
  --rule: rgba(17, 17, 17, 0.20);
  --muted: rgba(17, 17, 17, 0.62);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--body);
}

.board {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 3.2vh, 48px) clamp(34px, 3.2vw, 62px) clamp(22px, 2.8vh, 40px);
  background:
    linear-gradient(to bottom, rgba(23, 102, 59, 0.035), transparent 22%),
    var(--paper);
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3vw;
  padding-bottom: clamp(18px, 2.2vh, 34px);
  border-bottom: 2px solid var(--ink);
}

.station {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 0.7rem;
}

.station-name {
  font-family: var(--display);
  font-size: clamp(44px, 4.5vw, 82px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.025em;
}

.station-frequency {
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 42px);
  font-weight: 700;
  line-height: 1;
}

.station-location {
  grid-column: 1 / -1;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clock-block {
  flex: 0 0 auto;
  text-align: right;
}

.clock {
  font-family: var(--display);
  font-size: clamp(54px, 5vw, 92px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.02em;
}

.date {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dashboard {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(390px, 0.8fr);
  gap: clamp(24px, 2.4vw, 48px);
  padding-top: clamp(24px, 3vh, 44px);
  padding-bottom: clamp(20px, 2.2vh, 34px);
}

.primary-column,
.secondary-column {
  min-width: 0;
  min-height: 0;
}

.primary-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(24px, 2.5vh, 36px);
}

.secondary-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(24px, 2.5vh, 36px);
  padding-left: clamp(24px, 2.4vw, 48px);
  border-left: 1px solid var(--rule);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--green);
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.section-kicker.muted {
  color: var(--muted);
}

.live-dot {
  width: 0.65em;
  height: 0.65em;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(23, 102, 59, 0.10);
}

.on-air-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.show-title {
  max-width: 12ch;
  margin: clamp(24px, 3.5vh, 54px) 0 0;
  font-family: var(--display);
  font-size: clamp(86px, 8.4vw, 160px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 4vw, 70px);
  margin-top: auto;
  padding-top: clamp(28px, 3.2vh, 48px);
}

.meta-label {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: clamp(13px, 0.85vw, 17px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-value {
  font-family: var(--display);
  font-size: clamp(28px, 2.2vw, 42px);
  font-weight: 600;
  line-height: 1;
}

.badge-row {
  min-height: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.program-badge {
  padding: 0.24rem 0.5rem;
  border: 1px solid rgba(23, 102, 59, 0.45);
  color: var(--green);
  font-size: clamp(11px, 0.7vw, 14px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.now-playing-panel {
  padding-top: clamp(20px, 2.2vh, 32px);
  border-top: 1px solid var(--rule);
}

.track-artist {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-size: clamp(34px, 3vw, 56px);
  font-weight: 700;
  line-height: 0.95;
}

.track-title {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: clamp(20px, 1.5vw, 29px);
  font-weight: 500;
  line-height: 1.2;
}

.up-next-panel {
  padding-bottom: clamp(24px, 3vh, 42px);
  border-bottom: 1px solid var(--rule);
}

.next-time {
  margin-top: clamp(22px, 2.8vh, 38px);
  color: var(--muted);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.next-title {
  margin-top: 0.45rem;
  font-family: var(--display);
  font-size: clamp(44px, 4.1vw, 76px);
  font-weight: 700;
  line-height: 0.9;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.next-host {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: clamp(16px, 1.05vw, 21px);
  font-weight: 500;
  line-height: 1.3;
}

.later-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.later-list {
  min-height: 0;
  margin-top: 0.9rem;
}

.later-item {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(14px, 1.65vh, 22px) 0;
  border-bottom: 1px solid var(--rule);
}

.later-item:last-child {
  border-bottom: 0;
}

.later-time {
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 19px);
  font-weight: 600;
  line-height: 1.3;
}

.later-title {
  font-family: var(--display);
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 600;
  line-height: 1;
  overflow-wrap: anywhere;
}

.later-host {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: clamp(13px, 0.8vw, 16px);
  line-height: 1.3;
}

.empty-state {
  padding-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(16px, 1.05vw, 21px);
  line-height: 1.4;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(14px, 1.7vh, 22px);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: clamp(11px, 0.72vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-center {
  text-align: center;
}

.footer > :last-child {
  text-align: right;
}

@media (max-aspect-ratio: 16 / 10) {
  .dashboard {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
  }

  .show-title {
    font-size: clamp(72px, 7.6vw, 138px);
  }
}

@media (max-width: 1100px) {
  .board {
    padding: 26px 30px 22px;
  }

  .dashboard {
    grid-template-columns: 1.45fr 0.8fr;
    gap: 26px;
  }

  .secondary-column {
    min-width: 300px;
    padding-left: 26px;
  }

  .later-item {
    grid-template-columns: 6.3rem 1fr;
  }
}
