/* Festify — guest UI.
   Deep black, cyan and magenta, glass panels. Deliberately the same palette as the
   MVIS visualiser running on the projector, so the phone in your hand and the wall
   in front of you read as one thing. */

:root {
  --bg:       #07080d;
  --bg-2:     #0b0d15;
  --panel:    rgba(255, 255, 255, .045);
  --panel-2:  rgba(255, 255, 255, .075);
  --line:     rgba(255, 255, 255, .09);
  --line-2:   rgba(255, 255, 255, .16);
  --ink:      #eef1f7;
  --dim:      #8b93a7;
  --dimmer:   #5b6376;

  --cy:       #64e9ff;
  --mg:       #ff4fd8;
  --ok:       #5ce6a8;
  --warn:     #ffcc66;
  --bad:      #ff6b7d;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --glow:   0 0 0 1px rgba(100, 233, 255, .22), 0 10px 40px rgba(100, 233, 255, .13);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The room is lit from two corners; it moves just enough to feel alive without
   competing with the visualiser. */
body::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  background:
    radial-gradient(60vmax 60vmax at 14% 6%,  rgba(100, 233, 255, .22), transparent 60%),
    radial-gradient(65vmax 65vmax at 88% 88%, rgba(255,  79, 216, .18), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

button, input { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
ol, ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--cy); color: #04060a; }

.dim   { color: var(--dim); }
.small { font-size: 13px; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* ── brand ───────────────────────────────────────────────────────────── */

.brand { display: flex; align-items: center; gap: 9px; }
.brand .wordmark {
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 13px;
  background: linear-gradient(92deg, var(--cy), var(--mg));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .mark { display: flex; align-items: flex-end; gap: 2.5px; height: 15px; }
.brand .mark i {
  width: 3px;
  border-radius: 2px;
  background: var(--cy);
  animation: bars 1.1s ease-in-out infinite;
}
.brand .mark i:nth-child(1) { height: 6px;  animation-delay: -.9s; }
.brand .mark i:nth-child(2) { height: 15px; animation-delay: -.5s; background: var(--mg); }
.brand .mark i:nth-child(3) { height: 10px; animation-delay: -.2s; }
.brand .mark i:nth-child(4) { height: 4px;  animation-delay: -.7s; background: var(--mg); }
@keyframes bars { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.brand.big .wordmark { font-size: 26px; letter-spacing: .22em; }
.brand.big .mark { height: 28px; }
.brand.big .mark i { width: 5px; }
.brand.big .mark i:nth-child(1) { height: 12px; }
.brand.big .mark i:nth-child(2) { height: 28px; }
.brand.big .mark i:nth-child(3) { height: 19px; }
.brand.big .mark i:nth-child(4) { height: 8px; }

/* ── join ────────────────────────────────────────────────────────────── */

#join {
  position: relative;
  z-index: 1;                 /* above the glow layer painted by body::before */
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
}
body:not(.joining) #join { display: none; }

.join-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 24px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  text-align: center;
}
.join-card .brand { justify-content: center; }
.tagline { margin: 12px 0 26px; color: var(--dim); font-size: 14px; }

.field { display: block; text-align: left; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder { color: var(--dimmer); }
.field input:focus { border-color: rgba(100, 233, 255, .55); box-shadow: 0 0 0 3px rgba(100, 233, 255, .12); }

.code-input {
  text-transform: uppercase;
  letter-spacing: .42em;
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.join-note { margin: 16px 0 0; font-size: 12px; color: var(--dimmer); }

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  font-weight: 600;
  transition: transform .12s, background .18s, border-color .18s, opacity .18s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .42; pointer-events: none; }
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

.btn.primary {
  background: linear-gradient(96deg, var(--cy), #8fd0ff 55%, var(--mg));
  border-color: transparent;
  color: #04060a;
  box-shadow: 0 10px 34px rgba(100, 233, 255, .28);
}
.btn.ghost { background: transparent; border-color: var(--line); color: var(--dim); }
.btn.block { display: flex; width: 100%; margin-top: 10px; }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn.tiny  { min-height: 30px; padding: 4px 11px; font-size: 12px; }
.btn.icon  { width: 44px; padding: 0; }
.btn.danger { color: var(--bad); border-color: rgba(255, 107, 125, .3); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.chip svg { width: 15px; height: 15px; fill: currentColor; opacity: .75; }
.chip.code {
  letter-spacing: .18em;
  font-weight: 800;
  color: var(--cy);
  border-color: rgba(100, 233, 255, .3);
  background: rgba(100, 233, 255, .07);
}

/* ── header ──────────────────────────────────────────────────────────── */

#top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  background: linear-gradient(180deg, rgba(7, 8, 13, .95), rgba(7, 8, 13, .72) 70%, transparent);
  backdrop-filter: blur(14px);
}
#top .brand { margin-right: 2px; }

/* ── layout ──────────────────────────────────────────────────────────── */

#room { position: relative; z-index: 1; padding: 4px 14px 0; max-width: 760px; margin: 0 auto; }
.bottom-pad { height: calc(96px + var(--safe-b)); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ── now playing ─────────────────────────────────────────────────────── */

.now { display: flex; gap: 14px; padding: 14px; margin-bottom: 14px; }

.now-art {
  position: relative;
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: #12141d;
}
.now-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.now-art::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  border-radius: 12px;
}

.now-eq {
  position: absolute;
  left: 7px;
  bottom: 7px;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 3px 4px;
  border-radius: 5px;
  background: rgba(4, 6, 10, .6);
  backdrop-filter: blur(4px);
}
body.playing .now-eq { display: flex; }
.now-eq i { width: 2px; height: 100%; background: var(--cy); border-radius: 2px; animation: bars .9s ease-in-out infinite; }
.now-eq i:nth-child(2) { animation-delay: -.7s; }
.now-eq i:nth-child(3) { animation-delay: -.4s; background: var(--mg); }
.now-eq i:nth-child(4) { animation-delay: -.9s; }
.now-eq i:nth-child(5) { animation-delay: -.2s; }

.now-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.now-state {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cy);
  margin-bottom: 3px;
}
.now-state.preparing { color: var(--warn); }
.now-state.idle { color: var(--dimmer); }
.now-title {
  font-size: 17px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.now-sub {
  font-size: 13px;
  color: var(--dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── seek ────────────────────────────────────────────────────────────── */

.seek { margin-top: auto; padding-top: 10px; }
.seek-track {
  position: relative;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  cursor: default;
}
body.can-seek .seek-track { cursor: pointer; }
.seek-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cy), var(--mg));
}
.seek-head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(100, 233, 255, .8);
  opacity: 0;
  transition: opacity .18s;
}
body.can-seek .seek-head { opacity: 1; }
.seek-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--dimmer);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.now-controls { display: flex; gap: 8px; margin-top: 10px; }
.vote-skip { flex: 1; }

/* One button, both glyphs — the state decides which is drawn. */
#btnPlay .i-pause,          #btnPlay.is-playing .i-play  { display: none; }
#btnPlay .i-play,           #btnPlay.is-playing .i-pause { display: block; }
.vote-skip b { color: var(--cy); font-variant-numeric: tabular-nums; }
.vote-skip.voted { border-color: rgba(100, 233, 255, .5); background: rgba(100, 233, 255, .12); }

/* ── banner ──────────────────────────────────────────────────────────── */

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-color: rgba(255, 204, 102, .3);
  background: linear-gradient(180deg, rgba(255, 204, 102, .1), rgba(255, 204, 102, .03));
}
.banner-text { flex: 1; font-size: 14px; }
.banner-text .dim { display: block; font-size: 12px; }
.banner-actions { display: flex; gap: 6px; }

/* ── search ──────────────────────────────────────────────────────────── */

.search { position: sticky; top: calc(54px + var(--safe-t)); z-index: 20; padding: 4px 0 10px; background: linear-gradient(180deg, var(--bg) 60%, transparent); }
.search-box { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: var(--dimmer);
  pointer-events: none;
}
#searchInput {
  width: 100%;
  padding: 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .45);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
