/* Jukebox — "late night record bar" look.
   Warm ink-black, paper-white type, one loud vermilion and an acid green for what's live. */

:root {
  --ink: #12100d;
  --ink-2: #1b1814;
  --ink-3: #25211b;
  --ink-4: #332d25;
  --paper: #f4ecdc;
  --paper-2: #d8ccb6;
  --dim: #9a8f7c;
  --faint: #6b6253;
  --line: rgba(244, 236, 220, 0.1);
  --line-2: rgba(244, 236, 220, 0.18);
  --hot: #ff4d1c;
  --hot-2: #ff7a4f;
  --hot-ink: #1a0800;
  --acid: #d4ff3a;
  --warn: #ffb020;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --r: 14px;
  --r-sm: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything, very subtle. */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--hot); color: var(--hot-ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.dim { color: var(--dim); }
.hide { display: none !important; }

/* ------------------------------------------------------------ type */

.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0;
}
.kicker {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--hot);
  border-radius: 50%;
}
.kicker.live::before { background: var(--acid); box-shadow: 0 0 0 4px rgba(212, 255, 58, 0.15); animation: pulse 1.6s ease-in-out infinite; }
.kicker.plain::before { display: none; }
h2.section {
  font: 800 30px/0.9 var(--display);
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(212, 255, 58, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------ controls */

.btn {
  --bg: var(--ink-3);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--paper-2); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.hot { --bg: var(--hot); --fg: var(--hot-ink); border-color: var(--hot); }
.btn.hot:hover { --bg: var(--hot-2); border-color: var(--hot-2); }
.btn.acid { --bg: var(--acid); --fg: #141a00; border-color: var(--acid); }
.btn.ghost { --bg: transparent; }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.spotify { --bg: #1ed760; --fg: #04140a; border-color: #1ed760; }

.iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--paper-2);
  flex: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.iconbtn:hover { background: var(--ink-3); color: var(--paper); }
.iconbtn.danger:hover { color: var(--hot); border-color: var(--hot); }
.iconbtn.ok:hover { color: var(--acid); border-color: var(--acid); }
.iconbtn svg { width: 18px; height: 18px; }

label.field { display: grid; gap: 6px; font-size: 13px; color: var(--paper-2); font-weight: 500; }
.input, select.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--ink);
  color: var(--paper);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255, 77, 28, 0.2); }
.input::placeholder { color: var(--faint); }
.hint { font-size: 12px; color: var(--dim); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-size: 14px; }
.switch input { appearance: none; width: 46px; height: 26px; border-radius: 99px; background: var(--ink-4); position: relative; cursor: pointer; flex: none; transition: background 0.2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); transition: transform 0.2s, background 0.2s; }
.switch input:checked { background: var(--hot); }
.switch input:checked::after { transform: translateX(20px); background: var(--hot-ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--paper-2);
  white-space: nowrap;
}
.chip.hot { color: var(--hot); border-color: rgba(255, 77, 28, 0.5); }
.chip.acid { color: var(--acid); border-color: rgba(212, 255, 58, 0.45); }
.chip.warn { color: var(--warn); border-color: rgba(255, 176, 32, 0.45); }
.chip.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}

.banner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 77, 28, 0.45);
  background: rgba(255, 77, 28, 0.08);
  font-size: 14px;
}
.banner.ok { border-color: rgba(212, 255, 58, 0.4); background: rgba(212, 255, 58, 0.06); }
.banner .grow { flex: 1; }

.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; height: 100%; background: var(--acid); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.eq i:nth-child(4) { animation-delay: -0.15s; }
.eq.paused i { animation-play-state: paused; transform: scaleY(0.25); }

.cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--ink-4);
  flex: none;
}
.cover.empty { display: grid; place-items: center; color: var(--faint); }

.empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  font-size: 14px;
}

/* Ticker band with the event name. */
.ticker {
  background: var(--hot);
  color: var(--hot-ink);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
}
.ticker-track { display: inline-flex; animation: ticker 28s linear infinite; }
.ticker span {
  font: 900 15px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 0;
  display: inline-flex;
  align-items: center;
}
.ticker span::after { content: "✶"; margin: 0 18px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .vinyl, .eq i { animation: none !important; }
}

