/* To use the exact fonts from your site: put the .woff2 files in /public/fonts and add  url("/fonts/yourfile.woff2") format("woff2")  after local(...) below. */
/* Hear & Now. Dark: white and red on black. Light: black and red on white. Gold and purple as hints. */

@font-face { font-family: "Bebas Neue"; src: local("Bebas Neue"), local("BebasNeue-Regular"); font-display: swap; }
@font-face { font-family: "Champagne & Limousines"; src: local("Champagne & Limousines"), local("ChampagneLimousines"); font-display: swap; }

:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.4);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.16);
  --red: #ff2b45;
  --red-deep: #c4001d;
  --gold: #e2b24f;
  --purple: #8d5bff;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 14px 34px rgba(0, 0, 0, 0.55);
  --head: "Bebas Neue", "League Gothic", Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --body: "Champagne & Limousines", "Josefin Sans", "Avenir Next", Avenir, "Helvetica Neue", system-ui, sans-serif;
  --pad: clamp(14px, 3vw, 52px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fff;
  --ink: #000;
  --muted: rgba(0, 0, 0, 0.66);
  --faint: rgba(0, 0, 0, 0.42);
  --panel: rgba(0, 0, 0, 0.04);
  --panel-2: rgba(0, 0, 0, 0.075);
  --line: rgba(0, 0, 0, 0.18);
  --red: #d4001f;
  --red-deep: #a80018;
  --gold: #a87a12;
  --purple: #5b2fd6;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 28px rgba(0, 0, 0, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wrap { position: relative; z-index: 1; padding: 0 var(--pad) 80px; width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0.02em; margin: 0; line-height: 0.95; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; gap: 14px; padding: 16px 0; flex-wrap: wrap; }
.logo { font-family: var(--head); font-size: 2.1rem; letter-spacing: 0.06em; text-decoration: none; display: flex; align-items: center; gap: 12px; line-height: 1; }
.logo i { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--gold) 0 14%, #000 15% 38%, var(--red) 39% 44%, #000 45% 100%); box-shadow: 0 0 0 2px var(--red), 0 4px 12px rgba(255, 43, 69, 0.45); }
.bar .grow { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  font-family: var(--head); font-size: 1.05rem; letter-spacing: 0.08em; padding: 9px 18px; border-radius: 10px; line-height: 1.1;
  box-shadow: var(--shadow); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.btn:hover { border-color: var(--red); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--red), var(--red-deep)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger:hover { border-color: #ff5d5d; color: #ff7a7a; }
.btn.sm { font-size: 0.9rem; padding: 6px 12px; border-radius: 8px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(14px, 2vw, 24px); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.panel > h2 { font-size: 1.9rem; margin-bottom: 14px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.9rem; }

/* ---------- platform chip ---------- */
.chip { --pc: var(--purple); display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; line-height: 1; padding: 6px 11px; border-radius: 999px; background: var(--pc); color: #fff; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 4px 12px color-mix(in srgb, var(--pc) 45%, transparent); white-space: nowrap; }
.chip-dark { color: #000; }

/* ---------- rating ---------- */
.rating { display: inline-flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.rating b { font-family: var(--head); font-weight: 400; font-size: 1.7rem; color: var(--gold); line-height: 1; }
.rating small { color: var(--faint); margin-right: 8px; }
.bars { display: inline-flex; gap: 3px; align-self: center; }
.bars i { width: 5px; height: 14px; border-radius: 2px; background: var(--line); }
.bars i.on { background: linear-gradient(180deg, var(--red), var(--red-deep)); }
.rating-big b { font-size: 4.2rem; }
.rating-big small { font-size: 1.2rem; }
.rating-big .bars i { width: 10px; height: 26px; border-radius: 3px; }
.awaiting { color: var(--faint); font-style: italic; }

/* ---------- thumbnails ---------- */
.thumb { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; background: var(--panel-2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.thumb.ph, .cover.ph { display: grid; place-items: center; font-family: var(--head); font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, var(--purple), var(--red-deep)); }

/* ---------- hero: the record sleeve ---------- */
.hero { display: grid; grid-template-columns: minmax(300px, min(56vw, 860px)) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 18px 0 40px; }
/* The art box is wider than the cover so the record has room to slide out without covering the text. */
.art { position: relative; aspect-ratio: 1.55 / 1; width: 100%; }
.cover { position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 1; width: auto; object-fit: cover; border-radius: 14px; z-index: 2; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--line); }
.cover.ph { width: auto; font-size: clamp(5rem, 14vw, 9rem); }
.disc { position: absolute; width: 59.4%; aspect-ratio: 1; top: 50%; margin-top: -29.7%; left: 24%; z-index: 1; transition: left 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #0b0b0b 0 2px, #1b1b1b 2px 3px), #0b0b0b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.vinyl::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 20%, rgba(255, 255, 255, 0.18) 25%, transparent 32% 70%, rgba(255, 255, 255, 0.12) 76%, transparent 82%); }
.vinyl::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle, #000 0 8%, var(--gold) 9% 22%, var(--red) 23% 100%); box-shadow: 0 0 0 4px #111; }
.hero.live .disc { left: 40.6%; }
.hero.live .vinyl { animation: spin 3.4s linear 1s infinite; }
.hero.recent .disc { left: 36%; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--muted); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.hero.live .status { color: var(--ink); }
.hero.live .dot { background: var(--red); box-shadow: 0 0 0 0 rgba(255, 43, 69, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 43, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 43, 69, 0); } }
.meter { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.hero.live .meter { display: inline-flex; }
.meter i { width: 4px; background: linear-gradient(180deg, var(--gold), var(--red)); border-radius: 2px; animation: lvl 1.1s ease-in-out infinite; height: 30%; }
.meter i:nth-child(2) { animation-delay: 0.15s; } .meter i:nth-child(3) { animation-delay: 0.3s; } .meter i:nth-child(4) { animation-delay: 0.45s; } .meter i:nth-child(5) { animation-delay: 0.6s; }
@keyframes lvl { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.hero .info { min-width: 0; display: grid; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--muted); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.hero.live .status { color: var(--ink); }
.hero.live .dot { background: var(--red); box-shadow: 0 0 0 0 rgba(255, 43, 69, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 43, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 43, 69, 0); } }
.meter { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.hero.live .meter { display: inline-flex; }
.meter i { width: 4px; background: linear-gradient(180deg, var(--gold), var(--red)); border-radius: 2px; animation: lvl 1.1s ease-in-out infinite; height: 30%; }
.meter i:nth-child(2) { animation-delay: 0.15s; } .meter i:nth-child(3) { animation-delay: 0.3s; } .meter i:nth-child(4) { animation-delay: 0.45s; } .meter i:nth-child(5) { animation-delay: 0.6s; }
@keyframes lvl { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 8rem); line-height: 0.88; overflow-wrap: anywhere; }
.hero .creator { font-size: clamp(1.2rem, 2.2vw, 1.8rem); }
.hero .detail { color: var(--muted); }
.hero .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .review { max-width: 60ch; color: var(--muted); border-left: 3px solid var(--red); padding-left: 14px; white-space: pre-wrap; }
.credit { color: var(--muted); font-size: 0.95rem; }
.credit b { color: var(--gold); font-weight: 700; }
.modenote { color: var(--faint); font-size: 0.88rem; }
.hero.empty .disc { left: 30%; opacity: 0.6; }

/* ---------- lists ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.stack { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.tabs { display: none; gap: 8px; margin: 0 0 16px; position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--bg); }
.tabs button { flex: 1; white-space: nowrap; letter-spacing: 0.04em; padding-left: 8px; padding-right: 8px; }
.tabs button[aria-selected="true"] { background: linear-gradient(180deg, var(--red), var(--red-deep)); border-color: transparent; color: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { cursor: pointer; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; }
.pill[aria-pressed="true"], .pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list { display: grid; gap: 4px; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid transparent; }
.item:hover { background: var(--panel-2); border-color: var(--line); }
.item .t { font-size: 1.08rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .s { color: var(--muted); font-size: 0.93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .r { display: grid; gap: 6px; justify-items: end; text-align: right; }
.item .when { color: var(--faint); font-size: 0.82rem; }
.pick { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.pick .thumb { width: 84px; height: 84px; }
.pick .t { font-weight: 700; font-size: 1.1rem; }
.pick .review { color: var(--muted); font-size: 0.95rem; margin-top: 6px; white-space: pre-wrap; }
.empty { color: var(--muted); padding: 22px 6px; }
.more { margin-top: 10px; }

/* ---------- forms ---------- */
label.f { display: grid; gap: 6px; font-size: 0.95rem; color: var(--muted); }
input[type="text"], input[type="url"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--ink); font-size: 1rem; min-height: 46px;
}
textarea { min-height: 84px; resize: vertical; }
select option { color: #000; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.form { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.nums { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.nums button { cursor: pointer; border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; min-height: 44px; font-family: var(--head); font-size: 1.3rem; }
.nums button.on { background: linear-gradient(180deg, var(--gold), #a87a12); color: #000; border-color: transparent; }
.err { color: #ff6b7d; min-height: 1.2em; font-size: 0.95rem; }
:root[data-theme="light"] .err { color: #c4001d; }
.results { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.result { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; }
.result:hover { border-color: var(--gold); }
.result .thumb { width: 48px; height: 48px; }
.note { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.note.gold { border-color: var(--gold); }

/* ---------- admin ---------- */
.wrap.narrow { max-width: 860px; margin: 0 auto; }
.admin .wrap { max-width: 1100px; margin: 0 auto; padding-bottom: 120px; }
.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom); }
.nav button { appearance: none; border: 0; background: transparent; cursor: pointer; padding: 12px 4px 10px; font-family: var(--head); font-size: 1.12rem; letter-spacing: 0.06em; color: var(--muted); position: relative; }
.nav button[aria-selected="true"] { color: var(--ink); }
.nav button[aria-selected="true"]::after { content: ""; position: absolute; left: 22%; right: 22%; top: 0; height: 3px; background: var(--red); border-radius: 0 0 3px 3px; }
.nav .badge { position: absolute; top: 6px; right: 14%; background: var(--red); color: #fff; font-family: var(--body); font-size: 0.72rem; border-radius: 999px; padding: 1px 6px; font-weight: 700; }
.pane { display: none; gap: 18px; }
.pane.on { display: grid; }
.now { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.now .thumb { width: 84px; height: 84px; }
.now .t { font-weight: 700; font-size: 1.2rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.state { font-size: 0.78rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.state.public { border-color: #2fd07a; color: #2fd07a; }
.state.waiting { border-color: var(--gold); color: var(--gold); }
.state.hidden, .state.held { border-color: var(--faint); color: var(--faint); }
.state.level { border-color: var(--purple); color: var(--purple); }
.aitem { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); align-items: start; }
.aitem .t { font-weight: 700; }
.aitem .s { color: var(--muted); font-size: 0.93rem; }
.aitem .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.aitem .note-txt { margin-top: 8px; white-space: pre-wrap; border-left: 3px solid var(--purple); padding-left: 10px; color: var(--muted); }
.modes { display: grid; gap: 10px; }
.mode { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--panel); }
.mode:has(input:checked) { border-color: var(--red); background: var(--panel-2); }
.mode b { font-family: var(--head); font-size: 1.4rem; font-weight: 400; letter-spacing: 0.05em; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.7); display: grid; place-items: center; padding: 14px; overflow: auto; }
.modal .panel { width: min(640px, 100%); background: var(--bg); max-height: 92vh; overflow: auto; }
.linkbox { word-break: break-all; padding: 12px; border: 1px dashed var(--gold); border-radius: 10px; background: var(--panel); font-size: 0.9rem; }
details.more-opts summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.login { min-height: 80vh; display: grid; place-items: center; }
.login .panel { width: min(420px, 100%); }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 60; max-width: 90vw; font-weight: 700; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--red); color: #fff; }

footer.foot { margin-top: 40px; color: var(--faint); font-size: 0.85rem; display: grid; gap: 6px; }

@media (min-width: 900px) {
  .admin .nav { position: sticky; top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); width: min(640px, 100%); margin: 0 auto 18px; border-radius: 0 0 14px 14px; }
  .admin #toast { bottom: 30px; }
}
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; padding-top: 4px; }
  .art { max-width: 520px; margin: 0 auto; }
  .cols { grid-template-columns: 1fr; }
  .tabs { display: flex; }
  [data-pane]:not(.on) { display: none; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .item { grid-template-columns: auto minmax(0, 1fr); }
  .item .r { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; }
  .nums { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hero.live .vinyl, .hero.live .dot, .meter i { animation: none; }
  .hero.live .meter i { height: 70%; }
  * { transition: none !important; }
}
