/* Song requests (/request). Jukebox design, 2026-11-20 (spec: docs/marketing/request-redesign/final/SPEC.md).
   These rules replace the visitor page's rq-* rules in site/css/style.css (SPEC.md, section 10,
   lists which old rules go and which stay for the owner page). No class here shares a name with
   a rule that stays. Page-level rules hang off body.rq-jukebox, because the owner page also has
   body.request-page. Fonts, colors and the base button, nav, footer, input (.rq-input) and
   Breaker rules come from the real stylesheet.

   Three things never move: the title strip at the top (what's playing, the station), the tray at
   the bottom (shelf jumps, your songs, the red button), and each cover's place on the wall
   between them. Used in a dark car with one thumb: nothing a visitor reads is under 15px, and
   the only bright things are the covers and the strip's card while a song is on. */

.rq-jukebox {
  --rq-nav: 74px;
  --rq-raised: #241414;
  --rq-line: rgba(245, 240, 232, 0.16);
  --rq-rule: rgba(245, 240, 232, 0.4);
  --rq-soft: rgba(245, 240, 232, 0.82);
  --rq-good: #8FD694;
  --rq-warn: #FFD5A8;
  color: var(--text-light);
}

/* JS keeps these current (the tray's height changes with what it holds). */
.rq-html {
  --rq-tray-h: 0px;
  --rq-band-h: 84px;
  scroll-padding-top: calc(var(--rq-band-h) + 4px);
  scroll-padding-bottom: calc(var(--rq-tray-h) + 12px);
}

.rq-jukebox [hidden] {
  display: none !important;
}

.rq-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rq-skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 1100;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--text);
  font-weight: 700;
}

.rq-skip:focus {
  top: 8px;
}

/* ── Site header, on this page only ──
   Where the phone menu runs (1200px and under) the header is part of the page instead of fixed
   over it: it scrolls away, it is shorter, and it grows if the phone's text is set large. The
   strip below takes over the top of the screen. Same logo, title and menu. */
@media (max-width: 1200px) {
  .rq-jukebox {
    --rq-nav: 0px;
  }

  .rq-jukebox .nav {
    position: relative;
  }

  .rq-jukebox .nav-inner {
    height: auto;
    min-height: 56px;
    padding: 0 16px;
  }

  .rq-jukebox .nav-logo {
    width: 38px;
    height: 38px;
  }

  .rq-jukebox .nav-title {
    font-size: 1rem;
    line-height: 1.15;
  }

  .rq-jukebox .nav-links {
    top: 100%;
  }
}

/* ── Page frame ──
   On a phone the two wrappers don't make boxes of their own, so the strip can stick to the top
   of the whole page. On a wide screen they become the two columns (see the end of this file). */
.rq-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--rq-nav) + 10px) 16px 24px;
}

.rq-side,
.rq-stage {
  display: contents;
}

.rq-jukebox .footer {
  padding-bottom: calc(24px + var(--rq-tray-h, 0px));
}

.rq-top {
  margin-bottom: 2px;
}

.rq-addr {
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.rq-main h1 {
  font-size: 1.875rem;
  line-height: 1.1;
}

.rq-noscript {
  margin: 12px 0 24px;
  line-height: 1.5;
}

/* ── The title strip ──
   A flat paper title strip like the ones on a jukebox: a cream card with two red rules for the
   song that's on, and the station in its own dark cell beside it. The card is the one bright
   block on the page and it is lit only while a song is on the air. The station cell stays dark
   so the strip is no brighter in a dark car than it has to be. No glow. */
.rq-band {
  position: sticky;
  top: 0;
  z-index: 800;
  margin: 0 -16px;
  padding: 6px 16px 8px;
  background: var(--dark);
}

/* Big text on a short phone: the strip lets go so the songs get the room. */
.rq-html[data-rq-tight="true"] .rq-band {
  position: static;
}

.rq-strip {
  display: flex;
  flex-wrap: wrap;
  min-height: 68px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--rq-rule);
  color: var(--text-light);
}

.rq-strip-main,
.rq-strip-tune {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
}

/* The song's cell takes what the station leaves. With very large text there isn't room for
   both side by side, and the station drops to its own row (data-stacked, set by the script). */
