/* ============================================================
   BLINDMIX.COM · TAPE DECK EDITION
   Skeuomorphic 1990s cassette aesthetic
   ============================================================ */

:root {
  --beige-light: #ecdcb5;
  --beige: #d9c9a0;
  --beige-mid: #c2ae82;
  --beige-dark: #9a865d;
  --plastic: #c7b488;
  --plastic-dark: #6f6142;
  --matte-black: #1f1b14;
  --matte-black-2: #2d271c;
  --accent-orange: #d46d3a;
  --accent-orange-dark: #8c431d;
  --rubber-red: #7a2828;
  --lcd-bg: #0d1a0d;
  --lcd-bg-2: #15241a;
  --lcd-green: #9aff9a;
  --lcd-green-glow: rgba(136, 255, 136, 0.6);
  --label-cream: #f3e9cc;
  --label-cream-dark: #ddcd9e;
  --marker-ink: #16203a;
  --shadow: 0 4px 14px rgba(40, 28, 10, 0.25);
}

/* -------- Reset -------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  color: var(--matte-black);
  background:
    radial-gradient(ellipse at top, #f0e1bd 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0 2px,
      transparent 2px 6px
    ),
    linear-gradient(180deg, #e6d4a8 0%, #bfa773 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; }
ul { list-style: none; }

/* -------- Layout -------- */
.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* -------- Header -------- */
.app-header {
  text-align: center;
  padding: 14px 8px 4px;
}
.logo {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(2.2rem, 9vw, 3.3rem);
  letter-spacing: 1px;
  line-height: 1;
  color: var(--matte-black);
  text-shadow:
    2px 2px 0 var(--accent-orange),
    4px 4px 0 rgba(0, 0, 0, 0.15);
  transform: rotate(-2deg);
  display: inline-block;
}
.logo-blind { color: var(--matte-black); }
.logo-mix {
  color: var(--accent-orange);
  text-shadow: 2px 2px 0 var(--matte-black);
  margin-left: 4px;
}
.logo-dot {
  color: var(--matte-black);
  font-size: 0.45em;
  letter-spacing: 2px;
  margin-left: 6px;
  vertical-align: 0.9em;
  text-shadow: 1px 1px 0 var(--accent-orange);
}
.tagline {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--plastic-dark);
  margin-top: 6px;
  letter-spacing: 3px;
}

/* -------- Panels -------- */
.panel {
  background:
    linear-gradient(180deg, var(--beige-light) 0%, var(--beige) 40%, var(--beige-mid) 100%);
  border: 2px solid var(--plastic-dark);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 6px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    var(--shadow);
  position: relative;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

.panel-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 3px;
  color: var(--plastic-dark);
  margin-bottom: 10px;
  font-weight: bold;
}

/* -------- Inputs -------- */
.input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.tape-input {
  flex: 1 1 150px;
  min-width: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--plastic-dark);
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      0deg,
      var(--label-cream) 0 22px,
      var(--label-cream-dark) 22px 23px
    );
  color: var(--marker-ink);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.2s;
}
.tape-input:focus { border-color: var(--accent-orange); }
.tape-input::placeholder {
  color: rgba(22, 32, 58, 0.45);
  font-style: italic;
}
.tape-input-marker {
  font-family: 'Permanent Marker', cursive;
  font-size: 20px;
  padding-top: 10px;
}

/* -------- Status -------- */
.status {
  margin-top: 10px;
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: var(--plastic-dark);
  background: rgba(0, 0, 0, 0.06);
  padding: 6px 10px;
  border-radius: 4px;
  min-height: 1.8em;
  letter-spacing: 1px;
}
.status.error { color: #7a2e1c; background: rgba(212, 109, 58, 0.15); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  border: none;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 12px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
  position: relative;
  min-height: 46px;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);
}
.btn .icn { font-size: 1rem; line-height: 1; }
.btn:active { transform: translateY(3px); }
.btn:disabled { filter: grayscale(0.6) brightness(0.85); cursor: not-allowed; }

