/* ============================================================
   PRESS PLAY RADIO — BRAUN WANDANLAGE STYLE
   Dieter Rams / Virgil Abloh wall unit
   ============================================================ */

:root {
  --bg: #000;
  --unit-border: rgba(0, 0, 0, 0.22);
  --unit-border-light: rgba(255, 255, 255, 0.35);
  --grille: #6e6e74;
  --grille-dot: #525258;
  --unit-text: #1e1e22;
  --unit-text-dim: #444;
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.75);
  --text-faint: rgba(255, 255, 255, 0.5);
  --lcd-bg: #111;
  --lcd-border: #333;
  --accent: #fff;
  --tape: #8b6914;
  --cream: #e8e4dc;
  --cream-dark: #d4d0c8;
  --brushed-metal:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.06) 22%,
      rgba(0, 0, 0, 0.04) 78%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.07) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(255, 255, 255, 0.05) 3px,
      rgba(0, 0, 0, 0) 4px
    ),
    linear-gradient(165deg, #d4d4d8 0%, #b2b2b8 38%, #c8c8cc 62%, #a4a4aa 100%);
  --btn-metal:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #e4e4e8 0%, #c6c6cc 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

a { color: inherit; text-decoration: none; }

/* ---------- TOP BAR ---------- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text);
}
.brand {
  font-weight: 700;
  color: var(--text);
  font-size: 10px;
  max-width: 55%;
  line-height: 1.4;
}
.topnav { display: flex; gap: 22px; }
.topnav a {
  color: var(--text);
  opacity: 1;
  transition: opacity 0.15s;
}
.topnav a:hover { opacity: 0.65; }

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 60px 16px 80px;
}

/* ============================================================
   UNIT RIG (wall unit)
   ============================================================ */
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  width: 100%;
}

.unit-rig {
  position: relative;
  width: min(960px, 94vw);
}

.wall {
  display: grid;
  grid-template-columns: 1fr 2.4fr 1fr;
  width: 100%;
  height: min(280px, 34vw);
  min-height: 220px;
  max-height: min(280px, 34vw);
  overflow: hidden;
  background: var(--brushed-metal);
  border: 1px solid var(--unit-border);
  box-shadow:
    inset 0 1px 0 var(--unit-border-light),
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 20px 60px rgba(0, 0, 0, 0.35);
  color: var(--unit-text);
}

/* ---------- SPEAKERS ---------- */
.wall__speaker {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--unit-border);
}
.wall__speaker:last-child {
  border-right: none;
  border-left: 1px solid var(--unit-border);
}

.grille {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%),
    var(--grille);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.grille__dots {
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, var(--grille-dot) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.8;
}

/* ---------- CENTER MODULE ---------- */
.wall__center {
  display: flex;
  flex-direction: row;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--unit-border);
  border-right: 1px solid var(--unit-border);
}

/* --- LCD CONTROLS --- */
.ctrl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  gap: 10px;
  width: 40%;
  min-width: 0;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid var(--unit-border);
}

.ctrl__brand {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--unit-text);
  text-transform: uppercase;
}

