/* ---------- webfont: Fraunces (self-hosted variable, latin subset) ---------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-400i.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The John Benjamin Band — johnorama.com
   Palette pulled from jbb_logo.png: robot red, cloud blue, letter cream. */

:root {
  --red: #e41e0a;
  --red-dark: #b81505;
  --blue: #7a9bea;
  --blue-dark: #4a6fd4;
  --cream: #f7cf8e;
  --paper: #fdf6e6;
  --ink: #2a2118;
  --ink-soft: #6b5d4d;
  --card: #fffdf6;
  --line: #e5d8bd;
  --line-soft: #ecdfc4;
  --row-paused: #f3ead6;
  --row-hover: #f6eed9;
  --faint: #b0a28c;
  --cream-hover: #f2d9a0;
  --cream-strong: #f0d292;
  --scrim: rgba(42, 33, 24, 0.55);
  --bar-bg: #2a2118;
  --bar-fg: #fdf6e6;
  --bar-sub: #bfae94;
  --bar-track: #40342a;
  color-scheme: light;
}

/* Night palette. Two copies of the same values: the media query covers
   "following the system", the attribute covers the explicit toggle.
   Edit BOTH when tuning. The docked player bar keeps its own colors. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #f0361f;
    --red-dark: #e0523a;
    --blue: #5b6fae;
    --blue-dark: #93a9ef;
    --cream: #2e3a5c;
    --cream-hover: #364469;
    --cream-strong: #405078;
    --paper: #201a13;
    --ink: #f0e6d2;
    --ink-soft: #a89a82;
    --card: #2b241b;
    --line: #3d342a;
    --line-soft: #372f25;
    --row-paused: #303a55;
    --row-hover: #2b3143;
    --faint: #776a55;
    --scrim: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #f0361f;
  --red-dark: #e0523a;
  --blue: #5b6fae;
  --blue-dark: #93a9ef;
  --cream: #2e3a5c;
  --cream-hover: #364469;
  --cream-strong: #405078;
  --paper: #201a13;
  --ink: #f0e6d2;
  --ink-soft: #a89a82;
  --card: #2b241b;
  --line: #3d342a;
  --line-soft: #372f25;
  --row-paused: #303a55;
  --row-hover: #2b3143;
  --faint: #776a55;
  --scrim: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* the hidden attribute always wins, even over display rules on the class */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 'Fraunces', Georgia, serif;
}

a { color: var(--red-dark); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--red); }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* audio visualization layers: behind everything, above the page background.
   Two stacked canvases — the active one is drawn on; when a song ends its
   canvas gets .fading and the finished drawing drifts away. */
.viz-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 2.5s ease-out;
}

.viz-canvas.fading { opacity: 0; }

.site-head, main, .site-foot { position: relative; z-index: 1; }

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

.site-head { padding: 28px 0 0; }

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--red); background: #fff; }

.brand b {
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-size: 19px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.1;
}

.site-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; row-gap: 10px; margin-left: auto; }

.site-nav a {
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 7px 18px 6px;
  box-shadow: 3px 3px 0 var(--blue);
}

.site-nav a:hover { background: var(--cream); color: var(--ink); }

.site-nav a[aria-current="page"] {
  background: var(--red);
  color: #fff;
  border-color: var(--red-dark);
  box-shadow: 3px 3px 0 var(--blue-dark);
}

/* ---------- hero (home) ---------- */

.hero { text-align: center; padding: 34px 0 8px; }

.hero img { max-width: min(420px, 88%); height: auto; }

.hero p.tag {
  font-style: italic;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* ---------- headings ---------- */

h1, h2 {
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

h1 { font-size: clamp(30px, 6vw, 44px); margin: 18px 0 6px; }

h2 {
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--red-dark);
  margin: 44px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

h2::after { content: ''; flex: 1; height: 3px; background: var(--blue); border-radius: 2px; }

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

.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--blue);
  padding: 22px 24px;
  margin: 24px 0;
}

/* ---------- playlist (homepage) ---------- */

.playlist { padding: 10px 12px; }

.pl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 2px dashed var(--line);
  cursor: pointer;
  border-radius: 8px;
}

