@font-face {
  font-family: "Patrick Hand";
  src: url("PatrickHand-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Amatic SC";
  src: url("AmaticSC-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #382038;
  --paper: #ffb1d1;
  --yellow: #ffeb63;
  --pool: #69dfe4;
  --berry: #8a1451;
  --display: "Amatic SC", "Arial Narrow", sans-serif;
  color: var(--ink);
  font: 700 22px/1.15 var(--display);
  text-transform: lowercase;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--paper);
  background-image: radial-gradient(#a944711f .7px, transparent .9px), radial-gradient(#fff3 .7px, transparent 1px);
  background-size: 5px 7px, 9px 6px;
  background-position: 0 0, 3px 4px;
  border-bottom: 8px solid var(--pool);
}
header, main { width: min(1190px, 100%); margin: auto; padding-inline: clamp(20px,5vw,66px); }
header { padding-top: clamp(18px,4vh,38px); }
.masthead { display: inline-flex; align-items:center; gap:10px; font: 700 30px/1 var(--display); }
.masthead i { width:22px; height:22px; border-radius:49% 53% 45% 52%; background:repeating-radial-gradient(var(--ink) 0 2px,var(--yellow) 2.5px 3.5px); border:2px solid var(--ink); transform:rotate(-13deg); }
main section { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); align-items:center; gap:clamp(32px,6.5vw,90px); padding-block:clamp(40px,6.5vh,75px) 65px; }
.record-sleeve { position:relative; isolation:isolate; margin:6px 0 8px; padding:7px; background:var(--yellow); border:2px solid var(--ink); border-radius:3px 6px 2px 4px; box-shadow:7px 7px 0 var(--pool),9px 9px 0 var(--ink); transform:rotate(-2.2deg); }
.record-sleeve::before { content:""; position:absolute; z-index:1; top:-10px; width:22%; height:19px; left:39%; transform:rotate(5deg); background:#ffefafdc; border-inline:1px dashed #d5a761; }
.cover { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; border:1.5px solid var(--ink); }
.sleeve-bottom { display:flex; gap:12px; align-items:center; padding:6px 5px 1px; }
.sleeve-bottom span:first-child { font:700 clamp(26px,3vw,42px)/1 var(--display); }
.levels { display:flex; gap:3px; align-items:end; height:18px; transform:rotate(4deg); }
.levels b { display:block; width:3px; height:65%; background:var(--ink); transform-origin:bottom; }
.levels b:nth-child(2n){ height:100%; animation-delay:-.3s; }
.levels b:nth-child(3n){ height:80%; animation-delay:-.5s; }
.playing .levels b { animation-name:bounce; animation-duration:.8s; animation-direction:alternate; animation-timing-function:ease-in-out; animation-iteration-count:infinite; }
@keyframes bounce { to { transform:scaleY(.22); } }
#side { margin-left:auto; }
h1,p { margin:0; }
h1 { font:700 clamp(48px,5.2vw,76px)/.98 var(--display); transform:rotate(-2deg); transform-origin:left bottom; }
h1 em { display:inline-block; font-style:normal; font-size:1.53em; color:var(--berry); text-shadow:2px 2px 0 var(--yellow); }
.description { margin:16px 0 24px; max-width:100%; font:400 clamp(20px,1.9vw,25px)/1.12 "Patrick Hand", "Trebuchet MS", sans-serif; }
.player { position:relative; background:#fff4be; border:2px solid var(--ink); border-radius:6px 13px 5px 10px / 11px 6px 12px 5px; box-shadow:5px 5px 0 var(--ink); padding:clamp(14px,2.1vw,25px); }
.track-row,.controls,.times,.sound { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.track-choice { position:relative; display:inline-flex; gap:9px; align-items:center; min-width:0; min-height:44px; }
#track-name { font:700 clamp(25px,2.5vw,34px)/1.06 var(--display); }
.track-choice::after { content:""; border:solid var(--ink); border-width:0 2px 2px 0; padding:3px; transform:rotate(45deg); }
#tune { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
#counter,#side,.times { font: 700 22px/1 var(--display); font-variant-numeric:tabular-nums; white-space:nowrap; }
.progress { margin-top:5px; }
input[type=range] { display:block; margin:0; accent-color:var(--berry); cursor:pointer; }
#seek { width:100%; height:22px; }
.times { font-size:19px; }
.controls { margin-top:14px; justify-content:flex-start; }
button, input, select, option { font:inherit; text-transform:inherit; }
button { cursor:pointer; color:var(--ink); font:inherit; }
button:focus-visible,input:focus-visible,a:focus-visible,.track-choice:focus-within { outline:3px solid #174f89; outline-offset:3px; }
#play,#next,#mute { min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
#play,#next { border:2px solid var(--ink); box-shadow:2px 3px 0 var(--ink); }
#play { gap:9px; padding:1px 16px 3px; border-radius:6px 10px 6px 5px; background:var(--pool); font:700 29px/1 var(--display); white-space:nowrap; }
#next { width:44px; border-radius:48% 54% 46% 51%; background:var(--yellow); }
#play:hover,#next:hover { background:#ffccdf; }
#play:active,#next:active { transform:translate(1px,2px); box-shadow:none; }
.icon { display:inline-block; width:14px; height:14px; position:relative; }
.play-icon::before,.next-icon::before { content:""; position:absolute; top:1px; left:2px; border-left:10px solid currentColor; border-block:6px solid transparent; }
.playing .play-icon::before { inset:1px 2px; border:0; border-inline:3px solid currentColor; }
.next-icon::after { content:""; position:absolute; inset:1px 0 1px auto; width:2px; background:currentColor; }
.sound { margin-left:auto; gap:1px; }
#mute { background:transparent; border:0; min-width:40px; font-size:13px; }
.speaker { font-size:26px; }
#volume { width:clamp(39px,5.2vw,68px); }
#error:not(:empty) { margin-top:10px; font-size:21px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media (max-width:760px) {
  header,main { max-width:530px; }
  header { padding-top:14px; }
  .masthead { font-size:25px; }
  main section { grid-template-columns:minmax(0,1fr); gap:24px; padding:19px 0 32px; }
  .record-sleeve { margin:3px 4px 0; transform:rotate(-1.4deg); padding:5px; }
  .cover { height:clamp(138px,27svh,270px); object-position:50% 48%; }
  .sleeve-bottom { padding:2px 5px 0; }
  .sleeve-bottom span:first-child { font-size:25px; }
  h1 { font-size:clamp(35px,8vw,47px); }
  h1 br { display:none; }
  h1 em { font-size:1.18em; }
  .description { margin:10px 0 14px; }
  .player { padding:11px 14px 14px; }
  .controls { margin-top:8px; }
}
@media (max-width:365px) {
  header,main { padding-inline:15px; }
  .controls { gap:7px; }
  #play { padding-inline:10px; }
}
@media (prefers-reduced-motion:reduce) { .playing .levels b { animation:none; } }

main { position: relative; }
.station-credit {
  position: absolute;
  right: clamp(20px,5vw,66px);
  bottom: 42px;
  color: var(--ink);
  font: 700 clamp(22px,2.1vw,29px)/1.25 var(--display);
}
.station-credit a {
  color: var(--berry);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .15em;
}
@media (max-width:760px) {
  .station-credit { position: static; text-align: center; padding-bottom: 18px; }
}
