/* Mixer preview na home — mesma UI do /desk */

.hero-demo {
  --strip: #151e28;
  --strip-edge: #243040;
  --led-off: #1a3038;
  --led-on: #2ee6a6;
  animation: deskIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 10px), 0);
  will-change: transform;
}

.live-desk {
  position: relative;
  width: min(100%, 420px);
  margin-left: auto;
  height: min(52vh, 420px);
  min-height: 320px;
}

.live-desk .mixer-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.live-desk .mixer-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--desk);
  border: 1px solid var(--strip-edge);
  border-radius: 12px;
  padding: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  box-shadow:
    inset 0 1px 0 rgba(46, 230, 166, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(27, 184, 255, 0.04);
  overflow: hidden;
}

.live-desk .mixer {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}

.live-desk .strip {
  width: 96px;
  min-width: 84px;
  flex: 1 1 0;
  height: 100%;
  background: linear-gradient(180deg, #1a2430 0%, var(--strip) 18%, #0e151c 100%);
  border: 1px solid var(--strip-edge);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.live-desk .strip.is-active,
.live-desk .strip.is-on {
  border-color: #2a6a58;
  box-shadow: 0 0 0 1px rgba(46, 230, 166, 0.28), 0 0 18px rgba(46, 230, 166, 0.08);
}

.live-desk .strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-shrink: 0;
}

.live-desk .strip-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  max-width: 100%;
}

.live-desk .act-lamp {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--led-off);
  border: 1px solid #2a4050;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: background 0.05s, box-shadow 0.05s;
}

.live-desk .act-lamp[data-on="1"] {
  background: radial-gradient(circle at 35% 30%, #9affd8, var(--led-on));
  box-shadow: 0 0 14px rgba(46, 230, 166, 0.85), 0 0 4px #2ee6a6;
}

.live-desk .strip-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  align-items: center;
  gap: 6px;
}
.live-desk .strip-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.live-desk .strip-source.is-cloud {
  color: #041018;
  background: linear-gradient(180deg, #9ae7ff, #7dd3fc);
}
.live-desk .strip-source.is-sf2 {
  color: #1a1208;
  background: linear-gradient(180deg, #f0c06a, #e8a23a);
}
.live-desk .strip-source.is-webvst {
  color: #1a0814;
  background: linear-gradient(180deg, #ff9aef, #ff2bd6);
}
.live-desk .strip.is-webvst {
  border-color: rgba(255, 43, 214, 0.45);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.12);
}

.live-desk .fader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
  justify-content: stretch;
  width: 100%;
}

.live-desk .fader-wrap input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 10px;
  height: 100%;
  min-height: 80px;
  appearance: none;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  flex: 1;
}

.live-desk .fader-wrap input[type="range"]::-webkit-slider-runnable-track {
  width: 10px;
  height: 100%;
  background: linear-gradient(180deg, #3a444e, #1a2026);
  border-radius: 4px;
  border: 1px solid #0a0c0e;
}

.live-desk .fader-wrap input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 14px;
  margin-left: -7px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c8d0d8, #6a747e);
  border: 1px solid #1a1e22;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.live-desk .fader-wrap input[type="range"]::-moz-range-track {
  width: 10px;
  background: linear-gradient(180deg, #3a444e, #1a2026);
  border-radius: 4px;
  border: 1px solid #0a0c0e;
}

.live-desk .fader-wrap input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c8d0d8, #6a747e);
  border: 1px solid #1a1e22;
}

.live-desk .strip-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  margin-top: auto;
}

.live-desk .meter {
  width: 100%;
  height: 4px;
  background: rgba(10, 13, 16, 0.85);
  border: 1px solid rgba(42, 51, 60, 0.55);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  opacity: 0.85;
}

.live-desk .meter i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(26, 138, 92, 0.55), rgba(46, 230, 166, 0.7) 70%, rgba(232, 162, 58, 0.75));
  border-radius: inherit;
  transition: width 0.06s linear;
}

.live-desk .master-strip {
  --level: 0;
  position: relative;
  width: 72px;
  min-width: 64px;
  flex-shrink: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 28, 36, 0.95) 0%, rgba(8, 14, 20, 0.98) 100%),
    var(--desk);
  border: 1px solid #1a3a48;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transition: border-color 0.12s, box-shadow 0.12s;
  box-shadow:
    inset 0 1px 0 rgba(27, 184, 255, 0.08),
    inset 0 0 18px rgba(27, 184, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(27, 184, 255, 0.06);
}

.live-desk .master-strip[data-on="1"] {
  border-color: #2a6a78;
  box-shadow:
    inset 0 0 calc(12px + var(--level) * 28px) rgba(46, 230, 166, calc(0.06 + var(--level) * 0.28)),
    0 0 calc(6px + var(--level) * 22px) rgba(27, 184, 255, calc(var(--level) * 0.4));
}

.live-desk .master-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      120% 70% at 50% 100%,
      rgba(46, 230, 166, calc(var(--level) * 0.55)) 0%,
      rgba(27, 184, 255, calc(var(--level) * 0.18)) 42%,
      transparent 72%
    );
}

.live-desk .master-ui {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 12px;
  flex: 1;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.live-desk .master-strip .strip-head {
  width: 100%;
  justify-content: center;
}

.live-desk .master-strip .strip-name {
  color: var(--accent-2);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(27, 184, 255, 0.35);
  max-width: none;
}

.live-desk .master-strip .fader-wrap {
  flex: 1 1 auto;
}

.live-desk .master-strip .fader-wrap input[type="range"]::-webkit-slider-thumb {
  background: linear-gradient(180deg, #9adfff, #1bb8ff);
  border-color: #0a3a50;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 10px rgba(27, 184, 255, 0.45);
}

.live-desk .master-strip .fader-wrap input[type="range"]::-moz-range-thumb {
  background: linear-gradient(180deg, #9adfff, #1bb8ff);
  border-color: #0a3a50;
}

.live-desk .master-strip .act-lamp[data-on="1"] {
  background: radial-gradient(circle at 35% 30%, #9adfff, var(--accent-2));
  box-shadow: 0 0 12px rgba(27, 184, 255, 0.85);
}

@media (max-width: 900px) {
  .live-desk {
    margin: 0 auto;
    width: min(100%, 100%);
    max-width: 460px;
    height: 340px;
  }
}

@media (max-width: 560px) {
  .live-desk {
    width: 100%;
    height: 280px;
    min-height: 260px;
  }
  .live-desk .strip {
    min-width: 68px;
    padding: 6px 4px;
  }
  .live-desk .master-strip {
    width: 52px;
    min-width: 52px;
  }
  .live-desk .strip-name {
    font-size: 0.62rem;
  }
}
