/*
 * Copyright (c) 2026 Tyson Kreger
 * All rights reserved.
 * This code and content are proprietary and confidential.
 * Unauthorized copying, distribution, or use is strictly prohibited.
 *
 * Styles for the public music page and every generated track page.
 *
 * READABILITY IS A SPEC HERE, NOT A PREFERENCE. Tyson is 53, reads on a small
 * phone screen, and has a red/green colour deficiency. So, throughout:
 *   - body copy is 15px or larger and NOTHING is under 12px anywhere
 *   - body copy is near-white (#e8e8e8) on near-black, never mid-grey
 *   - no font weight under 400 on a dark background
 *   - state is never carried by hue alone; every coloured badge also carries
 *     a word, and the play button changes SHAPE, not just colour
 * Accents are cyan and amber, the two established safe ones.
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:    #0a0a0a;
  --panel:    #141414;
  --panel-2:  #1c1c1c;
  --line:     #2e2e2e;
  --line-hi:  #3f3f3f;
  --text:     #e8e8e8;
  --text-dim: #b8b8b8;
  --white:    #ffffff;
  --cyan:     #00ccff;
  --amber:    #ff9500;
  --danger:   #ff5c5c;
  --bar-h:    92px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
}

/* The player moved from the bottom of the screen to the very top (Tyson 11/17/26),
   so the page no longer needs room kept free under it. */
body.has-player { padding-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 18px; }

/* Never smaller than 13px, and only for genuine secondary labels. */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

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

