@font-face {
  font-family: Manrope;
  src: url('assets/manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #141715;
  --surface: #1c211e;
  --line: #343c35;
  --text: #f3f5ef;
  --muted: #a7b1a9;
  --lime: #dbf875;
  --dark: #1b2115;
  color-scheme: dark;
  font-family: Manrope, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  accent-color: var(--lime);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: var(--bg); }
/* Search results can introduce vertical scrolling; reserve that space in every state. */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
::selection { color: var(--dark); background: var(--lime); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 5px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.button, .icon-button, .primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; border: 1px solid #647066; border-radius: 8px;
  padding: 9px 12px; background: transparent; font-size: 14px; font-weight: 600; text-decoration: none;
  white-space: nowrap; line-height: 1.35;
}
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { border-color: var(--lime); background: #242b22; }
.primary { background: var(--lime); color: var(--dark); border: 0; font-weight: 800; }
.primary:hover:not(:disabled) { background: #e6ff9a; }
.icon-button { width: 40px; padding: 8px; }
.quiet { border-color: transparent; }
.text-button { border: 0; background: transparent; color: var(--lime); font-size: 15px; font-weight: 700; padding: 12px 0; text-decoration: underline; text-underline-offset: 5px; }
.preview-note { margin: 26px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.preview-note a { text-decoration: none; }
.preview-note a:hover { text-decoration: underline; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #9de660; }
.status-dot.is-paused { background: #f1c57c; }
.status-dot.is-offline { background: var(--muted); }
.notice { padding: 14px; border: 1px solid #806638; color: #f1d8ad; background: #29251c; border-radius: 8px; font-size: 14px; line-height: 1.55; margin: 0 0 24px; }
input, textarea, select { display: block; width: 100%; min-width: 0; background: var(--surface); border: 1px solid #586158; border-radius: 9px; padding: 14px; font-size: 16px; caret-color: var(--lime); }
input::placeholder, textarea::placeholder { color: #a1aaa2; opacity: 1; }
textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
label { display: block; margin: 24px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.4; }
label span { font-weight: 400; }
.fine-print { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.form-error { color: #ffb7ae; font-size: 14px; line-height: 1.6; }
.empty-state { color: var(--muted); padding: 30px 12px; font-size: 15px; line-height: 1.65; }
.cover { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; object-fit: cover; }
.cover-empty { display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.track-copy { display: grid; gap: 3px; min-width: 0; }
.track-copy strong { font-size: 16px; font-weight: 800; line-height: 1.45; }
.track-copy > span { font-size: 14px; line-height: 1.45; color: var(--muted); }
/* Guests: one task at a time, sized for phone browsers. */
.guest-page { padding: 28px 24px; }
.guest-shell { width: 100%; max-width: 410px; min-width: 0; margin: auto; }
.guest-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 44px; }
.guest-top .wordmark { font-size: 20px; }
.intake-state { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); white-space: nowrap; }
.guest-shell h1 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.14; margin: 0; }
.guest-intro { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 14px 0 26px; }
.search-field { position: relative; }
.search-field > svg { position: absolute; left: 15px; top: 16px; color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 46px; min-height: 54px; }
.results-label { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; margin: 23px 0 13px; }
.results-label svg { color: #1ed760; width: 24px; height: 24px; }
.results { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.result-row { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.result-row .track-copy { flex: 1; }
.result-row { min-width: 0; }
.result-row .track-copy { overflow-wrap: anywhere; }
.result-row > svg { width: 17px; color: var(--muted); }
.result-row:hover { background: var(--surface); }
.result-row .track-copy strong { white-space: normal; }
.manual-link { margin-top: 13px; font-size: 14px; }
.selected-track { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #97a584; border-radius: 10px; }
.selected-track .track-copy { flex: 1; }
.selected-track .text-button { font-size: 13px; padding: 12px 0 12px 5px; }
.selected-track .cover { width: 54px; height: 54px; flex-basis: 54px; }
.guest-shell form > .primary { width: 100%; min-height: 54px; font-size: 17px; margin-top: 24px; }
.message-field { position: relative; }
.message-field textarea { padding-bottom: 35px; }
.char-count { position: absolute; bottom: 10px; right: 13px; font-size: 12px; color: var(--muted); pointer-events: none; }
.manual-fields > label:first-child { margin-top: 0; }
.confirmation { text-align: center; padding: 70px 0 12px; }
.success-icon { width: 76px; height: 76px; display: grid; place-items: center; background: var(--lime); color: var(--dark); border-radius: 50%; margin: 0 auto 30px; }
.success-icon svg { width: 40px; height: 40px; stroke-width: 2.5; }
.confirmation h1 { font-size: 34px; max-width: 310px; margin: auto; }
.confirmation p { font-size: 16px; line-height: 1.65; }
.confirmation-song { margin: 25px 0 13px; }
.confirmation > .primary { width: 100%; min-height: 54px; font-size: 17px; margin-top: 35px; }
/* DJ: a compact request log for a 13-inch laptop. */
.dj-page { padding: 0 38px 20px; }
.dj-shell { max-width: 1200px; margin: auto; }
.dj-top { display: flex; justify-content: space-between; align-items: center; min-height: 80px; border-bottom: 1px solid var(--line); }
.dj-top nav { display: flex; gap: 14px; }
.dj-heading { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 28px; gap: 20px; }
.dj-heading h1 { margin: 0; font-size: 40px; line-height: 1.15; letter-spacing: -.035em; font-weight: 800; }
.dj-heading p { font-size: 16px; margin: 10px 0 0; }
.dj-heading .is-paused { color: #f1d8ad; border-color: #806638; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; align-items: center; gap: 28px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 10px 0 16px; font-size: 16px; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--text); font-weight: 800; border-bottom-color: var(--lime); }
.tabs button span { background: #303831; padding: 2px 8px; border-radius: 12px; font-size: 13px; font-weight: 500; }
.playlist-state { display: flex; align-items: center; gap: 23px; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.playlist-state > span, .connection-state { display: inline-flex; align-items: center; gap: 8px; }
.playlist-state strong { color: var(--text); font-weight: 500; }
.request-table { margin-top: 18px; }
.table-head, .request-row { display: grid; grid-template-columns: minmax(220px,1fr) 142px 70px 350px; gap: 22px; align-items: center; }
.table-head { min-height: 42px; font-size: 12px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.request-row { min-height: 86px; padding: 15px 0; border-top: 1px solid var(--line); }
.song-cell { min-width: 0; display: flex; align-items: center; gap: 14px; }
.song-cell .track-copy strong { font-size: 16px; }
.song-cell .track-copy > span { font-size: 14px; }
.song-cell .track-copy { overflow-wrap: anywhere; }
.song-cell .track-copy .request-message { font-size: 12px; font-style: italic; }
.requester { font-size: 15px; overflow-wrap: anywhere; }
.request-time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.row-actions .button { font-size: 12px; padding: 9px 11px; gap: 7px; }
.row-actions .button svg { width: 17px; height: 17px; }
.row-actions .icon-button { width: 36px; min-height: 38px; padding: 8px; }
.row-actions .playlist-added { display: inline-flex; align-items: center; justify-content: center; min-width: 117px; min-height: 38px; gap: 7px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; }
.playlist-added svg { width: 17px; height: 17px; }
.manual-track-note { width: 117px; text-align: center; color: var(--muted); font-size: 11px; }
.dj-footer { border-top: 1px solid var(--line); margin-top: 0; padding-top: 23px; display: flex; align-items: center; gap: 20px; font-size: 12px; color: var(--muted); }
.dj-footer a { color: var(--lime); }
.live-state { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.feedback { font-size: 13px; min-height: 18px; color: var(--lime); margin: 12px 0 0; }
.feedback:empty { display: none; }
.dj-page .preview-note { margin-top: 8px; }
/* Settings and the clearly marked mock login. */
dialog { border: 1px solid #647066; border-radius: 14px; background: var(--surface); color: var(--text); width: min(480px,calc(100% - 32px)); padding: 28px; }
dialog::backdrop { background: #000a; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dialog-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
dialog p { font-size: 14px; line-height: 1.65; }
.spotify-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0; font-size: 15px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.login-shell { max-width: 400px; margin: 12vh auto; padding: 24px; }
.login-shell h1 { font-size: 36px; letter-spacing: -.03em; margin: 40px 0 15px; }
.login-shell > p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.login-shell .primary { width: 100%; margin-top: 25px; }
.home-shell { max-width: 900px; margin: auto; padding: 70px 28px; }
.home-shell h1 { font-size: clamp(38px,6vw,60px); line-height: 1.12; letter-spacing: -.035em; max-width: 650px; margin: 50px 0 20px; }
.home-shell .intro { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 660px; }
.home-links { display: grid; gap: 0; margin-top: 44px; }
.home-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 25px 0; text-decoration: none; }
.home-link:last-child { border-bottom: 1px solid var(--line); }
.home-link strong { display: block; font-size: 24px; margin-bottom: 7px; }
.home-link span { font-size: 15px; color: var(--muted); }
.home-link:hover strong { color: var(--lime); }
.home-reset { margin-top: 28px; }
.home-shell .preview-note { text-align: left; }
@media (min-width: 1380px) {
  .row-actions .button { font-size: 13px; }
}
@media (min-width: 901px) and (max-width: 1350px) {
  .dj-top { min-height: 72px; }
  .dj-heading { margin-block: 24px 20px; }
  .dj-heading h1 { font-size: 38px; }
  .tabs button { min-height: 48px; padding-bottom: 12px; }
  .request-table { margin-top: 12px; }
  .table-head { min-height: 34px; }
  .request-row { min-height: 76px; padding-block: 10px; }
}
@media (max-width: 1100px) {
  .dj-page { padding-inline: 25px; }
  .table-head, .request-row { grid-template-columns: minmax(200px,1fr) 100px 55px 326px; gap: 15px; }
  .row-actions { gap: 6px; }
  .row-actions .button { padding-inline: 8px; }
  .playlist-state { gap: 12px; font-size: 12px; }
  .tabs { gap: 20px; }
}
@media (max-width: 900px) {
  .toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .playlist-state { padding-bottom: 15px; }
  .table-head { display: none; }
  .request-row { grid-template-columns: minmax(200px,1fr) 100px; gap: 14px; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .request-time { display: none; }
}
@media (max-width: 560px) {
  .dj-page { padding-inline: 20px; }
  .dj-top { align-items: flex-start; padding-block: 20px; gap: 15px; }
  .dj-top nav { flex-direction: column; gap: 4px; }
  .dj-heading { align-items: flex-start; flex-direction: column; }
  .dj-heading p { font-size: 14px; }
  .dj-footer { flex-wrap: wrap; }
  .live-state { margin-left: 0; }
  .playlist-state { flex-wrap: wrap; }
  .tabs { gap: 17px; }
  .tabs button { font-size: 14px; gap: 5px; }
  .table-head, .request-row { grid-template-columns: minmax(150px,1fr) 90px; }
}
@media (max-width: 360px) {
  .guest-page { padding-inline: 20px; }
  .guest-shell h1 { font-size: 31px; }
  .guest-top .wordmark { font-size: 18px; }
  .intake-state { font-size: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color .12s, border-color .12s, color .12s; }
}

/* Live application states. */
.search-hint { margin: 10px 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.feedback.is-error { color: #ffb7ae; }
.qr-link { color: var(--lime); font-size: 14px; }
#playlist-load-state { min-height: 24px; }
#spotify-setup { color: #f1d8ad; }

/* The host contributes a separate must-play list through a private invitation. */
.host-songs { margin: 46px 0 22px; padding-top: 24px; border-top: 1px solid var(--line); }
.host-songs h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.025em; }
.host-song { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.host-song .track-copy { flex: 1; overflow-wrap: anywhere; }
.host-song-status { font-size: 11px; color: var(--muted); }
.must-label { display: inline-block; color: var(--lime); font-size: 10px; vertical-align: middle; margin-left: 5px; font-weight: 700; }
.host-link-settings { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; }
.host-link-settings h3 { margin: 0; font-size: 17px; }
#host-link { margin-top: 15px; font-size: 13px; text-overflow: ellipsis; }
.host-link-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#settings-dialog { max-height: calc(100svh - 48px); overflow-y: auto; }
kbd { font-family: inherit; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }

.host-tabs { margin: -16px 0 28px; border-bottom: 1px solid var(--line); }
#host-block-editor h2, #dj-block-editor h2 { font-size: 23px; letter-spacing: -.025em; margin: 0; }
.blocked-notice { padding: 15px 0; color: var(--muted); font-size: 15px; line-height: 1.65; border-bottom: 1px solid var(--line); }
.blocked-label { font-size: 10px; color: #ffb7ae; font-weight: 700; }
.blocked-rule, .block-search-row { display: flex; justify-content: space-between; align-items: center; min-width: 0; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.block-search-row .song-cell, .blocked-rule .song-cell { flex: 1; min-width: 0; }
.block-search-row .track-copy, .blocked-rule .track-copy { overflow-wrap: anywhere; }
.block-search-row .button { font-size: 12px; padding-inline: 8px; }
.blocked-rule .text-button { font-size: 12px; }
.manual-block { margin-top: 20px; font-size: 14px; }
.manual-block summary { cursor: pointer; color: var(--lime); }
.manual-block .button { margin-top: 15px; }
.dj-block-settings { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }

.now-playing-settings { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.now-playing-settings h3 { font-size: 20px; margin: 0; }
.now-playing-settings > .button { margin-top: 16px; font-size: 13px; white-space: normal; }
.now-playing-bar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid #586158; padding: 12px 24px max(12px,env(safe-area-inset-bottom)); }
.now-playing-inner { display: flex; align-items: center; gap: 13px; max-width: 410px; margin: auto; min-width: 0; }
.now-playing-copy { display: grid; min-width: 0; gap: 2px; }
.now-playing-copy > strong { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.now-playing-copy > span:not(.now-playing-label) { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing-label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.now-playing-label .status-dot { width: 5px; height: 5px; flex-basis: 5px; }
.guest-page.has-now-playing { padding-bottom: 150px; }
