/* djs.lt — virtual DJ setup */

:root {
  --bg: #15171c;
  --panel: #20232b;
  --panel2: #262a33;
  --line: #31353f;
  --text: #c9ced8;
  --dim: #8b91a0;
  --amber: #f0a03c;
  --cyan: #45c6d6;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1100px 650px at 50% -10%, #242836 0%, rgba(36, 40, 54, 0) 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  overscroll-behavior-y: none;
  display: flex;
  flex-direction: column;
}

main { width: 100%; max-width: 1420px; margin: 0 auto; padding: 0 14px; flex: 1; }

/* ---------- header ---------- */

.site-header { text-align: center; padding: 26px 14px 10px; }

.logo {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: .22em;
  color: #e8ebf2;
  text-shadow: 0 2px 18px rgba(240, 160, 60, .18);
}
.logo span { color: var(--amber); }

.tagline { margin: 6px 0 0; color: var(--dim); font-size: 13px; letter-spacing: .04em; }

/* ---------- setup layout ---------- */

.setup {
  display: grid;
  grid-template-columns: minmax(0, 580px) clamp(232px, 22vw, 264px) minmax(0, 580px);
  justify-content: center;
  align-items: stretch;
  gap: clamp(10px, 1.8vw, 24px);
  margin-top: 14px;
}

.deck { min-width: 0; }