.btn-play {
  background: linear-gradient(180deg, #e88b4a 0%, #d46d3a 45%, #a5501f 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 2px rgba(0, 0, 0, 0.25),
    0 5px 0 var(--accent-orange-dark),
    0 7px 12px rgba(0, 0, 0, 0.25);
  padding: 12px 20px;
}
.btn-play:active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 2px rgba(0, 0, 0, 0.25),
    0 2px 0 var(--accent-orange-dark),
    0 3px 6px rgba(0, 0, 0, 0.25);
}

.btn-control {
  flex: 1;
  background: linear-gradient(180deg, #3a342a 0%, #262116 60%, #0f0d07 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 4px 0 #050404,
    0 6px 10px rgba(0, 0, 0, 0.35);
}
.btn-control:active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5),
    0 1px 0 #050404,
    0 2px 4px rgba(0, 0, 0, 0.35);
}
.btn-reveal { color: #ffcb9b; }
.btn-ff     { color: #c6f5c6; }
.btn-extend { color: #ffe08a; }

@keyframes lcd-flash {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); filter: brightness(1.4); }
  100% { transform: scale(1); }
}
.lcd.flash { animation: lcd-flash 0.35s ease-out; }

.btn-add {
  background: linear-gradient(180deg, #6aa36a 0%, #4a824a 50%, #2e5830 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 2px rgba(0, 0, 0, 0.3),
    0 4px 0 #1b3a1d,
    0 6px 10px rgba(0, 0, 0, 0.3);
}
.btn-add:active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3),
    0 1px 0 #1b3a1d,
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-eject {
  background: linear-gradient(180deg, #a94040 0%, #7a2828 50%, #4d1515 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    0 5px 0 #3a0f0f,
    0 8px 12px rgba(0, 0, 0, 0.3);
  width: 100%;
  padding: 14px;
  letter-spacing: 3px;
}
.btn-eject:active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.35),
    0 2px 0 #3a0f0f,
    0 3px 6px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   MEDIA AREA
   ============================================================ */
.media-area {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0806;
  box-shadow:
    inset 0 0 0 3px #1a160e,
    inset 0 4px 10px rgba(0, 0, 0, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 14px;
}
.video-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  pointer-events: none;
}
.video-container #player,
.video-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* ============================================================
   CASSETTE TAPE — enhanced with animated parts
   ============================================================ */
.cassette {
  position: absolute;
  inset: 0;
  z-index: 10;
  transition: transform 0.7s cubic-bezier(0.65, -0.25, 0.35, 1.25);
  will-change: transform;
}
.cassette.revealed {
  transform: translateX(108%) translateY(-4%) rotate(6deg);
}

/* Idle "breathing" when not playing */
@keyframes cassette-breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.5px); }
}
.cassette:not(.spinning):not(.revealed) .cassette-body {
  animation: cassette-breathe 4s ease-in-out infinite;
}

.cassette-body {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(180deg, #4a4132 0%, #2a2518 48%, #1d1a12 100%);
  border-radius: 6px;
  border: 2px solid #0b0906;
  padding: 6% 5%;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.08),
    inset 0 -3px 6px rgba(0, 0, 0, 0.6),
    inset 2px 0 4px rgba(0, 0, 0, 0.3),
    inset -2px 0 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Holographic shimmer — slow diagonal light sweep */
.shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 240, 200, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 70%
  );
  background-size: 300% 100%;
  animation: shimmer-sweep 6s linear infinite;
  mix-blend-mode: screen;
  z-index: 1;
}
@keyframes shimmer-sweep {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Write-protect tabs on top corners */
.tab {
  position: absolute;
  top: -1px;
  width: 18px;
  height: 4px;
  background: linear-gradient(180deg, #3a342a, #1a1610);
  border: 1px solid #0b0906;
  border-top: none;
  border-radius: 0 0 2px 2px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  z-index: 3;
}
.tab-left  { left: 18px; }
.tab-right { right: 18px; }

/* Play indicator LED */
.play-led {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a0f0f;
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.5);
  z-index: 3;
  transition: background 0.2s, box-shadow 0.2s;
}
.cassette.spinning .play-led {
  background: #ff4a3a;
  box-shadow:
    inset 0 -1px 1px rgba(0, 0, 0, 0.3),
    0 0 6px rgba(255, 74, 58, 0.8),
    0 0 12px rgba(255, 74, 58, 0.5);
  animation: led-pulse 1.6s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* Screws */
.screw {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9a8f6e, #3a3324 70%);
  box-shadow:
    inset 0 -1px 1px rgba(0, 0, 0, 0.6),
    0 1px 1px rgba(0, 0, 0, 0.4);
  z-index: 3;
}
.screw::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(90deg, transparent 45%, #1a1710 45% 55%, transparent 55%);
  border-radius: 1px;
}
.screw-tl { top: 6px; left: 6px; }
.screw-tr { top: 6px; right: 6px; }
.screw-bl { bottom: 6px; left: 6px; }
.screw-br { bottom: 6px; right: 6px; }
.screw-c  { top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.55; }

/* Paper label */
.cassette-label {
  flex: 1 1 52%;
  background:
    linear-gradient(180deg, var(--label-cream) 0%, var(--label-cream-dark) 100%);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 4%;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 2;
}
.cassette-label::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  pointer-events: none;
}
.label-header {
  display: flex;
  justify-content: space-between;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--plastic-dark);
  margin-bottom: 2px;
}
.label-title {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1rem, 3.8vw, 1.4rem);
  color: var(--marker-ink);
  text-align: center;
  transform: rotate(-1.5deg);
  margin: 2px 0 2px;
}

