@import url('/assets/css/utils.css');

:root{
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-edge: #e2e8f0;
  --teal: #2563eb;
  --teal-dim: #1d4ed8;
  --lavender: #4f46e5;
  --amber: #d97706;
  --text: #000000;
  --text-dim: #475569;
  --danger: #dc2626;
}
*{box-sizing:border-box;}

.device{ width:100%; max-width:640px; margin: 0 auto; padding: 20px 0; }
.brand{ display:flex; align-items:baseline; gap:10px; margin-bottom:6px; flex-wrap:wrap; }
.brand h1{ font-family:'JetBrains Mono', monospace; font-size:20px; font-weight:700; letter-spacing:0.5px; margin:0; color: var(--text); display:inline; }
.brand h2{ font-family:'Inter', sans-serif; font-size:14px; font-weight:500; color:var(--text-dim); margin:0; display:inline; text-transform:none; letter-spacing:normal; }
.brand .dot{ width:8px;height:8px;border-radius:50%; background: var(--teal); box-shadow: 0 0 6px var(--teal); flex-shrink:0; }
.sub{ color:var(--text-dim); font-size:13px; margin:0 0 24px; line-height:1.6; }

.scope{
  background: #ffffff;
  border:1px solid var(--panel-edge);
  border-radius:10px;
  overflow:hidden;
  margin-bottom:20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.scope-header{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 14px; border-bottom:1px solid var(--panel-edge);
  font-family:'JetBrains Mono', monospace; font-size:11px;
  color:var(--text-dim); letter-spacing:1px; text-transform:uppercase; font-weight:600;
}
canvas#spectrum{ display:block; width:100%; height:150px; background: #ffffff; }
.readout-row{
  display:flex; justify-content:space-between; padding:10px 14px;
  border-top:1px solid var(--panel-edge);
  font-family:'JetBrains Mono', monospace; font-size:12px; background: #ffffff;
}
.readout-row span.label{ color:var(--text-dim); font-weight:500; }
.readout-row span.val{ color:var(--teal); font-weight:600; }

.panel{
  background: var(--panel); border:1px solid var(--panel-edge);
  border-radius:10px; padding:20px; margin-bottom:16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.panel h2{
  font-family:'JetBrains Mono', monospace; font-size:11px;
  text-transform:uppercase; letter-spacing:1.5px; color:var(--text-dim);
  margin:0 0 16px; font-weight:600;
}

.presets{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; margin-bottom:20px;
}
.preset-btn{
  background: #ffffff; border:1px solid var(--panel-edge); border-radius:7px;
  padding:10px 4px 8px; cursor:pointer; color:var(--text);
  font-family:'Inter', sans-serif; transition: all 0.15s ease; text-align:center;
}
.preset-btn .name{ display:block; font-size:12px; font-weight:600; margin-bottom:2px; }
.preset-btn .desc{ display:block; font-family:'JetBrains Mono', monospace; font-size:9px; color:var(--text-dim); }
.preset-btn:hover{ background: #eff6ff; border-color: var(--teal); }
.preset-btn.active{ border-color: var(--teal); background: var(--teal); color: #ffffff; box-shadow: 0 2px 4px rgba(37,99,235,0.2); }
.preset-btn.active .desc{ color: #ffffff; opacity:0.9; }

.eq{
  display:flex; justify-content:space-between; gap:6px; margin-bottom:8px;
}
.band{
  display:flex; flex-direction:column; align-items:center; flex:1; min-width:0;
}
.band .gainval{
  font-family:'JetBrains Mono', monospace; font-size:10px; color:var(--teal);
  margin-bottom:8px; height:14px; font-weight:600;
}
.fader-track{
  position:relative; height:140px; width:100%;
  display:flex; justify-content:center;
}
input[type=range].vfader{
  -webkit-appearance:none;
  width:140px; height:6px !important;
  background: #cbd5e1;
  border-radius:3px;
  outline:none;
  transform: rotate(-90deg);
  position:absolute;
  top:68px; left:50%;
  margin-left:-70px;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
input[type=range].vfader::-webkit-slider-runnable-track{
  height: 6px;
  background: #cbd5e1;
  border-radius: 3px;
  border: none;
  padding: 0 !important;
}
input[type=range].vfader::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:20px; height:20px; border-radius:50%;
  background: var(--teal);
  border: 2px solid #ffffff;
  cursor:pointer;
  box-shadow: 0 0 6px rgba(37,99,235,0.5);
  margin-top: -7px;
}
input[type=range].vfader::-moz-range-thumb{
  width:20px; height:20px; border-radius:50%;
  background: var(--teal); border: 2px solid #ffffff; cursor:pointer;
  box-shadow: 0 0 6px rgba(37,99,235,0.5);
}
input[type=range].vfader::-moz-range-track{
  height:6px; background: #cbd5e1; border-radius:3px;
  padding: 0 !important; border: none !important;
}
.band .hz{
  font-family:'JetBrains Mono', monospace; font-size:10px; color:var(--text-dim);
  margin-top:8px; font-weight: 500;
}
.zero-line{
  position:absolute; top:68px; left:0; right:0; height:1px;
  background: #cbd5e1;
}

.controls-row{ display:flex; align-items:center; gap:16px; }
.play-btn{
  flex-shrink:0; width:56px; height:56px; border-radius:50%;
  border:1px solid var(--teal-dim); background: var(--teal);
  color: #ffffff; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: all 0.15s ease; box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}
.play-btn:hover{ background: var(--teal-dim); }
.play-btn.playing{ background: var(--danger); border-color: var(--danger); color: #ffffff; }
.play-btn svg{ width:20px; height:20px; }
.vol-block{ flex:1; }
.slider-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.slider-top label{ font-size:13px; color:var(--text); font-weight:500; }
.slider-top .value{ font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--teal); font-weight:600; }
input[type=range].hslider{
  -webkit-appearance:none; width:100%; height:6px !important;
  background: #cbd5e1; border-radius:3px; outline:none;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
input[type=range].hslider::-webkit-slider-runnable-track{
  height: 6px;
  background: transparent;
  border-radius: 3px;
  border: none;
  padding: 0 !important;
}
input[type=range].hslider::-webkit-slider-thumb{
  -webkit-appearance:none; width:18px; height:18px; border-radius:50%;
  background: var(--teal); border: 2px solid #ffffff; cursor:pointer;
  box-shadow: 0 0 6px rgba(37,99,235,0.5);
  margin-top:-6px;
}
input[type=range].hslider::-moz-range-thumb{
  width:18px; height:18px; border-radius:50%; background: var(--teal); border: 2px solid #ffffff; cursor:pointer;
  box-shadow: 0 0 6px rgba(37,99,235,0.5);
}
.footer-note{ font-size:11px; color:var(--text-dim); text-align:center; margin-top:24px; line-height:1.7; }

@media (max-width: 480px){
  .presets{ grid-template-columns: repeat(4, 1fr); }
  .fader-track{ height:110px; }
  input[type=range].vfader{ width:110px; height:6px !important; top:53px; margin-left:-55px; }
  .zero-line{ top:53px; }
  .band .hz{ font-size:8px; }
}
