:root {
  --bg: #07111f;
  --bg2: #0b1930;
  --panel: rgba(8, 18, 38, 0.86);
  --line: #1d355f;
  --text: #f6f8ff;
  --muted: #9ab0d6;
  --green1: #31d37b;
  --green2: #18b65f;
  --amber1: #f6c64f;
  --amber2: #d39a10;
  --blue1: #5eb1ff;
  --blue2: #2e82df;
  --darkbtn: #16284a;
  --darkbtn2: #0c1b35;
  --red1: #f35b67;
  --red2: #c93c4d;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(16, 85, 74, 0.35), transparent 22%),
    radial-gradient(circle at top left, rgba(36, 91, 181, 0.25), transparent 24%),
    linear-gradient(180deg, #040913, #07111f 36%, #040a14 100%);
}

body {
  padding: 18px;
}

.shell {
  max-width: 1580px;
  margin: 0 auto;
}

.panel {
  border: 1px solid rgba(77, 122, 202, 0.32);
  background: linear-gradient(180deg, rgba(10, 23, 49, 0.92), rgba(5, 13, 27, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  border-radius: 24px;
  padding: 18px 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 14px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #56b3ff;
  font-weight: 800;
}

.hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.global-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 16px 26px;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 8px 22px rgba(0,0,0,0.3);
  transition: transform 0.08s ease, filter 0.18s ease;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-start { background: linear-gradient(180deg, var(--green1), var(--green2)); color: #062511; }
.btn-stop { background: linear-gradient(180deg, #20365f, #132341); color: #f2f7ff; }
.btn-clear { background: linear-gradient(180deg, var(--amber1), var(--amber2)); color: #221400; }

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.track {
  border-radius: 22px;
  padding: 14px;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto auto;
  gap: 12px;
  border: 1px solid rgba(77, 122, 202, 0.28);
  background: linear-gradient(180deg, rgba(15, 29, 58, 0.94), rgba(7, 14, 28, 0.92));
  box-shadow: var(--shadow);
}

.track-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.track-title {
  margin: 0;
  font-size: 44px;
  line-height: 1;
}

.hotkey-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  color: #cce7ff;
  background: linear-gradient(180deg, #0e1e3d, #081228);
  border: 1px solid #294575;
}

.file-wrap {
  display: grid;
  gap: 8px;
}

.file-input {
  width: 100%;
  font-size: 14px;
}

.filename {
  min-height: 44px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #031023;
  border: 1px solid #17325a;
  color: #dcecff;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pad-btn {
  width: 100%;
  min-height: 88px;
  border: 0;
  border-radius: 20px;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.pad-btn.on {
  background: linear-gradient(180deg, #2fda7d, #1eb663);
  color: #041f0f;
  box-shadow: 0 0 0 1px rgba(94, 255, 174, 0.26), 0 0 28px rgba(39, 231, 124, 0.23), inset 0 1px 0 rgba(255,255,255,0.25);
}

.pad-btn.off {
  background: linear-gradient(180deg, #1f324f, #11213d);
  color: #d8e8ff;
}

.pad-btn:active,
.solo-btn:active {
  transform: translateY(1px) scale(0.995);
}

.solo-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(180deg, #172b4c, #0f1f3c);
  color: #f4f8ff;
}

.solo-btn.on {
  background: linear-gradient(180deg, #f5c653, #d79a0b);
  color: #241500;
  box-shadow: 0 0 0 1px rgba(255, 212, 95, 0.26), 0 0 24px rgba(245, 197, 83, 0.22), inset 0 1px 0 rgba(255,255,255,0.22);
}

.fader {
  display: grid;
  gap: 6px;
}

.fader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.volume-slider {
  width: 100%;
  accent-color: var(--blue1);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat {
  border-radius: 14px;
  padding: 10px 12px;
  background: #061225;
  border: 1px solid #17325a;
}

.stat-label {
  font-size: 12px;
  color: #9dc1ef;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.stat-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
}

.help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 1400px) {
  .tracks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-title { font-size: 38px; }
}

@media (max-width: 900px) {
  body { padding: 12px; }
  .hero { grid-template-columns: 1fr; }
  .global-controls { justify-content: stretch; }
  .global-controls .btn { flex: 1 1 180px; font-size: 20px; }
  .tracks-grid { grid-template-columns: 1fr; }
  .track-title { font-size: 34px; }
}