/* VU METERS */
.vu-meters {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 4px auto 2px;
  padding: 0 4px;
}
.vu {
  flex: 1;
  max-width: 42%;
  height: 14px;
  background: linear-gradient(180deg, #1a1a14 0%, #050503 100%);
  border: 1px solid #3a2a18;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.3);
}
.vu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0 1px,
    transparent 1px 10%
  );
  pointer-events: none;
}
.vu-lbl {
  position: absolute;
  top: 0;
  left: 2px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.5rem;
  color: rgba(255, 200, 150, 0.7);
  line-height: 14px;
  z-index: 3;
  letter-spacing: 1px;
}
.vu-needle {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 8%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(40, 220, 80, 0.4) 30%,
    rgba(255, 220, 60, 0.7) 70%,
    rgba(255, 80, 60, 1) 100%);
  box-shadow: 0 0 4px rgba(255, 200, 100, 0.6);
  transform-origin: left center;
  transition: width 0.08s ease-out;
}
.cassette.spinning .vu-needle[data-vu="L"] {
  animation: vu-bounce-l 0.6s ease-in-out infinite;
}
.cassette.spinning .vu-needle[data-vu="R"] {
  animation: vu-bounce-r 0.55s ease-in-out infinite;
}
@keyframes vu-bounce-l {
  0%   { width: 20%; }
  20%  { width: 75%; }
  35%  { width: 45%; }
  55%  { width: 88%; }
  75%  { width: 35%; }
  100% { width: 55%; }
}
@keyframes vu-bounce-r {
  0%   { width: 30%; }
  25%  { width: 85%; }
  40%  { width: 50%; }
  60%  { width: 70%; }
  80%  { width: 40%; }
  100% { width: 65%; }
}

.label-footer {
  display: flex;
  justify-content: space-between;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--plastic-dark);
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
}

/* Reel window */
.cassette-window {
  flex: 1 1 44%;
  background:
    linear-gradient(180deg, #080705 0%, #1a1710 100%);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4% 8%;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  z-index: 2;
}

/* The magnetic tape strip between reels */
.tape-strip {
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 14%;
  background: linear-gradient(180deg,
    #4a3418 0%,
    #3a2a18 30%,
    #1f140a 70%,
    #0a0604 100%);
  transform: translateY(-50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 180, 100, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.8);
}
.tape-strip::before {
  content: '';
  position: absolute;
  top: 30%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255, 200, 120, 0.3), transparent);
}
.cassette.spinning .tape-strip {
  animation: tape-shake 0.15s linear infinite;
}
@keyframes tape-shake {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% + 0.5px)); }
}

/* Reels (outer ring) */
.reel {
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0f0d08 0 42%, #050403 42% 46%, #0a0806 46% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 2px 3px rgba(0, 0, 0, 0.9);
}

