:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f7f3ea;
  background: #080809;
  --gold: #e8bd70;
  --cream: #f7f3ea;
  --muted: #bcb6aa;
  --panel: #121214;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 26% 35%, rgba(159, 99, 25, .1), transparent 30rem),
    radial-gradient(circle at 73% 3%, rgba(140, 91, 35, .07), transparent 31rem),
    #080809;
}

.beta-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 49px;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(232, 189, 112, .5);
  background: linear-gradient(90deg, #0d0b09, #1b140b 50%, #0d0b09);
  color: #ead8b5;
  font-size: .82rem;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}

.beta-ribbon strong {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .28em;
}

.ribbon-divider {
  width: 1px;
  height: 22px;
  background: rgba(232, 189, 112, .65);
}

.beta-shell {
  width: min(calc(100% - 128px), 1544px);
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 30px 0 20px;
}

.header-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 189, 112, .92));
}
.header-rule:last-child {
  background: linear-gradient(90deg, rgba(232, 189, 112, .92), transparent);
}

.brand {
  display: inline-flex;
  gap: .85em;
  align-items: center;
  color: var(--cream);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: .35em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.brand span:last-child { color: var(--gold); }

.hero {
  display: grid;
  grid-template-areas: "logo copy";
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(40px, 4vw, 76px);
  padding: 26px 0 36px;
}

.hero-art { grid-area: logo; min-width: 0; }
.hero-art img {
  display: block;
  width: min(100%, 540px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 24px rgba(193, 130, 41, .08));
}

.hero-copy { grid-area: copy; min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .31em;
  text-transform: uppercase;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 189, 112, .8), transparent);
}

h1 {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 4.85vw, 5.15rem);
  font-weight: 400;
  letter-spacing: -.053em;
  line-height: 1.03;
}

.intro {
  margin: 20px 0 31px;
  color: #dfdcd5;
  font-size: clamp(1.05rem, 1.4vw, 1.27rem);
  line-height: 1.5;
}

