/* ============================================================
   kaethiar.com — one page, for now.
   Shared tokens and voices live in base.css (from _shared/).
   ============================================================ */

.opening {
  min-height: min(60vh, 30rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.opening__title { max-width: 16ch; margin-top: 1.4rem; }
.opening__blurb { margin-top: 1.9rem; max-width: 34rem; }

/* ---------- radio player ------------------------------------ */
/* Built here rather than embedded. AzuraCast's iframe could not be
   styled — neither of its custom-CSS routes works on this instance —
   so it always wore Bootstrap's blue and a system font. The station
   exposes a plain MP3 stream and a CORS-open now-playing API, which
   is everything a player needs. No iframe, no third-party CSS. */
.player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .35rem 1.35rem;
  max-width: 40rem;
  margin-top: 2rem;
}

.player__toggle {
  grid-row: span 2;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.player__toggle:hover {
  color: var(--night);
  background: var(--gold);
  border-color: var(--gold);
}
.player__toggle svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.player__toggle .icon-pause { display: none; }
.player[data-playing='true'] .icon-play { display: none; }
.player[data-playing='true'] .icon-pause { display: block; }

.player__title {
  font-size: 1.15rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.player__meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
}

.player__bar {
  grid-column: 2;
  height: 2px;
  margin-top: .7rem;
  background: rgba(244, 238, 229, .14);
  border-radius: 1px;
  overflow: hidden;
}
.player__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 1s linear;
}

.player__times {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--ash);
}

.player__fallback { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .player__fill { transition: none; }
}

@media (max-width: 34rem) {
  .player { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .player__toggle { grid-row: auto; }
  .player__bar, .player__times { grid-column: 1; }
}
