:root {
  --bg-room: #14171c;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.34);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #7dd3fc;
  --accent-blue: #38bdf8;
  --accent-amber: #e6b87d;
  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-room);
  color: var(--text-main);
  font-family: "PingFang TC", "Noto Sans TC", "Hiragino Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.room-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 45% at 50% 24%, rgba(142, 202, 230, 0.055), transparent 70%),
    radial-gradient(circle at 78% 74%, rgba(230, 184, 125, 0.035), transparent 45%),
    linear-gradient(180deg, #161a21 0%, #12151a 100%);
  transition: opacity 1s var(--ease-cinema);
}

body.state-playing-room .room-ambient,
body.state-playing-cinema .room-ambient {
  opacity: 0.45;
}

.room-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.032;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* Minimal top-right controls only */
.top-bar {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 30;
  transition: opacity 0.6s ease;
}

body.state-playing-cinema .top-bar {
  opacity: 0.28;
}

body.state-playing-cinema .top-bar:hover {
  opacity: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(20, 24, 31, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.icon-pill:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: rgba(30, 36, 46, 0.9);
}

.icon-pill em {
  font-style: normal;
  color: var(--accent-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.hidden {
  display: none !important;
}

/* Main Stage */
.stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Upper Wall: Projection Zone */
.wall-zone {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 16px;
  position: relative;
  transition: all 0.9s var(--ease-cinema);
}

.projection-frame {
  position: relative;
  width: min(92vw, calc((100vh - 296px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  background: #12151a;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition:
    width 0.95s var(--ease-cinema),
    border-radius 0.95s var(--ease-cinema),
    box-shadow 0.95s var(--ease-cinema),
    border-color 0.6s ease;
}

body.state-playing-room .projection-frame {
  border-color: rgba(125, 211, 252, 0.24);
  box-shadow:
    0 0 80px rgba(125, 211, 252, 0.11),
    0 24px 70px rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

/* Scheme C: Fullscreen Cinema Immersion */
body.state-playing-cinema .wall-zone {
  position: fixed;
  inset: 0;
  padding: 0;
  z-index: 20;
  background: #0d1014;
}

body.state-playing-cinema .projection-frame {
  width: min(100vw, calc(100vh * 16 / 9));
  border-radius: 0;
  border-color: transparent;
  box-shadow: 0 0 120px rgba(125, 211, 252, 0.08);
  cursor: default;
}

.screen-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 60% 45%, rgba(125, 211, 252, 0.12), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

body.state-playing-room .screen-glow {
  opacity: 1;
}

.mv-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
  background: #0d1014;
}

body.state-playing-room .mv-video,
body.state-playing-cinema .mv-video {
  opacity: 1;
}

.screen-standby {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 55% at 62% 48%, rgba(125, 211, 252, 0.05), transparent 70%),
    linear-gradient(135deg, rgba(22, 26, 33, 0.92), rgba(15, 18, 23, 0.96));
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

body.state-playing-room .screen-standby,
body.state-playing-cinema .screen-standby {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.standby-title {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 200;
  letter-spacing: 0.36em;
  color: rgba(226, 232, 240, 0.72);
  padding-left: 0.36em;
  transition: opacity 0.45s var(--ease-cinema), transform 0.45s var(--ease-cinema);
}

body.state-empty .standby-title {
  opacity: 0;
  transform: translateY(6px);
}

body.state-empty .standby-title.is-previewing {
  opacity: 0.52;
  transform: translateY(0);
}

.screen-zoom-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(15, 19, 25, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

body.state-playing-room .screen-zoom-icon {
  opacity: 0.78;
  pointer-events: auto;
}

body.state-playing-room .screen-zoom-icon:hover {
  opacity: 1;
  border-color: var(--accent-cyan);
}

/* Foreground Listening Desk — Rich Dark Smoked Walnut Wood Surface */
.desk-zone {
  flex: 0 0 auto;
  position: relative;
  border-top: 1px solid rgba(196, 158, 120, 0.22);
  background-color: #1d1713;
  background-image:
    /* Soft screen ambient reflection on center of desk */
    radial-gradient(ellipse 56% 78% at 50% 0%, rgba(142, 202, 230, 0.08), transparent 68%),
    /* Subtle warm desk lamp vignette on right */
    radial-gradient(ellipse 40% 70% at 84% 18%, rgba(230, 184, 125, 0.07), transparent 65%),
    /* Subtle horizontal wood plank join seams */
    linear-gradient(
      180deg,
      rgba(255, 224, 190, 0.05) 0px,
      transparent 2px,
      transparent 34%,
      rgba(8, 5, 3, 0.34) 34.4%,
      rgba(255, 220, 185, 0.03) 34.8%,
      transparent 35.5%,
      transparent 69%,
      rgba(8, 5, 3, 0.36) 69.4%,
      rgba(255, 220, 185, 0.025) 69.8%,
      transparent 70.6%,
      rgba(8, 5, 3, 0.45) 100%
    ),
    /* Procedural organic walnut wood-grain SVG texture */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='260'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011 0.13' numOctaves='4' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0.34 0 0 0 0.12  0.24 0 0 0 0.08  0.16 0 0 0 0.055  0 0 0 0.52 0'/%3E%3C/filter%3E%3Crect width='600' height='260' filter='url(%23w)'/%3E%3C/svg%3E"),
    /* Base deep smoked-walnut gradient */
    linear-gradient(180deg, #2b221c 0%, #221a15 48%, #18120e 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 600px 260px, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(235, 198, 160, 0.14),
    0 -22px 54px rgba(0, 0, 0, 0.5);
  transition: transform 0.9s var(--ease-cinema), opacity 0.75s ease;
}

body.state-playing-room .desk-zone {
  box-shadow:
    inset 0 1px 0 rgba(142, 202, 230, 0.18),
    0 -22px 60px rgba(0, 0, 0, 0.65);
}

body.state-playing-cinema .desk-zone {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.desk-surface {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 24px 22px;
  display: grid;
  grid-template-columns: 208px 280px 248px;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

@media (max-width: 840px) {
  .wall-zone {
    padding: 52px 14px 12px;
  }

  .projection-frame {
    width: min(94vw, calc((100vh - 410px) * 16 / 9));
  }

  .desk-surface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "turntable turntable"
      "crate tray";
    justify-items: center;
    align-items: center;
    gap: 10px 8px;
    padding: 12px 10px 18px;
  }

  .turntable-area {
    grid-area: turntable;
    height: 178px;
    align-items: center;
  }

  .turntable {
    transform: scale(0.82);
    transform-origin: center center;
  }

  .crate-area {
    grid-area: crate;
    display: flex;
    height: 152px;
    align-items: center;
  }

  .record-crate {
    transform: scale(0.74);
    transform-origin: center center;
  }

  .tray-area {
    grid-area: tray;
    height: 152px;
    align-items: center;
  }

  .tray-stage {
    transform: scale(0.72);
    transform-origin: center center;
  }

  body.state-empty .sleeve-holder {
    transform: translateX(-20px) scale(0.94);
  }

  .cinema-dock {
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 8px 10px;
    bottom: 14px;
    padding: 10px 12px;
  }

  .dock-center {
    order: 3;
    width: 100%;
  }
}

/* Left Top-Down Record Crate (1:1 scale for 184px 12-inch sleeves) */
.crate-area {
  display: flex;
  justify-content: center;
}

.record-crate {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.crate-box {
  position: relative;
  width: 204px;
  height: 204px;
  border-radius: 6px;
  background: linear-gradient(180deg, #100e0d 0%, #181411 100%);
  border: 6px solid #352921;
  border-bottom-width: 12px;
  box-shadow:
    inset 0 16px 28px rgba(0, 0, 0, 0.8),
    0 18px 36px rgba(0, 0, 0, 0.62);
  padding: 10px 8px 6px;
  perspective: 480px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.record-crate:hover .crate-box {
  border-color: #4a392d;
  transform: translateY(-2px);
}

.crate-interior {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  transform-style: preserve-3d;
}

.crate-record {
  position: relative;
  width: 100%;
  border-radius: 3px;
  transform-origin: bottom center;
  transition: transform 0.28s var(--ease-cinema), border-color 0.22s ease, flex-basis 0.28s var(--ease-cinema), height 0.28s var(--ease-cinema), box-shadow 0.25s ease;
}

.crate-record-empty {
  height: 10px;
  background: linear-gradient(180deg, #222832 0%, #181d25 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-top-color: rgba(226, 232, 240, 0.2);
  opacity: 0.45;
  flex-shrink: 0;
}

.crate-record-item {
  flex: 1 1 36px;
  min-height: 22px;
  max-height: 58px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-top: 2px solid rgba(226, 232, 240, 0.44);
  background: #1a2028;
  box-shadow: 0 -5px 14px rgba(0, 0, 0, 0.62);
  transform: rotateX(-14deg);
  cursor: pointer;
}

.crate-record-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  display: block;
  transition: opacity 0.25s ease;
}

.crate-record-item:hover {
  flex: 2.6 0 78px;
  max-height: 86px;
  transform: translateY(-4px) rotateX(-22deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.78);
  z-index: 6;
}

.crate-record-item:hover img,
.crate-record-item.is-selected img {
  opacity: 1;
}

.crate-record-item.is-selected {
  border-color: rgba(125, 211, 252, 0.65);
  border-top-color: var(--accent-cyan);
}

.sleeve-holder.is-swapping {
  animation: sleeve-swap 0.36s var(--ease-cinema);
}

@keyframes sleeve-swap {
  0% { opacity: 0.45; transform: translateX(-16px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.crate-lip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 14, 0.72));
  pointer-events: none;
}

/* Center: Pioneer PLX-1000 Proportioned Turntable (280 x 218) */
.turntable-area {
  display: flex;
  justify-content: center;
}

.turntable {
  position: relative;
  width: 280px;
  height: 218px;
  border-radius: 7px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(155deg, #21262e 0%, #15181e 55%, #111419 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

/* Top-left brushed 45-RPM adapter puck */
.tt-adapter {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #181c22 20%, transparent 22%),
    conic-gradient(from 30deg, #64748b, #cbd5e1, #475569, #e2e8f0, #64748b);
  border: 1.5px solid #0d1014;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
}

/* Main Platter (192x192 centered at 110, 109) */
.platter-well {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: #0d1014;
  border: 2px solid #2b323d;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.85),
    0 2px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.platter-well.drop-ready {
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 30px rgba(125, 211, 252, 0.42),
    inset 0 0 22px rgba(125, 211, 252, 0.22);
}

/* Signature dotted strobe bevel ring */
.platter-strobe-dots {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 4px dotted rgba(203, 213, 225, 0.36);
  pointer-events: none;
}

/* Cool-blue strobe illumination at 7 o'clock */
.platter-strobe-light {
  position: absolute;
  left: 14px;
  bottom: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55) 0%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.state-playing-room .platter-strobe-light {
  opacity: 0.95;
}

.platter-mat {
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: radial-gradient(circle, #171b22 0%, #111419 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.platter-spindle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f1f5f9, #64748b);
  z-index: 6;
  pointer-events: none;
}

/* Bottom-left Hardware Icon Buttons (no text, pure PLX-1000 tactile style) */
.tt-knob-eject {
  position: absolute;
  left: 11px;
  bottom: 42px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #475569;
  background: radial-gradient(circle at 35% 35%, #2b323d, #111419);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 12;
  transition: all 0.2s ease;
}

.tt-knob-eject:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.tt-knob-eject:not(:disabled):hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.tt-btn-play {
  position: absolute;
  left: 9px;
  bottom: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #475569;
  background: conic-gradient(from 40deg, #64748b, #cbd5e1, #475569, #e2e8f0, #64748b);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.tt-btn-play:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

body.state-loaded .tt-btn-play {
  border-color: var(--accent-amber);
  box-shadow: 0 0 14px rgba(230, 184, 125, 0.72);
  animation: pulse-ring 1.6s ease-in-out infinite;
}

body.state-playing-room .tt-btn-play,
body.state-playing-cinema .tt-btn-play {
  border-color: var(--accent-blue);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.85);
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 6px rgba(230, 184, 125, 0.4); }
  50% { box-shadow: 0 0 16px rgba(230, 184, 125, 0.9); }
}

/* S-Curve Tonearm SVG Overlay */
.tt-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.tonearm-svg-group {
  transform-origin: 234px 52px;
  transform: rotate(0deg);
  transition: transform 0.85s var(--ease-cinema);
}

body.state-playing-room .tonearm-svg-group,
body.state-playing-cinema .tonearm-svg-group {
  transform: rotate(26deg);
}

body.state-playing-room .stylus-dot,
body.state-playing-cinema .stylus-dot {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 4px var(--accent-cyan));
}

/* Vinyl Disc Styling */
.vinyl-disc {
  width: 174px;
  height: 174px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, #181b20 0%, #0d0f13 38%, #15181e 68%, #0a0c10 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-grooves {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.042) 0px,
    rgba(255, 255, 255, 0.042) 1px,
    transparent 1.5px,
    transparent 4px
  );
  pointer-events: none;
}

.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    transparent 0deg,
    rgba(125, 211, 252, 0.12) 28deg,
    transparent 62deg,
    transparent 190deg,
    rgba(255, 255, 255, 0.09) 215deg,
    transparent 248deg
  );
  pointer-events: none;
}

.vinyl-label {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(125, 211, 252, 0.42);
  box-shadow: 0 0 0 2px #0d0f13;
}

.vinyl-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vinyl-label-mark {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--accent-cyan);
  transform: translateX(-50%);
  opacity: 0.85;
}

.vinyl-spindle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14171c;
  transform: translate(-50%, -50%);
}

/* Seated vinyl on platter */
.seated-vinyl {
  position: absolute;
  z-index: 4;
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-cinema);
}

body.state-loaded .seated-vinyl,
body.state-playing-room .seated-vinyl,
body.state-playing-cinema .seated-vinyl {
  opacity: 1;
  transform: scale(1);
}

@keyframes spin-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.seated-vinyl.spinning-ccw {
  animation: spin-ccw 3.6s linear infinite;
}

.seated-vinyl.spinning-cw {
  animation: spin-cw 3.6s linear infinite;
}

/* Right Tray: Casual Messy Stack (state-empty) + 1:1 Active Sleeve & Vinyl */
.tray-area {
  display: flex;
  justify-content: center;
}

.tray-stage {
  position: relative;
  width: 244px;
  height: 184px;
}

/* Lived-in casual stack of slightly askew sleeves with peeking vinyl edges */
.casual-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease-cinema), transform 0.5s var(--ease-cinema);
}

body.state-empty .casual-stack {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.casual-item {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 184px;
  height: 184px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-cinema), filter 0.35s ease;
}

.casual-item-0 {
  transform: translate(-10px, 6px) rotate(-7.5deg);
  z-index: 1;
  filter: brightness(0.62);
}

.casual-item-1 {
  transform: translate(12px, -4px) rotate(5.5deg);
  z-index: 2;
  filter: brightness(0.74);
}

.casual-item-2 {
  transform: translate(0px, 2px) rotate(-2deg);
  z-index: 3;
  filter: brightness(0.84);
}

.casual-stack:hover .casual-item-0 {
  transform: translate(-14px, 8px) rotate(-9deg);
}

.casual-stack:hover .casual-item-1 {
  transform: translate(16px, -6px) rotate(7deg);
}

.casual-stack:hover .casual-item-2 {
  transform: translate(0px, -1px) rotate(-1deg);
  filter: brightness(0.96);
}

.casual-vinyl-peek {
  position: absolute;
  top: 5px;
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: radial-gradient(circle, #181b20 0%, #0d0f13 38%, #15181e 68%, #0a0c10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 1;
}

.casual-vinyl-peek::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.045) 0px,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1.5px,
    transparent 4px
  );
}

/* Slightly untucked vinyl edges at different casual offsets */
.casual-item-0 .casual-vinyl-peek { left: 26px; }
.casual-item-1 .casual-vinyl-peek { left: 32px; }
.casual-item-2 .casual-vinyl-peek { left: 18px; }

.casual-jacket {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.58);
  background: #1b2028;
  z-index: 2;
}

.casual-jacket img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.casual-jacket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(10, 12, 16, 0.35) 100%);
}

.sleeve-holder {
  position: relative;
  width: 244px;
  height: 184px;
  z-index: 5;
  transition: opacity 0.55s var(--ease-cinema), transform 0.55s var(--ease-cinema);
}

body.state-empty .sleeve-holder {
  opacity: 0;
  transform: translateX(-34px) scale(0.94);
  pointer-events: none;
}

body.state-empty #btnSleeveNotes {
  opacity: 0.35;
  pointer-events: none;
}

.record-sleeve {
  position: absolute;
  left: 0;
  top: 0;
  width: 184px;
  height: 184px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.58);
  z-index: 3;
  background: #1b2028;
}

.record-sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sleeve-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 15, 20, 0.45) 100%);
}

