/* The song selector shares the existing room player and its single-audio lifecycle. */
#experience-dialog .experience-player-section.has-jukebox {
  background: linear-gradient(145deg, #efe7d8, #faf7ef 72%);
  border-top: 1px solid #b9aa8e;
}
.has-jukebox .experience-section-heading { align-items: center; }
.has-jukebox .experience-section-heading h3 { font-size: clamp(27px, 3.1vw, 36px); }
.has-jukebox .room-listening-note { max-width: 180px; white-space: normal; line-height: 1.6; text-align: right; }
.room-media-choices.is-jukebox { display: block; overflow: visible; padding-bottom: 24px; }
.jukebox-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 17px; align-items: start; }
.jukebox-record { min-width: 0; overflow: hidden; border: 1px solid #c3b69e; border-radius: 5px; background: #fffcf4; box-shadow: 0 6px 15px #45392c0d; transition: border-color .18s, box-shadow .18s; }
.jukebox-record.is-selected { border-color: #7c3341; box-shadow: 0 0 0 2px #7c334118, 0 7px 18px #45392c15; }
.jukebox-select { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #233e4a; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.jukebox-select:hover { background: #f5eddd; }
.jukebox-select:focus-visible { outline: 3px solid #1b5279; outline-offset: -3px; }
.jukebox-cover { position: relative; display: flex; align-items: center; justify-content: center; height: 212px; min-width: 0; padding: 18px 18px 14px; background: #e3dac9; background-image: linear-gradient(135deg, #f5eddf, #d8cdb8); overflow: hidden; }
.jukebox-cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 2px 4px 10px #332b2352; }
.jukebox-code { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; border: 1px solid #fff6df80; border-radius: 2px; background: #173c68; color: #fff9e9; font: 600 14px/1 Georgia, serif; letter-spacing: 1px; box-shadow: 0 2px 7px #1b293433; }
.jukebox-record.is-selected .jukebox-code { background: #7c3341; }
.jukebox-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 8px; padding: 18px 18px 13px; }
.jukebox-format { color: #8b4b4a; font: 600 8px/1.5 Arial, sans-serif; letter-spacing: .9px; }
.jukebox-title { display: block; color: #243f4d; font: normal 24px/1.12 Georgia, serif; letter-spacing: -.3px; overflow-wrap: anywhere; text-wrap: balance; }
.jukebox-subtitle { color: #506065; font-size: 11px; line-height: 1.6; }
.jukebox-date { color: #6e6a5c; font-size: 10px; line-height: 1.55; }
.jukebox-action { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding-top: 10px; margin-top: 4px; border-top: 1px solid #dfd4bf; color: #244d68; font-size: 11px; line-height: 1.35; font-weight: 600; }
.jukebox-play-symbol { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid #b7c1c1; border-radius: 50%; color: #25475b; font-size: 15px; font-weight: 400; background: #faf8f1; }
.jukebox-record.is-playing .jukebox-play-symbol { border-color: #7c3341; background: #7c3341; color: #fff5de; }
.jukebox-record.is-playing .jukebox-action { color: #7c3341; }
.jukebox-credits { margin: 0; border-top: 1px solid #e2d9c8; color: #666e69; font-size: 10px; line-height: 1.65; }
.jukebox-credits summary { padding: 10px 18px; cursor: pointer; color: #53616a; font-size: 10px; }
.jukebox-credits summary:focus-visible { outline: 2px solid #1b5279; outline-offset: -3px; }
.jukebox-credits[open] { background: #f2eddf; }
.jukebox-credits p { margin: 0; padding: 0 18px 9px; overflow-wrap: anywhere; }
.jukebox-credits a { display: inline-block; margin: 0 18px 12px; color: #244d68; text-decoration: underline; text-underline-offset: 3px; }
.jukebox-type-cover { display: flex; flex-direction: column; justify-content: center; gap: 17px; width: 100%; height: 100%; padding: 28px 16px 20px; border: 1px solid #d9c89d; color: #f7efd9; background: #294957; text-align: center; }
.jukebox-type-cover>span { font-size: 7px; line-height: 1.5; letter-spacing: 1.1px; }
.jukebox-type-cover>strong { font: normal 25px/1.12 Georgia, serif; text-wrap: balance; }
.jukebox-more { margin-top: 21px; }
.jukebox-more>p { margin: 0 0 9px; color: #5e655e; font-size: 11px; }
.jukebox-more-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.jukebox-more-choices .room-media-choice { flex: 1 1 180px; min-width: 0; padding: 11px 14px; }
.jukebox-more-choices .room-media-choice strong { font-size: 19px; }
.has-jukebox .room-player { border-color: #aa9676; }
.has-jukebox .room-media-caption { padding-left: 15px; border-left: 3px solid #a38554; }
@media (max-width: 850px) and (min-width: 561px) {
  .jukebox-records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jukebox-cover { height: 192px; }
}
@media (max-width: 560px) {
  .has-jukebox .experience-section-heading { display: block; margin-bottom: 18px; }
  .has-jukebox .experience-section-heading h3 { font-size: 29px; }
  .has-jukebox .room-listening-note { display: block; max-width: none; margin-top: 9px; text-align: left; font-size: 11px; }
  .jukebox-records { grid-template-columns: 1fr; gap: 12px; }
  .jukebox-select { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: stretch; }
  .jukebox-cover { width: 108px; height: auto; min-height: 160px; padding: 34px 10px 14px; }
  .jukebox-cover img { max-height: 145px; }
  .jukebox-code { min-width: 28px; height: 25px; top: 6px; left: 6px; font-size: 12px; }
  .jukebox-copy { gap: 6px; padding: 14px 13px 10px; }
  .jukebox-title { font-size: 23px; }
  .jukebox-subtitle { font-size: 10px; }
  .jukebox-format { font-size: 7px; letter-spacing: .65px; }
  .jukebox-date { font-size: 10px; }
  .jukebox-action { margin-top: 2px; min-height: 40px; gap: 7px; padding-top: 8px; }
  .jukebox-credits summary { padding: 9px 13px; }
  .jukebox-credits p { padding-left: 13px; padding-right: 13px; }
  .jukebox-credits a { margin-left: 13px; margin-right: 13px; }
  .jukebox-type-cover { padding: 9px 4px; gap: 10px; }
  .jukebox-type-cover>strong { font-size: 18px; }
  .jukebox-type-cover>span { font-size: 6px; letter-spacing: .3px; }
  .room-media-choices.is-jukebox { padding-bottom: 18px; }
  .has-jukebox .room-media-caption { padding-left: 11px; }
}
@media (prefers-reduced-motion: reduce) { .jukebox-record { transition: none; } }