.rq-strip-main {
  position: relative;
  flex: 1 1 6.5rem;
  min-width: min-content;
  border-radius: 4px 0 0 4px;
  background: var(--cream);
  color: var(--text);
}

.rq-strip-main::before,
.rq-strip-main::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--red);
}

.rq-strip-main::before {
  top: 5px;
}

.rq-strip-main::after {
  bottom: 5px;
}

.rq-strip-tune {
  flex: 0 0 auto;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

.rq-strip[data-stacked="true"] .rq-strip-main {
  border-radius: 4px 4px 0 0;
}

.rq-strip[data-stacked="true"] .rq-strip-tune {
  flex: 1 0 100%;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0 0.5em;
  text-align: left;
}

.rq-strip-label {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.rq-strip-title,
.rq-strip-fm {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

.rq-strip-title {
  font-size: 1.1875rem;
  overflow-wrap: break-word;
}

/* The station is the loudest thing on the strip. It never wraps and is never cut. */
.rq-strip-fm {
  font-size: 1.625rem;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}

/* Nothing is playing (or we can't tell): the card goes dark too, and the station stays. */
.rq-strip[data-lit="false"] .rq-strip-main {
  background: transparent;
  color: var(--text-light);
}

.rq-strip[data-lit="false"] .rq-strip-main::before,
.rq-strip[data-lit="false"] .rq-strip-main::after {
  background: rgba(245, 240, 232, 0.28);
}

.rq-strip[data-lit="false"] .rq-strip-tune {
  box-shadow: inset 1px 0 0 rgba(245, 240, 232, 0.28);
}

.rq-strip[data-lit="false"][data-stacked="true"] .rq-strip-tune {
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.28);
}

/* ── State line ──
   Open: one quiet line, because the wall already says so. Any other state: this is the main
   thing on the screen, set in Playfair (never in the caps display font, which would shout a no). */
.rq-notice {
  margin: 2px 0 4px;
}

.rq-notice-head:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 4px;
}

.rq-notice[data-open="true"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.rq-notice[data-open="true"] .rq-notice-head {
  color: var(--rq-good);
  font-weight: 700;
}

.rq-notice[data-open="false"] {
  margin: 14px 0 36px;
}

.rq-notice[data-open="false"] .rq-notice-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.rq-notice[data-open="false"] .rq-notice-detail {
  margin-top: 8px;
  max-width: 640px;
  line-height: 1.55;
}

/* ── The wall ── */
.rq-wall {
  margin-bottom: 36px;
}

.rq-wall:focus {
  outline: none;
}

.rq-wall:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
  border-radius: 4px;
}

.rq-wall-note {
  margin: 14px 0;
  color: var(--rq-warn);
  line-height: 1.5;
}

.rq-shelf {
  margin-bottom: 12px;
}

/* The name sits at the top of its row, which leaves room under it for a lifted cover's ring. */
.rq-shelf-name {
  display: flex;
  align-items: flex-start;
  min-height: 36px;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--cream);
}

.rq-shelf-name:focus {
  outline: none;
}

.rq-shelf-name:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
  border-radius: 4px;
}

.rq-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 8px;
}

.rq-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-light);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Album cover. The letter underneath shows when there isn't one. */
.rq-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--cream);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}

/* Before aspect-ratio (iOS 14 and older): hold the square with padding. */
@supports not (aspect-ratio: 1) {
  .rq-art::before {
    content: '';
    display: block;
    padding-top: 100%;
  }

  .rq-art > span {
    position: absolute;
  }
}

.rq-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The title wraps as far as it needs to and is never cut. Two lines are kept so most rows of
   the wall are the same height. */
.rq-name {
  margin-top: 5px;
  min-height: 2.4em;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
}

/* The artist is read out on every cover. It is shown where there is room for it (wide screens)
   and in the tray once a cover is lifted. */