#searchInput::-webkit-search-cancel-button { display: none; }
#searchInput:focus { border-color: rgba(100, 233, 255, .5); box-shadow: 0 0 0 3px rgba(100, 233, 255, .1); }
.search-clear {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.search-clear svg { width: 15px; height: 15px; fill: var(--dim); }

.results {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(10, 12, 19, .96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 62dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.results .msg { padding: 16px; color: var(--dim); font-size: 14px; text-align: center; }

/* ── track rows ──────────────────────────────────────────────────────── */

.row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: background .15s;
}
.row:last-child { border-bottom: 0; }
.row:active { background: var(--panel-2); }

.row-art {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: #12141d;
}
.row-body { flex: 1; min-width: 0; }
.row-title {
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-sub {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.row-sub .by { color: var(--mg); }
.row-add {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.row-add svg { width: 18px; height: 18px; fill: var(--cy); }
.row-add.done { border-color: rgba(92, 230, 168, .45); }
.row-add.done svg { fill: var(--ok); }

/* ── queue ───────────────────────────────────────────────────────────── */

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 2px 8px;
}
.section-head h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.section-head .count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0;
}
.section-head .btn { margin-left: auto; }

.queue-list { display: flex; flex-direction: column; gap: 8px; }

.q {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1), background .2s, border-color .2s;
}
.q.mine { border-color: rgba(255, 79, 216, .28); }
.q.flash { animation: flash .8s ease-out; }
@keyframes flash {
  from { background: rgba(100, 233, 255, .22); border-color: rgba(100, 233, 255, .5); }
}

.q-rank {
  width: 18px;
  flex: none;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--dimmer);
  font-variant-numeric: tabular-nums;
}
.q .row-art { width: 42px; height: 42px; }

.q-votes { display: flex; flex-direction: column; align-items: center; gap: 0; flex: none; }
.q-votes button {
  width: 30px;
  height: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.q-votes svg { width: 14px; height: 14px; fill: var(--dimmer); transition: fill .15s, transform .15s; }
.q-votes button:active svg { transform: scale(1.35); }
.q-votes .up.on svg   { fill: var(--cy); }
.q-votes .down.on svg { fill: var(--bad); }
.q-score {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  text-align: center;
  color: var(--dim);
}
.q-score.pos { color: var(--cy); }
.q-score.neg { color: var(--bad); }

.q-kill {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.q-kill svg { width: 15px; height: 15px; fill: var(--dimmer); }

.empty { color: var(--dimmer); font-size: 13px; text-align: center; padding: 22px 10px; }

/* ── mini player ─────────────────────────────────────────────────────── */

#mini {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + var(--safe-b));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(12, 14, 22, .93);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  max-width: 740px;
  margin: 0 auto;
  overflow: hidden;
  animation: rise .28s cubic-bezier(.2, .9, .3, 1);
}
@keyframes rise { from { transform: translateY(120%); opacity: 0; } }
#miniArt { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: #12141d; }
body.playing #miniArt { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-body { flex: 1; min-width: 0; }
.mini-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#miniSkip { width: 40px; height: 40px; min-height: 40px; position: relative; }
#miniSkip b { position: absolute; top: -1px; right: -1px; font-size: 10px; color: var(--cy); }
.mini-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.mini-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cy), var(--mg)); }