.ctrl__display {
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.lcd {
  background: var(--lcd-bg);
  border: 1px solid var(--lcd-border);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.lcd__station {
  flex: 0 0 10px;
  height: 10px;
  line-height: 10px;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lcd__track-wrap {
  flex: 0 0 18px;
  height: 18px;
  min-height: 18px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.lcd__track-wrap.is-scrolling {
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.lcd__track-inner {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}

.lcd__track-inner.is-scrolling {
  animation: lcdMarquee var(--marquee-duration, 12s) linear infinite;
}

.lcd__track-text {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lcd__track-text--clone {
  padding-left: 2.5em;
}

@keyframes lcdMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lcd__time {
  flex: 0 0 11px;
  height: 11px;
  line-height: 11px;
  display: flex;
  justify-content: space-between;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--text-dim);
}

/* --- REEL DECK COLUMN --- */
.deck-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.deck {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 4px;
}

.deck__reels {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 0;
}

.deck__center-mechanism {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 52px;
  flex-shrink: 0;
  gap: 2px;
}

.deck__head-plate {
  width: 100%;
  height: 5px;
  background: linear-gradient(180deg, #c0c0c4 0%, #a8a8ac 100%);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.deck__path-svg {
  width: 52px;
  height: auto;
}

.reel {
  width: min(100px, 11vw);
  height: min(100px, 11vw);
  flex-shrink: 0;
}

.reel__svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

.reel__label {
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: #888;
  letter-spacing: 0.05em;
}

.unit.is-playing .reel__svg {
  animation: reelSpin 3s linear infinite;
}

.unit.is-playing .reel--right .reel__svg {
  animation: reelSpin 2.4s linear infinite;
}

@keyframes reelSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* deck transport — cream Braun buttons under reels */
.deck__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px 8px;
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, transparent 100%);
}

.deck-btn {
  min-width: 36px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  color: var(--unit-text);
  font-size: 9px;
  font-family: "Space Mono", monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 1px rgba(0, 0, 0, 0.12);
  touch-action: none;
  user-select: none;
  transition: all 0.1s;
}

.deck-btn:hover {
  background: linear-gradient(180deg, #f0ece4 0%, #dcd8d0 100%);
}

.deck-btn:active,
.deck-btn--scrubbing {
  background: #c8c4bc;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.deck-btn--play {
  min-width: 44px;
  font-size: 11px;
}

/* ---------- FOOTER / PRESETS (below wall) ---------- */
.unit-footer {
  width: 100%;
  margin-top: 0;
  text-align: center;
}

.presets-bar {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.presets-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.station-btn {
  padding: 0 12px;
  height: 28px;
  border: 1px solid var(--unit-border);
  border-radius: 2px;
  background: var(--btn-metal);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--unit-text-dim);
  cursor: pointer;
  transition: all 0.12s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.station-btn:hover { border-color: rgba(0, 0, 0, 0.35); color: var(--unit-text); }
.station-btn:active { background: linear-gradient(180deg, #c0c0c6 0%, #aaaab0 100%); }
.station-btn.is-active {
  background: var(--unit-text);
  color: #fff;
  border-color: var(--unit-text);
  box-shadow: none;
}

.p-btn {
  width: 36px;
  height: 28px;
  border: 1px solid var(--unit-border);
  border-radius: 2px;
  background: var(--btn-metal);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--unit-text-dim);
  cursor: pointer;
  transition: all 0.12s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.p-btn:hover { border-color: rgba(0, 0, 0, 0.35); color: var(--unit-text); }
.p-btn:active { background: linear-gradient(180deg, #c0c0c6 0%, #aaaab0 100%); }
.p-btn.is-active {
  background: var(--unit-text);
  color: #fff;
  border-color: var(--unit-text);
  box-shadow: none;
}

.wall__model {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-top: 14px;
  text-transform: uppercase;
}

.unit__caption {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: 12px;
}

.embed-mount {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

/* ---------- SITE FOOTER ---------- */
.sitefoot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 36px 20px;
  text-align: center;
}
.sitefoot p {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
}
.sitefoot a { border-bottom: 1px solid var(--text-faint); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  .brand { font-size: 9px; max-width: 100%; }
  .topbar { flex-direction: column; gap: 8px; align-items: flex-start; }

  .wall {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 320px;
    max-height: none;
  }
  .wall__speaker { display: none; }
  .wall__center {
    flex-direction: column;
    border-left: none;
    border-right: none;
  }
  .ctrl {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--unit-border);
    padding: 16px;
  }
  .deck-col { padding-bottom: 4px; }
  .reel { width: 72px; height: 72px; }
  .deck__center-mechanism { width: 40px; }
  .deck__path-svg { width: 40px; }

  .unit-footer {
    text-align: center;
  }
  .presets-bar { justify-content: center; }
  .presets-bar__inner { justify-content: center; }
}
