/* ===== Oscilloscope / neon green theme ===== */
:root {
  --bg: #060608;
  --bg-panel: #0a0c0d;
  --neon: #39ff14;
  --neon-dim: #2dd40f;
  --neon-glow: rgba(57, 255, 20, 0.5);
  --neon-glow-soft: rgba(57, 255, 20, 0.15);
  --text: #e0ffe0;
  --text-muted: #7a9e7a;
  --border: rgba(57, 255, 20, 0.2);
  --vinyl: #1a1a1a;
  --vinyl-ring: #333;
}

/* Color mode — white bg, colorful accents */
body.body-color-mode {
  --bg: #f8fafc;
  --bg-panel: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.12);
}

body.body-color-mode .splash-title { color: #6366f1; text-shadow: 0 0 30px rgba(99, 102, 241, 0.5); }
body.body-color-mode .btn-enter { color: #6366f1; border-color: #6366f1; }
body.body-color-mode .btn-enter:hover { background: rgba(99, 102, 241, 0.1); box-shadow: 0 0 24px rgba(99, 102, 241, 0.4); }
body.body-color-mode .toggle-thumb { background: linear-gradient(135deg, #f472b6, #6366f1); }
body.body-color-mode .btn-back,
body.body-color-mode .btn-presentation { background: #fff; color: #6366f1; border-color: rgba(0,0,0,0.15); }
body.body-color-mode .btn-back:hover,
body.body-color-mode .btn-presentation:hover { background: rgba(99, 102, 241, 0.1); border-color: #6366f1; }
body.body-color-mode .record-label { color: var(--text); }
body.body-color-mode .record-inner { box-shadow: inset 0 0 0 8px #ddd, inset 0 0 0 12px var(--vinyl), inset 0 0 0 14px #ddd, 0 4px 20px rgba(0,0,0,0.15); }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Full-screen canvas behind everything */
.osc-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Views ===== */
.view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.4s ease;
}

.view.hidden {
  display: none;
}

/* ===== Splash ===== */
.view-splash {
  text-align: center;
}

.splash-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: splash-fadein 1.2s ease both;
}

@keyframes splash-fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animated equalizer bars above the title */
.splash-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin-bottom: 1.8rem;
}

.splash-bars span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon-glow);
  animation: bar-bounce 1.2s ease-in-out infinite alternate;
}

.splash-bars span:nth-child(1)  { height: 16px; animation-delay: 0s;    animation-duration: 0.9s; }
.splash-bars span:nth-child(2)  { height: 32px; animation-delay: 0.1s;  animation-duration: 1.1s; }
.splash-bars span:nth-child(3)  { height: 44px; animation-delay: 0.2s;  animation-duration: 0.8s; }
.splash-bars span:nth-child(4)  { height: 24px; animation-delay: 0.05s; animation-duration: 1.3s; }
.splash-bars span:nth-child(5)  { height: 40px; animation-delay: 0.3s;  animation-duration: 1.0s; }
.splash-bars span:nth-child(6)  { height: 48px; animation-delay: 0.15s; animation-duration: 0.7s; }
.splash-bars span:nth-child(7)  { height: 36px; animation-delay: 0.25s; animation-duration: 1.2s; }
.splash-bars span:nth-child(8)  { height: 48px; animation-delay: 0.0s;  animation-duration: 0.85s; }
.splash-bars span:nth-child(9)  { height: 28px; animation-delay: 0.2s;  animation-duration: 1.1s; }
.splash-bars span:nth-child(10) { height: 40px; animation-delay: 0.1s;  animation-duration: 0.95s; }
.splash-bars span:nth-child(11) { height: 44px; animation-delay: 0.35s; animation-duration: 1.05s; }
.splash-bars span:nth-child(12) { height: 20px; animation-delay: 0.05s; animation-duration: 0.75s; }
.splash-bars span:nth-child(13) { height: 36px; animation-delay: 0.28s; animation-duration: 1.15s; }
.splash-bars span:nth-child(14) { height: 28px; animation-delay: 0.18s; animation-duration: 0.9s; }
.splash-bars span:nth-child(15) { height: 16px; animation-delay: 0.4s;  animation-duration: 1.0s; }

@keyframes bar-bounce {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to   { transform: scaleY(1);    opacity: 1; }
}

.splash-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 8px rgba(0,0,0,1), 0 0 2px rgba(0,0,0,1);
}

.splash-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--neon);
  text-shadow:
    0 0 20px var(--neon-glow),
    0 0 60px rgba(57, 255, 20, 0.25),
    0 2px 12px rgba(0,0,0,0.9),
    0 0 2px rgba(0,0,0,1);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.splash-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 8px rgba(0,0,0,1), 0 0 2px rgba(0,0,0,1);
}