/* ── sheets ──────────────────────────────────────────────────────────── */

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 4, 7, .6);
  backdrop-filter: blur(3px);
  animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  padding: 8px 14px calc(18px + var(--safe-b));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-top: 1px solid var(--line-2);
  background: rgba(12, 14, 22, .98);
  backdrop-filter: blur(20px);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .6);
  animation: slideUp .26s cubic-bezier(.2, .9, .3, 1);
  max-height: 82dvh;
  overflow-y: auto;
  max-width: 560px;
  margin: 0 auto;
}
@keyframes slideUp { from { transform: translateY(100%); } }
.sheet-grab { width: 38px; height: 4px; border-radius: 3px; background: var(--line-2); margin: 4px auto 14px; }
.sheet h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.sheet h3 span { color: var(--cy); letter-spacing: .2em; }

.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
}
.sheet-item:active { background: var(--panel-2); }
.sheet-item svg { width: 19px; height: 19px; fill: currentColor; opacity: .8; flex: none; }
.sheet-item em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--cy); text-transform: uppercase; letter-spacing: .1em; }
.sheet-item.danger { color: var(--bad); }

.people { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.person {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}
.person:active { background: var(--panel-2); }
.person .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #04060a;
  flex: none;
}
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; font-weight: 600; }
.person .who span { font-size: 12px; color: var(--dim); }
.person .tag {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--dim);
}
.person .tag.ctl { color: var(--cy); border-color: rgba(100, 233, 255, .35); }
.person .tag.spk { color: var(--mg); border-color: rgba(255, 79, 216, .35); }

/* ── toasts ──────────────────────────────────────────────────────────── */

#toasts {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(76px + var(--safe-b));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 460px);
}
.toast {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(14, 16, 24, .96);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  animation: pop .22s cubic-bezier(.2, .9, .3, 1);
  max-width: 100%;
  text-align: center;
}
@keyframes pop { from { transform: translateY(10px) scale(.96); opacity: 0; } }
.toast.leaving { animation: fadeOut .24s forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(6px); } }
.toast.ok    { border-color: rgba(92, 230, 168, .4); }
.toast.warn  { border-color: rgba(255, 204, 102, .4); }
.toast.error { border-color: rgba(255, 107, 125, .45); }

#offline {
  position: fixed;
  top: calc(var(--safe-t) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 204, 102, .16);
  border: 1px solid rgba(255, 204, 102, .4);
  color: var(--warn);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ── desktop ─────────────────────────────────────────────────────────── */

@media (min-width: 900px) {
  #room {
    max-width: 1080px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "now search" "now queue";
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 0 22px;
    padding-top: 8px;
  }
  /* The art is square, so an unbounded column turns the card into a poster —
     and the card spans both grid rows, so without align-self it also stretches to
     whatever height a long list of search results happens to have. */
  #now      { grid-area: now; position: sticky; top: 74px; flex-direction: column;
              padding: 18px; max-width: 460px; justify-self: end; align-self: start; }
  .now-art  { width: 100%; height: auto; aspect-ratio: 1; }
  .now-body { width: 100%; }
  .now-title { font-size: 21px; }
  #voteBanner { grid-column: 1 / -1; }
  #searchWrap { grid-area: search; position: static; background: none; padding-top: 0; }
  #queueWrap  { grid-area: queue; }
  .results { max-height: none; }
  #mini { display: none !important; }
  .bottom-pad { height: 40px; }
}
