/* jukebox.css */
.jukebox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}
.jukebox[hidden] { display: none; }

.jukebox__panel {
  background: #070707;
  color: #f4e8e1;
  width: min(920px, 95vw);
  height: min(82vh, 720px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid #3a2030;
  border-radius: 4px;
  overflow: hidden;
  font-family: 'Merriweather', 'Georgia', serif;
  box-shadow: 0 0 30px rgba(255, 40, 120, 0.18);
}
.jukebox__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #2a1420;
  background: linear-gradient(90deg, rgba(80, 12, 36, 0.85), rgba(12, 12, 18, 0.95));
}
.jukebox__title {
  margin: 0;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jukebox__close {
  background: transparent;
  border: none;
  color: #f4e8e1;
  font-size: 1.5em;
  cursor: pointer;
  line-height: 1;
}
.jukebox__body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 0;
  background: #020204;
}
.jukebox__list {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid #24101a;
  padding: 10px;
  background: #09070a;
}
.jukebox__track {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 90, 150, 0.24);
  background: rgba(35, 12, 24, 0.72);
  color: #f4e8e1;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.jukebox__track:hover,
.jukebox__track.is-active {
  border-color: rgba(255, 90, 150, 0.8);
  background: rgba(90, 18, 48, 0.88);
}
.jukebox__viewer {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: radial-gradient(circle at 50% 35%, rgba(120, 20, 70, 0.18), #000 55%);
}
.jukebox__video {
  width: 100%;
  height: 100%;
  background: #000;
}
.jukebox__status {
  min-height: 44px;
  margin: 0;
  padding: 12px 16px;
  color: #ffb8d2;
  border-top: 1px solid #24101a;
  font-size: 0.95em;
}
.jukebox__footer {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #2a1420;
  background: #080608;
}
.jukebox__random,
.jukebox__stop {
  border: 1px solid rgba(255, 90, 150, 0.5);
  background: rgba(35, 12, 24, 0.8);
  color: #f4e8e1;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}
.jukebox__random:hover,
.jukebox__stop:hover {
  background: rgba(90, 18, 48, 0.9);
}

@media (max-width: 720px) {
  .jukebox__body { grid-template-columns: 1fr; grid-template-rows: 190px 1fr; }
  .jukebox__list { border-right: 0; border-bottom: 1px solid #24101a; }
}