.rq-by {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rq-tile:active .rq-art {
  transform: scale(0.97);
}

/* Picked: the cover lifts and gets a cream ring, and the rest of the wall steps back. */
.rq-tile[aria-pressed="true"] .rq-art {
  transform: translateY(-4px);
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

.rq-wall[data-has-pick="true"] .rq-tile:not([aria-pressed="true"]) .rq-art {
  opacity: 0.55;
}

/* A flag across the bottom of a cover: yours and its place in line, playing now, or why it
   can't be picked. It lies on the cover, so nothing on the wall changes size or moves. */
.rq-flagbox {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  border-radius: 6px;
  overflow: hidden;
  pointer-events: none;
}

.rq-flag {
  width: 100%;
  padding: 5px 7px 6px;
  background: rgba(26, 10, 10, 0.92);
  color: var(--cream);
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: pre-line;
}

.rq-flag:empty {
  display: none;
}

/* Can't be picked. These stay focusable and answer a tap in words (aria-disabled, not disabled). */
.rq-tile[aria-disabled="true"] {
  cursor: default;
}

/* Picked or just played: keeps its place, loses its color, and says why. */
.rq-tile[data-state="out"] .rq-art img {
  filter: grayscale(1);
}

.rq-tile[data-state="out"] .rq-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 10, 0.62);
}

.rq-tile[data-state="out"] .rq-name,
.rq-tile[data-state="locked"] .rq-name {
  color: var(--rq-soft);
}

/* At your limit or on your break: the whole wall steps back before anyone taps, and your own
   songs stay lit. */
.rq-tile[data-state="locked"] .rq-art {
  opacity: 0.4;
}

.rq-wall[data-locked="true"] .rq-tile[data-state="out"] .rq-art {
  opacity: 0.55;
}

/* One of yours: stays in color, ringed in cream. */
.rq-tile[data-state="mine"] .rq-flagbox {
  box-shadow: inset 0 0 0 2px var(--cream);
}

.rq-tile[data-state="mine"] .rq-flag {
  font-weight: 700;
}

/* On right now: the flag is lit like the strip. */
.rq-tile[data-playing="true"] .rq-flagbox {
  box-shadow: inset 0 0 0 3px var(--cream);
}

.rq-tile[data-playing="true"] .rq-flag {
  background: var(--cream);
  color: var(--text);
  font-weight: 700;
}

.rq-tile[aria-pressed="true"] .rq-flagbox {
  transform: translateY(-4px);
}

/* The copy of the cover that travels from the wall to the tray. */
.rq-ghost {
  position: fixed;
  z-index: 950;
  margin: 0;
  transform-origin: top left;
  pointer-events: none;
}

/* ── The tray ──
   Fixed to the bottom on a phone. Top to bottom: shelf jumps, your songs (or the lifted cover),
   one sentence, the red button. The red button always lies inside the space the resting tray
   already covers, so it can never appear under a cover that was just touched. */
.rq-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: grid;
  gap: 6px;
  max-height: 82vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--rq-raised);
  border-top: 1px solid rgba(245, 240, 232, 0.24);
  color: var(--text-light);
}

/* Shelf jumps: "Jump to Kids, Classics, Pop" as one line of underlined words, the way the rest
   of the site writes a link. They scroll the wall; they never hide a song. */
.rq-jumps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: -10px -16px 0;
  padding: 0 8px;
  border-bottom: 1px solid var(--rq-line);
}

.rq-jumps-label {
  padding: 0 4px 0 8px;
  font-size: 0.9375rem;
  color: var(--rq-soft);
}

