:root {
  color-scheme: dark;
  color: #fff5ed;
  background: #100b17;
  --station-ink: #100b17;
  --station-violet: #8151ff;
  --station-pink: #ff59c6;
  --station-gold: #f4d1a3;
  --station-paper: #fff5ed;
  --station-muted: #e4cce7;
  --station-line: #be93dd55;
  font: 1rem/1.35 var(--lm-text-font, 'LM Charte Sans', system-ui, sans-serif);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 16% 2%, #42228999, transparent 52rem),
    radial-gradient(ellipse at 91% 14%, #691a5266, transparent 44rem),
    var(--station-ink);
}
a { color: #dfc5f6; text-underline-offset: .21em; }
button, summary, input[type="range"] { cursor: pointer; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #f4c5ff; outline-offset: 4px; }
.station {
  width: min(calc(100% - max(32px, env(safe-area-inset-left) + env(safe-area-inset-right))), 72rem);
  margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
}
.station-skip { position: fixed; z-index: 50; top: 12px; left: 12px; padding: .75rem; background: var(--station-ink); }
.station-skip:not(:focus) { transform: translateY(-180%); }
.station-header {
  position: sticky;
  z-index: 4;
  top: max(8px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  flex-wrap: wrap;
  min-height: 66px;
  margin-bottom: clamp(12px, 2vw, 24px);
  padding: .4rem clamp(.65rem, 1.5vw, 1.15rem);
  border: 1px solid var(--station-line);
  border-radius: 2rem;
  background: #171020f5;
  box-shadow: 0 9px 22px #0a071b60;
}
.station-nav, .station-utilities, .station-languages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.station-utilities { gap: 4px 9px; }
.station-header a:not(.brand) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: .45rem;
  color: var(--station-paper);
  font-size: .875rem;
}
.station-nav a, .station-languages a { border-radius: 2rem; text-decoration: none; }
.station-header a:not(.brand):hover { color: var(--station-gold); }
.station-nav a:hover { background: #392653; }
.station-header a.station-vst {
  color: var(--station-gold);
  font-weight: 700;
}
.station-languages a { min-width: 44px; justify-content: center; }
.station-languages [aria-current="page"] { background: #342148; color: var(--station-gold); font-weight: 700; }
.station-languages [aria-current="page"]:hover { color: var(--station-paper); }
.station :is(#station-player, #player-live, #replays) { scroll-margin-top: 10rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff6ea;
  font: italic 900 1.34rem/1 var(--lm-text-font, 'LM Charte Sans', system-ui, sans-serif);
  letter-spacing: .035em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
}
.brand img { flex: 0 0 37px; border-radius: 8px; }
.brand-radio { color: #ca9cff; }
#detach { align-content: center; min-height: 44px; font-size: .83rem; }
.station-player {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(16px, 3.5vw, 42px);
  border: 1px solid var(--station-line);
  border-radius: clamp(18px, 3vw, 38px);
  background: #21162c;
  box-shadow: 0 16px 50px #0b07138c;
}
.station-player::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(0deg, #100b17 4%, #150b20a6 70%),
    radial-gradient(ellipse at 15% 13%, #62389dc2, transparent 66%),
    url('/assets/radio-programme/hangar-1440.webp') 74% 52% / cover no-repeat;
}
.record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 4vw, 52px);
  max-width: 60rem;
  margin-inline: auto;
}
.artwork {
  display: block;
  width: clamp(80px, 24vw, 220px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #eccfee66;
  border-radius: clamp(8px, 1.6vw, 20px);
  background: #392149;
  box-shadow: 0 16px 40px #0e07187a;
}
.artwork[data-kind="episode"] { object-position: 50% 45%; }
@media (max-width: 640px) {
  .station-player::before {
    background-image:
      linear-gradient(0deg, #100b17 4%, #150b20a6 70%),
      radial-gradient(ellipse at 15% 13%, #62389dc2, transparent 66%),
      url('/assets/radio-programme/hangar-720.webp');
  }
}
.record-meta { min-width: 0; }
.on-air {
  margin: 0 0 2px;
  color: var(--station-gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: 0 1px 4px #0b0612;
  text-transform: uppercase;
}
.on-air::before {
  display: inline-block;
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #be9fcf;
}
.on-air[data-playing="true"]::before {
  background: var(--station-pink);
  box-shadow: 0 0 10px #ff57c9bd;
}
h1 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff4e4;
  text-shadow: 0 2px 12px #0e0716;
  font: 800 clamp(1.85rem, 7.9vw, 3.2rem)/.99 var(--lm-heading, 'LM Charte Sans', system-ui, sans-serif);
}
#player-artist { margin: .5rem 0 0; color: var(--station-paper); font-size: clamp(.9rem, 2vw, 1.2rem); }
#player-label { margin: .23rem 0 0; color: var(--station-muted); font-size: .875rem; }
#player-title { font: 800 clamp(1.65rem, 5vw, 4.7rem)/.97 var(--lm-heading, 'LM Charte Sans', system-ui, sans-serif); text-wrap: balance; }
.player-antenna {
  --dial-size: clamp(64px, 16vw, 95px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dial-size) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  min-height: calc(var(--dial-size) + 12px);
  margin: 9px auto 0;
  max-width: 60rem;
}
.antenna-wing {
  position: relative;
  display: block;
  min-width: 0;
  height: clamp(37px, 6vw, 72px);
}
.antenna-wing svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px #a555ee90);
}
.antenna-bars { fill: #e2b3ff; }
.antenna-bars-played {
  fill: var(--station-pink);
  clip-path: inset(0 calc(100% - var(--antenna-fill)) 0 0);
}
.player-antenna.is-playing .antenna-wing svg { filter: drop-shadow(0 0 6px #ff65ce8a); }
.player-antenna[data-wave-mode="signal"] .antenna-bars { fill: #f0abff; }
.player-antenna[data-wave-mode="signal"] .antenna-bars-played { fill: #ff92d2; }
.antenna-play {
  display: grid;
  place-items: center;
  width: var(--dial-size);
  height: var(--dial-size);
  padding: 0;
  border: 1px solid #f4d5ff;
  border-radius: 50%;
  color: #1b0928;
  background: linear-gradient(145deg,#fff0f1 3%,#d8b3ff 57%,#b37cea);
  box-shadow: inset 0 0 0 4px #fae8ff50, 0 0 0 4px #dd9bff27, 0 0 29px #b459f976;
}
.antenna-play:hover { background: #f2d5ff; }
.antenna-play:disabled { opacity: .65; cursor: wait; }
.play-icon {
  display: block;
  width: .95rem;
  height: 1.06rem;
  margin-inline-start: .16rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.antenna-play[aria-pressed="true"] .play-icon {
  width: .91rem;
  margin-inline-start: 0;
  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0);
}
.player-status { margin: 0 0 3px; color: #f5c6f7; font-size: .82rem; }
.player-status:empty { display: none; }
.station-play-caption {
  margin: .5rem 0 1rem;
  color: var(--station-paper);
  text-align: center;
  font-weight: 700;
}
.station-player .radio-rotation-summary {
  margin: .9rem auto 0;
  max-width: 60rem;
}
.station-player .radio-rotation-summary select { min-height: 44px; }
#replay-position, .volume, .controls { display: flex; align-items: center; gap: 8px; }
#replay-position { margin: 1px 0 4px; }
#radio-progress, #volume { min-width: 0; flex: 1; accent-color: #e7aafa; }
#radio-time { min-width: 4ch; color: #e2cbe7; font-size: .75rem; font-variant-numeric: tabular-nums; }
.controls {
  min-height: 47px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .875rem;
  padding-block: .45rem;
  border-top: 1px solid var(--station-line);
}
.station-player-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem .45rem;
  padding-top: .3rem;
}
.station-player-links .station-action { min-height: 44px; }
.controls :is(a,button) { min-height: 44px; align-content: center; }
.controls input[type="range"] { min-height: 44px; }
.station-action {
  padding: 0 .85rem;
  border: 1px solid var(--station-line);
  border-radius: 1.5rem;
  background: #261935;
}
.station-action:hover { border-color: var(--station-gold); }
.station-player #play:hover:not(:disabled) { box-shadow: 0 0 0 4px #ff59c642, 0 0 26px #b975ed8c; }
.volume { width: min(100%, 175px); color: #f1e4ef; }
@media (max-width: 540px) {
  .station-header { position: relative; top: auto; border-radius: 1.25rem; }
  .station-nav {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid var(--station-line);
  }
  .station-utilities { flex: 1 1 auto; }
  .station :is(#station-player, #player-live, #replays) { scroll-margin-top: 1rem; }
  .record { align-items: start; }
  .controls { justify-content: flex-start; gap: .25rem .8rem; }
  .station-player-links { justify-content: flex-start; }
  .controls .volume { flex: 0 1 min(100%, 175px); }
}
#back {
  min-height: 39px;
  padding-inline: 8px;
  border: 1px solid #ab84c4;
  border-radius: 5px;
  background: #3e2552;
}
#back:hover { background: #58336e; }
details { margin-top: 5px; border-bottom: 1px solid #624c6f; }
summary { display: list-item; align-content: center; min-height: 42px; font-size: .94rem; font-weight: 700; }
ul { margin: 0 0 9px; padding: 0; list-style: none; }
li { display: flex; align-items: center; gap: 8px; min-height: 42px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 14px; font-size: .81rem; }
footer a { align-content: center; min-height: 42px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body[data-compact] .station { width: min(100% - 22px, 414px); }
body[data-compact] .station-header { position: relative; top: auto; border-radius: 1.25rem; }
body[data-compact] .station-nav { order: 3; }
body[data-compact] #player-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
body[data-compact] .artwork { width: clamp(70px, 22vw, 110px); }
@media (max-width: 350px) {
  .station { width: calc(100% - 16px); }
  .volume { width: min(47%, 175px); }
}
@media (pointer: coarse) { #volume, #back { min-height: 44px; } }

.player-room-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .7rem; font-size: .875rem; font-weight: 750; }
.player-room-link:focus-visible { outline: 2px solid #f3c9fb; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .station-header a, .station-action { transition: color 160ms ease, background-color 160ms ease; }
}