.btn-enter {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  background: transparent;
  color: var(--neon);
  border: 2px solid var(--neon);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
}

.btn-enter::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 6px;
  pointer-events: none;
  transition: opacity 0.2s;
  opacity: 0;
}

.btn-enter:hover {
  background: var(--neon-glow-soft);
  box-shadow: 0 0 32px var(--neon-glow), 0 0 8px var(--neon-glow);
  transform: translateY(-2px);
}

.btn-enter:hover::before {
  opacity: 1;
}

.splash-credit {
  margin-top: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(57, 255, 20, 0.3);
  text-transform: uppercase;
}

/* ===== Selector view ===== */
.view-selector {
  justify-content: flex-start;
  padding-top: 1.5rem;
}

.selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.selector-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* 3-way mode switcher: Normal / Color / Tiles */
.mode-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mode-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.mode-btn {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mode-btn:hover {
  color: var(--text);
}

.mode-btn.active {
  background: var(--neon-glow-soft);
  color: var(--neon);
  box-shadow: 0 0 10px var(--neon-glow-soft);
}

body.body-color-mode .mode-btn.active {
  background: rgba(99,102,241,0.12);
  color: #6366f1;
  box-shadow: 0 0 10px rgba(99,102,241,0.15);
}

/* Records — side-by-side, no overlap, centered */
.records-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
}

.records-scroll {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  column-gap: 1.5rem;
  row-gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 680px;
  padding: 0 1rem 2rem;
}

.record {
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.35s ease, z-index 0.35s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.record:hover:not(.selected) {
  transform: translateY(-8px) scale(1.05);
  z-index: 5;
}

.record.selected {
  transform: translateY(-12px) scale(1.15);
  z-index: 10;
}

.record.selected .record-inner {
  box-shadow:
    inset 0 0 0 8px var(--vinyl-ring),
    inset 0 0 0 12px var(--vinyl),
    inset 0 0 0 14px var(--vinyl-ring),
    0 0 0 3px var(--neon),
    0 0 30px var(--neon-glow);
}

body.body-color-mode .record.selected .record-inner {
  box-shadow:
    inset 0 0 0 8px #ddd,
    inset 0 0 0 12px var(--vinyl),
    inset 0 0 0 14px #ddd,
    0 0 0 3px #6366f1,
    0 8px 32px rgba(99, 102, 241, 0.3);
}

.record:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 4px;
}

.record-inner {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--vinyl);
  box-shadow:
    inset 0 0 0 8px var(--vinyl-ring),
    inset 0 0 0 12px var(--vinyl),
    inset 0 0 0 14px var(--vinyl-ring),
    0 2px 12px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.35s ease;
}

.record-cover {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-panel);
  object-fit: cover;
  border: 2px solid var(--border);
  z-index: 1;
}

