/* ===========================================================================
   The Brown Family Music — standalone vintage theme.
   Self-contained: does NOT use the main site's style.css.
   Mobile-first; large tap targets for older relatives.
   =========================================================================== */

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

:root {
  --paper:      #efe4cc;   /* aged cream */
  --paper-2:    #e7d9ba;   /* card */
  --paper-3:    #dfd0ac;   /* hover / inset */
  --ink:        #2c2118;   /* dark sepia-brown */
  --ink-soft:   #5d4d39;
  --ink-faint:  #8a785c;
  --gold:       #9a7327;   /* aged gold */
  --gold-2:     #b58f3c;
  --maroon:     #6e2f24;   /* deep accent */
  --rule:       #c7ad7e;
  --rule-soft:  #d7c39a;

  --serif-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --serif:         'Crimson Pro', Georgia, 'Times New Roman', serif;

  --maxw: 880px;
  --radius: 4px;
  --shadow: 0 2px 10px rgba(44, 33, 24, 0.12);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* faint aged-paper texture, all CSS — no image request */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.30), transparent 38%),
    radial-gradient(circle at 84% 78%, rgba(110, 80, 40, 0.10), transparent 45%),
    repeating-linear-gradient(0deg, rgba(120,90,50,0.018) 0 2px, transparent 2px 4px);
  padding-bottom: 120px; /* room for the sticky player */
}

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

a { color: var(--maroon); }

/* ---- accessibility ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* ---- backlink ---- */
.backlink {
  position: absolute; top: .9rem; left: 1rem; z-index: 50;
  font-family: var(--serif);
  font-size: .95rem; letter-spacing: .02em;
  color: var(--paper); text-decoration: none;
  background: rgba(44, 33, 24, 0.55);
  padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid rgba(239, 228, 204, 0.35);
  backdrop-filter: blur(2px);
}
.backlink:hover { background: rgba(44, 33, 24, 0.8); }

/* ---- decorative rule ---- */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: .9rem; margin: 1.4rem 0; color: var(--gold);
}
.rule::before, .rule::after {
  content: ""; height: 1px; width: min(120px, 28%);
  background: linear-gradient(to var(--dir, right), transparent, var(--rule));
}
.rule::after { background: linear-gradient(to left, transparent, var(--rule)); }
.rule span { font-size: 1.3rem; line-height: 1; }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero {
  position: relative;
  color: var(--paper);
  text-align: center;
  padding: 4.5rem 1.25rem 3rem;
  background:
    linear-gradient(180deg, rgba(28,20,14,0.72) 0%, rgba(28,20,14,0.58) 45%, rgba(28,20,14,0.82) 100%),
    url('img/hero.webp') center 38% / cover no-repeat;
  background-color: #2c2118; /* fallback if photo missing */
  border-bottom: 3px double var(--gold-2);
}
.hero-inner { max-width: 760px; margin: 0 auto; }

.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  color: var(--gold-2);
  margin: 0 0 .6rem;
}
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1.02;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.hero-dates {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: .08em;
  color: var(--paper);
  opacity: .9;
  margin: .4rem 0 0;
}
.hero .rule { --dir: right; }
.hero-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 38rem;
  color: #f3ead7;
}
.hero-stats {
  margin: 1.4rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: .03em;
  color: var(--gold-2);
  font-size: 1.05rem;
}

/* ===========================================================================
   BROWSE-BY-PERFORMER FILTER
   =========================================================================== */