.draggable-vinyl {
  position: absolute;
  left: 68px;
  top: 5px;
  width: 174px;
  height: 174px;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  transition: left 0.55s var(--ease-cinema) 0.12s, transform 0.28s var(--ease-cinema), opacity 0.35s ease;
}

body.state-empty .draggable-vinyl {
  left: 6px;
  opacity: 0;
  pointer-events: none;
}

.draggable-vinyl .vinyl-label {
  width: 58px;
  height: 58px;
}

.draggable-vinyl:hover {
  transform: translateX(14px) rotate(-14deg);
}

.draggable-vinyl.is-dragging {
  cursor: grabbing;
  z-index: 90;
  transition: none;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.78);
}

body.state-empty .crate-box {
  border-color: #46362b;
  box-shadow:
    inset 0 16px 28px rgba(0, 0, 0, 0.8),
    0 0 26px rgba(230, 184, 125, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.62);
}

body.state-loaded .draggable-vinyl,
body.state-playing-room .draggable-vinyl,
body.state-playing-cinema .draggable-vinyl {
  opacity: 0;
  pointer-events: none;
}

/* Scheme C: Minimal Floating Cinema Dock */
.cinema-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 120px);
  width: min(680px, calc(100vw - 32px));
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 19, 25, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.75s var(--ease-cinema), opacity 0.5s ease;
}