.deck-svg {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- deck SVG styling ---------- */

.t-brand  { fill: #dfe3ea; font-size: 17px; font-weight: 700; letter-spacing: 2.5px; }
.t-model  { fill: #8b91a0; font-size: 9px;  font-weight: 400; letter-spacing: 1px; }
.t-sub    { fill: #8b91a0; font-size: 8.5px; letter-spacing: 1.6px; }
.t-deck   { fill: var(--accent); font-weight: 700; }
.t-ss     { fill: #aab0bd; font-size: 9px; letter-spacing: 1.2px; }
.t-tiny   { fill: #767c8a; font-size: 7.5px; letter-spacing: 1px; }
.t-lcd    { fill: var(--accent); font-family: ui-monospace, Consolas, "SF Mono", monospace; font-size: 11px; letter-spacing: 1.2px; }
.lbl-a    { fill: rgba(10, 8, 4, .62); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.lbl-b    { fill: rgba(10, 8, 4, .55); font-size: 7px;  letter-spacing: 1px; }

.lcd { fill: #0d1015; stroke: #2b303b; }

.startstop { cursor: pointer; outline: none; }
.ss-btn { fill: #171a20; stroke: #343945; stroke-width: 1.5; transition: stroke .2s; }
.startstop:hover .ss-btn { stroke: #4a5160; }
.startstop:focus-visible .ss-btn { stroke: #e8ebf2; }
.ss-led { fill: #3a3e48; }
.deck.playing .ss-led { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.deck.playing .ss-btn { stroke: var(--accent); }

.concorde-tip { fill: var(--accent); stroke: rgba(0, 0, 0, .35); stroke-width: .8; }

.lamp-glass { fill: #33181a; stroke: #101114; }
.deck.playing .lamp-glass { fill: #ff5a48; filter: drop-shadow(0 0 7px rgba(255, 90, 72, .85)); }

.vinyl-hit { cursor: grab; touch-action: none; }
.pitch-hit { cursor: ns-resize; touch-action: none; }
.deck.scratching .vinyl-hit { cursor: grabbing; }

.t-hint { fill: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 2.5px; opacity: 0; }

.deck.attract .ss-btn {
  stroke: var(--accent);
  animation: btn-pulse 1.5s ease-in-out infinite;
}
.deck.attract .t-hint { animation: hint-pulse 1.5s ease-in-out infinite; }

@keyframes btn-pulse {
  0%, 100% { filter: drop-shadow(0 0 1px var(--accent)); }
  50%      { filter: drop-shadow(0 0 9px var(--accent)); }
}
@keyframes hint-pulse {
  0%, 100% { opacity: .2; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .deck.attract .ss-btn { animation: none; filter: drop-shadow(0 0 6px var(--accent)); }
  .deck.attract .t-hint { animation: none; opacity: .9; }
}

/* ---------- mixer ---------- */

.mixer {
  background: linear-gradient(#272b34, #1e222a);
  border: 1px solid #0d0e12;
  border-radius: 14px;
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 32px rgba(0, 0, 0, .38);
}

.mixer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #dfe3ea;
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: 13px;
  padding: 0 4px;
}
.mx-model { color: var(--dim); font-size: 10px; font-weight: 400; }

.mixer-body { display: flex; gap: 10px; justify-content: center; flex: 1; }

.ch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, .16);
  border: 1px solid #2b2f39;
  border-radius: 10px;
  padding: 10px 12px;
  flex: 1;
  max-width: 116px;
}
.ch[data-ch="0"] { --accent: var(--amber); }
.ch[data-ch="1"] { --accent: var(--cyan); }

.knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  touch-action: none;
  cursor: ns-resize;
  user-select: none;
  -webkit-user-select: none;
}
.knob-svg { width: 42px; height: 42px; }
.knob-svg svg { width: 100%; height: 100%; display: block; }
.knob > span { font-size: 8.5px; letter-spacing: 1.8px; color: var(--dim); }

.strip { display: flex; gap: 10px; align-items: center; margin-top: 2px; }

.meter { display: flex; flex-direction: column; gap: 5px; }
.meter i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #1d2127;
  border: 1px solid #14171c;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55);
  transition: background .04s linear;
}
.meter i.lit:nth-child(1) { background: #ff5347; box-shadow: 0 0 8px rgba(255, 83, 71, .55); }
.meter i.lit:nth-child(2) { background: #f5b53f; box-shadow: 0 0 8px rgba(245, 181, 63, .5); }
.meter i.lit:nth-child(3),
.meter i.lit:nth-child(4),
.meter i.lit:nth-child(5) { background: #37d97c; box-shadow: 0 0 8px rgba(55, 217, 124, .45); }

/* faders */

.fader {
  position: relative;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.fader-v { width: 36px; height: 150px; }

.fader-track {
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 6px;
  transform: translateX(-50%);
  background: #0d1014;
  border: 1px solid #2a2e37;
  border-radius: 3px;
}

.fader-handle {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 34px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: linear-gradient(#3c424e, #262b34);
  border: 1px solid #10131a;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.fader-handle::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: #e8eaef;
  border-radius: 1px;
}

.xfader { width: 190px; max-width: 100%; height: 36px; }
.xfader .fader-track {
  left: 6px;
  right: 6px;
  top: 50%;
  bottom: auto;
  width: auto;
  height: 6px;
  transform: translateY(-50%);
}
.xfader .fader-handle { top: 50%; left: 50%; width: 16px; height: 34px; }
.xfader .fader-handle::after {
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 2px;
  height: auto;
  transform: translateX(-50%);
}

.xf-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.xf-label { color: var(--dim); font-size: 11px; font-weight: 700; }
.ch-name { font-size: 9px; color: var(--dim); letter-spacing: 2px; }

/* ---------- misc ---------- */

.howto {
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  margin: 12px 0 0;
  letter-spacing: .03em;
}

.sale {
  margin: 30px auto 12px;
  max-width: 620px;
  text-align: center;
  background: linear-gradient(#242836, #1e222a);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}
.sale h1 {
  margin: 0 0 6px;
  font-size: clamp(19px, 3vw, 25px);
  letter-spacing: .06em;
  color: #e8ebf2;
}
.sale p { margin: 0; color: var(--dim); }
.sale strong { color: var(--text); }

.btn-contact {
  margin-top: 16px;
  background: var(--amber);
  color: #1d1508;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  padding: 10px 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn-contact:hover { filter: brightness(1.12); transform: translateY(-1px); }

.contact-mail {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(69, 198, 214, .5);
  padding-bottom: 1px;
}
.contact-mail:hover { border-bottom-style: solid; }

.boot-err {
  margin: 14px auto;
  max-width: 620px;
  background: rgba(255, 83, 71, .1);
  border: 1px solid rgba(255, 83, 71, .4);
  color: #f4a19a;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
}

footer {
  text-align: center;
  color: #5d6270;
  font-size: 12px;
  padding: 22px 14px 26px;
  letter-spacing: .05em;
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .setup { grid-template-columns: 1fr; justify-items: center; }
  .deck { width: 100%; max-width: 540px; }
  .mixer { width: 100%; max-width: 400px; }
  .fader-v { height: 130px; }
}