.pl-row:last-child { border-bottom: 0; }
.pl-row:hover { background: var(--paper); }
.pl-row.now { background: var(--cream); }
.pl-row.paused { background: var(--row-paused); }
.pl-row.now .pt-title { font-weight: bold; }

.pl-row .num {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  width: 1.6em;
  flex-shrink: 0;
  text-align: right;
}

.pl-row .pt-title { flex: 1; min-width: 0; }

.pl-row .dur {
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.lyr-link {
  font-size: 13px;
  font-style: italic;
  color: var(--blue-dark);
  margin-right: 4px;
  flex-shrink: 0;
}

/* ---------- song lists ---------- */

.plain-list { list-style: none; padding: 0; margin: 0; }

.song-item { display: block; padding: 14px 2px; border-bottom: 2px dashed var(--line); }
.song-item:last-child { border-bottom: 0; }

.song-item .s-title {
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}

.song-item .s-meta { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.song-item .s-meta a { color: var(--blue-dark); }

/* ---------- song pages ---------- */

.post-meta { color: var(--ink-soft); font-size: 15px; margin: 0 0 20px; }
.post-meta a { color: var(--blue-dark); }

.song-art {
  float: right;
  width: min(240px, 40%);
  height: auto;
  margin: 0 0 14px 20px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--blue);
}

.song-credits {
  display: inline-block;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 0 0 22px;
  font-size: 14px;
}

.song-credits b {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red-dark);
}

.song-credits ul { margin: 4px 0 0; padding: 0 0 0 1.2em; }
.song-credits li { margin: 2px 0; }

.song-blurb {
  border-left: 5px solid var(--blue);
  padding: 2px 0 2px 16px;
  margin: 0 0 26px;
  color: var(--ink-soft);
}

.song-blurb p { margin: 0 0 0.6em; }
.song-blurb p:last-child { margin-bottom: 0; }

.v-dur { color: var(--faint); }

figure.song-audio { margin: 22px 0; }
figure.song-audio audio { width: 100%; display: block; }
figure.song-audio figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; font-style: italic; }

.lyrics p { margin: 0 0 1.5em; }

/* ---------- category chips ---------- */

.cats { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }

.cats a {
  display: inline-block;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px 5px;
  box-shadow: 3px 3px 0 var(--blue);
}

.cats a:hover { background: var(--red); color: #fff; }

.cats .count { color: var(--ink-soft); font-family: 'Fraunces', Georgia, serif; font-weight: normal; }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 70px;
  padding: 0 20px 34px;
  font-size: 15px;
}

.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--blue);
  padding: 16px 24px;
}

.site-foot .bot { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--red); background: #fff; }

.site-foot p { margin: 0; }

/* ---------- misc ---------- */

.center { text-align: center; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.bignum {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: clamp(70px, 18vw, 120px);
  color: var(--red);
  text-shadow: 6px 6px 0 var(--blue);
  margin: 30px 0 0;
  line-height: 1;
}

@media (max-width: 540px) {
  .site-head .wrap { justify-content: center; }
  .pl-track .dur { display: none; }
}

/* ---------- songs table ---------- */

.arch-intro { max-width: 560px; }
.arch-stats { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }

.bigplay {
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--red-dark);
  border-radius: 999px;
  padding: 16px 34px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--blue);
}

.bigplay:hover { background: var(--red-dark); }
.bigplay:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--blue); }
.bigplay.small { font-size: 13px; padding: 9px 18px; box-shadow: 3px 3px 0 var(--blue); flex-shrink: 0; }

.row-play {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--card);
  cursor: pointer;
  font-size: 10px;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.row-play:hover { background: var(--red); color: #fff; border-color: var(--red-dark); }
.now .row-play, .paused .row-play { background: var(--red); color: #fff; border-color: var(--red-dark); }

.st-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 6px;
}

.st-group {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-group select {
  font: 15px 'Fraunces', Georgia, serif;
  padding: 7px 12px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
  cursor: pointer;
}

.st-dir {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

.st-dir:hover { background: var(--cream); }

#st-q {
  flex: 1;
  min-width: 140px;
  font: 15px 'Fraunces', Georgia, serif;
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}

#st-q:focus { outline: 3px solid var(--blue); outline-offset: 1px; }

.grp {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--blue);
  margin: 22px 0;
  overflow: hidden;
}

.grp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 14px;   /* left = .st-row's, so play buttons stack */
  background: var(--cream);
}