.site-head {
  padding: 46px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.site-head h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--white);
}
.site-head .tagline {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  max-width: 46ch;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.site-nav a, .site-nav button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  cursor: pointer;
  text-decoration: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover, .site-nav button:hover {
  border-color: var(--cyan);
  color: var(--white);
  text-decoration: none;
}
.site-nav .spacer { display: none; }
@media (min-width: 640px) { .site-nav .spacer { display: block; flex: 1 1 auto; } }

/* ------------------------------------------------------------- section box */

section.block { margin: 0 0 52px; scroll-margin-top: 20px; }

h2.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
p.section-note {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* ------------------------------------------------------------- track list */

.track-list { display: flex; flex-direction: column; gap: 10px; }

.track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.track-row:hover { border-color: var(--line-hi); background: var(--panel-2); }

/* The playing row is marked by a left bar AND a filled cyan number, never by
   colour alone. */
.track-row.is-current {
  border-color: var(--cyan);
  box-shadow: inset 4px 0 0 0 var(--cyan);
}

.track-num {
  flex: 0 0 auto;
  width: 26px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.track-row.is-current .track-num { color: var(--cyan); }

.track-thumb {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  object-fit: cover;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.track-thumb.empty::after {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-hi);
}

.track-body { flex: 1 1 auto; min-width: 0; }
.track-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  /* The title is a <button>, which is inline-block and therefore sized to its
     text. Without an explicit full width there is nothing for the ellipsis to
     clip against, so a long title just ran out past the play button at 320px
     instead of truncating. */
  display: block;
  width: 100%;
}
.track-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.track-sub .dot { opacity: 0.6; padding: 0 6px; }

.track-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  font-family: inherit;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: var(--panel-2);
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  padding: 0;
}
.icon-btn:hover { border-color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; pointer-events: none; }
.icon-btn.primary { background: var(--cyan); border-color: var(--cyan); color: #05161c; }
.icon-btn:disabled { opacity: 0.4; cursor: default; }
.icon-btn:disabled:hover { border-color: var(--line-hi); }

.link-btn {
  font-family: inherit;
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 2px;
  text-align: left;
}
.link-btn:hover { text-decoration: underline; }

.count-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ------------------------------------------------------------ empty states */

.empty-state {
  border: 1px dashed var(--line-hi);
  border-radius: 12px;
  padding: 30px 22px;
  text-align: center;
  color: var(--text);
  background: var(--panel);
}
.empty-state strong { display: block; font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.empty-state p { font-size: 15px; color: var(--text-dim); max-width: 42ch; margin: 0 auto; }

/* ---------------------------------------------------------- track detail */

.np-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 34px 0 26px;
}
.np-art {
  width: 190px; height: 190px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel);
  flex: 0 0 auto;
}
.np-art-empty { display: block; }
.np-meta { flex: 1 1 260px; min-width: 0; }
.np-meta h1 {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.np-about { margin-top: 14px; font-size: 14px; color: var(--text); opacity: 0.85; }

/* All songs: the most important button after Play (Tyson 11/17/26), so it is a
   big, bright button at the top of every song, and again at the bottom. */
.backlink {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 10px 20px;
  font-size: 17px;
  font-weight: 700;
  color: #05161c;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--cyan), 0 4px 18px rgba(0, 204, 255, 0.28);
}
.backlink:hover { text-decoration: none; filter: brightness(1.1); }
.backlink::before { content: '\2190\00a0'; }

.song-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 26px 0 8px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.song-nav { flex-wrap: nowrap; max-width: 560px; margin-left: auto; margin-right: auto; }
.song-nav .btn { text-decoration: none; flex: 1 1 0; min-width: 0; text-align: center; padding: 12px 8px; }
.song-nav-all { font-size: 17px; font-weight: 700; border-radius: 999px; }
.song-nav-side { font-size: 15px; }

.lyrics {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  padding: 18px 20px;
}

/* --------------------------------------------------------------- visuals */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.media-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.media-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.media-card figcaption {
  font-size: 14px;
  color: var(--text);
  padding: 10px 12px;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-list { display: flex; flex-direction: column; gap: 18px; }
.video-title { font-size: 15px; font-weight: 500; color: var(--text); margin-top: 8px; }

/* -------------------------------------------------------------- comments */

.comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }

.comment {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment-name { font-size: 15px; font-weight: 600; color: var(--white); }
.comment-time { font-size: 13px; font-weight: 400; color: var(--text-dim); }
.comment-body { font-size: 16px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment.mine { border-color: var(--line-hi); border-left: 3px solid var(--cyan); }

/* ----------------------------------------------------------------- forms */

.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.form-card h3 { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.form-card .hint { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 16px; /* 16px minimum stops iOS zooming the page on focus */
  font-weight: 400;
  width: 100%;
  color: var(--text);
  background: var(--black);
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  padding: 11px 13px;
  min-height: 46px;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.25);
}
.field.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #05161c;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 9px;
  padding: 12px 22px;
  min-height: 48px;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-hi); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--white); }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Messages carry a word and an icon glyph, never colour on its own. */
.msg {
  font-size: 15px;
  font-weight: 500;
  border-radius: 9px;
  padding: 11px 14px;
  margin: 12px 0;
  border: 1px solid;
}
.msg.err  { color: #ffdcdc; background: rgba(255, 92, 92, 0.12);  border-color: var(--danger); }
.msg.ok   { color: #d8f6ff; background: rgba(0, 204, 255, 0.12);  border-color: var(--cyan); }
.msg.warn { color: #ffe9cc; background: rgba(255, 149, 0, 0.12);  border-color: var(--amber); }
.msg::before { font-weight: 700; margin-right: 8px; }
.msg.err::before  { content: 'Problem:'; }
.msg.ok::before   { content: 'Done:'; }
.msg.warn::before { content: 'Heads up:'; }

.who-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 15px; color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 16px;
}
.who-bar strong { color: var(--white); font-weight: 600; }

/* ------------------------------------------------------------ about text */

.about-body { font-size: 17px; line-height: 1.75; color: var(--text); max-width: 62ch; }
.about-body p { margin-bottom: 16px; }
.about-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- player bar */

/* At the very top of the page and stays there while scrolling (Tyson 11/17/26). */
.player-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(16, 16, 16, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-hi);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
}
.pb-open { cursor: pointer; border-radius: 8px; }
.pb-open:hover .pb-title { text-decoration: underline; }
.pb-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.player-bar[hidden] { display: none !important; }

.pb-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }

.pb-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pb-art {
  width: 46px; height: 46px; border-radius: 7px; object-fit: cover;
  border: 1px solid var(--line); background: var(--panel-2); flex: 0 0 auto;
}
.pb-titles { flex: 1 1 auto; min-width: 0; }
.pb-title {
  font-size: 15px; font-weight: 600; color: var(--white);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pb-sub {
  font-size: 13px; font-weight: 400; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Transport and the shuffle/repeat/volume group share one row. Four stacked
   rows covered a third of a 320px screen. */
.pb-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.pb-controls { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pb-controls .icon-btn { width: 40px; height: 40px; }
.pb-controls .icon-btn.play { width: 50px; height: 50px; }
.pb-controls .icon-btn.play svg { width: 22px; height: 22px; }

.pb-seek { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pb-time {
  font-size: 13px; font-weight: 500; color: var(--text);
  font-variant-numeric: tabular-nums; flex: 0 0 auto; min-width: 42px;
}
.pb-time.right { text-align: right; }

.scrub {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 26px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.scrub-track {
  position: relative;
  width: 100%; height: 6px;
  border-radius: 3px;
  background: #333;
  overflow: hidden;
}
.scrub-buffer { position: absolute; inset: 0 auto 0 0; background: #4a4a4a; width: 0; }
.scrub-fill   { position: absolute; inset: 0 auto 0 0; background: var(--cyan); width: 0; }
.scrub-knob {
  position: absolute; top: 50%; left: 0;
  width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%;
  background: var(--white);
  transform: translateY(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}

/* Floats above the bar rather than living inside it, so a transient message
   never changes the bar's height (and therefore the page's bottom padding). */
.player-toast {
  position: fixed;
  left: 12px; right: 12px;
  top: calc(var(--bar-h) + 10px);
  z-index: 61;
  max-width: 620px;
  margin: 0 auto;
}
.player-toast[hidden] { display: none !important; }
.player-toast .msg { margin: 0; background: #2a1414; position: relative; padding-right: 44px; }
.toast-x {
  position: absolute; top: 6px; right: 8px;
  width: 30px; height: 30px;
  font-size: 20px; font-weight: 700; line-height: 1;
  background: none; border: none; color: #ffdcdc; cursor: pointer;
}

.pb-extras { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pb-extras .icon-btn { width: 38px; height: 38px; }
.pb-extras .icon-btn svg { width: 16px; height: 16px; }

/* Toggles say ON in text as well as changing colour, because hue alone is not
   readable for Tyson. */
.icon-btn.on { border-color: var(--amber); color: var(--amber); }
.icon-btn.on::after {
  content: 'on';
  position: absolute;
  bottom: -2px; right: -2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: var(--black);
  border-radius: 4px;
  padding: 0 3px;
  line-height: 1.2;
}
.icon-btn { position: relative; }

.vol-wrap { display: flex; align-items: center; gap: 8px; }
.vol {
  -webkit-appearance: none; appearance: none;
  width: 92px; height: 6px; border-radius: 3px; background: #333; cursor: pointer;
}
.vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: none; cursor: pointer;
}
.vol::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: none; cursor: pointer;
}

.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;
}

/* ------------------------------------------------------------------ foot */

/* Small and out of the way (Tyson 11/17/26: the copyright footer was huge). */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-dim);
  max-width: 860px;
  margin: 18px auto 0;
}

/* A song is open: header art, page title and menu step aside so the song sits
   right under the player. The All music link is still there to go back. */
body.song-open .hero-art,
body.song-open .site-head,
body.song-open .site-nav { display: none; }
body.song-open .backlink { margin-top: 14px; }
body.song-open .np-head { padding-top: 14px; }

/* Tapped artwork, shown full width just below where it was tapped. */
.art-big { margin: 0 0 22px; }
.art-big[hidden] { display: none !important; }
.art-big img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: zoom-out;
}
.np-art[src], .media-card img { cursor: zoom-in; }

/* Owner only: the one small Upload artwork button. */
.upload-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.btn.small { padding: 6px 12px; font-size: 13px; min-height: 0; }
.upload-note { font-size: 13px; color: var(--text-dim); }

/* ----------------------------------------------------------- responsive */

/* Phone. Everything above is already mobile-first, so this only handles the
   player bar, which is the one element that genuinely runs out of room. */
@media (max-width: 620px) {
  .pb-extras .vol-wrap { display: none; }     /* phones have hardware volume */
  .pb-controls { gap: 4px; }
  .pb-controls .icon-btn { width: 38px; height: 38px; }
  .pb-controls .icon-btn.play { width: 46px; height: 46px; }
  .track-thumb { width: 48px; height: 48px; }
  .np-art { width: 140px; height: 140px; }
  .wrap { padding: 0 14px; }
}

/* Very narrow, 320px class. Drop the skip buttons rather than let the row
   wrap into two lines and cover the page. */
@media (max-width: 400px) {
  .pb-extras .icon-btn.shuffle { display: none; }
  .pb-controls .icon-btn.skip { display: none; }
  .track-actions .count-pill { display: none; }
}

/* The one-line bar needs real room. Measured at 1280px with the old 700px
   breakpoint and a 940px cap: now-playing 210 + transport 474 + gaps 32 left
   the seek bar 120px wide, which is not a scrub bar, it is a dash. So the row
   layout starts later, the bar is allowed to be wider, and the volume slider
   (the widest optional thing in it) waits until there is space for it.
   Re-measured after the first attempt: a 900px breakpoint still only bought
   162px of scrub, while the stacked layout at 768px gives 636px. Below 1024px
   the stacked bar is simply the better one, so that is where the switch is. */
@media (min-width: 1024px) {
  .pb-inner { flex-direction: row; align-items: center; gap: 16px; }
  /* .pb-mid exists to pair transport with the toggles on one phone row. On a
     wide bar that pairing is wrong: it put the volume slider immediately left
     of the seek bar, so the eye reads two identical sliders side by side and
     cannot tell which one is the song. display:contents dissolves the wrapper
     so the four groups can be ordered properly:
     now playing | transport | seek | shuffle, repeat, volume. */
  .pb-mid { display: contents; }
  .pb-top      { flex: 0 0 200px; min-width: 0; order: 1; }
  .pb-controls { flex: 0 0 auto;  order: 2; }
  .pb-seek     { flex: 1 1 0;     order: 3; }
  .pb-extras   { flex: 0 0 auto;  order: 4; }
}

/* Between phone and a roomy desktop, keep the mute button and drop the slider. */
@media (max-width: 1099px) {
  .vol { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Play All, Loop and Sound, in words, above the song list. */
.quick-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.quick-row .btn { font-size: 16px; font-weight: 700; padding: 13px 18px; border-radius: 999px; }
.quick-row .quick-play { flex: 1 1 100%; font-size: 19px; padding: 16px 20px; }
.quick-row .quick-opt { flex: 1 1 auto; background: transparent; color: var(--text); border: 2px solid var(--line-hi); }
.quick-row .quick-opt.on { border-color: var(--amber); color: var(--amber); }
.quick-note { margin: 0 0 18px; font-size: 14px; color: var(--text); opacity: .85; }

/* Lyrics fold: shut until tapped. */
.lyrics-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.lyrics-fold > summary::-webkit-details-marker { display: none; }
.lyrics-fold > summary::after { content: "Show"; font-size: 14px; font-weight: 700; padding: 6px 14px; border: 2px solid var(--line-hi); border-radius: 999px; margin-left: auto; }
.lyrics-fold[open] > summary::after { content: "Hide"; }
.lyrics-fold .lyrics { margin-top: 14px; white-space: pre-wrap; }

/* Headers cut from the custom covers (Tyson 11/15/26: the music section looked boring). */
.hero-art { max-width: 1400px; margin: 0 auto; line-height: 0; }
.hero-art img { width: 100%; height: clamp(170px, 34vw, 420px); object-fit: cover; display: block; }
/* Cover wall header (Tyson picked B, 11/17/26): two rows of song covers sliding
   opposite ways. Tap one to open and play it. Pauses under a finger or mouse. */
.cover-wall {
  overflow: hidden;
  padding: 18px 0 14px;
  background: radial-gradient(120% 90% at 20% 0%, #10394a 0%, #0a0a0a 65%);
}
.cover-wall[hidden] { display: none !important; }
.wall-row { display: flex; gap: 10px; width: max-content; padding: 0 10px; animation: wallSlide 60s linear infinite; }
.wall-row.rev { animation-direction: reverse; animation-duration: 75s; margin-top: 10px; }
.wall-cover {
  display: block; flex: 0 0 auto;
  width: clamp(92px, 12vw, 140px); height: clamp(92px, 12vw, 140px);
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.wall-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-cover:focus-visible { outline: 3px solid var(--cyan, #00ccff); outline-offset: 2px; }
.cover-wall:hover .wall-row, .cover-wall:active .wall-row { animation-play-state: paused; }
@keyframes wallSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-row { animation: none; } }
body.song-open .cover-wall { display: none; }
.sliver { margin: 0 -18px 18px; line-height: 0; }
.sliver img { width: 100%; height: clamp(84px, 16vw, 150px); object-fit: cover; display: block; }


/* ----------------------------------------------------------- owner-only tools
   Drawn only after the page confirms the browser is past the /tools/ password.
   Amber marks the private area, red is reserved for the destructive button and
   always carries the word Delete. */
.private-tools {
  border: 1px dashed rgba(255, 149, 0, .55);
  border-radius: 14px;
  padding: 18px;
  margin-top: 10px;
  background: rgba(255, 149, 0, .05);
}
.private-tools .section-note { max-width: 62ch; }
.private-sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
  margin: 20px 0 8px;
}
.private-note-box {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}
.private-note-box:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.btn.danger {
  background: transparent;
  color: var(--danger);
  border: 2px solid var(--danger);
}
.btn.danger:hover { background: rgba(255, 92, 92, .12); filter: none; }
.private-status.good { color: var(--amber); }
.private-status.bad { color: var(--danger); }
.private-notes { margin-top: 6px; }
.private-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}
.private-note p { font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.private-notefoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.private-when { font-size: 13px; color: var(--text-dim); }
.private-rm {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 2px;
}
.private-rm:hover { color: var(--danger); }
