/* Guest pages. Theme colors arrive as CSS variables from the DJ's theme (Guest\Theme). */
:root {
  --fg: #fff; --bg: #0f2b3d; --link: #fff; --menu-bg: #235e7a; --menu-fg: #fff;
  --panel: #001122; --box-border: #404d59; --btn-fg: #fff; --btn-bg: #235e7a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg-image: none;
  --radius: 10px;
  --topbar-h: 52px;
  --np-h: 0px;
  /* Button size (the DJ's layout, /designer): white space around button text, boxes and
     panels; never the font. This is Medium, the default (and the DJ panel's, which has no
     choice); data-btn-size on <html> picks another. */
  --btn-h: 36px; --btn-pad: 4.5px 14px; --btn-margin: 3px;
  --field-h: 37px; --field-pad: 6px 10px; --ctl-h: 34px;
  --panel-pad: 13.5px 13.5px; --panel-gap: 12.5px; --tab-pad: 6px 12px;
  --search-pad: 7.5px 10px; --search-gap: 6px; --actions-gap: 7.5px;
  color-scheme: dark;
}
/* Button sizes 0-4: Tiny .. Largest (44px, Apple's recommended tap size), evenly spaced (user, 2026-11-29). */
:root[data-btn-size="0"] { /* Tiny */
  --btn-h: 28px; --btn-pad: 1px 12px; --btn-margin: 2px;
  --field-h: 30px; --field-pad: 2px 8px; --ctl-h: 28px;
  --panel-pad: 9px 11px; --panel-gap: 9px; --tab-pad: 4px 12px;
  --search-pad: 5px 8px; --search-gap: 4px; --actions-gap: 5px;
}
:root[data-btn-size="1"] { /* Small */
  --btn-h: 32px; --btn-pad: 2.75px 13px; --btn-margin: 2.5px;
  --field-h: 33.5px; --field-pad: 4px 9px; --ctl-h: 31px;
  --panel-pad: 11.25px 12.25px; --panel-gap: 10.75px; --tab-pad: 5px 12px;
  --search-pad: 6.25px 9px; --search-gap: 5px; --actions-gap: 6.25px;
}
:root[data-btn-size="2"] { /* Medium */
  --btn-h: 36px; --btn-pad: 4.5px 14px; --btn-margin: 3px;
  --field-h: 37px; --field-pad: 6px 10px; --ctl-h: 34px;
  --panel-pad: 13.5px 13.5px; --panel-gap: 12.5px; --tab-pad: 6px 12px;
  --search-pad: 7.5px 10px; --search-gap: 6px; --actions-gap: 7.5px;
}
:root[data-btn-size="3"] { /* Larger */
  --btn-h: 40px; --btn-pad: 6.25px 15px; --btn-margin: 3.5px;
  --field-h: 40.5px; --field-pad: 8px 11px; --ctl-h: 37px;
  --panel-pad: 15.75px 14.75px; --panel-gap: 14.25px; --tab-pad: 7px 12px;
  --search-pad: 8.75px 11px; --search-gap: 7px; --actions-gap: 8.75px;
}
:root[data-btn-size="4"] { /* Largest */
  --btn-h: 44px; --btn-pad: 8px 16px; --btn-margin: 4px;
  --field-h: 44px; --field-pad: 10px 12px; --ctl-h: 40px;
  --panel-pad: 18px 16px; --panel-gap: 16px; --tab-pad: 8px 12px;
  --search-pad: 10px 12px; --search-gap: 8px; --actions-gap: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 16px; line-height: 1.4;
  color: var(--fg);
  background: var(--bg);
  padding-bottom: calc(var(--np-h) + env(safe-area-inset-bottom, 0px));
}
/* Background image on a fixed layer: background-attachment: fixed doesn't work on iOS. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--bg) var(--bg-image) var(--bg-pos, center) / var(--bg-size, cover) var(--bg-repeat, no-repeat);
}
body.has-np { --np-h: 56px; }
a { color: var(--link); }
img { max-width: 100%; }
h1, h2 { line-height: 1.2; }
[hidden] { display: none !important; }

/* --- top bar & menu -------------------------------------------------------- */
/* Guest pages' bar (.topbar-3): */
.topbar:not(.topbar-3) .topbar-title { flex: 1; text-align: left; } /* DJ panel: name left, menu right */
.topbar.topbar-3 { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, max-content) minmax(max-content, 1fr); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  /* Back + Home | DJ name, centred | selfie + menu: equal side columns keep the name centred. */
  display: flex; align-items: center; gap: 6px;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 8px 0 16px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}
