body.jukebox-page {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  background:
    radial-gradient(900px 500px at 50% 0%, #5a1024 0%, transparent 55%),
    #12040a;
  color: #ffe8d2;
}

.room {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 16px 14px 40px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.back {
  display: inline-block;
  margin: 0 0 14px 4px;
  padding: 10px 14px;
  min-height: 44px;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #f3c27a;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(243, 194, 122, 0.4);
  border-radius: 999px;
}

.jukebox {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.arch {
  position: relative;
  margin: 0 10px -18px;
  padding: 28px 16px 36px;
  text-align: center;
  background:
    radial-gradient(120% 100% at 50% 100%, #8a1830 0%, #4a0c1c 70%);
  border: 5px solid #d7b25a;
  border-bottom: 0;
  border-radius: 50% 50% 8px 8px / 80% 80% 8px 8px;
  box-shadow:
    inset 0 8px 18px rgba(255, 180, 200, 0.25),
    0 0 24px rgba(255, 60, 100, 0.35);
}

.arch-trim {
  position: absolute;
  inset: 8px 14px 18px;
  border: 2px solid rgba(255, 220, 140, 0.45);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  pointer-events: none;
}

.sign {
  margin: 0;
  font-family: "Monoton", "Bebas Neue", cursive;
  font-size: clamp(1.15rem, 5.4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #fff4f7;
  text-shadow:
    0 0 6px #ff4d7a,
    0 0 16px #ff2d62,
    0 0 32px #ff2d62,
    0 2px 0 #4a0018;
  animation: flicker 7s ease-in-out infinite;
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.72; }
  95% { opacity: 1; }
  97% { opacity: 0.8; }
}

.cabinet {
  position: relative;
  padding: 28px 14px 18px;
  background:
    linear-gradient(180deg, #6a1428 0%, #3a0a16 40%, #25060e 100%);
  border: 5px solid #d7b25a;
  border-radius: 16px 16px 28px 28px;
  box-shadow:
    inset 0 0 0 3px #8a5a20,
    inset 0 -20px 30px rgba(0, 0, 0, 0.35);
}

.window-row {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  gap: 8px;
  align-items: stretch;
}

.tube {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #e0c36a;
  background: linear-gradient(180deg, #2a0812, #4a1024);
  box-shadow:
    0 0 12px #ff4d6d,
    inset 0 0 10px rgba(255, 80, 120, 0.7);
}

.tube span {
  position: absolute;
  left: 3px;
  right: 3px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ff9ab0 40%, #ff3a6a 70%, transparent 75%);
  opacity: 0.85;
  animation: rise 3.6s linear infinite;
}

.tube span:nth-child(1) { animation-delay: 0s; }
.tube span:nth-child(2) { animation-delay: 0.9s; }
.tube span:nth-child(3) { animation-delay: 1.8s; }
.tube span:nth-child(4) { animation-delay: 2.7s; }
.tube-right span { animation-duration: 4.1s; }

@keyframes rise {
  0% { top: 110%; opacity: 0; }
  12% { opacity: 0.9; }
  100% { top: -20%; opacity: 0.15; }
}

.glass {
  border: 3px solid #f0d27a;
  border-radius: 14px;
  padding: 5px;
  background: linear-gradient(180deg, #2a1a08, #111);
  box-shadow:
    0 0 16px rgba(255, 200, 80, 0.35),
    inset 0 0 0 2px #8a6018;
}

.now-playing {
  margin: 12px 0 10px;
  padding: 10px 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #ffefc2;
  background: #16080c;
  border: 2px solid #c9a24a;
  border-radius: 8px;
  box-shadow: inset 0 0 12px rgba(255, 200, 80, 0.2);
}

.selectors {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.track-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  text-align: left;
  color: #2a1208;
  background: linear-gradient(180deg, #f4e2b0, #c9a24a);
  border: 2px solid #8a6018;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #fff4cc, 0 2px 0 #6a4010;
}

.track-btn.is-current {
  background: linear-gradient(180deg, #ffe27a, #ffb347);
  box-shadow: 0 0 12px rgba(255, 180, 40, 0.55);
}

.track-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  border-radius: 4px;
  background: #2a1208;
  color: #ffd56a;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}

.track-name {
  font-size: 1.05rem;
  line-height: 1.2;
}

.keys {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 8px;
}

.key {
  min-height: 56px;
  padding: 8px 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #fff8e8;
  background: linear-gradient(180deg, #ff6b8a, #b01038);
  border: 2px solid #ffd36a;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #6a0820;
}

.key:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.key-play {
  background: linear-gradient(180deg, #7dffb0, #118a48);
  color: #062010;
  border-color: #d8ffd0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #065024;
}

.key-play.is-playing {
  background: linear-gradient(180deg, #ffe27a, #e09a20);
}

.key-wide {
  grid-column: span 1;
}

.key-random,
.key[data-action="shuffle"] {
  grid-column: span 3;
}

.key[data-action="shuffle"] {
  background: linear-gradient(180deg, #7ac7ff, #1a5aa0);
  color: #f4fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 #0a3060;
}

.key[data-action="shuffle"].is-on {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 3px 0 #0a3060,
    0 0 16px #4dc3ff;
}

.key-random {
  background: linear-gradient(180deg, #ffd36a, #d48912);
  color: #2a1600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #7a4a00;
}

@media (min-width: 520px) {
  .keys {
    grid-template-columns: 1fr 1.2fr 1fr 1.2fr 1.2fr;
  }
  .key-random,
  .key[data-action="shuffle"] {
    grid-column: span 1;
  }
}