body.state-playing-cinema .cinema-dock {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

body.state-playing-cinema.dock-quiet .cinema-dock {
  opacity: 0.2;
}

body.state-playing-cinema.dock-quiet .cinema-dock:hover {
  opacity: 1;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-vinyl {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0d1014;
  border: 2px solid #334155;
  padding: 6px;
  flex-shrink: 0;
}

.mini-vinyl img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.mini-spindle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0d1014;
  transform: translate(-50%, -50%);
}

.mini-vinyl.spinning-ccw {
  animation: spin-ccw 3.6s linear infinite;
}

.mini-vinyl.spinning-cw {
  animation: spin-cw 3.6s linear infinite;
}

.dock-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.dock-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 120px;
}

.dock-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(28, 34, 43, 0.85);
  color: var(--text-main);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dock-icon-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(38, 46, 58, 0.95);
}

.dock-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}

.seek-bar {
  flex: 1 1 auto;
  accent-color: var(--accent-cyan);
  height: 3px;
  cursor: pointer;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Slide-out Catalog Drawer */
.catalog-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
}

.catalog-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.catalog-drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: #171b22;
  border-right: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-cinema);
}

.catalog-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.catalog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(28, 34, 43, 0.72);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.catalog-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(36, 44, 56, 0.9);
}

