/* Public demo: the real guest console beside a simulated DJ screen. The DJ
   software is deliberately cool and grey so the amber BeatScroll ticker reads
   as an overlay from another app. */

/* The site header replaces the guest page's ticker strip and intro here. */
.guest-shell[data-demo="true"] > .suggestion-strip,
.guest-shell[data-demo="true"] .intro {
  display: none;
}

.guest-shell[data-demo="true"] .layout {
  padding-top: 28px;
}

.demo-intro,
.dj-window {
  width: min(calc(100% - var(--bs-content-inset)), var(--bs-content-width));
  margin-inline: auto;
}

.demo-intro {
  padding-top: clamp(48px, 8vw, 104px);
}

/* Same two-tone kicker as the landing page's eyebrows. */
.demo-intro .bs-kicker span {
  margin-right: 13px;
  color: var(--bs-muted);
}

.demo-intro h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  line-height: 0.95;
}

.demo-intro h1 em {
  color: var(--bs-accent);
  font-style: normal;
}

.demo-intro > p:not(.bs-kicker) {
  max-width: 62ch;
  margin: 0;
  color: var(--bs-muted);
  line-height: 1.6;
}

.demo-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 20px 0 22px;
}

.demo-intro__actions .bs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 0.95rem;
  text-decoration: none;
}

.dj-window {
  position: sticky;
  top: 8px;
  z-index: 3;
  margin-block: 0;
}

.dj-window__screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #2a2a33;
  border-radius: 12px;
  background: #0c0c10;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  color: #c9ccd6;
  font-family: var(--bs-sans);
}

.dj-window__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-bottom: 1px solid #22222a;
  background: #15151b;
  color: #6c7080;
  font: 650 0.58rem/1 var(--bs-display);
  letter-spacing: 0.14em;
}

.dj-window__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c2c36;
}

.dj-window__bar span {
  margin-left: 6px;
}

.dj-window__clock {
  margin-left: auto;
}

.dj-decks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}

.dj-deck {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #22222a;
  border-radius: 8px;
  background: #121217;
}

.dj-deck[data-deck="a"] { --deck: #4cc3ff; }
.dj-deck[data-deck="b"] { --deck: #ff5fa2; }

.dj-deck__head {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.dj-deck__letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--deck);
  color: #0c0c10;
  font: 800 0.7rem/1 var(--bs-display);
}

.dj-deck__track {
  display: grid;
  min-width: 0;
  font-size: 0.68rem;
  line-height: 1.25;
}

.dj-deck__track strong,
.dj-deck__track span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dj-deck__track span {
  color: #7d8191;
}

.dj-deck__bpm {
  margin-left: auto;
  color: var(--deck);
  font: 700 0.9rem/1 var(--bs-display);
}

.dj-deck__bpm small {
  margin-left: 3px;
  color: #6c7080;
  font-size: 0.5rem;
}

.dj-deck__wave {
  display: block;
  width: 100%;
  height: clamp(26px, 5vw, 46px);
  border-radius: 4px;
  background: #08080b;
}

.dj-deck__body {
  display: none;
  gap: 10px;
  align-items: center;
}

.dj-jog {
  flex: none;
  position: relative;
  width: 58px;
  aspect-ratio: 1;
  border: 2px solid #30303a;
  border-radius: 50%;
  background: conic-gradient(#2a2a33, #17171d 25%, #2a2a33 50%, #17171d 75%, #2a2a33);
  animation: dj-spin 1.8s linear infinite;
}

.dj-jog::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 13px;
  background: var(--deck);
  transform: translateX(-50%);
}

.dj-deck__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px 14px;
  margin: 0;
  font: 600 0.62rem/1.3 var(--bs-display);
}

.dj-deck__meta dt {
  color: #6c7080;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.dj-deck__meta dd {
  margin: 0;
}

.dj-mixer {
  display: none;
  gap: 8px;
  align-items: end;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid #22222a;
  border-radius: 8px;
  background: #121217;
}

