[hidden] {
  display: none !important
}

.gobtn.nofx::after {
  content: none
}

.menu {
  display: flex;
  justify-content: center
}

.gobtn,
.ctl button,
.back {
  font: 400 10px/1 'Press Start 2P', 'Courier New', monospace;
  color: #fff;
  background: var(--panel2);
  border: 2px outset #bbb;
  padding: 9px 12px;
  cursor: inherit
}

.gobtn {
  font-size: 12px;
  padding: 11px 18px;
  width: min(100%, 360px)
}

.gobtn::after {
  content: " <<";
  animation: blink 1s steps(1) infinite
}

.gobtn:hover,
.ctl button:hover,
.back:hover {
  background: #fff;
  color: #000
}

.gobtn:active,
.ctl button:active,
.back:active {
  border-style: inset
}

.wipe {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  pointer-events: none;
  transform: translateY(100%);
  background-image: repeating-linear-gradient(#000 0 12px, #111 12px 14px)
}

.wipe.run {
  animation: wipe .9s steps(9) forwards
}

@keyframes wipe {
  0% {
    transform: translateY(100%)
  }

  45%,
  55% {
    transform: translateY(0)
  }

  100% {
    transform: translateY(-100%)
  }
}

.tracks.flash {
  animation: flash .6s steps(2) 3
}

@keyframes flash {
  50% {
    outline: 3px solid #fff;
    outline-offset: 3px
  }
}

.deck {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start
}

.art {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border: 3px ridge var(--edge);
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden
}

.art .ph {
  font: 400 40px 'Press Start 2P', monospace;
  color: #666
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none
}

.art img.on {
  display: block
}

.now {
  font: 400 clamp(11px, 2vw, 15px)/1.4 'Press Start 2P', 'Courier New', monospace;
  word-break: break-word
}

.playing .now::before {
  content: "> ";
  animation: blink 1s steps(1) infinite
}

.when {
  font-size: .85em;
  color: #aaa;
  margin: 2px 0 6px
}

#t-vis {
  display: block;
  width: 100%;
  height: 36px;
  background: #000;
  border: 2px inset #777;
  image-rendering: pixelated
}

.seek {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font: 400 .8em monospace
}

.seek input {
  flex: 1;
  min-width: 0
}

.ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center
}

.ctl button {
  padding: 8px 10px;
  font-size: 9px
}

.ctl button.on {
  background: #fff;
  color: #000
}

.vol {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto
}

.vol input {
  width: 90px
}

.tracks input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  background: transparent
}

.tracks input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  background: #000;
  border: 2px inset #777
}

.tracks input[type=range]::-moz-range-track {
  height: 8px;
  background: #000;
  border: 2px inset #777
}

.tracks input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 18px;
  margin-top: -7px;
  background: #ddd;
  border: 2px outset #fff;
  border-radius: 0
}

.tracks input[type=range]::-moz-range-thumb {
  width: 8px;
  height: 14px;
  background: #ddd;
  border: 2px outset #fff;
  border-radius: 0
}

.plist {
  list-style: none;
  margin: 12px 0 10px;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  border: 2px inset #777;
  background: #000;
  counter-reset: n
}

.plist li {
  counter-increment: n;
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px dotted #444;
  cursor: inherit
}

.plist li::before {
  content: counter(n, decimal-leading-zero);
  font: 400 9px 'Press Start 2P', monospace;
  color: #888
}

.plist li:hover {
  background: #1c1c1c
}

.plist li.act {
  background: #fff;
  color: #000
}

.plist li.act::before {
  color: #000
}

.plist .th {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #777;
  background: #111
}

.plist .tt {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.plist .tt small {
  display: block;
  font-weight: 400;
  opacity: .65
}

.plist .du {
  font: 400 .8em monospace
}

.back {
  display: block;
  margin: 0 auto
}

@media(max-width:600px) {
  .deck {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center
  }

  .info {
    width: 100%
  }

  .art {
    width: min(180px, 70%)
  }

  .ctl {
    justify-content: center
  }

  .vol {
    margin: 6px 0 0;
    width: 100%;
    justify-content: center
  }

  .vol input {
    width: 60%
  }

  .plist li {
    grid-template-columns: 44px minmax(0, 1fr) auto
  }

  .plist li::before {
    display: none
  }
}

@media(prefers-reduced-motion:reduce) {
  .wipe {
    display: none
  }

  .gobtn::after {
    animation: none
  }
}

.tview {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr) minmax(0, 160px);
  grid-template-areas: "l c r";
  gap: 8px;
  align-items: stretch
}

.tview>.l {
  grid-area: l
}

.tview>.tracks {
  grid-area: c
}

.tview>.r {
  grid-area: r
}

.side {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  background: var(--panel);
  border: 2px ridge var(--edge);
  box-shadow: 0 0 0 1px #000, 4px 4px 0 #555
}

.side .col {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: up 40s linear infinite
}

.side.r .col {
  animation-direction: reverse
}

.side img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto
}

.side:hover .col {
  animation-play-state: paused
}

@media(max-width:820px) {
  .tview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "l" "c" "r"
  }

  .side {
    min-height: 0;
    height: 34px
  }

  .side .col {
    flex-direction: row;
    width: max-content;
    right: auto;
    height: 100%;
    animation: belt 30s linear infinite
  }

  .side.r .col {
    animation-direction: reverse
  }

  .side img {
    width: auto;
    height: 22px;
    max-width: none
  }
}

@media(prefers-reduced-motion:reduce) {
  .side .col {
    animation: none
  }
}