/* Toast, styled as a ticket stub. */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: 18px; display: grid; justify-items: center; z-index: 60; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto;
  max-width: 440px;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 14px 18px 14px 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: rise 0.25s ease;
  position: relative;
  /* perforated left edge */
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 100% 100% no-repeat;
          mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left / 100% 100% no-repeat;
}
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acid); outline: 2px solid var(--ink); flex: none; }
.toast.error::before { background: var(--hot); }

/* Bottom sheet / dialog. */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.7);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: grid;
  align-items: end;
  justify-items: center;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%;
  max-width: 520px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes up { from { transform: translateY(100%); } }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; border-bottom: 1px solid var(--line-2); }
}

/* ------------------------------------------------------------ brand */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark.spin { animation: spin 6s linear infinite; }
.brand-word { font: 900 24px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }

/* ------------------------------------------------------------ landing */

.landing { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 44px); gap: 12px; }
.landing-main {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: 24px clamp(16px, 4vw, 44px) 40px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hero-title { font-size: clamp(60px, min(9.5vw, 13.5vh), 150px); }
.hero-title em { font-style: normal; color: var(--hot); display: block; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--paper); }
.hero-copy { max-width: 480px; color: var(--paper-2); font-size: 18px; margin: 26px 0 0; }
.hero-visual { position: relative; margin-top: 36px; height: 120px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.steps div { background: var(--ink); padding: 22px clamp(16px, 3vw, 40px); }
.steps b { font: 900 46px/1 var(--display); color: var(--hot); display: block; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--paper-2); font-size: 14px; max-width: 280px; }

.auth-card { padding: 26px; position: relative; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--ink); border-radius: 99px; border: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 99px; background: transparent; color: var(--dim); font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.form { display: grid; gap: 14px; }
.form-error { color: var(--hot); font-size: 14px; min-height: 1em; margin: 0; }

.vinyl {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--hot) 0 17%, #111 17.5% 19%, transparent 19.5%),
    repeating-radial-gradient(circle, #0b0a08 0 2px, #1d1a16 2.5px 3.5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: spin 3.2s linear infinite;
  position: relative;
}
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, 0.09) 14%, transparent 20% 60%, rgba(255, 255, 255, 0.06) 64%, transparent 70%); }
.vinyl.paused { animation-play-state: paused; }

