/* CSS-drawn MPC 2000 */

:root {
  --beige: #d4cec3;
  --beige-dark: #b9b2a6;
  --beige-light: #e7e2d8;
  --ink: #2a2a2a;
  --red: #c31f1a;
  --pad: #9ea3a7;
  --pad-hi: #c5c8cb;
  --pad-lo: #6f7478;
  --well: #6a6f74;
  --lcd: #8eaa7c;
  --lcd-ink: #173318;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body.mpc-page {
  background: #1b1713;
  color: #ece6d8;
  overflow-x: hidden;
}

body.mpc-page .navbar .nav-link { color: #fff !important; }
body.mpc-page .navbar.affix .nav-link { color: #444 !important; }
body.mpc-page .navbar .nav-link:hover,
body.mpc-page .navbar.affix .nav-link:hover { color: #ff5733 !important; }
body.mpc-page .ml-4.nav-link.btn.btn-primary:hover {
  color: #fff !important;
  opacity: 0.85 !important;
}

.mpc-stage {
  min-height: 100dvh;
  padding: 5.4rem 0.7rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(90, 70, 45, 0.4), transparent 55%),
    #1b1713;
}

.mpc {
  width: min(1080px, 100%);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 11px,
      rgba(0, 0, 0, 0.018) 11px 12px
    ),
    linear-gradient(180deg, #e0dbd1 0%, var(--beige) 38%, #c6bfb3 100%);
  border: 1px solid #8f887c;
  border-radius: 10px 10px 16px 16px;
  padding: 0.7rem 0.75rem 1.15rem;
  box-shadow:
    inset 0 1px 0 #f6f2ea,
    inset 0 -14px 0 var(--beige-dark),
    0 22px 48px rgba(0, 0, 0, 0.55);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
}

.mpc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.1rem 0.2rem 0.45rem;
  border-bottom: 2px solid #a59e92;
  margin-bottom: 0.55rem;
}

.brand-red {
  display: block;
  color: var(--red);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.knob-row {
  display: flex;
  gap: 0.7rem;
}

.knob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: #444;
}

.knob {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    conic-gradient(from 140deg, #f3efe6, #9d978b, #efeae0, #b7b0a4, #f3efe6);
  box-shadow:
    0 3px 5px rgba(0, 0, 0, 0.35),
    inset 0 2px 2px #fff,
    inset 0 -3px 4px rgba(0, 0, 0, 0.25);
  position: relative;
}

.knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 11px;
  background: #2b2b2b;
  transform: translateX(-50%) rotate(28deg);
  transform-origin: bottom center;
  border-radius: 1px;
}

.knob[data-mark="gain"]::after {
  transform: translateX(-50%) rotate(-18deg);
}

.brand-right {
  text-align: right;
}

.model-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.95;
}

.model-name::first-line {
  color: #111;
}

.model-sub {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-top: 0.15rem;
}

.vents {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 0.4rem;
}

.vents span {
  width: 34px;
  height: 5px;
  background: linear-gradient(#9a9488, #ccc7bc);
  border-radius: 1px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}

.mpc-face {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 1fr);
  gap: 0.7rem 0.9rem;
}

.lcd-block {
  margin-bottom: 0.55rem;
}

.lcd {
  position: relative;
  background: linear-gradient(180deg, #a4be90 0%, var(--lcd) 55%, #7e9b6e 100%);
  border: 3px solid #2b2b2b;
  border-radius: 3px;
  min-height: 4.4rem;
  padding: 0.4rem 0.6rem 0.35rem;
  color: var(--lcd-ink);
  font-family: ui-monospace, "Cascadia Mono", "Nimbus Mono PS", monospace;
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.28),
    0 0 0 1px #6d675c;
  overflow: hidden;
}

.lcd::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.07) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}

.lcd-row,
.lcd-main {
  position: relative;
  z-index: 1;
}