.dj-vu {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.dj-vu i {
  width: 8px;
  height: 4px;
  border-radius: 1px;
  background: #24242c;
}

.dj-vu i[data-on] { background: #48d16a; }
.dj-vu i:nth-child(n + 9)[data-on] { background: #f2c94c; }
.dj-vu i:nth-child(n + 11)[data-on] { background: #ff5b4f; }

.dj-fader {
  position: relative;
  width: 6px;
  height: 64px;
  border-radius: 3px;
  background: #08080b;
}

.dj-fader::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--position);
  width: 22px;
  height: 10px;
  border-radius: 2px;
  background: #3a3a46;
  transform: translateX(-50%);
}

.dj-library {
  display: none;
  align-self: start;
  margin: 0 8px;
  border-collapse: collapse;
  font-size: 0.66rem;
  table-layout: fixed;
}

.dj-library th {
  padding: 5px 8px;
  color: #6c7080;
  font: 650 0.52rem/1 var(--bs-display);
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.dj-library td {
  overflow: hidden;
  padding: 5px 8px;
  border-top: 1px solid #1c1c23;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dj-library tr[data-loaded] td {
  background: rgba(255, 95, 162, 0.08);
  color: #fff;
}

/* The BeatScroll LED ticker, laid over the DJ software like the desktop app. */
.demo-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: clamp(34px, 13%, 58px);
  overflow: hidden;
  border-top: 1px solid #3a2a12;
  background: #050403;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.demo-ticker::before,
.demo-ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Unlit LEDs under the text, then a mask that turns glyphs into dots. */
.demo-ticker::before {
  background: radial-gradient(circle, rgba(255, 174, 50, 0.1) 0 1.1px, transparent 1.6px) 0 0 / 4px 4px;
}

.demo-ticker::after {
  z-index: 1;
  background: radial-gradient(circle, transparent 0 1.15px, #050403 1.65px) 0 0 / 4px 4px;
}

.demo-ticker__item,
.demo-ticker__idle {
  position: absolute;
  top: 50%;
  color: var(--bs-accent);
  font: 900 clamp(1rem, 3.1vw, 1.9rem)/1 var(--bs-display);
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(255, 174, 50, 0.6);
  white-space: nowrap;
}

.demo-ticker__item {
  left: 0;
  transform: translate(var(--x, 100vw), -50%);
  will-change: transform;
}

.demo-ticker__item b {
  color: var(--bs-accent-hot);
}

.demo-ticker__idle {
  left: 50%;
  opacity: 0.45;
  transform: translate(-50%, -50%);
}

.demo-reactions {
  position: absolute;
  inset: 0 0 clamp(34px, 13%, 58px);
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.demo-reaction {
  position: absolute;
  bottom: 4px;
  left: var(--left);
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  opacity: 0;
  animation: demo-float 1.9s cubic-bezier(0.2, 0.7, 0.3, 1) var(--delay) forwards;
}

@keyframes demo-float {
  0% { opacity: 0; transform: translate(0, 20px) scale(0.7); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift), -150px) scale(1.15); }
}

@keyframes dj-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 640px) {
  .dj-deck__body { display: flex; }
  .dj-library { display: table; }
}

@media (min-width: 780px) {
  .dj-decks { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .dj-mixer { display: flex; order: 0; }
  .dj-deck[data-deck="b"] { order: 1; }
}

@media (min-width: 980px) {
  .guest-shell[data-demo="true"] {
    display: grid;
    /* Same 1200px content grid as the other pages. */
    width: min(calc(100% - var(--bs-content-inset)), var(--bs-content-width));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "intro form" "window form" "footer footer";
    column-gap: clamp(32px, 4vw, 56px);
  }

  .guest-shell[data-demo="true"] > .bs-site-footer {
    grid-area: footer;
    width: auto;
    margin-inline: 0;
  }

  .guest-shell[data-demo="true"] .demo-intro {
    grid-area: intro;
    width: auto;
    margin-inline: 0;
  }

  .guest-shell[data-demo="true"] .dj-window {
    grid-area: window;
    align-self: start;
    top: 18px;
    width: auto;
    margin: 0 0 34px;
  }

  .guest-shell[data-demo="true"] .layout {
    grid-area: form;
    display: block;
    width: auto;
    margin: 0;
    padding: clamp(48px, 8vw, 104px) 0 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dj-jog { animation: none; }
  .demo-reaction { animation-duration: 1.2s; }
}