.record-label {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  min-height: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.record.selected .record-label {
  opacity: 1;
}

.records-hint {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.selector-footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
}

.selector-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.selector-footer .author {
  margin-top: 0.25rem;
}

/* ===== Player view ===== */
.view-player {
  align-items: stretch;
  justify-content: flex-start;
  padding: 1rem 2rem 2rem;
}

.btn-back,
.btn-presentation {
  position: absolute;
  top: 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: var(--bg-panel);
  color: var(--neon);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
}

.btn-back { left: 2rem; }
.btn-presentation { right: 2rem; }

.btn-back:hover,
.btn-presentation:hover {
  background: var(--neon-glow-soft);
  border-color: var(--neon);
}

.player-layout {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.progress-bar-wrap.scrubbing {
  cursor: grabbing;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.video-placeholder.hidden {
  display: none;
}

.player-details {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.player-cover-wrap {
  flex-shrink: 0;
}

.player-record {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--vinyl);
  box-shadow:
    inset 0 0 0 10px var(--vinyl-ring),
    inset 0 0 0 15px var(--vinyl),
    inset 0 0 0 18px var(--vinyl-ring),
    0 2px 16px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.player-record.spinning {
  animation: record-spin 3s linear infinite;
  box-shadow:
    inset 0 0 0 10px var(--vinyl-ring),
    inset 0 0 0 15px var(--vinyl),
    inset 0 0 0 18px var(--vinyl-ring),
    0 0 0 2px var(--neon),
    0 0 20px var(--neon-glow);
}

body.body-color-mode .player-record.spinning {
  box-shadow:
    inset 0 0 0 10px #ddd,
    inset 0 0 0 15px var(--vinyl),
    inset 0 0 0 18px #ddd,
    0 0 0 2px #6366f1,
    0 0 20px rgba(99,102,241,0.35);
}

.player-cover {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  z-index: 1;
}

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

.player-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.player-artist,
.player-album {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.player-footer {
  text-align: center;
  padding-top: 1rem;
}

.player-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ===== Progress bar ===== */
.progress-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(57, 255, 20, 0.12);
  z-index: 5;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar-wrap:hover,
.progress-bar-wrap.scrubbing {
  height: 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
  transition: width 0.25s linear;
  pointer-events: none;
}

body.body-color-mode .progress-bar-wrap {
  background: rgba(99, 102, 241, 0.12);
}

body.body-color-mode .progress-bar-fill {
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* ===== Record spin animation ===== */
@keyframes record-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.record.playing .record-inner {
  animation: record-spin 2.4s linear infinite;
}


/* ===== Presentation mode ===== */
.view-player.presentation .btn-back,
.view-player.presentation .player-details,
.view-player.presentation .player-footer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.view-player.presentation .btn-presentation {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.view-player.presentation .video-wrap {
  flex: 1;
  max-height: calc(100vh - 4rem);
}

.view-player.presentation .player-video {
  object-fit: contain;
}

/* Scanline overlay — normal mode only */
.view-splash::after,
.view-selector::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 0;
}

body.body-color-mode .view-splash::after,
body.body-color-mode .view-selector::before {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.02) 2px,
    rgba(0,0,0,0.02) 4px
  );
}

.view-splash .splash-content,
.selector-header,
.records-wrap,
.selector-footer,
.player-layout {
  position: relative;
  z-index: 1;
}

/* ===== Add Song button ===== */
.btn-add-song {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  background: var(--neon-glow-soft);
  color: var(--neon);
  border: 1px solid var(--neon);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-add-song:hover {
  background: rgba(57,255,20,0.2);
  box-shadow: 0 0 16px var(--neon-glow);
}

body.body-color-mode .btn-add-song {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  border-color: #6366f1;
}

/* ===== Upload Modal ===== */
.upload-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.upload-modal.hidden { display: none; }

.upload-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

.upload-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s;
}

.upload-close:hover { color: var(--text); }

.upload-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1.25rem;
}

body.body-color-mode .upload-title { color: #6366f1; }


.upload-panel { margin-bottom: 1rem; }
.upload-panel.hidden { display: none; }

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 100px;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--neon);
  background: var(--neon-glow-soft);
}

.drop-zone-icon { font-size: 1.8rem; color: var(--neon); }
body.body-color-mode .drop-zone-icon { color: #6366f1; }

.drop-zone-text { font-size: 0.78rem; color: var(--text-muted); }

.drop-zone-file {
  font-size: 0.75rem;
  color: var(--neon);
  font-weight: 600;
  word-break: break-all;
  text-align: center;
}

body.body-color-mode .drop-zone-file { color: #6366f1; }

.upload-top-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.upload-record-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.upload-track-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  word-break: break-word;
  line-height: 1.3;
  min-height: 1rem;
}

.upload-cover-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--vinyl);
  box-shadow:
    inset 0 0 0 8px var(--vinyl-ring),
    inset 0 0 0 12px var(--vinyl),
    inset 0 0 0 14px var(--vinyl-ring),
    0 2px 10px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.upload-cover-preview.has-cover {
  box-shadow:
    inset 0 0 0 8px var(--vinyl-ring),
    inset 0 0 0 12px var(--vinyl),
    inset 0 0 0 14px var(--vinyl-ring),
    0 0 0 2px var(--neon),
    0 0 16px var(--neon-glow);
  animation: record-spin 3s linear infinite;
}

body.body-color-mode .upload-cover-preview.has-cover {
  box-shadow:
    inset 0 0 0 8px #ddd,
    inset 0 0 0 12px var(--vinyl),
    inset 0 0 0 14px #ddd,
    0 0 0 2px #6366f1,
    0 0 16px rgba(99,102,241,0.35);
}

.upload-cover-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.upload-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.upload-cover-img.hidden { display: none; }

.upload-cover-placeholder {
  font-size: 1rem;
  color: var(--text-muted);
}

.upload-cover-status {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  line-height: 1.3;
}

/* ===== Record Reveal Animation ===== */
@keyframes reveal-in {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes reveal-out {
  from { opacity: 1; transform: scale(1) translate(0, 0); }
  to   { opacity: 0; transform: scale(0.15) translate(var(--tx), var(--ty)); }
}

@keyframes reveal-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.record-reveal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  backdrop-filter: blur(8px);
}

.record-reveal.hidden { display: none; }

.reveal-record {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--vinyl);
  box-shadow:
    inset 0 0 0 20px var(--vinyl-ring),
    inset 0 0 0 30px var(--vinyl),
    inset 0 0 0 36px var(--vinyl-ring),
    0 0 0 3px var(--neon),
    0 0 60px var(--neon-glow),
    0 8px 40px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: record-spin 3s linear infinite, reveal-in 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
  transform-origin: center;
}

body.body-color-mode .reveal-record {
  box-shadow:
    inset 0 0 0 20px #ddd,
    inset 0 0 0 30px var(--vinyl),
    inset 0 0 0 36px #ddd,
    0 0 0 3px #6366f1,
    0 0 60px rgba(99,102,241,0.5),
    0 8px 40px rgba(0,0,0,0.4);
}

.reveal-record-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-panel);
  border: 2px solid var(--border);
}

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