/* Tape wound on each reel — shrinks/grows over track */
.reel-tape {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      transparent 0 var(--tape-inner, 40%),
      #3a2a18 var(--tape-inner, 40%) calc(var(--tape-inner, 40%) + 1%),
      #5a3e20 calc(var(--tape-inner, 40%) + 1%) var(--tape-outer, 90%),
      #3a2a18 var(--tape-outer, 90%) 100%);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  transition: background 0.4s linear;
}
.reel-tape-left  { --tape-inner: 40%; --tape-outer: 90%; }
.reel-tape-right { --tape-inner: 75%; --tape-outer: 90%; }

/* Reel inner hub with sprockets */
.reel-inner {
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(58, 52, 42, 0.6) 0deg 20deg,
      rgba(20, 17, 10, 0.8) 20deg 40deg
    );
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
}
.reel-inner::before {
  content: '';
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%,
      #f5e6c0 0 20%,
      #c6b28a 20% 35%,
      #0a0806 35% 42%,
      #2a2419 42% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.5);
}
.reel-inner::after {
  content: '';
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      #0a0806 0 10deg, transparent 10deg 50deg,
      #0a0806 50deg 60deg, transparent 60deg 100deg,
      #0a0806 100deg 110deg, transparent 110deg 150deg,
      #0a0806 150deg 160deg, transparent 160deg 200deg,
      #0a0806 200deg 210deg, transparent 210deg 250deg,
      #0a0806 250deg 260deg, transparent 260deg 300deg,
      #0a0806 300deg 310deg, transparent 310deg 360deg
    );
}

/* Spin animation */
@keyframes spin-reel { to { transform: rotate(360deg); } }
.cassette.spinning .reel-inner {
  animation: spin-reel var(--spin-duration, 2.4s) linear infinite;
}
.cassette.spinning .reel-right .reel-inner {
  animation-duration: calc(var(--spin-duration, 2.4s) * 0.83);
}
.cassette.spinning .reel-tape {
  animation: spin-reel var(--spin-duration, 2.4s) linear infinite;
}
.cassette.spinning .reel-right .reel-tape {
  animation-duration: calc(var(--spin-duration, 2.4s) * 0.83);
}

/* Pitch-responsive spin speeds */
.cassette.pitch-slow   { --spin-duration: 4s; }
.cassette.pitch-normal { --spin-duration: 2.4s; }
.cassette.pitch-fast   { --spin-duration: 1.4s; }

/* ============================================================
   REVEAL CAPTION
   ============================================================ */