.rq-jump {
  min-width: 44px;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(245, 240, 232, 0.45);
  text-underline-offset: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rq-jump:hover,
.rq-jump:active {
  text-decoration-color: currentColor;
}

.rq-jump:focus-visible {
  outline-offset: -4px;
}

/* Your songs: the song nearest the front in words, and one slot per song you may have. */
.rq-yours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  width: 100%;
  min-height: 56px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rq-place {
  flex: 1 1 9.5rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rq-place-for {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.rq-place-for[data-tone="good"] {
  color: var(--rq-good);
}

/* The place in line, in the family's own display font, cream on the dark tray. Never cut. */
.rq-place-word {
  font-family: "Light Tracer", 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.05;
}

.rq-place-word:empty {
  display: none;
}

.rq-place-word[data-status="NOW_PLAYING"] {
  color: var(--rq-good);
}

.rq-slots {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

.rq-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 46px;
}

.rq-slot-art {
  width: 46px;
  border-radius: 4px;
  font-size: 1.2rem;
  box-shadow: 0 0 0 1px rgba(245, 240, 232, 0.35);
}

.rq-slot-cap {
  min-height: 1.2em;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* An open slot: a dashed box. Picks left are a picture. */
.rq-slot[data-open="true"] .rq-slot-art {
  background: none;
  box-shadow: none;
  border: 1px dashed rgba(245, 240, 232, 0.45);
}

.rq-slot[data-front="true"] .rq-slot-art {
  box-shadow: 0 0 0 2px var(--cream);
}

/* Your song is on: its slot lights up like the strip. */
.rq-slot[data-status="NOW_PLAYING"] .rq-slot-art {
  box-shadow: 0 0 0 3px var(--cream);
}

.rq-slot[data-status="NOW_PLAYING"] .rq-slot-cap {
  color: var(--rq-good);
}

.rq-slot[data-status="PLAYED"] .rq-slot-art {
  opacity: 0.45;
}

.rq-slot[data-status="PLAYED"] .rq-slot-cap {
  font-weight: 400;
  color: var(--rq-soft);
}

.rq-slot[data-new="true"] .rq-slot-art {
  box-shadow: 0 0 0 2px var(--rq-good);
  animation: rq-land 0.28s ease-out;
}

/* More than three songs a phone: the slots take their own row and shrink a little. */
.rq-slots[data-many="true"] {
  gap: 4px;
}

.rq-slots[data-many="true"] .rq-slot,
.rq-slots[data-many="true"] .rq-slot-art {
  width: 38px;
}

@keyframes rq-land {
  from { transform: translateY(-10px) scale(0.92); }
  to { transform: none; }
}

/* The list opened up: titles and places, in order, and the rule in full. */
.rq-queue-list {
  list-style: none;
}

.rq-queue-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rq-line);
  line-height: 1.3;
}

.rq-queue-title {
  font-weight: 700;
  overflow-wrap: break-word;
}

.rq-queue-place {
  flex-shrink: 0;
}

.rq-queue-item[data-status="NOW_PLAYING"] .rq-queue-place {
  color: var(--rq-good);
  font-weight: 700;
}

.rq-queue-item[data-status="PLAYED"] {
  color: var(--rq-soft);
}

.rq-queue-note {
  padding-top: 10px;
  border-top: 1px solid var(--rq-line);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--rq-soft);
}

/* One sentence: a hint, the reason you can't pick right now, or the answer to a request. */
.rq-say-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rq-say {
  flex: 1;
  padding: 3px 0;
  font-size: 1rem;
  line-height: 1.4;
}

.rq-say[data-tone="good"] {
  color: var(--rq-good);
  font-weight: 700;
}

.rq-say[data-tone="warn"] {
  color: var(--rq-warn);
}

.rq-queue-close {
  justify-self: start;
}

.rq-say-close,
.rq-queue-close,
.rq-back {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* A song lifted into the tray: cover, title, artist, how long the line is, and the one red
   button. */
.rq-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.rq-pick-art {
  flex: 0 0 52px;
  width: 52px;
  font-size: 1.5rem;
}

/* With very large text "Put it back" drops to its own row instead of squeezing the title. */
.rq-pick-text {
  flex: 1 1 7rem;
  min-width: 0;
}

.rq-pick-title,
.rq-pick-artist,
.rq-pick-line {
  display: block;
  overflow-wrap: break-word;
}

.rq-pick-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.rq-pick-artist,
.rq-pick-line {
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--rq-soft);
}

.rq-pick-artist:empty,
.rq-pick-line:empty {
  display: none;
}

/* Sentence case on purpose: this button once carried song titles, and its neighbours here are
   sentences. The rest of the site's buttons stay uppercase. */
.rq-go {
  flex: 1 0 100%;
  width: 100%;
  min-height: 56px;
  justify-content: center;
  font-size: 1.0625rem;
  text-transform: none;
  letter-spacing: 0;
}

/* On a touch screen :hover sticks after a tap, which left a try-again button in the darker red.
   Only devices that can really hover get the hover color. */
@media (hover: none) {
  .rq-go:hover {
    background: var(--red);
  }
}

.rq-go[aria-disabled="true"],
.rq-go[aria-disabled="true"]:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(245, 237, 227, 0.78);
  cursor: default;
  transform: none;
}