.grp-head:not(:last-child) { border-bottom: 3px solid var(--ink); }
.grp-head[data-p] { cursor: pointer; }
.grp-head[data-p]:hover { background: var(--cream-hover); }
.grp-head.now, .grp-head.paused { background: var(--cream-strong); }

.grp-head h2 {
  font-size: 16px;
  margin: 0;
  flex: 1;
  display: block;
}

.grp-head h2::after { display: none; }

.grp-link { font-family: 'Fraunces', Georgia, serif; font-size: 13px; font-style: italic; text-transform: none; letter-spacing: 0; margin-left: 8px; }

/* header play matches row play size (28px), so the buttons stack on one axis */

.grp-count { font-size: 13px; color: var(--ink-soft); flex-shrink: 0; font-family: 'Fraunces', Georgia, serif; }

.st-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px dashed var(--line-soft);
  cursor: pointer;
}

.st-row:last-child { border-bottom: 0; }
.st-row:hover { background: var(--paper); }
.st-row.now { background: var(--cream); }
.st-row.paused { background: var(--row-paused); }

.st-title { flex: 2.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-artist { color: var(--blue-dark); font-size: 13px; font-style: italic; }
.st-song { flex: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.st-song a { color: var(--blue-dark); }
.st-col { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-soft); }
.st-year { width: 3.2em; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.st-dur { width: 3.2em; text-align: right; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; flex-shrink: 0; }

.st-row.alt { padding-left: 34px; }
.st-row.alt .row-play { width: 24px; height: 24px; }
.st-alt-mark { color: var(--blue-dark); }
.st-alt-label { font-style: italic; color: var(--ink-soft); }
.st-row.alt.now .st-alt-label, .st-row.alt.paused .st-alt-label { color: var(--ink); }

.grp-caret {
  border: 0;
  background: none;
  color: var(--red-dark);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px 6px;
  transition: transform 0.12s;
}

.grp.collapsed .grp-caret { transform: rotate(-90deg); }
.grp.collapsed .st-row { display: none; }
.grp.collapsed .grp-head { border-bottom: none; }

.st-menu {
  position: fixed;
  display: none;
  z-index: 60;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--blue);
  padding: 4px;
  min-width: 150px;
}

.st-menu button {
  display: block;
  width: 100%;
  text-align: left;
  font: 14px 'Fraunces', Georgia, serif;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
}

.st-menu button:hover { background: var(--cream); }

.st-extras { margin: 26px 0; font-size: 14px; color: var(--ink-soft); }
.st-extras summary { cursor: pointer; font-style: italic; }
.st-extras p { line-height: 2; }

@media (max-width: 640px) {
  .st-song, .st-col, .st-year { display: none; }
}

/* ---------- song page version rows ---------- */

.v-rows {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--blue);
  padding: 8px 10px;
  margin: 22px 0;
}

.v-item { border-bottom: 2px dashed var(--line); }
.v-item:last-child { border-bottom: 0; }

.v-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  cursor: pointer;
  border-radius: 8px;
}

.v-row:hover { background: var(--paper); }
.v-row.now { background: var(--cream); }
.v-row.paused { background: var(--row-paused); }

.v-label { flex: 1; min-width: 0; }
.v-dur { color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.v-credits {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  padding: 0 8px 9px 48px;
}

.card.lyrics { text-align: center; }

/* ---------- jukebox bar ---------- */

.jb-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bar-bg);
  color: var(--bar-fg);
  border-top: 3px solid var(--red);
  display: none;
  z-index: 50;
}

.jb-bar.active { display: block; }
body.has-jb-bar { padding-bottom: 76px; }
@media (max-width: 640px) {
  body.has-jb-bar { padding-bottom: 118px; }   /* the bar wraps to two rows */
}

.jb-viz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.jb-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
}