.reveal-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 14px 16px 12px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease 0.35s, transform 0.35s ease 0.35s;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.9) 100%
  );
}
.reveal-info.visible { opacity: 1; transform: translateY(0); }
.reveal-track {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.05rem, 4.2vw, 1.5rem);
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  word-break: break-word;
  margin-bottom: 3px;
}
.reveal-artist {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  color: var(--accent-orange);
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* ============================================================
   LCD HOUSING
   ============================================================ */
.lcd-housing {
  background: linear-gradient(180deg, #1a1610 0%, #080604 100%);
  border: 2px solid #050403;
  border-radius: 8px;
  padding: 8px 12px 10px;
  margin-bottom: 12px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.1);
}
.lcd-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: #888066;
  margin-bottom: 4px;
}
.lcd {
  font-family: 'VT323', 'Share Tech Mono', monospace;
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  text-align: center;
  background:
    linear-gradient(180deg, var(--lcd-bg) 0%, var(--lcd-bg-2) 100%);
  color: var(--lcd-green);
  letter-spacing: 6px;
  padding: 4px 10px 2px;
  border-radius: 4px;
  text-shadow:
    0 0 6px var(--lcd-green-glow),
    0 0 14px rgba(136, 255, 136, 0.3);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.85),
    inset 0 -1px 2px rgba(255, 255, 255, 0.04);
  position: relative;
  line-height: 1;
}
.lcd::before {
  content: '88:88';
  position: absolute;
  inset: 4px 10px 2px;
  color: rgba(154, 255, 154, 0.07);
  letter-spacing: 6px;
  text-shadow: none;
  pointer-events: none;
}
.lcd.low { color: #ff8d8d; text-shadow: 0 0 6px rgba(255, 100, 100, 0.6); }

/* ============================================================
   CONTROL ROW · PITCH
   ============================================================ */
.control-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.speed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}
.speed-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--plastic-dark);
  font-weight: bold;
}
.speed-btns {
  display: flex;
  flex: 1;
  gap: 6px;
}
.btn-speed {
  flex: 1;
  background: linear-gradient(180deg, #ccbb8d 0%, #9e8a5a 100%);
  color: #2a2418;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  padding: 10px 6px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  min-height: 40px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.25),
    0 3px 0 #5e4f2c,
    0 4px 6px rgba(0, 0, 0, 0.2);
}
.btn-speed:active,
.btn-speed.active {
  transform: translateY(2px);
  background: linear-gradient(180deg, #7a6b45 0%, #5a4e30 100%);
  color: var(--accent-orange);
  text-shadow: none;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 #5e4f2c;
}

/* ============================================================
   PLAYERS
   ============================================================ */
.players-panel h2.panel-label { margin-bottom: 12px; }

.player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.empty-hint {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--plastic-dark);
  text-align: center;
  font-style: italic;
  padding: 8px;
}
.empty-hint.hidden { display: none; }

.player-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background:
    linear-gradient(180deg, var(--label-cream) 0%, var(--label-cream-dark) 100%);
  border: 1px solid #8a7a50;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  flex-wrap: wrap;
}
.player-item::after {
  content: '';
  position: absolute;
  top: -4px; left: 12px;
  width: 30px; height: 8px;
  background: rgba(212, 109, 58, 0.55);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.player-name {
  flex: 1 1 110px;
  min-width: 0;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.15rem;
  color: var(--marker-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-top: 2px;
}
.mult-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 1px;
  user-select: none;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--plastic-dark);
  transition: all 0.15s;
  min-height: 34px;
}
.mult-toggle input { display: none; }
.mult-toggle.active {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange-dark);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.score-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.08);
  padding: 3px;
  border-radius: 6px;
}
.btn-score {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 5px;
  font-family: 'Share Tech Mono', monospace;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.08s;
}
.btn-score:active { transform: translateY(2px); }
.btn-minus {
  background: linear-gradient(180deg, #6a6a6a, #3a3a3a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 3px 0 #1a1a1a, 0 4px 6px rgba(0, 0, 0, 0.25);
}
.btn-minus:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 0 #1a1a1a, 0 2px 4px rgba(0, 0, 0, 0.25);
}
.btn-plus {
  background: linear-gradient(180deg, #6aa36a, #2e5830);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #1b3a1d, 0 4px 6px rgba(0, 0, 0, 0.25);
}
.btn-plus:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 0 #1b3a1d, 0 2px 4px rgba(0, 0, 0, 0.25);
}
.score-value {
  min-width: 44px;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 1.8rem;
  color: var(--lcd-green);
  background: var(--lcd-bg);
  border-radius: 4px;
  padding: 2px 4px;
  letter-spacing: 2px;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 4px var(--lcd-green-glow);
}
.btn-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #b05050, #6a1e1e);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 3px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.btn-remove:active { transform: translateY(1px); }

/* ============================================================
   FOOTER · Buy Me a Coffee — animated & irresistible
   ============================================================ */
.app-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 8px;
}

.bmac-wrap {
  position: relative;
  display: inline-block;
  padding: 14px;
}

/* Pulsing glow ring behind the button */
.bmac-ring {
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  background: radial-gradient(ellipse at center,
    rgba(255, 210, 100, 0.55) 0%,
    rgba(212, 109, 58, 0.3) 40%,
    transparent 70%);
  filter: blur(8px);
  animation: bmac-ring-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes bmac-ring-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.bmac-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  text-decoration: none;
  color: #2a1a08;
  font-family: 'Permanent Marker', cursive;
  background: linear-gradient(180deg, #ffdd85 0%, #f4b83e 48%, #c78615 100%);
  border: 2px solid #6b4812;
  border-radius: 12px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 5px 0 #6b4812,
    0 7px 14px rgba(70, 40, 10, 0.35);
  overflow: hidden;
  cursor: pointer;
  transform: rotate(-1.5deg);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.18s ease;
  animation: bmac-wiggle 4.5s ease-in-out infinite;
  z-index: 1;
}
@keyframes bmac-wiggle {
  0%, 92%, 100% { transform: rotate(-1.5deg) translateY(0); }
  94%           { transform: rotate(-2.5deg) translateY(-1px); }
  96%           { transform: rotate(-0.5deg) translateY(-1px); }
  98%           { transform: rotate(-1.5deg) translateY(0); }
}

/* Tape strip at the top, like a sticker */
.bmac-btn::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  width: 52px; height: 10px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(212, 109, 58, 0.7);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

/* Shine sweep across the surface */
.bmac-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 65%
  );
  background-size: 250% 100%;
  background-position: 150% 0;
  transition: background-position 0.8s ease;
  mix-blend-mode: overlay;
  z-index: 2;
}
.bmac-btn:hover {
  transform: rotate(-1.5deg) translateY(-3px) scale(1.03);
  animation-play-state: paused;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 8px 0 #6b4812,
    0 12px 22px rgba(70, 40, 10, 0.45);
}
.bmac-btn:hover .bmac-shine {
  background-position: -150% 0;
}
.bmac-btn:active {
  transform: rotate(-1.5deg) translateY(3px) scale(0.98);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 1px 0 #6b4812,
    0 2px 5px rgba(70, 40, 10, 0.3);
}