.player-card {
  overflow: hidden;
  padding: 24px 28px 12px;
  border: 1px solid #c8a162;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 32%, rgba(157, 113, 47, .15), transparent 25rem),
    linear-gradient(115deg, #191713, #121214 65%);
  box-shadow: 0 19px 40px rgba(0, 0, 0, .28), 0 0 35px rgba(188, 137, 61, .06);
}

.station-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  color: #cdbd9e;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}
.station-status::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a69b86;
}
.station-status[data-state="offline"] { color: #efc8a5; }
.station-status[data-state="offline"]::before { background: #db9966; }
.station-status[data-state="online"] { color: #d7e8bd; }
.station-status[data-state="online"]::before { background: #a7d378; box-shadow: 0 0 9px rgba(167, 211, 120, .45); }

.player-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 108px;
}

.play-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid #f4cc7c;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 30%, #3a2b14, #0d0d0d 70%);
  box-shadow: 0 0 18px rgba(236, 180, 68, .55), inset 0 0 12px rgba(236, 180, 68, .17);
  color: #ffe6a7;
  font: inherit;
  font-size: 1.75rem;
  cursor: pointer;
}
.play-toggle span { display: block; transform: translateX(2px); }
.play-toggle[aria-pressed="true"] span { transform: none; font-size: 1.43rem; }
.play-toggle:hover { background: radial-gradient(circle at 45% 30%, #59401a, #0d0d0d 72%); }

.player-divider {
  flex: 0 0 1px;
  height: 74px;
  background: rgba(232, 189, 112, .6);
}
#playToggleButton[hidden] + .player-divider { display: none; }

.player-copy { flex: 1; min-width: 0; }
.player-copy h2 {
  margin: 0 0 5px;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.08;
}

#betaStatus {
  margin: 0;
  color: #cfb685;
  font-size: .88rem;
  font-style: italic;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#betaStatus[data-state="error"] { color: #ffcead; }

.signal-wave {
  flex: 0 0 170px;
  width: 170px;
  height: 48px;
  fill: none;
  stroke: #e7b96d;
  stroke-linecap: round;
  stroke-width: 1.4;
  opacity: .9;
  filter: drop-shadow(0 0 5px rgba(232, 189, 112, .5));
}

audio {
  display: block;
  width: 100%;
  margin: 12px 0 16px;
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-height: 54px;
  margin-top: 12px;
  border-top: 1px solid rgba(232, 189, 112, .42);
  color: var(--cream);
}
.player-actions button,
.player-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: .95rem;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
.player-actions button:not([hidden]) {
  margin-right: 7px;
  padding-right: 21px;
  border-right: 1px solid rgba(232, 189, 112, .6);
}
.player-actions button:hover,
.player-actions a:hover { color: var(--gold); }
.player-actions span { color: var(--gold); font-size: 1.4rem; line-height: 1; }
.player-fallback { margin: 5px 0 12px; color: var(--muted); font-size: .9rem; }

.guide {
  padding: 2px 0 40px;
  border-top: 1px solid rgba(232, 189, 112, .17);
}
.guide-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 19px 0 22px;
}
.guide-heading h2 {
  margin: 0;
  color: #e4d5b9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}
.guide-heading span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 189, 112, .8), transparent);
}
.guide-status {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}
.guide-status[data-state="available"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.guide-status[data-state="unavailable"],
.guide-status[data-state="stale"],
.guide-status[data-state="error"] { color: #ffcead; }

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.guide-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 137px;
  padding: 21px 20px;
  border: 1px solid #a7824a;
  border-radius: 14px;
  background: linear-gradient(130deg, #191714, #121214 74%);
}
.guide-card-now { border-color: #d5aa62; }
.guide-icon {
  width: 63px;
  height: 58px;
  padding: 5px 17px 5px 0;
  border-right: 1px solid rgba(232, 189, 112, .58);
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.guide-card-now .guide-icon circle { fill: currentColor; stroke: none; }
.guide-content { min-width: 0; }
.guide-card h3 {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}
.guide-title {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  line-height: 1.27;
  overflow-wrap: anywhere;
}
.guide-duration,
.guide-detail {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}
.beta-note {
  margin: 21px 0 0;
  color: #a9a397;
  font-size: .87rem;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0 31px;
  border-top: 1px solid rgba(232, 189, 112, .17);
  color: #a9a397;
  font-size: .82rem;
  line-height: 1.5;
}
.site-footer strong {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .2em;
  white-space: nowrap;
}
.site-footer p { margin: 0; }

a:focus-visible,
button:focus-visible,
audio:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .signal-wave { display: none; }
  .guide-cards { gap: 14px; }
  .guide-card { grid-template-columns: 57px minmax(0, 1fr); padding: 18px 15px; }
  .guide-icon { width: 49px; height: 50px; padding-right: 12px; }
}

@media (max-width: 900px) {
  .beta-shell { width: min(calc(100% - 64px), 760px); }
  .hero {
    grid-template-areas: "copy" "logo";
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 41px 0 31px;
  }
  .hero-art img { width: min(100%, 430px); }
  .hero-copy { width: 100%; }
  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-card-now { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .beta-ribbon { gap: 13px; min-height: 44px; font-size: .68rem; letter-spacing: .08em; }
  .beta-ribbon strong { letter-spacing: .13em; }
  .ribbon-divider { height: 16px; }
  .beta-shell { width: min(calc(100% - 36px), 520px); }
  .site-header { gap: 12px; padding: 24px 0 13px; }
  .brand { gap: .55em; font-size: 1.25rem; letter-spacing: .21em; }
  .hero { gap: 16px; padding: 30px 0 23px; }
  .eyebrow { gap: 13px; margin-bottom: 15px; font-size: .72rem; letter-spacing: .22em; }
  h1 { font-size: clamp(2.45rem, 10vw, 3.6rem); line-height: 1.05; }
  .intro { margin: 16px 0 23px; font-size: 1rem; }
  .player-card { padding: 18px 18px 7px; }
  .station-status { justify-content: flex-start; font-size: .8rem; }
  .player-main { gap: 15px; min-height: 76px; }
  .play-toggle { flex-basis: 64px; width: 64px; height: 64px; font-size: 1.45rem; }
  .player-divider { height: 55px; }
  .player-copy h2 { font-size: 1.8rem; }
  #betaStatus { font-size: .875rem; }
  .player-actions { justify-content: flex-start; margin-top: 15px; }
  .player-actions button,
  .player-actions a { padding: 8px 7px; font-size: .875rem; }
  .player-actions button:not([hidden]) { margin-right: 2px; padding-right: 12px; }
  .hero-art img { width: min(100%, 320px); }
  .guide-heading { margin-top: 17px; }
  .guide-cards { grid-template-columns: 1fr; gap: 12px; }
  .guide-card-now { grid-column: auto; }
  .guide-card { grid-template-columns: 68px minmax(0, 1fr); min-height: 120px; padding: 17px 18px; }
  .guide-icon { width: 55px; height: 52px; padding-right: 14px; }
  .guide-title { font-size: 1.3rem; }
  .site-footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 380px) {
  .beta-shell { width: calc(100% - 28px); }
  .brand { font-size: 1.08rem; letter-spacing: .16em; }
  .site-header { gap: 8px; }
  h1 { font-size: 2.33rem; }
  .player-card { padding-right: 14px; padding-left: 14px; }
  .player-main { gap: 11px; }
  .play-toggle { flex-basis: 58px; width: 58px; height: 58px; }
  .player-divider { height: 50px; }
  .player-copy h2 { font-size: 1.6rem; }
}

/* The hosted page is a static design preview with a real station status badge. */
.station-status { justify-content: flex-start; margin: 4px 0 0; }
.station-detail {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.5;
}
.play-toggle[disabled],
.play-toggle[disabled]:hover {
  cursor: default;
  background: radial-gradient(circle at 45% 30%, #3a2b14, #0d0d0d 70%);
  opacity: .72;
}
.preview-player-note {
  margin: 0;
  color: #cfb685;
  font-size: .88rem;
  font-style: italic;
  line-height: 1.45;
}
.player-actions .preview-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--cream);
  font-size: .95rem;
  line-height: 1.35;
}
.player-actions .preview-action + .preview-action {
  border-left: 1px solid rgba(232, 189, 112, .6);
}
@media (max-width: 620px) {
  .station-status { font-size: .875rem; }
  .player-actions .preview-action { padding: 8px 7px; font-size: .875rem; }
}