/* ── Don't see your song? ── */
.rq-find,
.rq-rules {
  max-width: 640px;
  margin-bottom: 36px;
}

.rq-find h2,
.rq-rules h2 {
  font-size: 1.75rem;
}

.rq-find h2 {
  margin-bottom: 10px;
}

.rq-find-intro,
.rq-rules p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.rq-find-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.rq-find-row {
  display: flex;
  gap: 8px;
}

.rq-find-box {
  min-width: 0;
  font-size: 1rem;
}

.rq-find-btn,
.rq-offer-btn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 10px 18px;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.6);
  text-transform: none;
  letter-spacing: 0;
}

.rq-offer-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}

.rq-matches {
  margin-top: 14px;
}

.rq-matches-head,
.rq-find-msg {
  line-height: 1.45;
}

.rq-matches-head {
  font-weight: 700;
}

.rq-find-msg:not(:empty) {
  margin-top: 14px;
}

.rq-find-msg:focus {
  outline: none;
}

.rq-find-msg:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 4px;
}

.rq-match-list,
.rq-found {
  list-style: none;
}

.rq-match {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--rq-line);
  background: none;
  color: var(--text-light);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rq-match .rq-art {
  flex-shrink: 0;
  width: 48px;
  font-size: 1.3rem;
}

.rq-match-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rq-match-text strong {
  line-height: 1.25;
  overflow-wrap: break-word;
}

.rq-match-text span {
  font-size: 0.9375rem;
  color: var(--rq-soft);
}

.rq-match[aria-disabled="true"] {
  cursor: default;
}

/* Dimmed with a dark layer, not opacity, so the stand-in letter tile under the cover can't
   show through it. */
.rq-match[aria-disabled="true"] .rq-art {
  position: relative;
}

.rq-match[aria-disabled="true"] .rq-art img {
  filter: grayscale(1) brightness(0.5);
}

.rq-match[aria-pressed="true"] .rq-art {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

.rq-found-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rq-line);
}

.rq-found-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rq-found-text strong {
  overflow-wrap: break-word;
}

.rq-found-text span {
  font-size: 0.9375rem;
  color: var(--rq-soft);
}

/* Breaker's one aside. An outlined bubble, so it isn't a bright block in a dark car. */
.rq-elf {
  justify-content: flex-start;
}

.rq-elf .breaker-bubble {
  position: relative;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--rq-rule);
  border-radius: 16px;
  background: transparent;
  color: var(--cream);
  font-weight: 400;
  line-height: 1.4;
}

.rq-elf .breaker-bubble::before {
  border-right-color: var(--rq-rule);
}

.rq-queue .rq-elf {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--rq-line);
}

.rq-queue .rq-elf img {
  width: 56px;
  height: 56px;
}

/* ── How it works ── */
.rq-rules-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  list-style: none;
  cursor: pointer;
}

.rq-rules-box summary::-webkit-details-marker {
  display: none;
}

/* Drawn chevron, the same one the nav uses. */
.rq-rules-box summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: translateY(-3px) rotate(45deg);
}

.rq-rules-box[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.rq-rules-box[open] summary {
  margin-bottom: 8px;
}

.rq-links {
  list-style: none;
}

.rq-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Short phones ──
   Right after a QR scan the browser's own bars are showing. The address line gives its row to
   the wall. It stays in the page for screen readers and search engines. */
@media (max-height: 700px) and (max-width: 599px) {
  .rq-addr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rq-main {
    padding-top: calc(var(--rq-nav) + 4px);
  }
}

/* Just played: the last five songs, small covers and titles, under the strip (Joel, 11/20). */
.rq-recent {
  margin: 8px 0 4px;
}

.rq-recent-h {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rq-soft);
  margin-bottom: 6px;
}

.rq-recent-list {
  list-style: none;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.rq-recent-list::-webkit-scrollbar {
  display: none;
}

.rq-recent-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--rq-line);
  border-radius: 8px;
}

