:root {
  --bg: #0b0f18;
  --panel: #121826;
  --accent: #7c3aed;
  --text: #e5e7eb;
  --muted: #9aa0a6;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 600px at 20% 20%, #1f2937, transparent),
              radial-gradient(800px 500px at 80% 0%, #0ea5e9, transparent),
              linear-gradient(180deg, #0b0f18, #0b0f18);
  overflow: hidden;
}
.app { display: grid; grid-template-rows: auto 1fr; height: 100vh; position: relative; z-index: 1; }
.header { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 20px 24px; gap: 8px; }
.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.header h1 { margin: 0; font-size: 2em; letter-spacing: 0.5px; color: #39ff14; text-shadow: 0 0 6px rgba(57,255,20,0.8), 0 0 12px rgba(57,255,20,0.6), 0 0 24px rgba(57,255,20,0.4); }
.controls { display: flex; gap: 12px; align-items: center; }
#search {
  background: var(--panel);
  border: 1px solid #232a3b;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 240px;
}
.modes { display: flex; gap: 8px; }
.toggle {
  background: var(--panel);
  border: 1px solid #232a3b;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
}
.toggle.active { background: #1b2333; border-color: #334155; }
.filter-bar { display: flex; gap: 8px; width: 100%; align-items: center; flex-wrap: wrap; }
.filter-group { display: flex; gap: 8px; overflow: auto; padding-bottom: 2px; }
#artist-select, #month-select, #year-select { padding: 6px 8px; font-size: 12px; border-radius: 8px; line-height: 1; }
.main { display: grid; grid-template-columns: 40% 60%; gap: 24px; padding: 0 24px 24px; min-height: 0; }
.list { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.status { padding: 8px 12px; font-size: 12px; color: var(--muted); background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; z-index: 1; }
.logo-wrap { display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.crm-logo { width: 30%; height: auto; border-radius: 8px; display: block; }
#track-list { list-style: none; padding: 0; margin: 0; overflow: auto; flex: 1 1 auto; }
#track-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; }
#track-list li:hover { background: rgba(124,58,237,0.12); }
#track-list .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#track-list .date { color: var(--muted); font-size: 12px; }
.player { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; display: grid; grid-template-rows: auto auto auto auto; gap: 16px; height: 100%; overflow: hidden; }
#visualizer { width: 100%; height: 240px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.viz-wrap { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.crm-side { width: auto; height: 240px; border-radius: 12px; display: block; }
.meta { display: grid; gap: 4px; }
.title { font-weight: 700; font-size: 18px; }
.subtitle { color: var(--muted); font-size: 13px; }
.progress { display: grid; gap: 8px; }
#seek { width: 100%; appearance: none; height: 6px; border-radius: 999px; background: #1f2937; outline: none; }
#seek::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; }
.time { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.actions { display: flex; justify-content: center; gap: 12px; }
.btn { background: #1b2333; color: var(--text); border: 1px solid #334155; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.volume { display: flex; justify-content: center; align-items: center; gap: 10px; }
#volume { width: 200px; appearance: none; height: 6px; border-radius: 999px; background: #1f2937; outline: none; }
#volume::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; }
#background-notes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.anim-toggle { position: fixed; top: 12px; right: 12px; z-index: 2; }
.paused-anims * { animation-play-state: paused !important; }
.note { position: absolute; bottom: -20px; opacity: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); animation-name: float; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes float { 0% { transform: translate3d(0,0,0) rotate(0deg); opacity: 0.0; } 10% { opacity: 0.7; } 100% { transform: translate3d(var(--drift, 0px), -110vh, 0) rotate(360deg); opacity: 0; } }
#bg-liquid { position: fixed; inset: 0; pointer-events: none; z-index: 0; mix-blend-mode: screen; }
.note { position: absolute; bottom: -20px; opacity: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); animation-name: float; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes float { 0% { transform: translate3d(0,0,0) rotate(0deg); opacity: 0.0; } 10% { opacity: 0.7; } 100% { transform: translate3d(var(--drift, 0px), -110vh, 0) rotate(360deg); opacity: 0; } }
@media (max-width: 900px) {
  body { overflow: auto; }
  .app { height: 100svh; }
  .header { padding: 12px; }
  .header h1 { font-size: 1.4em; }
  .controls { gap: 8px; }
  #search { min-width: 160px; }
  .main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding: 0 12px 12px; min-height: 0; }
  .list { order: 2; height: 100%; }
  #visualizer { height: 90px; }
  .player { height: auto; padding: 12px; }
  .actions { gap: 8px; }
  .title { font-size: 16px; }
  .subtitle { font-size: 12px; }
  .viz-wrap { grid-template-columns: 1fr auto; }
  .crm-side { height: 90px; width: auto; }
}
 
}