.catalog-item.is-empty {
  opacity: 0.38;
  cursor: default;
  border-style: dashed;
}

.catalog-item.is-empty:hover {
  border-color: var(--border-subtle);
  background: rgba(28, 34, 43, 0.72);
}

.catalog-thumb {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  overflow: hidden;
  background: #11151b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 11px;
}

.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-meta {
  min-width: 0;
}

.catalog-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--accent-cyan);
  letter-spacing: 0.14em;
}

.catalog-title {
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* === Digital Footprints Minimal UI === */

/* Top-left ultra-minimal presence dot */
.presence-pill {
  position: fixed;
  top: 14px;
  left: 20px;
  z-index: 30;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(20, 24, 31, 0.6);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
  transition: opacity 0.6s ease;
}

body.state-playing-cinema .presence-pill {
  opacity: 0.28;
}

body.state-playing-cinema .presence-pill:hover {
  opacity: 1;
}

.presence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.85);
  animation: presence-breathe 2.8s ease-in-out infinite;
}

@keyframes presence-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Clickable record sleeve & tiny spin counter corner badge */
.record-sleeve {
  cursor: pointer;
  transition: transform 0.25s var(--ease-cinema), border-color 0.25s ease;
}

.record-sleeve:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.45);
}

.sleeve-corner-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(12, 15, 20, 0.68);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--text-muted);
  z-index: 4;
}

