* { box-sizing: border-box; margin: 0; }

:root {
  --bg: #0e0c09;
  --card: #171310;
  --card-hi: #1e1813;
  --line: rgba(244, 237, 224, .07);
  --line-warm: rgba(245, 182, 66, .16);
  --text: #f4ede0;
  --dim: #a5988a;
  --faint: #6f6355;
  --accent: #f5b642;
  --accent-2: #e2542e;
  --grad: linear-gradient(100deg, var(--accent), var(--accent-2));
  --display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ambient glow behind the top of the page */
.glow {
  position: fixed; inset: -40vh -20vw auto -20vw; height: 80vh;
  background:
    radial-gradient(45% 55% at 30% 40%, rgba(245, 182, 66, .13), transparent 70%),
    radial-gradient(40% 50% at 75% 30%, rgba(226, 84, 46, .09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display);
  font-weight: 800; font-size: 19px; letter-spacing: .01em;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 11px;
}
.disc {
  width: 22px; height: 22px; border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--accent) 0 3px, #191411 3px 4.5px,
      transparent 4.5px 6px, #26201a 6px 6.8px, transparent 6.8px 8.2px, #26201a 8.2px 9px, transparent 9px),
    conic-gradient(#221c16, #322a22, #221c16, #2c251e, #221c16);
  box-shadow: 0 0 0 1px var(--line);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .disc { animation: none; } }

#whoami { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; }
#whoami img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line-warm); }
#whoami a { color: var(--faint); text-decoration: none; border-bottom: 1px solid transparent; }
#whoami a:hover { color: var(--dim); border-bottom-color: var(--faint); }

main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 28px; }

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

.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.sec-head { margin: 52px 0 20px; }
.range-bar + section .sec-head { margin-top: 26px; }
h2 { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; }

/* ---------- hero ---------- */

.hero { max-width: 620px; margin: 13vh auto 8vh; text-align: center; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 62px); line-height: 1.02; letter-spacing: -.01em;
  margin: 10px 0 20px;
}
.hero em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--dim); font-size: 16.5px; max-width: 46ch; margin: 0 auto 30px; }
.connect {
  display: inline-block;
  background: var(--grad); color: #191006;
  font-weight: 700; font-size: 15.5px;
  padding: 14px 34px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 28px rgba(245, 182, 66, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.connect:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(245, 182, 66, .3); }
.fineprint { font-size: 12.5px; color: var(--faint); margin-top: 26px; }
.error { color: #ff8a76; font-size: 13.5px; margin-top: 16px; }

/* ---------- track rows ---------- */

.tracklist { list-style: none; padding: 0; display: flex; flex-direction: column; }
.tracklist li { min-width: 0; }
.track-row {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 7px 10px; margin: 0 -10px; border-radius: 10px;
  color: inherit; text-decoration: none;
  transition: background .12s ease;
}
a.track-row:hover { background: rgba(245, 182, 66, .07); }
a.track-row:hover .t .n { color: var(--accent); }
a.track-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rank {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  color: var(--faint); width: 22px; text-align: right; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
li.first .rank { color: var(--accent); }
.art, .tracklist img {
  width: 40px; height: 40px; border-radius: 7px; flex-shrink: 0;
  object-fit: cover; box-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 0 1px var(--line);
  display: flex; align-items: center; justify-content: center;
  color: rgba(244, 237, 224, .55); font-size: 15px;
}
.t { min-width: 0; }
.t .n { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.t .a { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.plays {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.plays small { color: var(--faint); font-family: var(--sans); font-weight: 500; font-size: 11px; margin-left: 2px; }
.who { margin-left: auto; color: var(--faint); font-size: 12px; text-align: right; flex-shrink: 0; }

.empty { color: var(--faint); font-size: 13px; font-style: italic; padding: 8px 0; }

/* ---------- overlap ---------- */

.overlap li { border-bottom: 1px solid var(--line); }
.overlap li:last-child { border-bottom: 0; }
.overlap .track-row { padding: 9px 10px; }
.pillset { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  font-size: 11.5px; font-weight: 600; color: var(--dim);
  background: var(--card-hi); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.pill b { color: var(--accent); font-weight: 700; }

/* ---------- album of the month ---------- */

#album-section { margin-top: 30px; }
#album-section .eyebrow { margin-bottom: 12px; }
.album-cover { display: block; width: 260px; max-width: 100%; }
.album-cover img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px; display: block;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-warm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.album-cover:hover img {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .65), 0 0 0 1px var(--accent);
}
.review-link {
  display: inline-block; margin-top: 14px;
  color: var(--accent); text-decoration: none;
  font-size: 14px; font-weight: 600;
  border-bottom: 1px solid rgba(245, 182, 66, .35); padding-bottom: 1px;
}
.review-link:hover { border-bottom-color: var(--accent); }
.review-link::after { content: ' ↓'; }

/* ---------- review (bottom of page) ---------- */

.review-card {
  background: linear-gradient(165deg, var(--card-hi), var(--card) 55%);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 28px; max-width: 76ch;
}
.review-rating {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 14px;
}
.review-rating b { color: var(--accent); font-size: 17px; }
.review-body { font-size: 15px; line-height: 1.7; }
.review-by { margin-top: 16px; color: var(--faint); font-size: 13px; font-style: italic; }
#review { scroll-margin-top: 80px; padding-bottom: 40px; }

@media (max-width: 760px) {
  .album-cover { width: 220px; }
  .review-card { padding: 20px; }
}

/* ---------- range tabs ---------- */

/* Page-level control: governs both Common ground and the member lists. */
.range-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
}
.range-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button {
  background: none; color: var(--dim); border: 0;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  font-family: var(--sans); cursor: pointer; transition: color .12s ease;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--grad); color: #191006; }

/* ---------- member cards ---------- */

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.member {
  background: linear-gradient(165deg, var(--card-hi), var(--card) 55%);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
}
.member .head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.member .head img, .member .head .ph {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line-warm);
  object-fit: cover;
}
.member .head .ph {
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 19px; color: #191006;
}
.member .head .name { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.member .head .name a { color: inherit; text-decoration: none; }
.member .head .name a:hover { color: var(--accent); }
.member .head a { display: inline-flex; }
.member .head .name span { color: var(--faint); font-family: var(--sans); font-weight: 500; font-size: 12.5px; }
.member .head .meta { font-size: 12px; color: var(--faint); margin-top: 2px; }
.member .head .meta .stale { color: #ff8a76; }

.top-artist { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.ta-label {
  display: block; margin-bottom: 9px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.ta-row {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  color: inherit; text-decoration: none;
  padding: 4px 10px; margin: 0 -10px; border-radius: 10px;
  transition: background .12s ease;
}
.ta-row:hover { background: rgba(245, 182, 66, .07); }
.ta-row:hover .ta-name { color: var(--accent); }
.ta-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ta-row img, .ta-ph {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-warm);
}
.ta-ph {
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 17px; color: #191006;
}
.ta-text { min-width: 0; }
.ta-name {
  display: block; font-family: var(--display); font-weight: 700; font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ta-genres {
  display: block; color: var(--faint); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.refresh {
  background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 12px;
  font-family: var(--sans); padding: 0; margin-top: 16px;
  border-bottom: 1px solid var(--line); transition: color .12s ease;
}
.refresh:hover { color: var(--dim); }

/* ---------- message board ---------- */

.composer {
  background: linear-gradient(165deg, var(--card-hi), var(--card) 55%);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.composer textarea {
  width: 100%; resize: vertical; min-height: 46px;
  background: none; border: 0; color: var(--text);
  font: 15px/1.5 var(--sans);
}
.composer textarea::placeholder { color: var(--faint); }
.composer textarea:focus { outline: none; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.hint { font-size: 12px; color: var(--faint); }
#composer-post {
  background: var(--grad); color: #191006; border: 0;
  font-family: var(--sans); font-weight: 700; font-size: 13.5px;
  padding: 8px 20px; border-radius: 999px; cursor: pointer;
  transition: filter .12s ease;
}
#composer-post:hover { filter: brightness(1.08); }
#composer-post:disabled { opacity: .5; cursor: default; }

.messages { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.msg { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg img, .msg .ph {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-warm);
}
.msg .ph {
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 14px; color: #191006;
}
.msg-body { min-width: 0; flex: 1; }
.msg-meta { display: flex; align-items: baseline; gap: 9px; margin-bottom: 3px; }
.msg-author { font-weight: 700; font-size: 13.5px; }
.msg-time { color: var(--faint); font-size: 12px; }
.msg-del {
  margin-left: auto; background: none; border: 0; padding: 0;
  color: var(--faint); font-family: var(--sans); font-size: 11.5px; cursor: pointer;
  opacity: 0; transition: opacity .12s ease, color .12s ease;
}
.msg:hover .msg-del, .msg-del:focus-visible { opacity: 1; }
/* No hover on touch — the control has to be permanently visible there. */
@media (hover: none) { .msg-del { opacity: .75; } }
.msg-del:hover { color: #ff8a76; }
.msg-text { font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

#loading { color: var(--faint); text-align: center; margin-top: 16vh; font-size: 14px; }

footer-spacer, .board-end { height: 60px; }

@media (max-width: 640px) {
  main { padding: 18px; }
  .top { padding: 12px 18px; }
  .hero { margin-top: 8vh; }
  .sec-head { margin-top: 40px; }
  h2 { font-size: 25px; }
  .members { grid-template-columns: 1fr; }
  .range-label { display: none; }
  .range-bar { justify-content: center; padding-top: 6px; }
  .tabs button { padding: 7px 12px; font-size: 12.5px; }
}