.reveal-info {
  text-align: center;
  animation: reveal-fade 0.4s ease 0.3s both;
}

.reveal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 20px var(--neon-glow);
}

body.body-color-mode .reveal-title { color: #6366f1; text-shadow: none; }

.reveal-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.upload-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.upload-input:focus { border-color: var(--neon); }
body.body-color-mode .upload-input:focus { border-color: #6366f1; }

.upload-settings {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.upload-setting-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upload-setting-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.upload-select {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  flex: 1;
}

.upload-slider {
  flex: 1;
  accent-color: var(--neon);
}

body.body-color-mode .upload-slider { accent-color: #6366f1; }

.upload-slider-val {
  font-size: 0.72rem;
  color: var(--neon);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

body.body-color-mode .upload-slider-val { color: #6366f1; }

.upload-submit {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem;
  background: var(--neon-glow-soft);
  color: var(--neon);
  border: 2px solid var(--neon);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.upload-submit:hover {
  background: rgba(57,255,20,0.2);
  box-shadow: 0 0 20px var(--neon-glow);
}

.upload-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body.body-color-mode .upload-submit {
  color: #6366f1;
  border-color: #6366f1;
  background: rgba(99,102,241,0.1);
}

.upload-progress { margin-top: 1.25rem; }
.upload-progress.hidden { display: none; }

.upload-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.upload-progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.upload-progress-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon);
}

body.body-color-mode .upload-progress-pct { color: #6366f1; }

.upload-progress-track {
  height: 6px;
  background: rgba(57,255,20,0.12);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

body.body-color-mode .upload-progress-track {
  background: rgba(99,102,241,0.12);
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon-glow);
  transition: width 0.4s ease;
  border-radius: 3px;
}

body.body-color-mode .upload-progress-fill {
  background: #6366f1;
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

.upload-progress-phases {
  display: flex;
  gap: 1rem;
}

.upload-phase {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.upload-phase.active { color: var(--neon); }
body.body-color-mode .upload-phase.active { color: #6366f1; }

/* ===== Info button (selector footer) ===== */
.btn-info {
  display: block;
  margin: 0 auto 1rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--neon);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-info:hover {
  background: var(--neon-glow-soft);
  border-color: var(--neon);
  box-shadow: 0 0 16px var(--neon-glow-soft);
}

body.body-color-mode .btn-info {
  color: #6366f1;
  border-color: rgba(99,102,241,0.3);
}

body.body-color-mode .btn-info:hover {
  background: rgba(99,102,241,0.08);
  border-color: #6366f1;
}

/* ===== Info view ===== */
.view-info {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4rem 2rem 3rem;
}

.btn-back-info {
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: var(--bg-panel);
  color: var(--neon);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
}

.btn-back-info:hover {
  background: var(--neon-glow-soft);
  border-color: var(--neon);
}

body.body-color-mode .btn-back-info {
  background: #fff;
  color: #6366f1;
  border-color: rgba(0,0,0,0.15);
}

body.body-color-mode .btn-back-info:hover {
  background: rgba(99,102,241,0.08);
  border-color: #6366f1;
}

.info-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.info-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

body.body-color-mode .info-heading {
  color: #6366f1;
  text-shadow: 0 0 20px rgba(99,102,241,0.4);
}

.info-subheading {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.info-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 20px var(--neon-glow-soft);
}

body.body-color-mode .info-card:hover {
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99,102,241,0.15);
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-card-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon-glow);
}

body.body-color-mode .info-card-icon {
  color: #6366f1;
  text-shadow: none;
}

.info-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.info-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-family: 'JetBrains Mono', monospace;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.info-tag {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--neon-glow-soft);
  color: var(--neon);
  border: 1px solid rgba(57,255,20,0.25);
  margin-top: 0.1rem;
}

body.body-color-mode .info-tag {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  border-color: rgba(99,102,241,0.25);
}

/* Palette tag accent colors */
.palette-whiskey { background: rgba(245,158,11,0.15); color: #f59e0b; border-color: rgba(245,158,11,0.3); }
.palette-sure     { background: rgba(167,139,250,0.15); color: #a78bfa; border-color: rgba(167,139,250,0.3); }
.palette-prophecy { background: rgba(139,92,246,0.15); color: #8b5cf6; border-color: rgba(139,92,246,0.3); }
.palette-folding  { background: rgba(20,184,166,0.15); color: #14b8a6; border-color: rgba(20,184,166,0.3); }
.palette-rainbow  { background: rgba(236,72,153,0.15); color: #ec4899; border-color: rgba(236,72,153,0.3); }

/* Tech stack */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tech-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.06em;
}

body.body-color-mode .tech-name {
  color: #6366f1;
}

.tech-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
}