.sleeve-corner-badge em {
  font-style: normal;
  color: var(--text-main);
}

/* Resonance Pinpoints overlaid on Cinema Dock Seek Bar */
.seek-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  height: 18px;
}

.seek-wrap .seek-bar {
  width: 100%;
  position: relative;
  z-index: 2;
}

.resonance-layer {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

.resonance-dot {
  position: absolute;
  top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 6px rgba(230, 184, 125, 0.9);
  transform: translateX(-50%);
  opacity: 0.85;
}

.dock-resonate {
  color: var(--accent-amber);
  font-size: 13px;
}

.dock-resonate.spark {
  border-color: var(--accent-amber);
  box-shadow: 0 0 14px rgba(230, 184, 125, 0.75);
  transform: scale(1.14);
}

/* Sleeve Back / Liner Notes Modal */
.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.sheet-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.68);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sheet-modal.is-open .sheet-backdrop {
  opacity: 1;
}

.liner-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(600px, 84vh);
  border-radius: 10px;
  background: linear-gradient(165deg, #1b2028 0%, #14181e 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.35s var(--ease-cinema), transform 0.35s var(--ease-cinema);
}

.sheet-modal.is-open .liner-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.liner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.liner-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
}

.liner-title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.22em;
}

.liner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.liner-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.liner-stat span {
  color: var(--accent-cyan);
}