/* Coffee cup with steam */
.bmac-cup {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.cup {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  animation: cup-bob 2.2s ease-in-out infinite;
}
@keyframes cup-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-1px) rotate(-3deg); }
}

/* Three steam wisps rising */
.steam {
  position: absolute;
  left: 50%;
  bottom: 70%;
  width: 3px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.4) 70%,
    rgba(255, 255, 255, 0) 100%);
  filter: blur(1.5px);
  opacity: 0;
  transform-origin: bottom center;
}
.steam-1 {
  margin-left: -9px;
  animation: steam-rise 2.4s ease-out infinite;
}
.steam-2 {
  margin-left: -1px;
  animation: steam-rise 2.4s ease-out infinite 0.7s;
}
.steam-3 {
  margin-left: 7px;
  animation: steam-rise 2.4s ease-out infinite 1.4s;
}
@keyframes steam-rise {
  0%   { opacity: 0; transform: translateY(0) scaleX(1) scaleY(0.5); }
  25%  { opacity: 0.9; }
  60%  { opacity: 0.6; transform: translateY(-14px) scaleX(1.3) scaleY(1.2); }
  100% { opacity: 0; transform: translateY(-26px) scaleX(1.8) scaleY(1.6); }
}

/* Text stack */
.bmac-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}
.bmac-lbl {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #2a1a08;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.bmac-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(70, 40, 10, 0.75);
  white-space: nowrap;
}

.footer-meta {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: var(--plastic-dark);
  letter-spacing: 2px;
  opacity: 0.75;
}
.footer-link {
  color: inherit;
  text-decoration: underline dotted;
}
.footer-link:hover { color: var(--accent-orange-dark); opacity: 1; }

/* Slightly smaller on narrow screens */
@media (max-width: 380px) {
  .bmac-btn { padding: 10px 18px 10px 14px; gap: 10px; }
  .bmac-lbl { font-size: 1rem; }
  .bmac-sub { font-size: 0.55rem; letter-spacing: 1.5px; }
  .cup { font-size: 1.4rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bmac-btn, .bmac-ring, .cup, .steam {
    animation: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 380px) {
  .app { padding: 14px 10px 30px; }
  .btn { font-size: 0.76rem; padding: 10px 10px; letter-spacing: 1px; }
  .btn-play .lbl { letter-spacing: 1.5px; }
  .btn-score { width: 34px; height: 34px; font-size: 1.2rem; }
  .score-value { min-width: 38px; font-size: 1.55rem; }
  .player-name { font-size: 1rem; }
  .speed-label { font-size: 0.65rem; letter-spacing: 2px; }
  .btn-speed { letter-spacing: 1px; }
  .btn-control { padding: 10px 6px; letter-spacing: 0.5px; }
  .btn-control .icn { font-size: 0.9rem; }
}

@media (min-width: 560px) {
  .app { padding: 24px 20px 50px; gap: 20px; }
  .panel { padding: 20px 18px; }
  .btn-play .lbl { letter-spacing: 3px; }
  .logo { font-size: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cassette, .cassette-body, .reel-inner, .reel-tape,
  .shimmer, .play-led, .tape-strip, .vu-needle, .bmac-btn {
    transition: none !important;
    animation: none !important;
  }
}