.rq-recent-art {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 4px;
  font-size: 1rem;
}

.rq-recent-title {
  font-size: 0.9375rem;
  line-height: 1.25;
  white-space: nowrap;
}

.rq-recent-label {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rq-soft);
}

.rq-recent-label + .rq-recent-item {
  margin-left: -2px;
}

.rq-recent-item + .rq-recent-label {
  margin-left: 8px;
}

.rq-recent-item[data-yours="true"] {
  border-color: var(--cream);
}

.rq-recent-yours {
  display: block;
  font-size: 0.9375rem;
  color: var(--rq-soft);
}

.rq-recent-item[data-yours="true"] .rq-recent-yours {
  font-weight: 700;
  color: var(--rq-good);
}

/* Weeknight note: the weekend is Request Night, but tonight is open too. Never blocks picking. */
.rq-weeknote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--rq-rule);
  border-radius: 8px;
}

.rq-weeknote[hidden] {
  display: none;
}

.rq-weeknote-text {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.rq-weeknote-ok {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

/* Narrow phones: the five jump keys fit on one row without the "Jump to" label (the group keeps its
   name for screen readers). */
@media (max-width: 430px) {
  .rq-jumps-label {
    display: none;
  }

  .rq-jump {
    padding: 0 7px;
  }

  .rq-jumps {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

/* The Photo Op sits across the whole row, picture left and words right, so the first shelf stays
   short and the songs keep the first screen. */
.rq-grid li:has(.rq-art-photo) {
  grid-column: 1 / -1;
}

.rq-tile:has(.rq-art-photo) {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 14px;
  align-items: center;
}

.rq-tile:has(.rq-art-photo) .rq-art {
  grid-row: 1 / span 3;
}

.rq-tile:has(.rq-art-photo) .rq-name {
  min-height: 0;
  margin-top: 0;
}

/* The Photo Op tile: cream, with a camera in the page's ink (CMO, 11/20). */
.rq-art.rq-art-photo {
  background: var(--cream);
  color: var(--text);
}

.rq-art.rq-art-photo > span {
  display: none;
}

.rq-art.rq-art-photo svg {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
}

/* The one plain sentence above the wall, in every state (for search engines and AI answers). */
.rq-intro {
  margin: 4px 0 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--rq-soft);
}

/* Artists on every screen (the request page is the songs page now, 2026-11-20). */
.rq-by {
  position: static;
  width: auto;
  height: auto;
  margin: 2px 0 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--rq-soft);
  overflow-wrap: break-word;
}

.rq-name {
  min-height: 0;
}

/* ── Wider screens ── */
@media (min-width: 600px) {
  .rq-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 20px 16px;
  }

  .rq-band {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* The artist fits under the title here. */
  .rq-by {
    position: static;
    width: auto;
    height: auto;
    margin: 2px 0 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: 0.9375rem;
    line-height: 1.25;
    color: var(--rq-soft);
    overflow-wrap: break-word;
  }

  .rq-name {
    min-height: 0;
  }

  /* The tray stays a full-width bar with its contents in a centered column. */
  .rq-tray {
    padding-left: max(16px, calc((100% - 520px) / 2));
    padding-right: max(16px, calc((100% - 520px) / 2));
  }

  .rq-jumps {
    margin-left: -8px;
    margin-right: -8px;
  }
}

/* ── Phone on its side ──
   About 340 to 430px of height. The title gives its rows to the wall (it stays for screen
   readers), the jumps and your songs share one row, and the resting tray keeps to about a
   quarter of the screen. A lifted cover still gets the whole tray, red button included. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 959px) {
  .rq-top {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rq-main {
    padding-top: calc(var(--rq-nav) + 4px);
  }

  .rq-tray {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    padding: 6px max(16px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .rq-tray > * {
    grid-column: 1 / -1;
  }

  .rq-tray > .rq-jumps:not([hidden]) {
    grid-column: 1;
    align-self: start;
    margin: -6px 0 0 -9px;
    padding: 0;
    border-bottom: 0;
    flex-wrap: nowrap;
  }

  /* The group keeps its name for screen readers; on screen the four words are enough. */
  .rq-jumps-label {
    display: none;
  }

  .rq-tray > .rq-jumps:not([hidden]) ~ .rq-yours {
    grid-column: 2;
    grid-row: 1;
  }

  .rq-tray[data-mode="rest"] {
    max-height: 42vh;
  }

  .rq-yours {
    min-height: 44px;
    flex-wrap: nowrap;
  }

  .rq-place-word {
    font-size: 1.5rem;
  }

  .rq-slot,
  .rq-slot-art {
    width: 38px;
  }

  .rq-slot-art {
    height: 38px;
  }
}

/* ── Two columns ──
   The parts that stay on screen (title, strip, state, tray) become a column that stays put on
   the left. The wall, the search box and the rules scroll on the right. */
@media (min-width: 960px) {
  .rq-jukebox {
    --rq-stick: 16px;
  }

  .rq-main {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 0 56px;
    align-items: start;
    padding: calc(var(--rq-nav) + 32px) 24px 48px;
  }

  .rq-side {
    display: block;
    position: sticky;
    top: var(--rq-stick);
  }

  .rq-stage {
    display: block;
    min-width: 0;
  }

  .rq-html {
    scroll-padding-top: calc(var(--rq-stick, 16px) + 8px);
    scroll-padding-bottom: 24px;
  }

  .rq-main h1 {
    font-size: 2.4rem;
  }

  .rq-top {
    margin-bottom: 14px;
  }

  .rq-band {
    position: static;
    padding: 0;
  }

  .rq-notice {
    margin: 14px 0 0;
  }

  .rq-notice[data-open="true"] {
    font-size: 1rem;
  }

  .rq-notice[data-open="false"] {
    margin: 22px 0 0;
  }

  /* The tray is part of the column here, not a bar. */
  .rq-tray {
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: 22px;
    padding: 10px 0 0;
    background: none;
    border-top: 1px solid var(--rq-rule);
  }

  .rq-jumps {
    margin: -10px -8px 4px;
  }

  /* Six keys and "Jump to" need about 440px; the column is 380. The label takes its own line so
     the keys stay on one row (CMO, 2026-11-27). Each key keeps its 44px tap target. */
  .rq-jumps-label {
    flex-basis: 100%;
    padding: 8px 8px 0;
  }

  .rq-jump {
    padding: 0 6px;
  }

  .rq-shelf {
    margin-bottom: 28px;
  }

  .rq-shelf-name {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 1.5rem;
  }

  .rq-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 24px 18px;
  }

  .rq-jukebox .footer {
    padding-bottom: 24px;
  }
}