.filter-wrap {
  max-width: var(--maxw);
  margin: 2.5rem auto 0.5rem;
  padding: 0 1rem;
  text-align: center;
}
.filter-intro {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.chip {
  font-family: var(--serif);
  font-size: 1rem;
  min-height: 40px;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { background: var(--paper-3); }
.chip.is-active {
  background: var(--maroon);
  color: var(--paper);
  border-color: var(--maroon);
}
.filter-status {
  margin: 1rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ===========================================================================
   SESSIONS / ALBUMS
   =========================================================================== */
.sessions {
  max-width: var(--maxw);
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}
.album[hidden] { display: none; }
#sessions[hidden], #performer-view[hidden] { display: none; }

/* flat per-performer list (shown when a performer chip is active) */
.performer-list {
  list-style: none;
  margin: 0;
  padding: .25rem 0;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.performer-list .track:first-child { border-top: none; }
.status { text-align: center; font-style: italic; color: var(--ink-soft); }

.album {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* faint photo watermark behind the song list — kept subtle so text stays readable */
.album.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.album > summary,
.album > .tracks,
.album > .album-note { position: relative; z-index: 1; }

.album-note {
  margin: 0;
  padding: 0 1.25rem 1rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  border-top: 1px solid var(--rule-soft);
  padding-top: .9rem;
}
.album > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}
.album > summary::-webkit-details-marker { display: none; }
.album > summary::before {
  content: "\25B8"; /* ▸ */
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform .2s ease;
  align-self: center;
}
.album[open] > summary::before { transform: rotate(90deg); }
.album > summary:hover { background: var(--paper-3); }

.album-title {
  font-family: var(--serif-display);
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 12rem;
}
.year-badge {
  font-family: var(--serif);
  font-size: .85rem;
  letter-spacing: .05em;
  color: var(--paper);
  background: var(--maroon);
  padding: .15rem .65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.track-count {
  font-style: italic;
  color: var(--ink-faint);
  font-size: .95rem;
  white-space: nowrap;
}

/* track list */
.tracks { list-style: none; margin: 0; padding: 0 0 .5rem; }
.track {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem 1.25rem;
  border-top: 1px solid var(--rule-soft);
}
.track:hover { background: var(--paper-3); }

.play-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--paper);
  color: var(--maroon);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.play-btn:hover { background: var(--gold-2); color: var(--paper); }
.play-btn::before { content: "\25B6"; margin-left: 2px; } /* ▶ */

.track-title {
  flex: 1 1 auto;
  font-size: 1.12rem;
  color: var(--ink);
}
.dl-btn {
  flex: 0 0 auto;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  gap: .35rem;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .35rem .7rem;
  font-size: .95rem;
  background: var(--paper);
}
.dl-btn:hover { background: var(--gold-2); color: var(--paper); border-color: var(--gold-2); }
.dl-btn::before { content: "\2913"; font-size: 1.1rem; } /* ⤓ */
.dl-label { }

/* currently playing */
.track.is-playing {
  background: var(--paper-3);
  box-shadow: inset 4px 0 0 var(--gold);
}
.track.is-playing .play-btn { background: var(--gold-2); color: var(--paper); }
.track.is-playing .play-btn::before { content: "\23F8"; margin-left: 0; } /* ⏸ */
.track.is-playing .track-title { font-weight: 600; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--ink-soft);
}
.site-foot p { margin: .35rem 0; }
.site-foot .muted { font-size: .92rem; color: var(--ink-faint); font-style: italic; }

/* ===========================================================================
   STICKY PLAYER
   =========================================================================== */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px double var(--gold-2);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
.player[hidden] { display: none; }
.player-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .7rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.player-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.player-eyebrow {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--gold-2);
}
.player-title {
  font-family: var(--serif-display);
  font-size: 1.25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-session { font-size: .85rem; font-style: italic; color: #cdbb9a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player audio { width: 100%; height: 40px; }

/* ===========================================================================
   RESPONSIVE — tablet/desktop
   =========================================================================== */
@media (min-width: 40em) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery figure:first-child { grid-column: 1 / 3; grid-row: span 2; }

  .player-inner {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  .player-meta { flex: 1 1 40%; }
  .player audio { flex: 1 1 60%; width: auto; }
}

/* ===========================================================================
   ADDITIONS (v2) — bold eyebrow, performer bg, download UI, modal
   =========================================================================== */

/* bold hero eyebrow */
.hero .eyebrow { font-weight: 700; letter-spacing: .18em; }

/* performer view background (watermark behind the flat list) */
#performer-view { position: relative; }
#performer-view.has-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.12; pointer-events: none; z-index: 0;
}
#performer-view.has-bg .performer-list { position: relative; z-index: 1; }

/* ---- download buttons ---- */
.dl-everyone-wrap { text-align: center; padding: .9rem 0 .5rem; }
.dl-performer-wrap { text-align: center; padding: .5rem 0 0; }
.btn-dl-primary {
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: .6rem 1.5rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-dl-primary:hover { background: var(--gold-2); color: var(--paper); border-color: var(--gold-2); }

/* ---- download format modal ---- */
.dl-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 20, 14, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.dl-overlay[hidden] { display: none; }
.dl-modal {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--border-radius-lg, 10px);
  padding: 2rem 1.75rem;
  max-width: 420px; width: 100%;
  box-shadow: 0 8px 40px rgba(28,20,14,0.4);
  text-align: center;
}
.dl-modal-title {
  font-family: var(--serif-display);
  font-size: 1.5rem; margin: 0 0 1.25rem; color: var(--ink);
}
.dl-modal-choice {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; margin-bottom: .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  font-family: var(--serif);
}
.dl-modal-choice:hover { background: var(--paper-3); border-color: var(--gold); }
.dl-modal-choice strong { font-size: 1.1rem; color: var(--ink); margin-bottom: .2rem; }
.dl-modal-choice span  { font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.dl-modal-cancel {
  margin-top: .5rem;
  background: none; border: none;
  font-family: var(--serif); font-size: 1rem;
  color: var(--ink-faint); cursor: pointer; text-decoration: underline;
}

/* ---- zip progress overlay ---- */
.dl-progress-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(28, 20, 14, 0.82);
  display: flex; align-items: center; justify-content: center;
}
.dl-progress-overlay[hidden] { display: none; }
.dl-progress-box {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--border-radius-lg, 10px);
  padding: 2rem 2rem 1.5rem;
  max-width: 360px; width: 90%; text-align: center;
}
.dl-progress-title {
  font-family: var(--serif-display); font-size: 1.3rem;
  margin: 0 0 1.25rem; color: var(--ink);
}
.dl-progress-track {
  height: 8px; background: var(--rule-soft);
  border-radius: 999px; overflow: hidden; margin-bottom: .6rem;
}
.dl-progress-fill {
  height: 100%; width: 0; background: var(--gold-2);
  border-radius: 999px; transition: width .2s ease;
}
.dl-progress-pct { font-size: 1.3rem; color: var(--ink); margin: 0 0 .5rem; }
.dl-progress-note { font-size: .85rem; color: var(--ink-faint); font-style: italic; margin: 0; }

/* ===========================================================================
   v2.1 — download btn maroon, bolder filter intro, warm performer frame
   =========================================================================== */

/* download buttons match the active chip (dark maroon) */
.btn-dl-primary {
  background: var(--maroon) !important;
  color: var(--paper) !important;
  border-color: var(--maroon) !important;
}
.btn-dl-primary:hover {
  background: #561f16 !important;
  border-color: #561f16 !important;
}

/* bolder "Browse by who's playing" */
.filter-intro {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .1em;
}

/* performer view — remove image background, use warm equal framing */
#performer-view { position: static !important; overflow: visible !important; padding: 1.5rem; }
#performer-view.has-bg::before { display: none !important; }
#performer-view .performer-list {
  border: 2px solid var(--gold-2);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow:
    0 0 0 5px var(--paper-3),
    0 0 0 7px var(--rule),
    0 6px 24px rgba(44, 33, 24, 0.18);
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: static;
  z-index: auto;
}

/* ===========================================================================
   v2.2 — "Browse By  [Session] [Artist]" connected segmented toggle
   =========================================================================== */
.browse-toggle {
  display: inline-flex;
  align-items: stretch;
  background: var(--maroon);
  border: 1px solid var(--maroon);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(44, 33, 24, 0.18);
}
.browse-label {
  display: flex;
  align-items: center;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  padding: 0 .85rem 0 1rem;
}
.browse-tab {
  font-family: var(--serif);
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  padding: .5rem 1.4rem;
  min-height: 40px;
  border-radius: 999px;
  background: var(--paper-2);   /* inactive = light gold */
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.browse-tab:hover { background: var(--paper-3); }
.browse-tab.is-active {
  background: var(--maroon);    /* active blends into the dark container */
  color: var(--paper);
}

/* performer chips bar only shows in Artist mode */
.filter-bar { margin-top: 1.1rem; }
.filter-bar[hidden] { display: none; }

/* ===========================================================================
   v2.3 — flip tab colors (active = light gold), light-gold border on both,
   new tagline spacing
   =========================================================================== */
.browse-tab {
  background: var(--maroon);          /* inactive = dark */
  color: var(--paper);
  border: 1px solid var(--gold-2);    /* slider-style outline on both */
}
.browse-tab:not(.is-active):hover { background: #561f16; }
.browse-tab.is-active {
  background: var(--paper-2);          /* active = light gold */
  color: var(--ink);
  border: 1px solid var(--gold-2);
}

/* more breathing room under the title */
.hero-dates { margin-top: 1.6rem; }

/* ===========================================================================
   v2.4 — title always on one line (scales down on narrow screens)
   =========================================================================== */
.hero h1 {
  white-space: nowrap;
  font-size: clamp(1.3rem, 7.2vw, 4.6rem);
}
@media (max-width: 24em) {
  .hero { padding-left: .6rem; padding-right: .6rem; }
}

/* v2.5 — title always centered */
.hero h1 { text-align: center; width: 100%; margin-left: auto; margin-right: auto; }

/* v2.6 — cap title size so one-line title fits the centered column (no overflow) */
.hero h1 { font-size: clamp(1.3rem, 7vw, 3.4rem); }

/* v2.7 — guitar ornament icon (inherits the gold .rule color via currentColor) */
.rule-icon { display: inline-flex; align-items: center; color: var(--gold); }
.rule-icon svg { width: 1.4em; height: 1.95em; display: block; }

/* v2.8 — filled guitar, taller, tilted 45deg right */
.rule-icon svg { width: 1.5em; height: 3.12em; transform: rotate(45deg); transform-origin: center; }

/* v2.9 — taller viewBox ratio for unified guitar (48x108) */
.rule-icon svg { width: 1.5em; height: 3.38em; }

/* v3.0 — eyebrow +20%, tagline moved below the guitar (rebalance spacing) */
.hero .eyebrow { font-size: 0.96rem; }
.hero-dates { margin: .2rem 0 1.3rem; }

/* v3.1 — stats moved above Browse By: +15% size, readable on cream */
.hero-stats { font-size: 1.21rem; color: var(--ink-soft); margin: 0 0 1.1rem; }

/* v3.2 — stats color matches eyebrow gold; tighten gap above stats by 40% */
.hero-stats { color: var(--gold-2); }
.filter-wrap { margin-top: 1.5rem; }

/* v3.3 — stats color matches the Browse By element background (maroon) */
.hero-stats { color: var(--maroon); }

/* v3.4 — "Pickin' before Picks" matches eyebrow gold */
.hero-dates { color: var(--gold-2); }

/* v3.5 — white outline on the two gold lines for contrast over the photo */
.hero .eyebrow,
.hero-dates {
  text-shadow:
    -1px -1px 0 #fff,  1px -1px 0 #fff,
    -1px  1px 0 #fff,  1px  1px 0 #fff,
     0   -1px 0 #fff,  0    1px 0 #fff,
    -1px  0   0 #fff,  1px  0   0 #fff;
}

/* v3.6 — slim the white outline to a clean ~1px stroke */
.hero .eyebrow,
.hero-dates {
  text-shadow: none;
  -webkit-text-stroke: 0.5px #ffffff;
  paint-order: stroke fill;
}

/* v3.7 — eyebrow + tagline use the maroon (Browse By bg) color */
.hero .eyebrow,
.hero-dates { color: var(--maroon); }

/* v3.8 — revert eyebrow+tagline to light gold; outline black */
.hero .eyebrow,
.hero-dates {
  color: var(--gold-2);
  -webkit-text-stroke-color: #000000;
}

/* v3.9 — thicken only the tagline outline by 50% (0.5px -> 0.75px) */
.hero-dates { -webkit-text-stroke-width: 0.75px; }

/* v4.0 — tagline outline +50% again; add 0.5px black outline to title + paragraph */
.hero-dates { -webkit-text-stroke-width: 1.125px; }
.hero h1,
.hero-lead {
  -webkit-text-stroke: 0.5px #000000;
  paint-order: stroke fill;
}

/* v4.1 — tagline outline +50% again (1.125px -> 1.6875px) */
.hero-dates { -webkit-text-stroke-width: 1.6875px; }

/* v4.2 — centered session-card headers; two-line titles */
.album > summary {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .45rem;
  padding: 1.1rem 2.6rem;
  position: relative;
}
.album > summary::before {     /* disclosure triangle pinned top-left */
  position: absolute;
  left: 1.15rem;
  top: 1.25rem;
  align-self: auto;
}
.album-title .t-line { display: block; line-height: 1.18; }
.album-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

/* v4.3 — subtitle line 70%; date label + count stacked; count in maroon */
.album-title .t-line:nth-child(2) { font-size: 0.7em; }
.album-meta { flex-direction: column; gap: .35rem; }
.track-count { color: var(--maroon); }

/* v4.4 — date badge on top; double the header spacing; subtitle +20% */
.album > summary { gap: .9rem; }
.album-title .t-line:nth-child(2) { font-size: 0.84em; }

/* v4.5 — add explicit spacing between the two title lines */
.album-title .t-line + .t-line { margin-top: 0.25em; }

/* v4.6 — explicit 10px top padding on the subtitle line */
.album-title .t-line + .t-line { margin-top: 0; padding-top: 10px; }

/* v4.7 — session action bar (Play All | count | Download All) */
.session-actions {
  background: var(--paper-3);
}
.session-actions .session-count {
  flex: 1 1 auto;
  text-align: center;
  font-style: italic;
}
.dl-all-btn { white-space: nowrap; font-weight: 600; }

/* v4.8 — "Play All" label aligned with song titles */
.play-all-label {
  color: var(--maroon);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* v4.9 — count dead-center on the card; Play All group left, Download All right */
.session-actions { position: relative; justify-content: space-between; }
.play-all-group { display: flex; align-items: center; gap: .85rem; }
.session-actions .session-count {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  flex: none;
  margin: 0;
}

/* v5.0 — Download All sits between stats and Browse By; add breathing room */
.dl-everyone-wrap { padding: .4rem 0 0; margin-bottom: 1.1rem; }

/* v5.1 — darken the complete-sessions note for readability */
.album-note { color: var(--ink); }

/* v5.2 — make the session count bigger + bolder */
.session-actions .session-count { font-size: 1.15rem; font-weight: 700; }

/* ===========================================================================
   v5.3 — FAMILY GUESTBOOK
   =========================================================================== */
.guestbook {
  max-width: var(--maxw);
  margin: 2.5rem auto 1rem;
  padding: 0 1rem;
  text-align: center;
}
.gb-title {
  font-family: var(--serif-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--ink);
  margin: .4rem 0 .25rem;
}
.gb-sub {
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 auto 1.3rem;
  max-width: 34rem;
}
.gb-compose { margin-bottom: 1.2rem; }
.gb-form { margin: 1rem auto 0; max-width: 40rem; text-align: left; }
.gb-textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  resize: vertical;
}
.gb-textarea:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.gb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.gb-form-actions { display: flex; gap: .9rem; align-items: center; justify-content: center; margin-top: .8rem; }
.gb-cancel {
  background: none; border: none;
  font-family: var(--serif); font-size: 1rem;
  color: var(--ink-faint); text-decoration: underline; cursor: pointer;
}
.gb-status { font-style: italic; color: var(--ink-soft); margin: .6rem 0; }

.gb-list { text-align: left; margin-top: 1rem; }
.gb-empty { color: var(--ink-faint); font-style: italic; text-align: center; padding: 1.2rem; }

.gb-msg {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.gb-msg-date {
  font-family: var(--serif);
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: .4rem;
}
.gb-msg-text { color: var(--ink); white-space: pre-wrap; line-height: 1.55; }
.gb-msg-actions { margin-top: .55rem; }
.gb-reply-btn {
  background: none; border: none; padding: 0;
  font-family: var(--serif); font-size: .95rem;
  color: var(--maroon); cursor: pointer; text-decoration: underline;
}
.gb-del-btn {
  position: absolute; top: .55rem; right: .75rem;
  background: none; border: none; color: var(--ink-faint);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.gb-del-btn:hover { color: var(--maroon); }
.gb-replies { margin: .8rem 0 0 1.4rem; border-left: 2px solid var(--rule-soft); padding-left: 1rem; }
.gb-reply {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  margin-bottom: .6rem;
}
.gb-reply-form { margin-top: .7rem; }
