:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  display: block;
  color: #bdbdbd;
  background: #000;
  font: 300 12px/1.4 'Doto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .06em;
}
button, select, input {
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  font: inherit;
  text-transform: lowercase;
}
.player { position: relative; z-index: 4; width: min(680px, calc(100vw - 32px)); margin: clamp(88px,11.5vh,132px) auto 28px; }
.player-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 4px; border-bottom: 1px dotted currentColor; }
.radio-wordmark { padding: 0; border: 0; cursor: pointer; }
.radio-wordmark:hover,
.radio-wordmark:focus-visible { filter: blur(.15px); }
.player-actions { display: flex; align-items: center; gap: 10px; font-size: 10px; }
.player-actions button { padding: 0; border: 0; cursor: pointer; }
.player-body { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.cover { width: 116px; height: 86px; padding: 0; overflow: hidden; cursor: zoom-in; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.marquee { overflow: hidden; white-space: nowrap; border-bottom: 1px dotted currentColor; }
.marquee span { display: inline-block; min-width: 100%; padding-left: 100%; animation: marquee 13s linear infinite; }
.controls { display: flex; gap: 5px; margin-top: 10px; }
.controls button { min-width: 48px; cursor: pointer; }
.seek-wrap { position: relative; margin-top: 10px; }
.seek-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; transform: translateY(-50%); background: repeating-linear-gradient(90deg,currentColor 0 1px,transparent 1px 7px); opacity: .24; pointer-events: none; }
[data-seek] { position: relative; z-index: 2; display: block; width: 100%; height: 18px; margin: 0; padding: 0; border: 0; background: transparent; cursor: ew-resize; appearance: none; }
[data-seek]::-webkit-slider-runnable-track { height: 1px; background: currentColor; }
[data-seek]::-webkit-slider-thumb { width: 8px; height: 14px; margin-top: -6px; background: currentColor; border: 0; border-radius: 0; appearance: none; }
[data-seek]::-moz-range-track { height: 1px; background: currentColor; }
[data-seek]::-moz-range-thumb { width: 8px; height: 14px; background: currentColor; border: 0; border-radius: 0; }
.player-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.player-selects label { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px; align-items: center; font-size: 10px; }
.player-selects select { width: 100%; min-width: 0; }
.time { margin-top: 6px; color: #777; font-size: 10px; }
.spectrum { display: block; width: 100%; height: 36px; margin: 5px 0 3px; border-bottom: 1px dotted currentColor; opacity: .86; cursor: pointer; }
.spectrum:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px; }
.volume-control { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px; align-items: center; margin-top: 5px; font-size: 9px; }
[data-volume] { width: 100%; height: 12px; padding: 0; border: 0; cursor: ew-resize; appearance: none; }
[data-volume]::-webkit-slider-runnable-track { height: 1px; background: currentColor; }
[data-volume]::-webkit-slider-thumb { width: 6px; height: 8px; margin-top: -4px; background: currentColor; border: 0; border-radius: 0; appearance: none; }
[data-volume]::-moz-range-track { height: 1px; background: currentColor; }
[data-volume]::-moz-range-thumb { width: 6px; height: 8px; background: currentColor; border: 0; border-radius: 0; }
.playlist-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; padding-top: 8px; border-top: 1px dotted currentColor; }
.playlist-gallery button { position: relative; width: 82px; padding: 3px; border: 1px solid transparent; cursor: pointer; opacity: .55; transition: opacity .25s ease, filter .25s ease, border-color .25s ease; }
.playlist-gallery button:hover,
.playlist-gallery button:focus-visible,
.playlist-gallery button.active { opacity: 1; border-color: currentColor; filter: none; }
.playlist-gallery img { display: block; width: 100%; height: 48px; object-fit: cover; pointer-events: none; }
.playlist-gallery span { display: block; margin-top: 3px; overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.playlist-gallery button.is-locked img { filter: grayscale(1) brightness(.38); }
.playlist-gallery button.is-locked::after { content: "lock"; position: absolute; inset: 3px 3px auto; display: grid; place-items: center; height: 48px; color: #fff; background: rgba(0,0,0,.16); font-size: 8px; letter-spacing: .06em; pointer-events: none; }
.album-radio { position: relative; z-index: 4; width: min(680px, calc(100vw - 32px)); margin: 0 auto 96px; }
.album-toggle { padding: 0; border: 0; cursor: pointer; opacity: .55; }
.album-toggle:hover,
.album-toggle:focus-visible { opacity: 1; text-decoration: underline; }
.album-panel { display: grid; grid-template-rows: 0fr; margin-top: 8px; overflow: hidden; opacity: 0; filter: blur(3px); transition: grid-template-rows .7s cubic-bezier(.16,1,.3,1), opacity .45s ease, filter .55s ease; }
.album-panel::before { content: ""; min-height: 0; }
.album-panel iframe { grid-row: 1; width: 100%; min-height: 0; border: 0; border-radius: 12px; }
.album-panel.open { grid-template-rows: 450px; opacity: .84; filter: blur(0); }
.radio-ascii { position: fixed; right: clamp(18px,6vw,110px); top: 50%; z-index: 2; margin: 0; color: currentColor; font: 9px/1.04 "Courier New", monospace; letter-spacing: 0; white-space: pre; opacity: .17; transform: translateY(-50%); pointer-events: none; }
.cover-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
  background: rgba(0,0,0,.88);
  opacity: 0;
  backdrop-filter: blur(0);
  cursor: zoom-out;
  pointer-events: none;
  transition: opacity .46s ease, visibility 0s linear .46s, backdrop-filter .46s ease;
}
.cover-view.open { visibility: visible; opacity: 1; backdrop-filter: blur(5px); pointer-events: auto; transition-delay: 0s; }
.cover-view img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; filter: blur(8px); transform: scale(.88); transition: opacity .5s ease, transform .72s cubic-bezier(.16,1,.3,1), filter .52s ease; }
.cover-view.open img { opacity: 1; filter: blur(0); transform: scale(1); }
html[data-theme="light"] body { color: #222; background: #ffffff; }
html[data-theme="light"] .player { color: #222; }
@keyframes marquee { to { transform: translateX(-200%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; padding-left: 0; } }
@media (max-width: 620px) {
  .player { width: calc(100vw - 24px); margin-top: 70px; }
  .player-head { align-items: flex-start; }
  .player-actions { flex-wrap: wrap; justify-content: flex-end; }
  .player-body { grid-template-columns: 78px minmax(0, 1fr); }
  .cover { width: 78px; height: 58px; }
  .player-selects { grid-template-columns: 1fr; }
  .radio-ascii { position: static; margin: 28px auto 68px; text-align: left; transform: none; }
  .album-radio { margin-bottom: 86px; }
}