/* Above the phone-menu width the site header is fixed again, so the column stays below it. */
@media (min-width: 1201px) {
  .rq-jukebox {
    --rq-stick: calc(var(--rq-nav) + 16px);
  }

  /* The site header is fixed up here, so a jump key has to land the shelf below it as well as
     below the strip (74px header, 16px gap, matching --rq-stick). */
  .rq-html {
    scroll-padding-top: calc(var(--rq-band-h) + 94px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rq-html {
    scroll-behavior: auto;
  }

  .rq-art {
    transition: none;
  }

  .rq-tile:active .rq-art,
  .rq-tile[aria-pressed="true"] .rq-art,
  .rq-tile[aria-pressed="true"] .rq-flagbox {
    transform: none;
  }

  .rq-slot[data-new="true"] .rq-slot-art {
    animation: none;
  }
}

/* ── Carousels on phones and tablets (Joel, 2026-11-20) ──
   Each shelf is one row you swipe sideways, so the page is a few shelves tall instead of a long
   wall. The next cover peeks in at the right edge to show there's more. Wide screens keep the grid. */
@media (max-width: 959px) {
  .rq-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-left: 16px;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }

  .rq-grid::-webkit-scrollbar {
    display: none;
  }

  .rq-grid > li {
    flex: 0 0 118px;
    scroll-snap-align: start;
  }

  .rq-grid > li:has(.rq-art-photo) {
    flex: 1 0 calc(100% - 4px);
  }

  .rq-shelf + .rq-shelf {
    margin-top: 14px;
  }
}

@media (max-width: 959px) and (min-width: 600px) {
  .rq-grid > li {
    flex-basis: 140px;
  }
}
