.listening-room {
  --accent: #235743;
  --tint: #e9f0e5;
  --ink: #25342c;
  color: var(--ink);
  width: min(88%, 70rem);
  margin-inline: auto;
  padding: clamp(1.4rem, 5vh, 4rem) 0 3rem;
}
.listening-room [hidden] {display: none !important}
.deck {max-width: 68rem; margin: auto}
.mix-title {font: italic 400 clamp(1.12rem,1.6vw,1.45rem)/1.3 var(--display); color: #5c655b; letter-spacing: -.025em}
.track {scroll-margin-top: 6.25rem}
.turntable {position: relative; isolation: isolate; width: min(100%,35rem); container-type: inline-size}
.sleeve {
  position: relative; width: 77%; aspect-ratio: 1; overflow: hidden; isolation: isolate;
  border-radius: 2px; border: 1px solid #28291d38;
  box-shadow: 1px 2px 3px #20271d2a,3px 18px 24px -14px #28372963;
}
.sleeve::after {content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 2px 0 1px #fffbdd56, inset -2px 0 2px #201e1a25}
.sleeve > img, .sleeve video {display: block; width: 100%; height: 100%; object-fit: contain}
.vinyl {
  position: absolute; top: 3%; left: 25%; width: 73%; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  overflow: hidden; background: #222623;
  border: 2px solid #222623; box-shadow: 3px 8px 12px -8px #101b1575;
}
.vinyl::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle, #211f1e 0 1.1%, #d8bf8e 1.2% 15%, #a88964 15.2% 18%, transparent 18.2%),
    repeating-radial-gradient(circle, #ffffff18 0 .6px, transparent 1px 3px),
    conic-gradient(from 18deg,#222423,#161716 12%, #515451 24%,#292c2a 31%,#101310 50%,#3a3f3b 64%,#616460 74%,#1d201e 83%,#222423);
}
.team-sleeve {display: grid; place-items: center; padding: 3%; background: repeating-linear-gradient(120deg,transparent 0 10px,#ffffff07 11px 14px),#234c3b}
.team-sleeve img {height: auto; max-height: 100%; box-shadow: 0 0 0 1px #f8e9c259}
.rain-sleeve {background: #2c3533}
.rain-sleeve img {object-fit: cover; object-position: center 60%}
.boxing-sleeve {background: #161918}
.boxing-sleeve video {position: relative; z-index: 1}
.reading-sleeve {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 5%;
  padding: 0 6%;
  background: repeating-linear-gradient(135deg,#eee2c530 0 1px,transparent 1px 5px),linear-gradient(140deg,#e2ccaa,#f1e4c6 53%,#c9b794);
}
.reading-sleeve .book {margin: 0; min-width: 0; text-align: center}
.reading-sleeve .book:first-child {transform: translateY(-5%) rotate(-4deg)}
.reading-sleeve .book:last-child {transform: translateY(5%) rotate(3deg)}
.reading-sleeve .book img {
  display: block; width: 100%; height: auto;
  box-shadow: 1px 2px 1px #77674966, 3px 6px 10px #38291842;
}
.reading-sleeve figcaption {
  margin-top: .65em; color: #514331;
  font: italic 500 clamp(.69rem, 2.6cqw, .95rem)/1.2 var(--display);
}
.chai-sleeve {background:#342a21; padding:2.3%; display:flex; flex-direction:column; gap:2.5%}
.chai-roll {display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:4px; height:100%}
.chai-roll a {min-width:0; min-height:0; display:block; position:relative}
.chai-roll img, .chai-feature {width:100%; height:100%; display:block; object-fit:cover}
.chai-display {min-height:0; flex:1; position:relative; background:#241d17}
.chai-display .chai-feature {object-fit:contain}
.chai-sleeve.enlarged .chai-roll {height:20%; grid-template:1fr / repeat(4,minmax(0,1fr))}
.chai-roll a[aria-current="true"] {outline:2px solid #ffe2a3; outline-offset:-2px}
.chai-roll a[aria-current="true"]::after {content:"";position:absolute;inset:0;border:2px solid #ffe2a3}
.loop-toggle {position:absolute; bottom:.4rem; right:.4rem; border:1px solid #ffffff73; border-radius:2rem; background:#1e1d19e3; color:#fff; padding:.28rem .55rem; font:600 .69rem/1.3 "Inter","Segoe UI",sans-serif; cursor:pointer}
.track-copy h2 {font:400 clamp(2.8rem,5vw,4.7rem)/1 var(--display); letter-spacing:-.065em; margin:0; text-wrap:balance}
.track-copy p {font:400 clamp(1rem,1.6vw,1.23rem)/1.48 var(--display); color:#52574e; margin:.65rem 0 0; max-width:35ch; text-wrap:pretty}
.track-copy cite {font-style:italic}
.sound-credit {display:inline-block; margin-top:.65rem; color:var(--accent); font-size:.8rem; text-decoration-color:transparent}
.sound-credit span {margin-right:.2rem}
.sound-credit:hover,.sound-credit:focus-visible {text-decoration-color:currentColor}
.queue ol {margin:0; padding:0; list-style:none}
.queue li+li {margin:0}
.queue a {display:flex; align-items:center; gap:.85rem; min-height:2.45rem; padding:.35rem .7rem; border-radius:.4rem; text-decoration:none; font-size:.91rem; color:#4b514a}
.queue a span {font: .72rem/1.2 "Courier New",monospace; color:#687268}
.queue a:hover {background:#eff0e9}
.queue a[aria-current] {color:var(--accent);background:var(--tint);font-weight:650}
.queue a[aria-current]::after {content:""; margin-left:auto; width:14px; height:13px; background:currentColor; clip-path:polygon(0 36%,18% 36%,18% 100%,0 100%,0 36%,41% 36%,41% 0,59% 0,59% 100%,41% 100%,41% 36%,82% 36%,82% 22%,100% 22%,100% 100%,82% 100%,82% 36%)}
.transport {width:100%; margin:.9rem 0 1.1rem}
.timeline {display:flex; gap:.75rem; align-items:center}
.scrubber {width:100%; flex:1; min-width:0; margin:0; height:1.6rem; appearance:none; background:transparent; cursor:pointer}
.scrubber::-webkit-slider-runnable-track {height:3px; border-radius:4px; background:linear-gradient(to right,var(--accent) var(--played,0%),#d9dcd2 var(--played,0%))}
.scrubber::-moz-range-track {height:3px; border-radius:4px; background:#d9dcd2}
.scrubber::-moz-range-progress {height:3px; background:var(--accent)}
.scrubber::-webkit-slider-thumb {appearance:none; width:10px; height:10px; margin-top:-3.5px; border-radius:100%; background:var(--accent)}
.scrubber::-moz-range-thumb {width:10px; height:10px; border:0; border-radius:100%; background:var(--accent)}
.time {white-space:nowrap;color:#666d62;font: .72rem/1.3 "Courier New",monospace}
.transport-buttons {display:flex;justify-content:center;align-items:center;gap:.9rem}
.transport-buttons button {display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:50%;color:var(--ink);background:transparent;cursor:pointer}
.transport-buttons button:hover {background:var(--tint)}
.transport-buttons .play {width:3rem;height:3rem;color:white;background:var(--accent);box-shadow:0 3px 7px #263a2e29}
.transport-buttons .play:hover {background:var(--accent);filter:brightness(1.15)}
.transport-buttons svg {width:1.18rem;height:1.18rem;fill:currentColor}
.transport-buttons .play svg {width:1.4rem;height:1.4rem}
.play .pause-glyph,.is-playing .play .play-glyph {display:none}
.is-playing .play .pause-glyph {display:block}
.playback-error {font-size:.83rem;margin:.4rem 0}
.deck:not(.ready) .track {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:center;gap:2rem;margin:2.5rem 0}
.deck.ready {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);grid-template-rows:auto auto auto auto;column-gap:clamp(2rem,5.6vw,6rem);align-content:center;min-height:calc(100svh - 13rem)}
.ready .track {display:contents}
.ready .mix-title {grid-area:1/2;align-self:end;margin:0 0 .6rem}
.ready .turntable {grid-area:1/1/5/2;align-self:center}
.ready .track-copy {grid-area:2/2;align-self:start}
.ready .transport {grid-area:3/2}
.ready .queue {grid-area:4/2;border-top:1px solid #d7dbcf;padding-top:.5rem}
.listening-room[data-track="chai-hunter"] {--accent:#834821;--tint:#f4e8d8}
.listening-room[data-track="reading"] {--accent:#67405b;--tint:#f0e5ed}
.listening-room[data-track="boxing"] {--accent:#484a4a;--tint:#e8e8e4}
.listening-room[data-track="running"] {--accent:#385861;--tint:#e4edef}
@media(prefers-reduced-motion:no-preference) {
  .ready .vinyl::before {animation:record-turn 8s linear infinite;animation-play-state:paused}
  .ready.is-playing .vinyl::before {animation-play-state:running}
  @keyframes record-turn {to {transform:rotate(1turn)}}
}
@media(max-width:720px) {
  .listening-room {width:min(90%,33rem);padding:1rem 0 2.5rem}
  .deck.ready {display:flex;flex-direction:column;min-height:0;align-items:stretch}
  .ready .mix-title {order:0;align-self:flex-start;margin:0 0 .8rem}
  .ready .turntable {order:1;align-self:center;width:min(100%,44svh)}
  .ready .track-copy {order:2;align-self:stretch;margin-top:1.5rem}
  .ready .transport {order:3;margin:.5rem 0 .85rem}
  .ready .queue {order:4}
  .track-copy h2 {font-size:clamp(2.45rem,9vw,3.5rem)}
  .track-copy p {font-size:1.04rem;margin-top:.4rem}
  .deck:not(.ready) .track {grid-template-columns:1fr;gap:1rem}
}
@media(max-height:680px) and (min-width:721px) {
  .listening-room {padding:1rem 0 1.75rem}
  .queue a {min-height:2.05rem}
  .ready .turntable {width:min(100%,73svh)}
}