.app-back { margin-left: -8px; }
.app-back { margin-right: -6px; }
.app-home { margin-right: -1px; } /* 5px more air before the DJ name */
.app-back:disabled, .app-home.is-off { opacity: .3; cursor: default; background: none; }
.topbar-title {
  min-width: 0; color: var(--fg); text-decoration: none; text-align: center;
  font-weight: 700; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar-right { justify-content: flex-end;
}
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; border-radius: 50%; color: var(--fg); cursor: pointer;
}
.icon-btn:hover, .icon-btn:focus-visible { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.icon-btn .icon { width: 24px; height: 24px; }

.menu {
  position: fixed; z-index: 19; right: 8px; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 6px);
  min-width: 230px; max-width: calc(100vw - 16px);
  background: var(--menu-bg); color: var(--menu-fg);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / .45); overflow: hidden;
}
.menu ul { list-style: none; margin: 0; padding: 6px 0; }
.menu a {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  color: var(--menu-fg); text-decoration: none; font-weight: 600;
}
.menu a:hover, .menu a:focus-visible { background: color-mix(in srgb, var(--menu-fg) 14%, transparent); }

/* --- page ----------------------------------------------------------------- */
.page { max-width: 720px; margin: 0 auto; padding: 16px 12px 24px; text-align: center; }
.page-title { font-size: 1.4rem; margin: 8px 0 16px; }
.dj-name { font-size: 1.7rem; margin: 8px 0 12px; }
.dj-html { overflow-wrap: anywhere; }
.dj-photo { border-radius: 8px; height: auto; }
.panel {
  background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--box-border);
  border-radius: var(--radius); padding: var(--panel-pad); margin: 0 auto var(--panel-gap); max-width: 460px;
}
.center { text-align: center; }
.stack { display: grid; gap: 12px; text-align: left; }
.stack > p { margin: 0; } /* the grid gap spaces them (p margins would double it) */
.stack.center { text-align: center; }
.notice { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgb(0 0 0 / .35); }
.error { color: #ff8a80; font-weight: 600; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--actions-gap); justify-content: center; }
p.actions { margin-block: 10px; }
.footer { text-align: center; padding: 12px 12px 24px; opacity: .8; }

/* --- buttons & inputs ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: var(--btn-pad); margin: var(--btn-margin);
  font: inherit; font-weight: 700; color: var(--btn-fg); background: var(--btn-bg);
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.12); }
.btn-primary { background: #393; color: #fff; }
.btn-cancel { background: #c00; color: #fff; }
.btn.is-busy { background: #777; color: #ddd; cursor: progress; filter: none; }
label { display: grid; gap: 4px; font-weight: 600; text-align: left; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=url], input[type=date], select, textarea {
  font: inherit; font-weight: 400; color: #111; background: #fff;
  border: 1px solid #999; border-radius: 8px; padding: var(--field-pad); min-height: var(--field-h); width: 100%;
}
textarea { resize: vertical; }
.hint { font-weight: 400; opacity: .85; }
.nowrap { white-space: nowrap; }
.hint.bad { color: #ff8a80; opacity: 1; }
.passcode { width: 8em; margin: 0 auto; text-align: center; font-size: 1.4rem; letter-spacing: .2em; }

/* --- search form: legacy arrangement --------------------------------------
   Search:  [ input .......................... ]
   Type:    [ select ............ ]  [ Search ]
   ---------------------------------------------
            [x] Search Exact Phrase
            Results Per Page: [25]                                      */
.search-form {
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--box-border); border-radius: var(--radius);
  padding: var(--search-pad); margin: 0 auto var(--panel-gap); max-width: 460px;
}
.search-grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--search-gap) 8px;
}
.search-label { font-weight: 700; font-size: 1.1rem; text-align: left; }
.search-q { grid-column: 2 / 4; }
.search-grid > select, .search-btn { align-self: stretch; } /* the Type box as tall as the Search button beside it */
.search-grid select { min-height: var(--ctl-h); padding: 2px 6px; }
.search-q { min-height: var(--ctl-h); padding: 2px 8px; }
.search-btn { grid-column: 3; margin: 0; min-height: var(--ctl-h); padding: 2px 12px; border-radius: 8px; }
.search-rule { border: 0; border-top: 1px solid var(--box-border); margin: 6px 0 5px; }
.search-extra { display: grid; justify-items: center; gap: var(--search-gap); }
.search-extra .check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 1.05rem; }
.search-extra .inline { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 1.05rem; }
.search-extra select { width: auto; min-height: var(--ctl-h); padding: 1px 6px; }
.check input { width: 20px; height: 20px; margin: 0; }
/* Narrow phones: keep the type selector readable next to the button. */
@media (max-width: 400px) {
  .search-form { padding-inline: 8px; }
  .search-grid { column-gap: 6px; }
  .search-label { font-size: 1rem; }
  .search-grid select { padding: 2px 4px; font-size: 15px; }
  .search-btn { padding: 2px 10px; }
  .search-btn .icon { display: none; }
}

