:root{
  --bg: #12181A;
  --panel: #171F22;
  --line: rgba(237,231,218,0.12);
  --line-strong: rgba(237,231,218,0.22);
  --ink: #EDE7DA;
  --ink-dim: #9BA3A2;
  --brass: #C08A3E;
  --brass-soft: #8C6428;
  --live: #5FAE7C;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--brass); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- top bar ---- */
.topbar{
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.topbar .wrap{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.place{
  font-family:'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.place strong{ color: var(--ink); font-weight: 500; }
.contact-link{ font-family:'IBM Plex Mono', monospace; font-size: 13px; }
.back-link{ font-family:'IBM Plex Mono', monospace; font-size: 13px; }
.brand{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-right: 16px;
}
.brand-row{ display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; }

/* ---- hero ---- */
.hero{ padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero p{
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0;
}
.hero .count{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 22px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--live);
}
.dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(95,174,124,0.18);
}

/* ---- stations (hub cards) ---- */
.stations{ padding: 8px 0; }
.station{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.station:last-child{ border-bottom: none; }

.logo{
  width: 96px; height: 96px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex-shrink:0;
}
.logo img{ width:100%; height:100%; object-fit:cover; display:block; }
.logo svg{ width: 34px; height: 34px; color: var(--brass-soft); }
.logo.large{ width: 128px; height: 128px; }
.logo.large svg{ width: 44px; height: 44px; }

.station-main h2{
  font-family:'Fraunces', serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 6px;
}
.meta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items:center;
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.tag{
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 3px 8px;
  color: var(--ink-dim);
}
.placeholder{ color: var(--brass); font-style: italic; }

.desc{
  font-size: 15px;
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 0 0 22px;
}

.player-block{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
}
audio{
  width: 100%;
  display: block;
  margin-bottom: 12px;
  accent-color: var(--brass);
}
.stream-row{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.stream-url{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-dim);
  word-break: break-all;
}
.copy-btn{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.copy-btn:hover{ border-color: var(--brass); color: var(--brass); }

.view-link{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  display: inline-block;
  margin-top: 14px;
}

/* ---- individual station page ---- */
.station-page-hero{
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.station-page-hero h1{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
  margin: 0 0 10px;
}
.station-page-hero .meta-row{ margin-bottom: 0; }

.section-block{ padding: 40px 0; border-bottom: 1px solid var(--line); }
.section-block:last-of-type{ border-bottom: none; }
.section-block h3{
  font-family:'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 14px;
}

/* ---- footer / operator info ---- */
footer{
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}
footer h3{
  font-family:'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 12px;
}
footer p{
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 56ch;
  margin: 0 0 8px;
}
.footer-meta{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-dim);
  margin-top: 24px;
}

@media (max-width: 560px){
  .station{ grid-template-columns: 1fr; }
  .logo{ width: 56px; height: 56px; }
  .station-page-hero{ grid-template-columns: 1fr; text-align: left; }
  .logo.large{ width: 88px; height: 88px; }
}
