.listening-room {
  container-type: inline-size;
}
.record {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  align-items: start;
  gap: clamp(28px, 5cqi, 72px);
}
.sleeve { min-width: 0; }
.platter {
  position: relative;
  isolation: isolate;
  padding: 7% 0 5%;
}
.cover-play {
  position: relative;
  display: block;
  width: 77%;
  padding: 0;
  border: 0;
  background: #151517;
  cursor: pointer;
  box-shadow: 5px 2px 7px #0009, 1px 0 #ffffff45;
}
.cover-play::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 1px 1px 1px #fff8, inset -2px 0 3px #0003;
}
.cover-play img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.vinyl {
  position: absolute;
  right: 0;
  top: 50%;
  width: 74%;
  aspect-ratio: 1;
  translate: 0 -49%;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #737377;
  background:
    repeating-radial-gradient(circle, transparent 0 1px, #0006 1.3px 1.8px, #ffffff10 2px 2.5px),
    conic-gradient(from 16deg, #17171a, #3b3b40 7%, #111113 12%, #141417 20%, #8a898b 26%, #303034 30%, #121214 39%, #353539 49%, #141416 58%, #606067 70%, #111113 81%, #454548 91%, #17171a);
  box-shadow: inset 0 0 0 3px #161619, inset 0 0 0 4px #ffffff32, 0 6px 16px #0009;
}
.vinyl::before {
  content: "";
  position: absolute;
  inset: 1.6%;
  border-radius: inherit;
  background:
    repeating-radial-gradient(circle at 50% 50.15%, transparent 0 12%, #07070998 12.15% 12.5%, #fff2 12.6% 12.8%, transparent 13%),
    conic-gradient(from 10deg, transparent, #ffffff1f 15deg, transparent 46deg 181deg, #ffffff19 190deg, transparent 213deg);
  animation: vinyl-rotation 12s linear infinite paused;
}
.record.playing .vinyl::before { animation-play-state: running; }
@keyframes vinyl-rotation { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .vinyl::before { animation: none; } }

.console {
  padding: clamp(16px, 2.4cqi, 28px);
  background: linear-gradient(165deg, #29292b 0%, #181819 45%, #121213 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px #ffffff38, inset 0 -1px #ffffff10;
  color: #f4f4f2;
}
.console-head, .transport, .timeline, .level { display: flex; align-items: center; }
.console-head { justify-content: space-between; gap: 10px; }
.now-track { min-width: 0; }
.now-track strong, .now-track span { display: block; }
.now-track strong { font-size: clamp(18px, 2.5cqi, 30px); letter-spacing: -.045em; line-height: 1.02; overflow-wrap: anywhere; }
.now-track span { margin-top: 5px; font-size: 13px; color: #bababc; }
.transport { flex: none; gap: 3px; }
.transport button {
  display: grid;
  place-content: center;
  position: relative;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  color: #e5e5e3;
  padding: 0;
  width: 32px;
  height: 36px;
}
.transport .transport-play {
  width: 40px;
  height: 40px;
  color: #171719;
  background: linear-gradient(150deg, #fafaf8, #bcbcc0);
  box-shadow: inset 0 1px #fff, 0 2px 3px #0006;
}
.transport-play::before, .skip::before {
  content: "";
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
}
.transport-play::before { margin-left: 2px; }
.record.playing .transport-play::before {
  width: 4px;
  height: 12px;
  border: 0;
  margin-left: 0;
  border-inline: 3px solid currentColor;
  box-sizing: content-box;
}
.skip::before { border-block-width: 4px; border-left-width: 6px; }
.skip::after { content: ""; position: absolute; width: 2px; height: 8px; background: currentColor; left: calc(50% + 4px); top: calc(50% - 4px); }
.previous { transform: rotate(180deg); }
.transport .skip:hover { background-color: #ffffff12; }
.timeline { gap: 10px; margin-top: 14px; }
.timeline span, .level { color: #b9b9bb; font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline input, .level input {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border: 0;
}
.console input::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px;
  background: linear-gradient(to right, #e2e2df var(--fill, 0%), #555558 var(--fill, 0%));
}
.console input::-moz-range-track { height: 3px; border-radius: 2px; background: #555558; }
.console input::-moz-range-progress { height: 3px; background: #e2e2df; }
.console input::-webkit-slider-thumb {
  appearance: none; width: 9px; height: 9px; margin-top: -3px;
  background: #e7e7e5; border-radius: 50%; border: 0;
}
.console input::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #e7e7e5; }
.timeline input:disabled { opacity: .55; cursor: default; }
.level { gap: 9px; width: fit-content; margin: 4px 0 0 auto; }
.level input { width: clamp(60px, 11cqi, 110px); }
#audio-error:empty { display: none; }

.songs { list-style: none; padding: 0; margin: 0; }
.track {
  display: grid;
  position: relative;
  grid-template-columns: 1.7em minmax(0, 1fr);
  align-content: center;
  column-gap: .55em;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px 8px 0;
  border: 0;
  background: none;
  color: #dadad9;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.track strong, .track span { grid-column: 2; }
.track strong { grid-row: 1; font-size: clamp(15px, 1.75cqi, 19px); font-weight: 540; line-height: 1.17; letter-spacing: -.028em; }
.track span { margin-top: 2px; font-size: 12px; line-height: 1.3; color: #a5a5a8; }
.track .rank {
  grid-column: 1; grid-row: 1; align-self: baseline;
  font-weight: 650; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums;
}
.rank-1 { color: #e7c266; }
.rank-2 { color: #c6cbd1; }
.rank-3 { color: #cf9771; }
.track.current, .track:hover { color: #fff; background-color: #ffffff0e; }
.track.current::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.listening-room :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@container (max-width: 39rem) {
  .record { grid-template-columns: 1fr; row-gap: 18px; }
  .platter { padding-top: 0; }
  .vinyl { top: 46%; }
}
@container (max-width: 21rem) {
  .console { padding: 14px 12px; }
  .transport { gap: 0; }
  .transport .skip { width: 25px; }
}