/* --- search results: kept close to the legacy layout guests know ---------- */
.results-summary { margin: 8px 0; }
.results-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 12px; }
.results-hint b { font-size: 1.1rem; }
.mysongs-hint { flex-direction: column; gap: 2px; }
.results { list-style: none; margin: 0 auto; padding: 0; text-align: left; border-top: 1px solid var(--box-border); }
.song { border: 1px solid var(--box-border); border-top: 0; outline-offset: -2px; }
.results .song.open { background: #111; outline: 2px solid #ff4; } /* beats the row colors below */
.song-summary {
  display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 4px 8px;
  width: 100%; padding: 8px 10px 8px 6px; font: inherit; color: inherit; text-align: left;
  background: none; border: 0; cursor: pointer;
}
.song-kind { align-self: start; margin-top: 2px; }
.song-main { min-width: 0; }
.song-title { display: block; font-size: 1.2em; min-height: 1.6em; overflow-wrap: anywhere; }
.song-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 4px; }
.song-meta { color: #ddd; }
.disc-icon { vertical-align: -5px; }
.song-cta {
  padding: 5px; border: 1px solid #fff; border-radius: 5px; background: #393; color: #fff; font-weight: 700;
  white-space: nowrap; flex: none;
}
.song.open .song-cta { display: none; }
.song-details { padding: 0 8px 10px 34px; }
.song-details small { color: #888; overflow-wrap: anywhere; }
.song-details .label { color: #ccc; }
.song-form { background: #333; border: 1px solid #888; border-radius: 7px; padding: 10px; margin: 4px 0 8px; }
.request-form { display: grid; gap: 10px; }
.request-form label { color: #fff; }

.pager { margin: 12px 0; }
.pager-buttons { display: flex; justify-content: center; gap: 8px; }
/* Legacy look: "Page: 1 • 2 • 3 ..." on one line, blue numbers, white dots. */
.pager-pages { margin: 10px 0; white-space: nowrap; font-weight: 700; }
.pager-pages a, .pager-pages [aria-current] { display: inline-block; padding: 8px 2px; }
.pager-pages a { color: var(--link); text-decoration: none; font-weight: 700; }
.pager-pages [aria-current] { color: #666; }
.pager-dot { color: #fff; margin: 0 1px; }

/* --- upcoming singers ----------------------------------------------------- */
.singers { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; text-align: left; }
.singer {
  display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 6px 10px; margin-bottom: 4px;
  border: 1px solid var(--box-border);
}
/* List rows (upcoming singers, search results, browse): the Boxes color, alternating
   10% lighter / 10% darker (--row-shade), 65% solid (boxes are 85%), with the Box
   Border. Replaces the legacy white/black tints (hrbg.png / lrbg.png), which looked
   wrong next to colored boxes. Settled with the user 2026-11-25. */
:root { --row-shade: 10%; --row-alpha: 65%; }
:is(.singer, .song, .browse-row):nth-child(odd)  { background: color-mix(in srgb, color-mix(in srgb, var(--panel), #fff var(--row-shade)) var(--row-alpha), transparent); }
:is(.singer, .song, .browse-row):nth-child(even) { background: color-mix(in srgb, color-mix(in srgb, var(--panel), #000 var(--row-shade)) var(--row-alpha), transparent); }
.singer-num { font-size: 1.2rem; min-width: 1.6em; text-align: right; }
.singer-text { flex: 1; min-width: 0; }
.singer-pic { flex: none; border-radius: 50%; }
.singer.note b { color: #fd5; }
.singer.empty { justify-content: center; }

/* --- top-bar avatar ------------------------------------------------------- */
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); overflow: hidden; flex: none; }
.avatar img { display: block; width: 36px; height: 36px; border-radius: 50%; }
hr.soft { border: 0; border-top: 1px solid var(--box-border); margin: 18px 0; }

/* --- selfie --------------------------------------------------------------- */
.photo-form { max-width: 480px; }
.photo-pick { position: relative; justify-self: center; overflow: hidden; }
.photo-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.photo-note { margin: 0; }
.photo-status:empty { display: none; }
.photo-form .actions { margin: 0; }
.photo-form .actions .btn { margin: 0 4px; }
.photo-form .when-photo { display: none; }
.photo-form.has-photo .when-photo { display: revert; }
.photo-form.has-photo .when-photo.stack { display: grid; gap: 12px; }
.photo-form.has-photo .when-empty { display: none; }
.photo-stage { display: grid; gap: 8px; }
.photo-canvas { display: block; width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: 6px;
  touch-action: none; cursor: grab; }
.photo-canvas:active { cursor: grabbing; }
.photo-tools { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.photo-tools .icon-btn { border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.photo-tools .btn { margin: 0; min-height: var(--ctl-h); }

/* --- search / browse ------------------------------------------------------ */
.tabs, .segmented {
  display: flex; max-width: 460px; margin: 0 auto 12px; padding: 3px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--box-border);
}
.tabs a, .tabs span, .segmented a {
  flex: 1; padding: var(--tab-pad); border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 700;
}
.tabs [aria-current], .segmented a[aria-current] { background: var(--btn-bg); color: var(--btn-fg); }
.segmented { max-width: 300px; margin-bottom: 10px; }
.browse-head {
  position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 5;
  margin: 0 auto 8px; padding: 8px 12px 6px; max-width: 720px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--box-border); border-radius: var(--radius);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.browse-filter { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 8px; }
.browse-filter input { flex: 1; min-width: 0; min-height: var(--ctl-h); padding: 4px 12px; }
.browse-filter select { width: auto; min-height: var(--ctl-h); padding: 4px 6px; }
/* Every letter always in view (no hidden sideways scrolling): phones get 3 rows of 9
   (A-I, J-R, S-Z #) with big tap targets; wider screens one row of 27. */
.letters { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; max-width: 420px; margin: 0 auto; }
@media (min-width: 640px) { .letters { grid-template-columns: repeat(27, 1fr); max-width: none; } }
.letters a, .letters span {
  display: grid; place-items: center; min-width: 0; height: 36px; border-radius: 8px;
  font-weight: 700; text-decoration: none; color: var(--fg);
}
.letters span { opacity: .3; }
.letters a[aria-current] { background: var(--btn-bg); color: var(--btn-fg); }
.browse-hint { margin: 4px 0 8px; opacity: .85; }
.browse-back { text-align: left; margin: 0 0 4px; }
.browse-back a { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); text-decoration: none; font-weight: 700; min-height: 40px; }
.browse-list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; text-align: left; border-top: 1px solid var(--box-border); }
.browse-row { border: 1px solid var(--box-border); border-top: 0; }
.browse-row > a, .browse-row summary {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; color: var(--fg);
  text-decoration: none; cursor: pointer; list-style: none;
}
.browse-row summary::-webkit-details-marker { display: none; }
.browse-name { flex: 1; min-width: 0; font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.browse-name small { display: block; font-weight: 400; font-size: .85rem; opacity: .8; }
.browse-count { flex: none; font-size: .85rem; opacity: .8; }
.browse-go { flex: none; font-size: 1.6rem; line-height: 1; opacity: .7; }
.browse-row summary::after { content: "\25BE"; opacity: .7; transition: transform .15s; }
.browse-row details[open] > summary::after { transform: rotate(180deg); }
.browse-row details[open] > summary { background: rgb(0 0 0 / .3); }
.results.versions { border-top: 0; margin: 0; }
.results.versions .song { border-left: 0; border-right: 0; }
.results.versions .loading { padding: 12px; text-align: center; opacity: .8; list-style: none; }

/* --- tip jar -------------------------------------------------------------- */
.tip-jar { max-width: 440px; }
.tip-intro { margin: 0; font-size: 1.05rem; }
.tip-amounts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip {
  min-height: var(--btn-h); min-width: 58px; padding: 4px 12px; border-radius: 999px; font: inherit; font-weight: 700;
  color: var(--fg); background: transparent; cursor: pointer;
  border: 2px solid var(--box-border);
}
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.chip-other { display: inline-flex; align-items: center; gap: 2px; }
.chip-other input { width: 4.2em; min-height: 0; padding: 4px 0; border: 0; outline: none; background: transparent;
  color: color-mix(in srgb, var(--fg) 55%, transparent); font: inherit; text-align: right; caret-color: transparent; }
.chip-other.has-value input, .chip-other.from-preset input { color: var(--fg); }
.chip-other:focus-within, .chip-other.has-value { border-color: var(--btn-bg); }
.tip-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tip-method {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px 8px 10px;
  border-radius: 14px; background: #fff; color: #111; text-decoration: none; font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / .25);
}
.tip-method:active { transform: scale(.98); }
.tip-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #f2f2f2; flex: none; }
.tip-logo { width: 28px; height: 28px; }
.tip-badge .icon { width: 24px; height: 24px; color: #333; }
.tip-name { flex: 1; text-align: left; }
.tip-go { color: #888; }
.tip-copy { display: block; padding: 8px 16px 8px 10px; }
.tip-copy summary { display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; list-style: none; }
.tip-copy summary::-webkit-details-marker { display: none; }
.tip-copy p { font-weight: 400; font-size: 1rem; margin: 10px 0 0; text-align: center; }
.tip-handle { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.tip-handle .btn { margin: 0; min-height: var(--ctl-h); }

/* --- now playing & replies ------------------------------------------------ */
.np-bar {
  position: fixed; z-index: 18; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--np-h); padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}
.np-bar .icon { width: 24px; height: 24px; }
.np-text { display: grid; min-width: 0; text-align: left; }
.np-text small { opacity: .75; font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }
.np-text { flex: 1; }
.np-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-follow { flex: none; margin: 0; min-height: var(--ctl-h); padding: 4px 12px; }

/* --- karaoke follow-along ------------------------------------------------- */
.cdg-wrap { margin: 0 auto 8px; }
#cdgmain { display: block; width: 100%; max-width: 900px; height: auto; aspect-ratio: 300 / 216; margin: 0 auto;
  background: #000; } /* scaled smoothly (not pixelated): softer, not blocky */
.cdg-hint { color: #999; }
/* True full screen: black, canvas as large as fits, letterboxed. */
.cdg-wrap:fullscreen { display: grid; place-items: center; background: #000; width: 100vw; height: 100vh; }
.cdg-wrap:-webkit-full-screen { display: grid; place-items: center; background: #000; width: 100vw; height: 100vh; }
.cdg-wrap:fullscreen #cdgmain { max-width: none; width: min(100vw, calc(100vh * 300 / 216)); }
.cdg-wrap:-webkit-full-screen #cdgmain { max-width: none; width: min(100vw, calc(100vh * 300 / 216)); }
/* Full screen held upright: the rotate hint just under the picture (it's 72vw tall, centred). */
.cdg-wrap:fullscreen .cdg-hint { display: none !important; }
@media (orientation: portrait) {
  .cdg-wrap:fullscreen .cdg-hint { display: block !important; position: absolute; left: 0; right: 0; top: calc(50% + 36vw + 12px); text-align: center; }
  .cdg-wrap:-webkit-full-screen .cdg-hint { display: block !important; position: absolute; left: 0; right: 0; top: calc(50% + 36vw + 12px); text-align: center; }
}
.cdg-exit { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgb(0 0 0 / .6); color: #fff; border: 1px solid #fff; }
.reply {
  max-width: min(92vw, 380px); border: 1px solid #fff; border-radius: var(--radius);
  background: #333; color: #fff; padding: 18px; text-align: center;
}
.reply::backdrop { background: rgb(0 0 0 / .6); }
.reply h2 { margin: 0 0 8px; font-size: 1.1rem; }
.reply .icon { vertical-align: -0.25em; }
.reply-list { max-height: 50vh; overflow-y: auto; }
.reply-list p { white-space: pre-line; margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: rgb(255 255 255 / .08); }
/* A [URL]/[BTN] inside <small> in page text: a smaller button. */
.dj-html small .btn, .dj-preview small .btn { font-size: .8rem; min-height: 32px; padding: 4px 12px; gap: 6px; }
.dj-html small .btn .icon, .dj-preview small .btn .icon { width: 14px; height: 14px; }
/* [URL=] inline text links in page text */
.text-link { color: var(--link); text-decoration: none; }
.text-link span { text-decoration: underline; text-underline-offset: 2px; }
.text-link .icon { width: .9em; height: .9em; vertical-align: -.1em; }
/* --- My Requests ------------------------------------------------------------ */
.my-requests { list-style: none; margin: 0 auto 14px; padding: 0; max-width: 460px; text-align: left; display: grid; gap: 10px; }
.my-request { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--box-border);
  background: color-mix(in srgb, var(--panel) 96%, #000); } /* solid: the swipe's "Archive" sits behind it */
.my-request-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.my-request-title { font-size: 1.05rem; overflow-wrap: anywhere; }
.status-pill { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; white-space: nowrap; background: #555; color: #fff; }
.status-pill .icon { width: 14px; height: 14px; }
.is-received .status-pill, .is-done .status-pill { background: #2e7d32; }
.is-queued .status-pill, .is-soon .status-pill { background: var(--btn-bg); color: var(--btn-fg); }
.is-next .status-pill { background: #f9a825; color: #111; }
.is-removed .status-pill { background: #6d4c41; }
.is-next { border-width: 2px; border-color: #f9a825; }
.singer.mine { outline: 2px solid #f9a825; outline-offset: -2px; }
.you-badge { display: inline-block; padding: 0 8px; border-radius: 999px; background: #f9a825; color: #111; font-size: .75rem; font-weight: 800; vertical-align: 2px; }
.my-request-msg { margin: 6px 0 0; font-style: italic; opacity: .9; overflow-wrap: anywhere; }
.my-request-status { margin: 8px 0 0; }
.my-request-status small { display: block; opacity: .7; margin-top: 2px; }
.my-requests-link { display: inline-block; padding: 8px 16px; border-radius: 999px; line-height: 1.4;
  color: var(--fg); text-decoration: none; background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--box-border); }
.my-requests-link .icon { width: 1em; height: 1em; vertical-align: -.12em; }
.dj-requests { display: block; margin: 4px 0; }
.alert-me { margin: 0 auto 14px; max-width: 460px; }
.alert-why { margin: 6px 0 0; opacity: .85; }
.alert-on { margin: 0; padding: 8px 12px; border-radius: var(--radius); background: color-mix(in srgb, #2e7d32 35%, transparent); }
.alert-pop { border: 2px solid #f9a825; border-radius: 18px; padding: 22px 20px; text-align: center; max-width: min(88vw, 360px);
  background: var(--panel); color: var(--fg); }
.alert-pop::backdrop { background: rgb(0 0 0 / .7); }
.alert-pop-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; }
.my-request-slot { position: relative; border-radius: var(--radius); }
.my-request { position: relative; touch-action: pan-y; transition: transform .2s ease, opacity .2s ease; }
.my-request-slot.dragging .my-request { transition: none; }
.archive-hint { position: absolute; inset: 0; display: none; align-items: center; justify-content: space-between; padding: 0 18px;
  border-radius: var(--radius); background: #2e7d32; color: #fff; font-weight: 800; }
.archive-hint .icon { width: 18px; height: 18px; vertical-align: -3px; }
.my-request-slot.dragging .archive-hint, .my-request-slot.leaving .archive-hint { display: flex; }
.my-request-slot[data-dismissable] .my-request-head { padding-right: 34px; }
.my-request-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgb(255 255 255 / .12); color: var(--fg); cursor: pointer; }
.my-request-x .icon { width: 16px; height: 16px; }
.my-request-slot.leaving .my-request { transform: translateX(var(--leave, 110%)); opacity: 0; }
/* Notices at the top of a page: X or swipe to dismiss (guest.js) */
.notice-slot { position: relative; max-width: 460px; margin: 0 auto var(--panel-gap); border-radius: var(--radius);
  transition: height .3s ease, margin .3s ease; }
.notice-slot.leaving { overflow: hidden; margin-bottom: 0; }
.notice-slot > .notice-card { position: relative; margin: 0; touch-action: pan-y; transition: transform .2s ease, opacity .2s ease;
  background: color-mix(in srgb, var(--panel) 96%, #000); padding-left: 40px; padding-right: 40px; }
.notice-slot.dragging .notice-card { transition: none; }
.notice-slot.leaving .notice-card { transform: translateX(var(--leave, 110%)); opacity: 0; }
.dismiss-hint { position: absolute; inset: 0; display: none; align-items: center; justify-content: space-between; padding: 0 18px;
  border-radius: var(--radius); background: #ef6c00; color: #fff; font-weight: 800; }
.dismiss-hint .icon { width: 18px; height: 18px; vertical-align: -3px; }
.notice-slot.dragging .dismiss-hint, .notice-slot.leaving .dismiss-hint { display: flex; }
.notice-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgb(255 255 255 / .12); color: var(--fg); cursor: pointer; }
.notice-x .icon { width: 16px; height: 16px; }
.privacy { text-align: left; max-width: 640px; margin: 0 auto; line-height: 1.5; }
.privacy h2 { font-size: 1.1rem; margin: 18px 0 6px; }
.privacy ul { padding-left: 20px; }
.privacy-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.privacy-table th, .privacy-table td { text-align: left; vertical-align: top; padding: 6px 4px; border-bottom: 1px solid var(--box-border); }
.privacy-table td:first-child { font-family: monospace; white-space: nowrap; }
/* My Songs: favorites (stars) and recent requests */
.fav-row { margin: 8px 0 0; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 18px;
  border: 1px solid var(--box-border); background: transparent; color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; }
.fav-btn[aria-pressed="true"] { border-color: #f9a825; }
.fav-star { color: #f9a825; font-size: 1.15em; line-height: 1; }
.fav-mark { color: #f9a825; }
/* My Songs rows: the star sits beside the row, tappable without opening the song */
.song.quick { display: flex; flex-wrap: wrap; }
.song.quick > .song-summary { flex: 1 1 0; min-width: 0; width: auto; }
.song.quick > .fav-quick { flex: 0 0 52px; align-self: stretch; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-left: 1px solid var(--box-border); cursor: pointer; font-size: 1.7em; padding: 0; }
.song.quick > .song-details { flex: 0 0 100%; }
.fav-note { display: block; margin-top: 4px; color: #ffb74d; }
.mysongs-tabs { margin-bottom: 10px; }
.mysongs-email { margin: 14px 0 4px; }
.mysongs-recovery { margin: -6px 0 12px; font-size: .9rem; font-weight: 700; }
.mysongs-recovery a { color: #fff; text-decoration: underline; }
.mysongs-recover-big { margin-top: 1em; font-weight: 700; }
.mysongs-recover-big a { color: #fff; text-decoration: underline; }
.otp-input { font-size: 1.6em; letter-spacing: .3em; text-align: center; max-width: 9em; }
.song.missing { padding: 10px 14px; text-align: left; }
.missing-title { display: block; opacity: .6; }
.missing-note { display: block; opacity: .8; }
.song.missing a { color: var(--link); }
/* "Not taking requests": in place of the search box, on My Songs and the search pages */
.paused-box { max-width: 460px; margin: 10px auto; padding: 10px 14px; border-radius: var(--radius); text-align: center;
  font-weight: 700; border: 1px dashed color-mix(in srgb, var(--fg) 45%, transparent);
  background: color-mix(in srgb, var(--panel) 70%, transparent); }
.results.no-requests .song-cta { display: none; }
.results.no-requests .song-summary { cursor: default; }
.dj-html :is(h1, h2, h3), .dj-preview :is(h1, h2, h3) { margin: .3em 0; line-height: 1.2; }
/* Explicit, so an h1 is never shrunk to h2 size inside a <section> (older browsers do that). */
.dj-html h1, .dj-preview h1 { font-size: 2em; }
