:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --ink: #11292e;
  --red: #a83e2a;
  --rule: #b8b9ac;
  --focus: #ffb650;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: #f6f3ec; background: var(--paper); color: #11292e; color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.station { width: 92%; max-width: 1120px; width: min(1120px,calc(100% - clamp(28px,8vw,104px))); margin: 0 auto; }
.masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.1rem;
  padding: 20px 0 16px; padding: clamp(16px,2.1vw,28px) 0 clamp(12px,1.5vw,20px);
  border-bottom: 4px double var(--ink); margin-bottom: clamp(12px,2.1vw,25px);
}
h1 { margin: 0; font: 700 2.5rem/.98 Georgia, "Times New Roman", serif; font-size: clamp(38px,4vw,62px); letter-spacing: -.065em; white-space: nowrap; }
h1 span {
  display: inline-block; margin-left: .02em; padding: .14em .2em .15em .15em;
  vertical-align: .17em; font: 780 .44em/1 system-ui,sans-serif; letter-spacing: -.055em;
  background: #a83e2a; background: var(--red); color: white;
}
.programme { font-size: .91rem; font-weight: 650; }
.programme span { display: inline-block; margin-left: .22em; color: var(--red); }
.player { background: #0e232a; color: white; }
.screen { position: relative; background: #07141a; }
.screen::before { content: ""; display: block; padding-top: 56.25%; }
video { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.controls { display: flex; align-items: center; gap: 1rem; padding: 12px 16px; background: #11292e; }
.controls button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .65em; border: 0; border-radius: 3px; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.play { padding: .65rem 1rem; background: #f3eada; color: #11292e; color: var(--ink); }
.play:hover { background: white; }
.play-icon { display: block; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.player[data-state="playing"] .play-icon { width: 10px; height: 12px; border: 0; border-inline: 3px solid; }
.player[data-state="connecting"] .play-icon { width: 9px; height: 9px; border: 0; background: currentColor; }
.status { min-width: 0; margin: 0; font-size: .85rem; color: #d4ded9; }
.status:empty { display: none; }
.player[data-state="playing"] .status::before {
  content: ""; display: inline-block; width: .46rem; height: .46rem; margin-right: .48rem;
  background: #e88969; border-radius: 50%; vertical-align: .07em;
}
.tools { display: flex; gap: .25rem; margin-left: auto; }
.tools button { padding: .45rem .7rem; background: transparent; color: white; }
.tools button:hover { background: #284349; }
.speaker { position: relative; display: inline-block; width: 18px; height: 15px; }
.speaker::before { content: ""; position: absolute; top: 2px; left: 0; width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 32%,34% 32%,100% 0,100% 100%,34% 68%,0 68%); }
.speaker i { position: absolute; width: 8px; height: 10px; top: 3px; left: 8px; border-right: 2px solid; border-radius: 50%; }
#sound[aria-pressed="true"] .speaker i { width: 7px; height: 2px; top: 7px; left: 11px; border: 0; border-radius: 0; background: currentColor; transform: rotate(-45deg); }
.expand { width: 14px; height: 14px; display: inline-block; color: white;
  background: linear-gradient(currentColor,currentColor) left top/5px 2px, linear-gradient(currentColor,currentColor) left top/2px 5px,
    linear-gradient(currentColor,currentColor) right top/5px 2px, linear-gradient(currentColor,currentColor) right top/2px 5px,
    linear-gradient(currentColor,currentColor) left bottom/5px 2px, linear-gradient(currentColor,currentColor) left bottom/2px 5px,
    linear-gradient(currentColor,currentColor) right bottom/5px 2px, linear-gradient(currentColor,currentColor) right bottom/2px 5px;
  background-repeat: no-repeat; }
footer { display: flex; justify-content: space-between; gap: .55rem 1rem; flex-wrap: wrap; padding: 16px 0 24px; font-size: .8rem; color: #465653; }
footer nav { display: flex; gap: 1.2em; }
.player-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: .6rem; }
.player-links a { display: inline-block; padding: .5rem .15rem; font-size: .94rem; font-weight: 600; }
.player-links span { color: #a83e2a; }
button:focus, a:focus { outline: 3px solid #c16614; outline-offset: 2px; }
.controls button:focus { outline-color: #ffca69; }
body[data-remote] :focus, body[data-tv] :focus { outline: 4px solid #ffbd53; outline-offset: 2px; box-shadow: 0 0 0 7px #10252a; }
.player:-webkit-full-screen { display: -webkit-flex; display: flex; flex-direction: column; width: 100%; height: 100%; }
.player:-webkit-full-screen .screen { flex: 1; min-height: 0; }
.player:-webkit-full-screen .screen::before { display: none; }
.player:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; }
.player:fullscreen .screen { aspect-ratio: auto; flex: 1; min-height: 0; }
.player:fullscreen .screen::before { display: none; }
@media (min-width: 900px) {
  body[data-tv] .station { width: 90%; max-width: 135vh; padding: 2vh 0; }
  body[data-tv] .masthead { padding: 4px 0 12px; margin-bottom: 12px; }
  body[data-tv] h1 { font-size: 3rem; }
  body[data-tv] .programme, body[data-tv] .status, body[data-tv] .player-links a { font-size: 1.35rem; }
  body[data-tv] .controls { padding: 12px 16px; }
  body[data-tv] .controls button { min-height: 58px; padding: .65rem 1.1rem; font-size: 1.45rem; }
  body[data-tv] .player-links a { margin-right: .8rem; }
  body[data-tv] footer { padding: 8px 0; font-size: 1.1rem; }
}
@media (max-width: 650px) {
  .station { width: calc(100% - 24px); }
  .masthead { flex-wrap: wrap; gap: .6rem 1rem; }
  h1 { font-size: 2rem; font-size: clamp(32px,7vw,38px); }
  .programme { font-size: .82rem; }
  .controls { flex-wrap: wrap; padding: 8px; gap: 0 .3rem; }
  .controls button { min-width: 44px; }
  .status:not(:empty) { order: 3; width: 100%; padding: 4px 5px 2px; }
  .tools button { padding: .45rem .5rem; }
}
@media (max-width: 410px) { .tools button > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
