/* decks.css — cassette deck, turntable, CD player, pocket player. */

.deck { display: grid; gap: 30px; justify-items: center; width: 100%; max-width: 640px; }
.shelf, .sleeve, .jewel { display: grid; gap: 14px; justify-items: center; }
.shelf-hint {
  margin: 0; font: 400 11px/1.4 var(--type); letter-spacing: .18em;
  text-transform: uppercase; color: var(--dimmer); text-align: center;
}
[data-media] { cursor: grab; touch-action: none; user-select: none; }
[data-media].is-dragging { cursor: grabbing; z-index: 40; filter: drop-shadow(0 24px 30px rgba(0,0,0,.6)); }
[data-media].is-placed { cursor: default; }
[data-media].is-refused { animation: refuse .4s ease; }
.is-hot { box-shadow: 0 0 0 2px var(--oxide) inset; }
@keyframes refuse {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-7px) rotate(-1deg); }
  75% { transform: translateX(7px) rotate(1deg); }
}
@keyframes drop-in {
  0% { transform: translateY(-42px) scale(1.04); opacity: .2; }
  70% { transform: translateY(3px) scale(1); opacity: 1; }
  100% { transform: translateY(0); }
}

/* =========================================================
   1. CASSETTE DECK
   ========================================================= */

.deck-cassette { --shell: #2C2F34; --shell-2: #1E2126; --tape-window: #0C0E10; }
.deck-cassette[data-variant="1"] { --shell: #B5602E; --shell-2: #7C3E1B; }
.deck-cassette[data-variant="2"] { --shell: rgba(226,232,236,.5); --shell-2: rgba(150,164,172,.4); }

.cass-unit {
  width: min(100%, 560px); padding: 16px 18px 18px; border-radius: 6px;
  background:
    linear-gradient(180deg, #4A5057 0%, #383D44 6%, #2E3339 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16), inset 0 -2px 0 rgba(0,0,0,.5),
    0 26px 50px rgba(0,0,0,.55);
  border: 1px solid #14171A;
}
.cass-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.cass-brand {
  font: 700 10px/1.3 var(--face); letter-spacing: .26em; text-transform: uppercase;
  color: rgba(231,225,207,.6);
}
.cass-brand em { display: block; font-style: normal; letter-spacing: .1em; color: var(--dimmer); margin-top: 3px; }

.cass-vu { display: flex; gap: 8px; }
.vu {
  position: relative; width: 78px; height: 40px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(180deg, #E9DFC0, #C9BC97);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), inset 0 3px 8px rgba(0,0,0,.25);
}
.vu::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 20px;
  border-top: 1px solid rgba(40,32,20,.45); border-radius: 60px 60px 0 0;
}
.vu::after {
  content: ""; position: absolute; right: 9px; top: 8px; width: 26px; height: 12px;
  border-top: 2px solid var(--rec); border-radius: 40px 40px 0 0; opacity: .75;
}
.vu b { position: absolute; left: 5px; bottom: 2px; font: 700 8px/1 var(--face); color: rgba(40,32,20,.5); }
.needle {
  position: absolute; left: 50%; bottom: 3px; width: 1.5px; height: 30px;
  background: #23201C; transform-origin: bottom center; transform: rotate(-40deg);
  transition: transform .16s cubic-bezier(.2,.9,.3,1);
}

.cass-mid { display: flex; gap: 16px; align-items: stretch; }

.bay {
  position: relative; flex: 1; min-height: 168px; border-radius: 4px; padding: 10px;
  background: linear-gradient(180deg, #101315, #191D21);
  box-shadow: inset 0 3px 12px rgba(0,0,0,.8), inset 0 0 0 1px rgba(0,0,0,.7);
  perspective: 700px;
}
.bay-well { position: relative; height: 100%; min-height: 148px; display: grid; place-items: center; }
.bay-hub {
  position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: #444; box-shadow: 0 0 0 3px #222;
}
.bay-hub:nth-of-type(1) { left: 26%; }
.bay-hub:nth-of-type(2) { right: 26%; }
.is-loaded .bay-hub { display: none; }
.bay-hint {
  font: 400 10px/1 var(--type); letter-spacing: .24em; text-transform: uppercase;
  color: rgba(231,225,207,.22);
}
.is-loaded .bay-hint { display: none; }

.bay-door {
  position: absolute; inset: 4px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(160deg, rgba(140,190,210,.16), rgba(20,30,36,.34) 55%);
  border: 1px solid rgba(255,255,255,.12);
  transform-origin: top center; transform: rotateX(-96deg); opacity: 0;
  transition: transform .42s cubic-bezier(.4,1.4,.5,1), opacity .3s;
}
.is-shut .bay-door { transform: rotateX(0); opacity: 1; }
.door-glare {
  position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%);
}

.cass-gauges { width: 132px; display: flex; flex-direction: column; gap: 10px; }
.counter {
  background: #0E1113; border-radius: 3px; padding: 9px 10px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8);
}
.counter .digits {
  display: block; font: 700 21px/1 var(--type); letter-spacing: .16em; color: var(--oxide);
  text-shadow: 0 0 10px rgba(183,95,44,.5);
}
.counter small {
  display: block; margin-top: 5px; font: 400 8px/1 var(--face);
  letter-spacing: .2em; text-transform: uppercase; color: rgba(231,225,207,.28);
}
.lamps { display: flex; gap: 8px; }
.lamp { width: 9px; height: 9px; border-radius: 50%; background: #2A2E32; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); }
.is-playing .lamp-play { background: #63D08A; box-shadow: 0 0 9px rgba(99,208,138,.8); }
.lamp-rec { background: #3A2320; }
.cass-note {
  flex: 1; font: 400 10.5px/1.5 var(--type); color: rgba(231,225,207,.5);
  letter-spacing: .04em; overflow: hidden;
}

.transport { display: flex; gap: 5px; margin-top: 16px; }
.tb {
  flex: 1; height: 42px; cursor: pointer; border-radius: 3px;
  border: 1px solid #14171A; color: rgba(231,225,207,.72);
  background: linear-gradient(180deg, #545B63 0%, #3A4047 55%, #2C3238 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 0 #191C20, 0 5px 8px rgba(0,0,0,.45);
  display: grid; place-items: center; font-size: 13px;
  transition: transform .08s, box-shadow .08s;
}
.tb:hover { color: var(--paper); }
.tb.is-pressed, .tb:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.5), 0 0 0 #191C20;
}
.tb-play span { color: #7BD79C; }
.tb-eject { flex: .7; }
.is-playing .tb-play { color: #7BD79C; background: linear-gradient(180deg, #5C6B60, #37423B); }

/* the tape itself */
.cassette {
  position: relative; width: 236px; height: 146px; border-radius: 7px;
  --wound-l: 1; --wound-r: .38;
  background: linear-gradient(165deg, var(--shell), var(--shell-2));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 4px rgba(0,0,0,.4),
    0 12px 24px rgba(0,0,0,.5);
  border: 1px solid rgba(0,0,0,.55); padding: 9px;
  transition: filter .2s;
}
.cassette.is-placed { animation: drop-in .5s cubic-bezier(.3,1.2,.4,1); }
.cassette.is-flipped { transform: rotate(180deg); }
.cass-label {
  position: relative; height: 56px; border-radius: 2px; padding: 7px 9px;
  background: linear-gradient(180deg, #EFE9D8, #DCD3BB);
  box-shadow: 0 1px 2px rgba(0,0,0,.35); overflow: hidden;
}
.cass-label::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 12px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(42,39,35,.22) 0 6px, transparent 6px 10px);
}
.cass-label b {
  display: block; font: 400 15px/1.15 var(--hand); color: var(--pen);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cass-label span { display: block; font: 400 10px/1.4 var(--hand); color: rgba(42,39,35,.6); }
.cass-side {
  position: absolute; right: 8px; top: 6px; font: 700 13px/1 var(--type);
  color: var(--paper-ink); opacity: .55; font-style: normal;
}
.cass-glass {
  position: relative; height: 58px; margin-top: 7px; border-radius: 3px;
  background: var(--tape-window); box-shadow: inset 0 2px 6px rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: space-around;
}
.reel { position: relative; width: 46px; height: 46px; border-radius: 50%; background: #14171A; }
.wound {
  position: absolute; inset: 1px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #2A1D15 26%, #6B4630 62%, #4A3122 100%);
  transform-origin: center;
}
.reel-l .wound { transform: scale(var(--wound-l)); }
.reel-r .wound { transform: scale(var(--wound-r)); }
.spokes {
  position: absolute; inset: 13px; border-radius: 50%;
  background: #D9D3C4;
  -webkit-mask: repeating-conic-gradient(#000 0 26deg, transparent 26deg 60deg);
  mask: repeating-conic-gradient(#000 0 26deg, transparent 26deg 60deg);
}
.reel::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  margin: -4.5px; border-radius: 50%; background: #23262A; box-shadow: 0 0 0 3px #D9D3C4;
}
.deck-cassette.is-playing .spokes { animation: spin 1.6s linear infinite; }
.tape-path {
  position: absolute; left: 20%; right: 20%; bottom: 7px; height: 3px;
  background: linear-gradient(90deg, #4A3122, #6B4630); border-radius: 2px; opacity: .8;
}
.cass-feet { display: flex; justify-content: space-around; margin-top: 6px; }
.cass-feet i { width: 12px; height: 5px; border-radius: 2px; background: rgba(0,0,0,.45); }
.deck-cassette.is-flipping .cassette { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* =========================================================
   2. TURNTABLE
   ========================================================= */

.deck-vinyl { --plinth: #6B4A2E; --plinth-2: #4A321E; --disc: #17181A; --lbl: #C8452F; }
.deck-vinyl[data-variant="1"] { --plinth: #2E3238; --plinth-2: #1D2024; --disc: #7A1E24; --lbl: #E8E2D0; }
.deck-vinyl[data-variant="2"] { --plinth: #C9C4B6; --plinth-2: #9A968A; --disc: rgba(210,225,232,.7); --lbl: #2B47A8; }

.turntable { width: 100%; display: flex; justify-content: center; }
.plinth {
  position: relative; border-radius: 8px;
  width: 520px; max-width: 100%; flex: 0 1 520px;
  aspect-ratio: 1 / 0.82; min-height: 300px;
  container-type: inline-size;
  background: linear-gradient(150deg, var(--plinth), var(--plinth-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 26px 50px rgba(0,0,0,.55);
  border: 1px solid rgba(0,0,0,.5);
}
.platter {
  position: absolute; left: 5%; top: 7%; width: 66%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #3A3F45 0 12%, #2A2E33 12% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 6px 20px rgba(0,0,0,.6);
  display: grid; place-items: center;
}
.mat {
  position: absolute; inset: 6%; border-radius: 50%;
  background: repeating-radial-gradient(circle, #23262A 0 3px, #2B2F34 3px 6px);
}
.spindle {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #C9C4B6; box-shadow: 0 0 4px rgba(0,0,0,.6); z-index: 4;
}
.record {
  width: 300px; max-width: 74vw; aspect-ratio: 1; border-radius: 50%; position: relative;
  background: var(--disc);
  box-shadow: 0 14px 30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06);
  display: grid; place-items: center;
}
.record.is-placed {
  position: absolute; inset: 4%; width: auto; max-width: none; z-index: 2;
  animation: drop-in .55s cubic-bezier(.3,1.2,.4,1);
}
.grooves {
  position: absolute; inset: 3%; border-radius: 50%;
  background: repeating-radial-gradient(circle,
    rgba(255,255,255,.055) 0 1px, transparent 1px 4px);
  -webkit-mask: radial-gradient(circle, transparent 0 27%, #000 27%);
  mask: radial-gradient(circle, transparent 0 27%, #000 27%);
}
.record::after {
  content: ""; position: absolute; inset: 3%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 40deg, rgba(255,255,255,.09) 55deg, transparent 70deg 220deg, rgba(255,255,255,.06) 240deg, transparent 260deg);
  pointer-events: none;
}
.rec-label {
  position: relative; width: 34%; aspect-ratio: 1; border-radius: 50%; z-index: 2;
  background: var(--lbl); display: grid; place-items: center; text-align: center;
  padding: 8% 10%; box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.rec-label b {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  font: 400 12.5px/1.15 var(--hand); color: #1E1B18;
  overflow: hidden; overflow-wrap: anywhere; max-width: 100%;
}
.rec-label span { display: block; font: 400 8px/1.4 var(--type); letter-spacing: .1em; text-transform: uppercase; color: rgba(30,27,24,.65); }
.rec-hole {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; z-index: 3;
  background: var(--ink); box-shadow: inset 0 0 3px rgba(0,0,0,.8);
}
.deck-vinyl.is-playing .record.is-placed { animation: spin 1.8s linear infinite; }
.deck-vinyl[data-speed="45"].is-playing .record.is-placed { animation-duration: 1.33s; }

.arm-base {
  position: absolute; right: 8%; top: 26%; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle, #B9B4A6, #6E6A60);
  box-shadow: 0 3px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4);
}
.arm-rest {
  position: absolute; right: 4px; top: 56px; width: 12px; height: 34px; border-radius: 3px;
  background: #4A4740; box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.tonearm {
  --arm-a: 0deg;
  position: absolute; left: 50%; top: 50%; height: 14px; margin-top: -7px;
  width: 208px; width: 40cqw; min-width: 0;
  transform-origin: 4% 50%; transform: rotate(calc(215deg - var(--arm-a)));
  cursor: grab; touch-action: none;
  transition: transform .5s cubic-bezier(.4,1.1,.5,1);
}
.deck-vinyl.is-cueing .tonearm { transition: none; cursor: grabbing; }
.arm-tube {
  position: absolute; left: 14px; right: 26px; top: 5px; height: 5px; border-radius: 3px;
  background: linear-gradient(180deg, #DAD5C7, #8E8A7E);
  box-shadow: 0 2px 5px rgba(0,0,0,.5);
}
.counterweight {
  position: absolute; left: -6px; top: -3px; width: 22px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, #3A3E44, #22262B); box-shadow: 0 2px 5px rgba(0,0,0,.5);
}
.headshell {
  position: absolute; right: 8px; top: -3px; width: 26px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg, #EDE8DA, #A8A396);
  transform: rotate(-16deg); box-shadow: 0 3px 7px rgba(0,0,0,.5);
}
.stylus {
  position: absolute; right: 4px; bottom: -6px; width: 2px; height: 8px; background: #23262A;
  transform-origin: top; transition: transform .25s;
}
.deck-vinyl.is-cued .stylus { transform: scaleY(1.5); }

.tt-panel {
  position: absolute; right: 6%; bottom: 8%; width: 30%; min-width: 130px;
  display: grid; gap: 9px; justify-items: stretch;
}
.speeds { display: flex; gap: 4px; }
.speeds button, .tt-cue, .tt-lift {
  cursor: pointer; border-radius: 3px; border: 1px solid rgba(0,0,0,.5);
  background: linear-gradient(180deg, #4A5057, #2E3339); color: rgba(231,225,207,.75);
  font: 600 9.5px/1 var(--face); letter-spacing: .16em; text-transform: uppercase; padding: 10px 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 0 rgba(0,0,0,.4);
}
.speeds button { flex: 1; }
.speeds button.is-on { color: #7BD79C; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 10px rgba(123,215,156,.25); }
.tt-cue:active, .tt-lift:active, .speeds button:active { transform: translateY(2px); }
.strobe { display: flex; gap: 3px; justify-content: center; }
.strobe i { width: 4px; height: 8px; border-radius: 1px; background: rgba(231,225,207,.2); }
.deck-vinyl.is-playing .strobe i { background: var(--oxide); animation: strobe 1.1s linear infinite; }
.strobe i:nth-child(2) { animation-delay: .1s; } .strobe i:nth-child(3) { animation-delay: .2s; }
.strobe i:nth-child(4) { animation-delay: .3s; } .strobe i:nth-child(5) { animation-delay: .4s; }
.strobe i:nth-child(6) { animation-delay: .5s; }
@keyframes strobe { 0%,60% { opacity: .25; } 70% { opacity: 1; } 100% { opacity: .25; } }
.tt-readout {
  position: absolute; left: 6%; right: 40%; bottom: 5%; font: 400 11px/1 var(--type);
  letter-spacing: .14em; color: rgba(231,225,207,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* =========================================================
   3. CD PLAYER
   ========================================================= */

.deck-cd { --case: #B8BCC0; --case-2: #83888D; --lcd-bg: #14201C; }
.deck-cd[data-variant="1"] { --case: #37414D; --case-2: #222932; }
.deck-cd[data-variant="2"] { --case: #C3A44F; --case-2: #8A7130; }

.cd-unit {
  width: min(100%, 460px); padding: 16px; border-radius: 10px;
  background: linear-gradient(170deg, var(--case), var(--case-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 26px 50px rgba(0,0,0,.55);
  border: 1px solid rgba(0,0,0,.45);
}
.cd-lcd {
  position: relative; display: grid; grid-template-columns: auto 1fr auto;
  gap: 10px; align-items: center; padding: 11px 13px; border-radius: 4px;
  background: var(--lcd-bg); box-shadow: inset 0 3px 10px rgba(0,0,0,.8);
  color: var(--lcd); font-family: var(--type);
}
.lcd-no { font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.lcd-time { font-size: 15px; letter-spacing: .1em; text-align: right; }
.lcd-tag {
  grid-column: 1 / 3; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .68; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.lcd-bars { grid-row: 1 / 3; grid-column: 3; display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.lcd-bars i { width: 3px; height: 10%; background: var(--lcd); opacity: .8; border-radius: 1px; transition: height .14s; }

.cd-tray {
  position: relative; margin: 14px 0; height: 132px; border-radius: 6px;
  background: linear-gradient(180deg, #1A1D20, #0E1012);
  box-shadow: inset 0 4px 14px rgba(0,0,0,.85);
  display: grid; place-items: center; overflow: hidden;
  transition: transform .55s cubic-bezier(.4,1.2,.5,1);
}
.deck-cd.is-open .cd-tray { transform: translateY(26px); overflow: visible; }
.tray-well {
  position: relative; width: 124px; height: 124px; border-radius: 50%;
  background: radial-gradient(circle, #2A2E33 0 8%, #15181B 9% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); display: grid; place-items: center;
  opacity: 0; transition: opacity .3s;
}
.deck-cd.is-open .tray-well, .deck-cd.is-loaded .tray-well { opacity: 1; }
.well-hub { width: 20px; height: 20px; border-radius: 50%; background: #3A3F45; }
.deck-cd:not(.is-open) .cd-tray::after {
  content: "tray closed"; position: absolute; font: 400 9.5px/1 var(--type);
  letter-spacing: .24em; text-transform: uppercase; color: rgba(231,225,207,.18);
}
.deck-cd.is-loaded:not(.is-open) .cd-tray::after { content: ""; }

.disc {
  position: relative; width: 128px; height: 128px; border-radius: 50%;
  background:
    conic-gradient(from 200deg, #9FD8E8, #EFD79C, #E9A7C8, #A9C3EE, #9FE8C4, #9FD8E8);
  box-shadow: 0 10px 22px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.4);
  display: grid; place-items: center;
}
.disc.is-placed { position: absolute; inset: 6px; width: auto; height: auto; animation: drop-in .45s cubic-bezier(.3,1.2,.4,1); }
.sheen {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.16) 0 1px, transparent 1px 5px);
}
.disc-print {
  position: absolute; top: 16%; width: 100%; text-align: center;
  font: 400 9px/1 var(--hand); color: rgba(30,27,24,.55); padding: 0 12px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.disc-hole {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 8px rgba(255,255,255,.55), inset 0 0 4px rgba(0,0,0,.8); z-index: 2;
}
.deck-cd.is-playing .disc { animation: spin .9s linear infinite; }
.deck-cd.is-reading .disc { animation: spin 2.4s linear infinite; }
.deck-cd.is-reading .lcd-tag { animation: blink .7s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.cd-panel { display: flex; gap: 6px; }
.cdb {
  flex: 1; height: 40px; cursor: pointer; border-radius: 20px;
  border: 1px solid rgba(0,0,0,.4); color: rgba(20,22,25,.8);
  background: linear-gradient(180deg, #E4E7EA, #B4B9BE);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 rgba(0,0,0,.35);
  font: 600 10px/1 var(--face); letter-spacing: .12em; text-transform: uppercase;
  display: grid; place-items: center; transition: transform .08s, box-shadow .08s;
}
.cdb-wide { flex: 1.8; }
.cdb.is-pressed, .cdb:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,0,0,.35); }
.deck-cd.is-playing .cdb-play { color: #1D6B3E; }
.cd-brand {
  margin-top: 12px; text-align: right; font: 600 8.5px/1 var(--face);
  letter-spacing: .24em; text-transform: uppercase; color: rgba(20,22,25,.4);
}

/* =========================================================
   4. POCKET PLAYER
   ========================================================= */

.deck-pod { --body: #EDEDEA; --body-2: #C9C9C4; --wheel: #E2E2DE; --pod-ink: #23262A; }
.deck-pod[data-variant="1"] { --body: #3A3E44; --body-2: #22262B; --wheel: #2E3238; --pod-ink: #E7E1CF; }
.deck-pod[data-variant="2"] { --body: #7FA6C9; --body-2: #4E738F; --wheel: #DCE6EE; --pod-ink: #1C2A36; }

.pod {
  width: 292px; max-width: 88vw; padding: 18px 18px 26px; border-radius: 22px;
  background: linear-gradient(170deg, var(--body), var(--body-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 26px 50px rgba(0,0,0,.55);
  border: 1px solid rgba(0,0,0,.35); display: grid; gap: 22px; justify-items: center;
}
.pod-screen {
  width: 100%; height: 196px; border-radius: 4px; overflow: hidden;
  background: #B9C6B0; color: #1B1F1A;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.55), inset 0 3px 10px rgba(0,0,0,.35);
  display: grid; grid-template-rows: auto 1fr; font-family: var(--face);
}
.pod-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 7px; background: linear-gradient(180deg, #9FB097, #8CA085);
  border-bottom: 1px solid rgba(0,0,0,.35); font-size: 10px; font-weight: 700;
}
.pb-title { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pb-batt { width: 16px; height: 8px; border: 1px solid rgba(27,31,26,.7); border-radius: 1px; position: relative; }
.pb-batt::after { content: ""; position: absolute; inset: 1px; right: 5px; background: rgba(27,31,26,.7); }
.pod-view { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.pod-view::-webkit-scrollbar { display: none; }

.pod-list { list-style: none; margin: 0; padding: 0; }
.pod-list li {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px;
  font-size: 12.5px; border-bottom: 1px solid rgba(27,31,26,.09);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pod-list li em { font-style: normal; opacity: .5; font: 400 10px/1 var(--type); }
.pod-list li i { margin-left: auto; opacity: .5; font-style: normal; }
.pod-list li.is-cur { font-weight: 700; }
.pod-list li.is-sel {
  background: linear-gradient(180deg, #4E6FA8, #2F4E85); color: #F2F4F0;
}
.pod-list li.is-sel em, .pod-list li.is-sel i { opacity: .8; }

.pod-about { padding: 12px 10px; font-size: 12px; }
.pod-about h4 { margin: 0 0 8px; font-size: 14px; }
.pod-about p { margin: 0 0 6px; }
.pod-about .dim { opacity: .6; font-size: 10.5px; line-height: 1.5; margin-top: 10px; }

/* one column, capped at the screen width — nothing inside may widen it */
.pod-now {
  padding: 10px; display: grid; gap: 8px; justify-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.pod-now > * { max-width: 100%; min-width: 0; }
.pod-art {
  width: 74px; height: 74px; border-radius: 2px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--oxide), #6B3A1C); color: #F2EEE2;
  font: 400 10px/1.2 var(--hand); text-align: center; padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3); overflow: hidden;
  background-size: cover; background-position: center;
}
.pod-title {
  width: 100%; overflow: hidden; white-space: nowrap;
  font-size: 12px; font-weight: 700; text-align: center;
}
.pod-title-in { display: inline-block; }
.pod-title.is-marquee { text-align: left; }
.pod-title.is-marquee .pod-title-in { animation: marquee var(--dur, 9s) ease-in-out infinite; }
@keyframes marquee {
  0%, 14% { transform: translateX(0); }
  50%, 64% { transform: translateX(var(--shift, 0)); }
  97%, 100% { transform: translateX(0); }
}
.pod-sub { font-size: 10px; opacity: .6; text-align: center; }
.pod-scrub { width: 90%; height: 6px; border-radius: 3px; background: rgba(27,31,26,.2); overflow: hidden; }
.pod-scrub i { display: block; height: 100%; background: #2F4E85; transition: width .2s linear; }
.pod-times { width: 90%; display: flex; justify-content: space-between; font: 400 9.5px/1 var(--type); opacity: .65; }

.wheel {
  position: relative; width: 176px; height: 176px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--wheel), rgba(0,0,0,.08) 120%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.7), inset 0 -2px 6px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.25);
  display: grid; place-items: center; touch-action: none; cursor: grab;
}
.wheel.is-spinning { cursor: grabbing; }
.wl {
  position: absolute; font: 700 9px/1 var(--face); letter-spacing: .14em;
  color: rgba(35,38,42,.55); cursor: pointer; padding: 6px 8px; user-select: none;
}
.deck-pod[data-variant="1"] .wl { color: rgba(231,225,207,.6); }
.wl-menu { top: 10px; }
.wl-play { bottom: 10px; }
.wl-prev { left: 10px; }
.wl-next { right: 10px; }
.wl:hover { color: rgba(35,38,42,.9); }
.wl.is-pressed { transform: scale(.9); }
.wheel-hub {
  width: 62px; height: 62px; border-radius: 50%; cursor: pointer; border: 0;
  background: radial-gradient(circle at 50% 30%, #FBFBF9, #D6D6D1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 4px rgba(0,0,0,.3);
}
.deck-pod[data-variant="1"] .wheel-hub { background: radial-gradient(circle at 50% 30%, #4A4E55, #2A2E34); }
.wheel-hub:active { transform: scale(.97); }
.deck-pod .shelf-hint { margin-top: -4px; }

/* cover art: set as --cover on the deck root when the tape carries one */
.deck.has-cover .pod-art { background-image: var(--cover); }
.deck.has-cover .pod-art span { display: none; }

.deck-vinyl.has-cover .rec-label { background-image: var(--cover); background-size: cover; background-position: center; }
.deck-vinyl.has-cover .rec-label::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(12,10,8,.52);
}
.deck-vinyl.has-cover .rec-label b,
.deck-vinyl.has-cover .rec-label span { position: relative; z-index: 1; color: #F4F0E4; }
.deck-vinyl.has-cover .rec-label span { color: rgba(244,240,228,.75); }

.deck-cd.has-cover .disc { background-image: var(--cover); background-size: cover; background-position: center; }
.deck-cd.has-cover .sheen { opacity: .45; }
.deck-cd.has-cover .disc-print { color: #F4F0E4; text-shadow: 0 1px 3px rgba(0,0,0,.8); }

.deck-cassette.has-cover .cass-label { background-image: var(--cover); background-size: cover; background-position: center; }
.deck-cassette.has-cover .cass-label::before {
  content: ""; position: absolute; inset: 0; background: rgba(238,232,216,.74);
}
.deck-cassette.has-cover .cass-label b,
.deck-cassette.has-cover .cass-label span,
.deck-cassette.has-cover .cass-side { position: relative; z-index: 1; }

/* variant swatches in the builder */
.sw-cassette-0 { background: #2C2F34; } .sw-cassette-1 { background: #B5602E; } .sw-cassette-2 { background: rgba(226,232,236,.6); }
.sw-vinyl-0 { background: #6B4A2E; } .sw-vinyl-1 { background: #7A1E24; } .sw-vinyl-2 { background: #C9C4B6; }
.sw-cd-0 { background: #B8BCC0; } .sw-cd-1 { background: #37414D; } .sw-cd-2 { background: #C3A44F; }
.sw-ipod-0 { background: #EDEDEA; } .sw-ipod-1 { background: #3A3E44; } .sw-ipod-2 { background: #7FA6C9; }

@media (max-width: 560px) {
  .cass-mid { flex-direction: column; }
  .cass-gauges { width: 100%; flex-direction: row; align-items: center; }
  .cassette { width: 100%; max-width: 236px; }
  .plinth { aspect-ratio: 1 / 1.28; }
  .platter { width: 84%; left: 8%; top: 4%; }
  .arm-base { right: 3%; top: 16%; }
  .arm-rest { display: none; }
  .tt-panel {
    left: 8%; right: 8%; bottom: 4%; width: auto; min-width: 0;
    grid-template-columns: 1fr 1fr; align-items: center;
  }
  .speeds, .strobe { grid-column: 1 / -1; }
  .tt-readout { bottom: 1.5%; }
  .cd-tray { height: 118px; }
}