@media (max-width: 860px) {
  .landing-main { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ------------------------------------------------------------ admin shell */

.shell { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 36px) 80px; }
.adminbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
}
.adminbar .grow { flex: 1; }
.adminbar .who { font-size: 13px; color: var(--dim); }
@media (max-width: 640px) {
  .adminbar { gap: 8px; }
  .adminbar .who, .adminbar .crumb, .adminbar .brand-word { display: none; }
  .adminbar .btn.sm { padding: 0 10px; font-size: 12px; }
}
.crumb { font: 600 13px/1 var(--mono); color: var(--dim); text-decoration: none; letter-spacing: 0.04em; }
.crumb:hover { color: var(--paper); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(44px, 7vw, 92px); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Spotify connection strip */
.connect {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: linear-gradient(100deg, rgba(30, 215, 96, 0.1), transparent 60%), var(--ink-2);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.connect .grow { flex: 1; min-width: 200px; }
.connect h3 { margin: 0 0 2px; font-size: 17px; }
.connect p { margin: 0; color: var(--dim); font-size: 14px; }
.spotify-dot { width: 42px; height: 42px; border-radius: 50%; background: #1ed760; display: grid; place-items: center; color: #04140a; flex: none; }
.spotify-dot.off { background: var(--ink-4); color: var(--dim); }

/* Event "tickets" on the dashboard */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.ticket {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 210px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-mask: radial-gradient(circle 11px at 0 72%, transparent 98%, #000) , radial-gradient(circle 11px at 100% 72%, transparent 98%, #000);
  -webkit-mask-composite: source-in;
          mask: radial-gradient(circle 11px at 0 72%, transparent 98%, #000) , radial-gradient(circle 11px at 100% 72%, transparent 98%, #000);
          mask-composite: intersect;
}
.ticket:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.ticket-top { padding: 18px 20px 14px; display: grid; gap: 10px; align-content: start; }
.ticket-top .meta { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #6e6352; }
.ticket h3 { font: 900 40px/0.88 var(--display); text-transform: uppercase; margin: 0; word-break: break-word; }
.ticket-bottom {
  border-top: 2px dashed rgba(20, 17, 13, 0.25);
  padding: 12px 20px 16px;
  display: flex;
  gap: 18px;
  font: 500 12px/1.2 var(--mono);
  color: #4a4236;
}
.ticket-bottom b { display: block; font: 900 26px/1 var(--display); color: var(--ink); }

.ticket.closed { background: var(--paper-2); }
.ticket.new {
  background: transparent;
  color: var(--paper);
  border: 2px dashed var(--line-2);
  -webkit-mask: none;
          mask: none;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  font: inherit;
}
.ticket.new:hover { border-color: var(--hot); color: var(--hot); }
.ticket.new .plus { font: 900 64px/0.8 var(--display); }

.chip.on { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.chip.off { background: transparent; color: #6e6352; border-color: rgba(20, 17, 13, 0.3); }

/* Blocklist */
.blocklist { display: grid; gap: 6px; }
.block-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink-2); border: 1px solid var(--line); }
.block-item .grow { flex: 1; min-width: 0; }
.block-item .label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ event admin */

.np {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: var(--r);
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.np-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.3); opacity: 0.28; z-index: 0; }
.np > :not(.np-bg) { position: relative; z-index: 1; }
.np-art { position: relative; width: 132px; height: 132px; }
.np-art .vinyl { position: absolute; width: 124px; height: 124px; top: 4px; left: 44px; }
.np-art img, .np-art .ph { position: relative; width: 132px; height: 132px; border-radius: 8px; object-fit: cover; box-shadow: 8px 0 24px rgba(0, 0, 0, 0.45); background: var(--ink-4); }
.np-info { min-width: 0; padding-left: 40px; }
.np-title { font: 900 clamp(30px, 4vw, 48px)/0.9 var(--display); text-transform: uppercase; margin: 10px 0 6px; overflow-wrap: anywhere; }
.np-artist { color: var(--paper-2); font-size: 16px; }
.np-by { margin-top: 10px; font: 500 12px/1 var(--mono); color: var(--dim); }
.progress { height: 3px; background: var(--line-2); border-radius: 3px; margin-top: 16px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--acid); width: 0; transition: width 1s linear; }
.np.idle .np-title { color: var(--dim); }
@media (max-width: 560px) {
  .np { grid-template-columns: 1fr; }
  .np-art { width: 100%; height: auto; display: flex; }
  .np-art .vinyl { display: none; }
  .np-info { padding-left: 0; }
}

.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qrow {
  display: grid;
  grid-template-columns: 30px 40px 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 8px 6px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
  touch-action: pan-y;
  user-select: none;
}
.qrow:hover { background: var(--ink-3); }
.qrow.dragging { position: relative; z-index: 5; background: var(--ink-3); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--hot); transition: none; }
.qrow.shift { transition: transform 0.18s ease; }
.qrow .num { font: 900 28px/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--dim); text-align: center; }
.qrow:first-child .num { color: var(--hot); -webkit-text-stroke: 0; }
.handle { cursor: grab; touch-action: none; color: var(--faint); display: grid; place-items: center; height: 40px; border: 0; background: none; padding: 0; }
.handle:hover { color: var(--paper); }
.handle:active { cursor: grabbing; }
.qrow .t { min-width: 0; }
.qrow .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .t span { display: block; color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .t small { font: 500 11px/1.6 var(--mono); color: var(--faint); letter-spacing: 0.03em; }
.qrow .acts { display: flex; gap: 6px; }
.qrow.pending { grid-template-columns: 48px minmax(0, 1fr) auto; padding-left: 10px; border-color: rgba(255, 176, 32, 0.3); }
.qrow.history { grid-template-columns: 48px minmax(0, 1fr) auto; padding-left: 10px; opacity: 0.75; }
@media (max-width: 560px) {
  .qrow { grid-template-columns: 26px 22px 42px minmax(0, 1fr) auto; gap: 8px; }
  .qrow .num { font-size: 20px; }
  .qrow .cover { width: 42px; height: 42px; }
  .qrow .acts .iconbtn { width: 34px; height: 34px; }
  .qrow .acts .opt { display: none; }
}

.qr-card { text-align: center; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 22px; }
.qr-card img { width: 100%; max-width: 260px; margin: 6px auto 12px; aspect-ratio: 1; }
.qr-card .code { font: 900 34px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.qr-card .url { font: 500 12px/1.4 var(--mono); color: #6e6352; word-break: break-all; margin: 6px 0 14px; }
.qr-card .btn { --bg: var(--ink); --fg: var(--paper); border-color: var(--ink); }
.qr-card .btn.ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(20, 17, 13, 0.25); }

.settings { display: grid; gap: 16px; }
.settings .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--ink); border: 1px solid var(--line); border-radius: 99px; }
.seg button { flex: 1; min-height: 36px; border: 0; border-radius: 99px; background: transparent; color: var(--dim); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.open-toggle {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.open-toggle .grow { flex: 1; }
.open-toggle b { display: block; font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.open-toggle span { font-size: 13px; color: var(--dim); }

.results { display: grid; gap: 4px; margin-top: 10px; }
.result {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  animation: rise 0.2s ease both;
}
.result:hover { background: var(--ink-3); }
.result .t { min-width: 0; }
.result .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .t span { display: block; color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .why { display: block; font: 500 11px/1.5 var(--mono); color: var(--warn); letter-spacing: 0.02em; white-space: normal; }
.result.no .cover { filter: grayscale(1); opacity: 0.5; }
.result.no .t b { color: var(--dim); }
.explicit { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 3px; background: var(--paper-2); color: var(--ink); font: 700 9px/1 var(--body); margin-right: 5px; vertical-align: 1px; }

.addbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--hot);
  color: var(--hot-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.15s;
}
.addbtn:hover { transform: scale(1.08) rotate(90deg); background: var(--hot-2); }
.addbtn:disabled { background: var(--ink-4); color: var(--faint); cursor: not-allowed; transform: none; }
.addbtn svg { width: 20px; height: 20px; }

details.fold { border-top: 1px solid var(--line); padding-top: 14px; }
details.fold summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font: 800 22px/1 var(--display); text-transform: uppercase; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; font-family: var(--mono); color: var(--dim); }
details.fold[open] summary::after { content: "−"; }
details.fold > div { margin-top: 12px; }

.menu { position: relative; }
.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 6px;
  z-index: 30;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: rise 0.15s ease;
}
.menu-list button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.menu-list button:hover { background: var(--ink-4); }
.menu-list button.danger { color: var(--hot); }

/* ------------------------------------------------------------ guest */

.guest { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }
.guest-head { padding: 22px 0 6px; }
.guest-head h1 { font-size: clamp(54px, 16vw, 88px); overflow-wrap: anywhere; }
.guest-head p { margin: 12px 0 0; color: var(--paper-2); }

.g-np {
  margin: 20px 0 26px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  position: relative;
}
.g-np .art { position: relative; width: 92px; height: 92px; }
.g-np .art img, .g-np .art .ph { width: 92px; height: 92px; border-radius: 6px; object-fit: cover; position: relative; z-index: 1; background: var(--ink-4); box-shadow: 6px 0 18px rgba(0, 0, 0, 0.5); }
.g-np .art .vinyl { position: absolute; width: 86px; height: 86px; top: 3px; left: 26px; z-index: 0; }
.g-np .info { padding-left: 24px; min-width: 0; }
.g-np .title { font: 900 30px/0.92 var(--display); text-transform: uppercase; margin: 8px 0 4px; overflow-wrap: anywhere; }
.g-np .artist { color: var(--paper-2); font-size: 15px; }
.g-np .by { font: 500 11px/1 var(--mono); color: var(--acid); margin-top: 8px; letter-spacing: 0.04em; }

.search-wrap { position: sticky; top: 0; z-index: 10; padding: 12px 0; background: linear-gradient(var(--ink) 75%, transparent); }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 58px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.search svg { width: 20px; height: 20px; flex: none; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; font-weight: 500; height: 58px; }
.search input::placeholder { color: #7d7464; }
.search .clear { border: 0; background: var(--ink); color: var(--paper); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.quota { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: 0.03em; padding: 0 6px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--hot); }
.dots i.used { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }

.g-section { margin-top: 30px; }
.g-section h2 { display: flex; align-items: baseline; justify-content: space-between; }
.g-section h2 small { font: 500 12px/1 var(--mono); color: var(--dim); text-transform: none; letter-spacing: 0.03em; }

.upnext { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.upnext li {
  display: grid;
  grid-template-columns: 46px 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: q;
  animation: rise 0.25s ease both;
}
.upnext li::before { content: counter(q, decimal-leading-zero); font: 900 32px/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--faint); }
.upnext li:first-child::before { color: var(--hot); -webkit-text-stroke: 0; }
.upnext li.mine { background: linear-gradient(90deg, rgba(212, 255, 58, 0.08), transparent); }
.upnext li.mine::before { -webkit-text-stroke-color: var(--acid); }
.upnext .cover { width: 44px; height: 44px; }
.upnext .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext .t span { display: block; color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext .t small { font: 500 11px/1.6 var(--mono); color: var(--faint); }
.upnext li.mine .t small { color: var(--acid); }

.mine-list { display: grid; gap: 8px; }
.mine-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.mine-item .cover { width: 44px; height: 44px; }
.mine-item .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mine-item .t span { display: block; color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.closed-note { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--ink-2); border: 1px dashed var(--hot); text-align: center; }
.closed-note b { font: 900 30px/1 var(--display); text-transform: uppercase; display: block; color: var(--hot); }

.sheet h3 { font: 900 38px/0.9 var(--display); text-transform: uppercase; margin: 10px 0 16px; }
.sheet .pick { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--ink); margin-bottom: 16px; }
.sheet .pick .cover { width: 64px; height: 64px; }
.sheet .pick b { display: block; font-weight: 700; }
.sheet .pick span { color: var(--dim); font-size: 14px; }

.foot { margin-top: 40px; text-align: center; font: 500 11px/1.6 var(--mono); color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }

.skeleton { height: 64px; border-radius: 10px; background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------ TV screen */

.screen { height: 100vh; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.screen .ticker span { font-size: 22px; padding: 14px 0; }
.screen-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4vw; padding: 4vh 4vw; min-height: 0; }
.screen-np { display: grid; grid-template-rows: auto 1fr; gap: 3vh; min-height: 0; }
.screen-np .artrow { display: flex; align-items: center; }
.screen-np .art { width: 34vh; height: 34vh; border-radius: 10px; object-fit: cover; position: relative; z-index: 1; box-shadow: 14px 0 40px rgba(0, 0, 0, 0.6); background: var(--ink-3); }
.screen-np .vinyl { width: 32vh; height: 32vh; margin-left: -20vh; }
.screen-np .title { font: 900 clamp(48px, 7.5vw, 140px)/0.86 var(--display); text-transform: uppercase; margin: 2vh 0 1vh; overflow-wrap: anywhere; }
.screen-np .artist { font-size: clamp(20px, 2.2vw, 38px); color: var(--paper-2); }
.screen-np .by { font: 500 clamp(14px, 1.2vw, 20px)/1 var(--mono); color: var(--acid); margin-top: 2vh; }
.screen-side { display: grid; grid-template-rows: auto 1fr; gap: 3vh; min-height: 0; }
.screen-qr { display: grid; grid-template-columns: 22vh 1fr; gap: 2vw; align-items: center; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 2.4vh; }
.screen-qr img { width: 22vh; height: 22vh; }
.screen-qr b { font: 900 clamp(30px, 3.4vw, 64px)/0.86 var(--display); text-transform: uppercase; display: block; }
.screen-qr span { font: 500 clamp(12px, 1vw, 18px)/1.4 var(--mono); color: #5d5446; display: block; margin-top: 1.4vh; word-break: break-all; }
.screen .upnext li { grid-template-columns: 64px 7vh minmax(0, 1fr); padding: 1.3vh 0; }
.screen .upnext li::before { font-size: 5vh; }
.screen .upnext .cover { width: 7vh; height: 7vh; }
.screen .upnext .t b { font-size: clamp(16px, 1.5vw, 28px); }
.screen .upnext .t span { font-size: clamp(13px, 1.1vw, 20px); }
.screen-list { overflow: hidden; min-height: 0; }
@media (max-width: 900px) {
  .screen { height: auto; }
  .screen-main { grid-template-columns: 1fr; }
}