.liner-stat strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.liner-stat small {
  font-size: 11px;
  color: var(--text-dim);
}

.note-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-msg-row {
  display: flex;
  gap: 8px;
}

.note-input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(12, 15, 20, 0.7);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  user-select: text;
  transition: border-color 0.2s ease;
}

.note-input:focus {
  border-color: var(--accent-cyan);
}

.note-author {
  width: 150px;
  font-size: 12px;
  padding: 6px 10px;
}

.note-send {
  width: 38px;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(24, 34, 46, 0.85);
  color: var(--accent-cyan);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.note-send:hover {
  background: rgba(34, 48, 66, 0.95);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 90px;
  max-height: 240px;
  padding-right: 2px;
}

.note-card {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(24, 29, 37, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.note-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.note-card-author {
  color: var(--accent-cyan);
}

.note-card-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
  word-break: break-word;
}

.notes-empty {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 24px 0;
}

/* Creator Footprints Drawer (Right Side) */
.footprints-drawer {
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
}

.footprints-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.footprints-drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel-right {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-subtle);
  width: min(380px, 92vw);
  transform: translateX(100%);
}

.footprints-drawer.is-open .drawer-panel-right {
  transform: translateX(0);
}

.fp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fp-metric {
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(24, 29, 37, 0.78);
  border: 1px solid var(--border-subtle);
}

.fp-metric-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  color: var(--text-main);
}

.fp-metric-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.fp-section-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-top: 4px;
}

.fp-timeline {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.fp-row {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(20, 25, 32, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.fp-row-type {
  color: var(--accent-cyan);
  font-weight: 500;
}

.fp-row-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.fp-row-sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