.lcd-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.lcd-main {
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f-keys {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.left-deck {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 0.55rem;
  align-items: end;
}

.tiny-label {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: #444;
}

.slider-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.slider-track {
  width: 12px;
  height: 92px;
  border-radius: 2px;
  background: linear-gradient(#4a4742, #2e2c29);
  box-shadow: inset 0 0 4px #000;
  position: relative;
}

.slider-thumb {
  position: absolute;
  left: -6px;
  top: 28%;
  width: 24px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(#f0ebe1, #b7b0a4);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.22rem;
}

.hw-btn {
  appearance: none;
  border: 1px solid #8a8478;
  background: linear-gradient(#f4f0e7, #d8d2c6);
  color: #222;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
  min-height: 1.55rem;
  padding: 0.15rem 0.2rem;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 #7d776c;
  cursor: default;
}

.hw-btn.slim {
  min-height: 1.2rem;
  font-size: 0.52rem;
}

.hw-btn.rec {
  background: linear-gradient(#e85a4a, var(--red));
  color: #fff;
  border-color: #8a1814;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.wheel-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.data-wheel {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(#d9d3c8 0 8deg, #b7b0a4 8deg 12deg);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.35),
    inset 0 3px 4px #fff,
    inset 0 -4px 6px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
}

.data-wheel span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(#efeae1, #9f988c);
  box-shadow: inset 0 1px 1px #fff, 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cursor {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
}

.cursor-mid {
  display: flex;
  gap: 0.85rem;
}

.transport {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.28rem;
  margin-top: 0.55rem;
}

.mpc-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pad-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.led-group {
  display: flex;
  gap: 0.25rem;
}

.bank-btn,
.full-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid #8a8478;
  background: linear-gradient(#f4f0e7, #d8d2c6);
  color: #222;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 3px;
  min-height: 1.55rem;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a1a16;
  box-shadow: inset 0 1px 1px #000;
}

.bank-btn.active .led,
.full-btn.active .led {
  background: #ff3b28;
  box-shadow: 0 0 7px #ff4d2a;
}

.pad-well {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0.55rem 0.6rem;
  background: linear-gradient(180deg, #7b8085 0%, var(--well) 100%);
  border: 2px solid #585d61;
  border-radius: 6px;
  padding: 0.55rem 0.55rem 0.65rem;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-height: 0;
  aspect-ratio: 1;
}

.pad-cell {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pad-cap {
  font-size: clamp(0.48rem, 1.1vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #d8dde0;
  margin-bottom: 0.18rem;
}

.pad {
  appearance: none;
  border: 0;
  padding: 0;
  flex: 1;
  width: 100%;
  min-height: 52px;
  aspect-ratio: 1;
  border-radius: 9%;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  background:
    linear-gradient(160deg, var(--pad-hi) 0%, var(--pad) 46%, var(--pad-lo) 100%);
  box-shadow:
    0 4px 0 #4b5054,
    0 7px 10px rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -4px 6px rgba(0, 0, 0, 0.22);
  transition: transform 0.05s linear, box-shadow 0.05s linear, filter 0.05s linear;
}

.pad:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.pad.active {
  transform: translateY(3px);
  filter: brightness(1.18) saturate(1.15);
  box-shadow:
    0 1px 0 #4b5054,
    inset 0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 0 18px rgba(255, 170, 70, 0.35);
  background:
    linear-gradient(160deg, #e8d3a4 0%, #c9b48a 48%, #8f7a52 100%);
}

.mpc-hint {
  margin: 0;
  color: #8a8174;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 860px) {
  .mpc-face {
    grid-template-columns: 1fr;
  }

  .left-deck,
  .transport,
  .knob-row,
  .vents {
    display: none;
  }

  .mpc-header {
    align-items: center;
  }

  .model-name {
    font-size: 1.15rem;
  }

  .pad-well {
    aspect-ratio: 1;
  }

  .pad {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .mpc-stage {
    padding: 4.5rem 0.35rem 0.7rem;
    justify-content: flex-start;
  }

  .brand-left {
    display: none;
  }

  .lcd {
    min-height: 3.4rem;
  }

  .pad-well {
    gap: 0.35rem 0.38rem;
    padding: 0.4rem;
  }

  .pad-cap {
    font-size: 0.48rem;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .mpc-stage {
    padding-top: 3.5rem;
    justify-content: center;
  }

  .mpc-header,
  .mpc-left,
  .mpc-hint {
    display: none;
  }

  .mpc-face {
    grid-template-columns: 1fr;
  }

  .mpc {
    padding-bottom: 0.7rem;
  }

  .pad-well {
    aspect-ratio: auto;
    height: calc(100dvh - 6.2rem);
  }
}
