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

:root{
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-edge: #e2e8f0;
  --step-off: #f1f5f9;
  --step-off-alt: #e2e8f0;
  --teal: #2563eb;
  --teal-dim: #1d4ed8;
  --text: #000000;
  --text-dim: #475569;
  --danger: #dc2626;
  --c-kick: #2563eb;
  --c-snare: #3b82f6;
  --c-chat: #1d4ed8;
  --c-ohat: #60a5fa;
  --c-clap: #0284c7;
  --c-tom: #1e40af;
}
*{box-sizing:border-box;}

.device{ width:100%; max-width:720px; 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; }

.panel{
  background: var(--panel); border:1px solid var(--panel-edge); border-radius:10px;
  padding:18px; 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;
}

.transport{ display:flex; align-items:center; gap:14px; margin-bottom:16px; flex-wrap:wrap; }
.play-btn{
  flex-shrink:0; width:52px; height:52px; 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:18px; height:18px; }
.tempo-block{ display:flex; align-items:center; gap:10px; }
.tempo-label{ font-size:12px; color:var(--text-dim); font-weight:500; }
.tempo-num{ font-family:'JetBrains Mono', monospace; font-size:22px; font-weight:700; color:var(--teal); min-width:74px; text-align:center; }
input[type=range].hslider{
  -webkit-appearance:none; width:130px; 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);
}
.util-btns{ display:flex; gap:8px; margin-left:auto; }
.util-btn{
  padding:9px 12px; border-radius:7px; border:1px solid #cbd5e1;
  background: #ffffff; color: var(--teal); font-family:'JetBrains Mono', monospace;
  font-size:11px; font-weight:600; letter-spacing:0.5px; cursor:pointer; transition: all 0.15s ease;
}
.util-btn:hover{ background: #eff6ff; border-color: var(--teal); }

.vol-row{ display:flex; align-items:center; gap:10px; }
.vol-row label{ font-size:12px; color:var(--text-dim); min-width:56px; font-weight:500; }

.grid-wrap{ overflow-x:auto; }
.track-row{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.track-row:last-child{ margin-bottom:0; }
.track-label{
  width:76px; flex-shrink:0; font-size:12px; font-weight:600; color: var(--text);
  display:flex; align-items:center; gap:6px; cursor: pointer; user-select: none;
  border-radius: 6px; padding: 4px 6px; margin: -4px -6px -4px 0;
  transition: all 0.15s ease;
}
.track-label:hover{ background: #eff6ff; color: var(--teal); }
.track-label:active{ transform: scale(0.96); }
.track-label .swatch{ width:8px; height:8px; border-radius:2px; flex-shrink:0; }
.steps{ display:flex; gap:4px; }
.step-group{ display:flex; gap:4px; margin-right:8px; }
.step-group:last-child{ margin-right:0; }
.step{
  width:26px; height:26px; border-radius:5px; border:1px solid var(--panel-edge);
  background: var(--step-off); cursor:pointer; padding:0; transition: all 0.05s ease;
  flex-shrink:0;
}
.step.alt{ background: var(--step-off-alt); }
.step.playhead{ border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.step.active.kick{ background: var(--c-kick); border-color: var(--c-kick); box-shadow: 0 0 6px rgba(37,99,235,0.5); }
.step.active.snare{ background: var(--c-snare); border-color: var(--c-snare); box-shadow: 0 0 6px rgba(59,130,246,0.5); }
.step.active.chat{ background: var(--c-chat); border-color: var(--c-chat); box-shadow: 0 0 6px rgba(29,78,216,0.5); }
.step.active.ohat{ background: var(--c-ohat); border-color: var(--c-ohat); box-shadow: 0 0 6px rgba(96,165,250,0.5); }
.step.active.clap{ background: var(--c-clap); border-color: var(--c-clap); box-shadow: 0 0 6px rgba(2,132,199,0.5); }
.step.active.tom{ background: var(--c-tom); border-color: var(--c-tom); box-shadow: 0 0 6px rgba(30,64,175,0.5); }
.step.active.firing{ filter: brightness(1.2); }

.footer-note{ font-size:11px; color:var(--text-dim); text-align:center; margin-top:24px; line-height:1.7; }

@media (max-width:480px){
  .step{ width:20px; height:20px; }
  .track-label{ width:58px; font-size:10px; }
  .steps{ gap:3px; }
  .step-group{ gap:3px; margin-right:6px; }
  .tempo-block{ order:3; width:100%; margin-top:8px; }
  .util-btns{ margin-left:0; }
}