.jb-btn {
  background: none;
  border: 2px solid var(--bar-fg);
  color: var(--bar-fg);
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.jb-btn:hover { background: var(--red); border-color: var(--red); }
.jb-play { width: 46px; height: 46px; font-size: 17px; }

.jb-meta { min-width: 0; flex-shrink: 1; width: 230px; }

.jb-title {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jb-sub {
  font-size: 12px;
  color: var(--bar-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jb-seek {
  flex: 1;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--bar-track);
  cursor: pointer;
  overflow: hidden;
  min-width: 50px;
}

.jb-fill { height: 100%; width: 0%; background: var(--red); }

.jb-time { font-size: 12px; color: var(--bar-sub); font-variant-numeric: tabular-nums; flex-shrink: 0; }

@media (max-width: 640px) {
  /* two rows: controls + title + time above, full-width scrubber below */
  .jb-inner { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px 12px; }
  .jb-btn { width: 34px; height: 34px; }
  .jb-play { width: 40px; height: 40px; }
  .jb-share, .jb-vol { width: 30px; }
  .jb-meta { width: auto; flex: 1; }
  .jb-time { font-size: 11px; }
  .jb-seek { order: 10; flex-basis: 100%; }
}

/* ---------- library (private) ---------- */

.lib-body { font-size: 14px; background: var(--paper); }

.lib-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bar-bg);
  color: var(--bar-fg);
  z-index: 40;
}

.lib-head b { font-family: 'Arial Black', Arial, sans-serif; letter-spacing: 1px; white-space: nowrap; }
.lib-brand img { display: block; border-radius: 50%; border: 2px solid var(--red); background: #fff; }

#lib-q {
  flex: 1;
  font: 15px 'Fraunces', Georgia, serif;
  padding: 7px 14px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  min-width: 100px;
}

#lib-q:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
#lib-count { font-variant-numeric: tabular-nums; color: var(--bar-sub); white-space: nowrap; }

.lib-main { padding: 0 8px; }

.lib-table { width: 100%; border-collapse: collapse; }

.lib-table th {
  text-align: left;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  padding: 10px 8px 6px;
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 50px;
  background: var(--paper);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.lib-table th.asc::after { content: ' ▲'; color: var(--red); }
.lib-table th.desc::after { content: ' ▼'; color: var(--red); }
.lib-table th.c-play, .lib-table th.c-act { cursor: default; }

.lib-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.lib-table tbody tr { cursor: pointer; }
.lib-table tbody tr:hover { background: var(--row-hover); }
.lib-table tbody tr.now { background: var(--cream); }
.lib-table tbody tr.now .c-play { color: var(--red); }

.lib-table .c-play { width: 24px; color: var(--faint); font-size: 10px; }
.lib-table .c-title { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.lib-table .c-col { color: var(--blue-dark); }
.lib-table .c-artist { color: var(--ink-soft); font-style: italic; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.lib-table .c-dur, .lib-table .c-size { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.lib-table .c-act a { text-decoration: none; color: var(--ink-soft); margin-right: 2px; }
.lib-table .c-act a:hover { color: var(--red); }

.lib-help { color: var(--ink-soft); font-size: 13px; padding: 14px 8px 20px; }
.lib-help b {
  font-family: ui-monospace, Menlo, monospace;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  font-weight: normal;
}

/* ---------- contact page ---------- */

.contact-card { text-align: center; padding: 30px 22px 26px; }
.contact-card > p:first-child { max-width: 34em; margin: 0 auto 6px; }
.contact-email {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: clamp(19px, 4.2vw, 32px);
  letter-spacing: 0.5px;
  margin: 18px 0 14px;
  overflow-wrap: anywhere;
}
.contact-email a { color: var(--red-dark); text-decoration: none; border-bottom: 4px solid var(--red); }
.contact-email a:hover { background: var(--red); color: #fff; }
.contact-small { color: var(--ink-soft); font-size: 14px; margin-bottom: 0; }

/* ---------- share button + modal ---------- */

.title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.title-row h1 { margin-bottom: 0; }
.share-btn {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 16px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
}
.share-btn .share-ic { color: var(--red); }
.share-btn:hover { background: var(--red); color: #fff; }
.share-btn:hover .share-ic { color: #fff; }

.share-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: var(--scrim);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.share-overlay[hidden] { display: none; }
.share-modal {
  background: var(--card); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 8px 8px 0 var(--blue); width: min(430px, 94vw);
  padding: 18px 20px 20px; outline: none;
}
.share-head { display: flex; align-items: center; justify-content: space-between; }
.share-head b {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px;
}
.share-x {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--paper); cursor: pointer; font-size: 13px; line-height: 1;
  display: grid; place-items: center; color: var(--ink);
}
.share-x:hover { background: var(--red); color: #fff; }
.share-song { margin: 6px 0 14px; font-style: italic; color: var(--ink-soft); }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-grid a, .share-grid button {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px; text-align: center;
  color: var(--ink); background: var(--paper); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 10px; padding: 12px 8px; cursor: pointer;
}
.share-grid a:hover, .share-grid button:hover { background: var(--cream); }
.share-copy { grid-column: 1 / -1; background: var(--red) !important; color: #fff !important; border-color: var(--red-dark) !important; }
.share-copy:hover { background: var(--red-dark) !important; }

.row-share {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid transparent; background: none; cursor: pointer;
  font-size: 13px; line-height: 1; display: grid; place-items: center;
  color: var(--ink-soft); padding: 0;
}
.row-share:hover { border-color: var(--ink); background: var(--card); color: var(--red-dark); }
.grp-head .row-share { color: var(--ink); }
.grp-head .row-share:hover { background: var(--paper); }

.share-ic { width: 15px; height: 15px; display: block; flex-shrink: 0; }
.row-share .share-ic { width: 14px; height: 14px; margin: 0 auto; }
/* no circle on the bar's share button — it's an action, not a transport control */
.jb-share { border: none; background: none; width: 34px; }
.jb-share:hover { background: none; border-color: transparent; color: var(--red); }
.jb-share .share-ic { width: 19px; height: 19px; margin: 0 auto; }
.share-more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.share-more .share-ic { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .title-row .share-btn { margin: 4px auto 0; }
}

/* ---------- back link on song pages ---------- */

.back-line { margin: 26px 0 0; }
.back-link {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 16px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.back-link::before { content: '\2190\FE0E'; color: var(--red); font-family: Georgia, serif; font-weight: bold; }
.back-link:hover { background: var(--cream); color: var(--ink); }

/* ---------- vecteezy player glyphs (currentColor masks) ---------- */

.ic {
  display: block;
  width: 1.2em; height: 1.2em;
  margin: auto;
  background: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.ic-play  { -webkit-mask-image: url('/images/icons/play.png');  mask-image: url('/images/icons/play.png');
            -webkit-mask-position: 60% center; mask-position: 60% center; }
.ic-pause { -webkit-mask-image: url('/images/icons/pause.png'); mask-image: url('/images/icons/pause.png'); }
.ic-prev  { -webkit-mask-image: url('/images/icons/prev.png');  mask-image: url('/images/icons/prev.png'); }
.ic-next  { -webkit-mask-image: url('/images/icons/next.png');  mask-image: url('/images/icons/next.png'); }
.ic-inline { display: inline-block; vertical-align: -0.2em; margin: 0 9px 0 0; }
.c-play .ic { margin: 0 auto; }


/* ---------- volume: one button, pop-up slider ---------- */

.ic-volume { -webkit-mask-image: url('/images/icons/volume.png'); mask-image: url('/images/icons/volume.png'); }
.ic-mute   { -webkit-mask-image: url('/images/icons/mute.png');   mask-image: url('/images/icons/mute.png'); }
.jb-vol { border: none; background: none; width: 34px; }
.jb-vol:hover { background: none; border-color: transparent; color: var(--red); }
.jb-vol .ic { width: 20px; height: 20px; }
.jb-volpop {
  position: fixed;
  z-index: 130;
  transform: translateX(-50%);
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--blue);
  padding: 12px 18px;
}
.jb-volslider { display: block; width: 140px; margin: 0; accent-color: var(--red); }
@media (max-width: 480px) { .jb-vol { display: none; } }

/* ---------- theme toggle ---------- */

.theme-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
}
.theme-btn:hover { background: var(--cream); }

/* narrow screens: brand left + theme toggle right in the top row,
   nav pills on their own centered row below */
@media (max-width: 640px) {
  .site-head .wrap { justify-content: flex-start; }
  .site-nav { order: 5; flex-basis: 100%; margin-left: 0; }
  .theme-btn { margin-left: auto; }
}
