/* Daniel's songbook - his brand palette: deep purple + navy night, royal blue and violet, gold accents; Daniel Letters font. */
:root { color-scheme: only light;
  --bg-0: #0b1340;
  --bg-1: #381883;
  --bg-2: #022775;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #c9defb;
  --chord: #ffde59;
  --gold-a: #ffde59;
  --gold-b: #f2b53b;
  --violet-a: #8c30fe;
  --violet-b: #2a66e0;
  --section: #6aabfb;
  --page-bg: linear-gradient(135deg, rgba(56, 24, 131, 0.90) 0%, rgba(2, 39, 117, 0.84) 50%, rgba(42, 102, 224, 0.80) 100%),
    url("img/brand/doodles.webp") center / cover;
  --lyric-size: 20px;
  --radius: 16px;
  --gutter: 16px;   /* the page's side margin; full-bleed blocks pull out by exactly this much */
}
:root[data-theme="night"] {
  --page-art: url("img/brand/night.webp") center / cover;
  /* dark-room mode: near black, low glare, warm chords */
  --bg-0: #07040d; --bg-1: #0b0714; --bg-2: #0b0714;
  --card: rgba(255, 255, 255, 0.04); --card-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08); --text: #d9d2e6; --muted: #8f86a3; --chord: #e0a458; --section: #9b86d1;
  --page-bg: #07040d;
  --page-tint: linear-gradient(rgba(7, 4, 13, 0.72), rgba(7, 4, 13, 0.8));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }   /* safety net: nothing (a sliding card, a long chord run) may make the page scroll sideways */
body {
  margin: 0; min-height: 100vh; font-family: "Daniel Letters", "Rubik", system-ui, sans-serif; color: var(--text);
  background: var(--bg-0);
}
/* the page's background in two layers (mobile performance, 1.10.2026) - the same look as the body's old two-layer
   background: the doodles stayed put while the page scrolled ("background-attachment: fixed", which made Chrome on
   Android repaint the whole background on every step of a scroll) - now a fixed layer the screen simply holds still;
   over them the purple veil runs the whole length of the page, as it did. A song page has its own plain background. */
:root { --page-art: url("img/brand/doodles.webp") center / cover;
  --page-tint: linear-gradient(135deg, rgba(56, 24, 131, 0.90) 0%, rgba(2, 39, 117, 0.84) 50%, rgba(42, 102, 224, 0.80) 100%); }
@supports (background-image: image-set(url("img/brand/doodles.avif") type("image/avif"))) {
  :root { --page-art: image-set(url("img/brand/doodles.avif") type("image/avif"), url("img/brand/doodles.webp") type("image/webp")) center / cover; }
}
body { position: relative; }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none; background: var(--page-art); }
body::after { content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none; background: var(--page-tint); }
/* (song pages used to hide these two layers; Daniel wants a picture behind every page) */
button { font: inherit; color: inherit; }
a { color: inherit; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(26, 11, 46, 0.72); border-bottom: 1px solid var(--line);
}
:root[data-theme="night"] .topbar { background: rgba(7, 4, 13, 0.9); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { height: 36px; width: auto; }
.topbar-actions { margin-inline-start: auto; display: flex; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--card-strong); outline: none; }
.icon-btn.active { color: var(--chord); }

main { max-width: 900px; margin: 0 auto; padding: 16px var(--gutter) 40px; outline: none; }

/* home */
.hero { text-align: center; padding: 18px 0 8px; }
.hero h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 22px rgba(255, 255, 255, 0.18); }
.hero p { margin: 6px 0 0; color: var(--muted); }
.search {
  display: block; width: 100%; margin: 18px 0 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-size: 17px;
}
.search::placeholder { color: var(--muted); }
.song-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.song-item a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; text-decoration: none;
  background: var(--card); border: 1px solid transparent;
}
.song-item a:hover, .song-item a:focus-visible { border-color: var(--line); background: var(--card-strong); outline: none; }
.song-num { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 215, 0, 0.14); color: var(--chord); font-weight: 700; font-size: 14px; }
.song-meta { display: flex; flex-direction: column; min-width: 0; }
.song-title { font-weight: 700; font-size: 17px; }
.song-movie { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; }
.btn-gold:hover { box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45); }
.btn-violet { background: linear-gradient(45deg, var(--violet-a), var(--violet-b)); color: #fff; }
.btn-violet:hover { box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45); }
.btn-ghost { background: var(--card-strong); }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* song page */
.song-head { text-align: center; padding: 6px 0 12px; }
.song-head h1 { margin: 0; font-size: clamp(28px, 7vw, 40px); }
.song-head .movie { color: var(--chord); font-weight: 500; margin-top: 2px; }
.song-head .credits { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.6; }

.seg-ctl { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); }
.seg-ctl button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; }
.seg-ctl button[aria-pressed="true"] { background: linear-gradient(45deg, var(--violet-a), var(--violet-b)); color: #fff; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); font-size: 14px; }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 18px; }
.stepper button:hover { background: var(--card-strong); }
.stepper .val { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.inst select { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; padding: 0 14px; min-height: 38px; cursor: pointer; }
.inst select option { color: #1a0b2e; }
.capo-note { width: 100%; text-align: center; font-size: 13px; color: var(--chord); }

.lyrics { font-size: var(--lyric-size); line-height: 1.25; padding-inline: 0.6em; }
.l-line { display: flex; flex-wrap: wrap; align-items: flex-end; margin: 0 0 0.25em; min-height: 1.3em; row-gap: 0; }
.l-line.ltr { direction: ltr; }
.l-word { display: inline-flex; white-space: nowrap; }
.l-seg { position: relative; display: inline-block; padding-top: 1.05em; }
.l-anchor { position: relative; }
.l-anchor > .l-ch { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); }
.l-ch { color: var(--chord); font-weight: 500; font-size: 0.78em; line-height: 1.25em; direction: ltr; unicode-bidi: isolate; cursor: pointer; white-space: nowrap; }
.l-line.no-chords .l-seg { padding-top: 0; }
.l-line.no-chords .l-ch { display: none; }
.l-tx { font-weight: 700; white-space: pre; }
.l-tail { position: relative; display: inline-block; padding-top: 1.05em; width: 0; }
/* the chord after the last word hangs past the line's end in the chord row, like the printed songbook - it takes no
   width, so a full line never pushes it down onto a row of its own (app.js keeps it on the screen) */
.l-tail .l-ch { position: static; display: block; margin-top: -1.05em; width: max-content; margin-inline-start: 0.6em; }
.l-tail.l-tail-own { width: auto; }
.l-gap { height: 0.9em; }
.l-section { color: var(--section); font-weight: 700; font-size: 0.8em; margin: 0.6em 0 0.2em; letter-spacing: 0.02em; }
/* bar notation: a small chord chart, always left to right, bars lined up in columns */
.l-bars { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0.15em 0 0.5em; margin-inline-start: 0; font-size: 0.8em; direction: ltr; }
[dir="rtl"] .lyrics:not(.ltr-song) .l-bars, .lyrics:not(.ltr-song) .l-bars { margin-inline-start: auto; margin-inline-end: 0; }
.bars { display: grid; grid-template-columns: repeat(var(--cols), minmax(4.6em, 1fr)); row-gap: 6px; padding: 6px 4px; border-radius: 12px; background: var(--card); }
.bars .m { position: relative; display: flex; align-items: center; min-height: 2em; padding: 0 0.5em; border-left: 1.5px solid color-mix(in srgb, var(--text) 45%, transparent); }
.bars .m.row-start { grid-column-start: 1; }
.bars .m.row-end { border-right: 1.5px solid color-mix(in srgb, var(--text) 45%, transparent); }
.bars .m { gap: 0.45em; }
.bars .m > * { flex: 1 1 auto; text-align: start; }
.bars .seq { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.2em 1.1em; padding: 0.25em 0.5em; }
.b-ch { color: var(--chord); font-weight: 600; white-space: nowrap; cursor: pointer; }
.beat { color: var(--muted); font-style: normal; font-weight: 300; opacity: 0.7; }
/* repeat signs ‖: :‖ */
.bars .m.rep-open { border-left: 4px double var(--text); padding-left: 0.95em; }
.bars .m.rep-close { border-right: 4px double var(--text); padding-right: 0.95em; }
.bars .m.rep-open::before, .bars .m.rep-close::after { content: ""; position: absolute; top: calc(50% - 5px); width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--text); box-shadow: 0 7px 0 var(--text); }
.bars .m.rep-open::before { left: 3px; }
.bars .m.rep-close::after { right: 3px; }
.reps { direction: ltr; unicode-bidi: isolate; color: var(--section); font-weight: 700; font-size: 1.05em; }
.l-note { color: var(--muted); font-size: 0.8em; }
.ltr-song .l-section, .ltr-song .l-bars, .ltr-song .l-note { direction: ltr; text-align: left; }
.hide-chords .l-ch, .hide-chords .l-bars, .hide-chords .l-tail { display: none; }
.hide-chords .l-seg { padding-top: 0; }

/* bottom sheet (chord diagrams, room) */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; background: rgba(0, 0, 0, 0.5); }
.sheet[hidden] { display: none; }
.sheet-card { position: relative; width: min(640px, 100%); margin: 0 auto; max-height: 80vh; overflow: auto; padding: 22px 18px calc(env(safe-area-inset-bottom) + 22px); border-radius: 22px 22px 0 0; background: #221040; border: 1px solid var(--line); }
:root[data-theme="night"] .sheet-card { background: #0d0916; }
.sheet-close { position: absolute; top: 8px; inset-inline-start: 8px; }
.sheet h2 { margin: 0 0 12px; font-size: 20px; text-align: center; }
.diagrams { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; color: var(--text); }
.diagram { padding: 6px; border-radius: 12px; background: var(--card); }
.field { display: block; width: 100%; padding: 14px; margin: 8px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 20px; text-align: center; letter-spacing: 0.2em; text-transform: uppercase; }
.qr { display: grid; place-items: center; margin: 12px auto; padding: 12px; width: 220px; border-radius: 16px; background: #fff; }
.room-code { font-size: 34px; font-weight: 700; letter-spacing: 0.25em; text-align: center; color: var(--chord); direction: ltr; }
.hint { color: var(--muted); font-size: 13.5px; text-align: center; margin: 8px 0; }

/* live room banner */
.room-banner { position: sticky; top: calc(env(safe-area-inset-top) + 61px); z-index: 15; display: flex; align-items: center; gap: 10px; justify-content: center; padding: 8px 12px; font-size: 14px; background: linear-gradient(45deg, rgba(139, 92, 246, 0.95), rgba(59, 130, 246, 0.95)); }
.room-banner[hidden] { display: none; }
.room-banner button { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255, 255, 255, 0.2); cursor: pointer; font-size: 13px; }
.room-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: #7CFC9A; box-shadow: 0 0 8px #7CFC9A; }

/* projection mode: lyrics only, huge, for a screen behind the band */
body.projector .topbar, body.projector .footnote, body.projector .room-banner { display: none; }
body.projector main { max-width: none; padding: 4vh 6vw; }
body.projector .song-head h1 { font-size: 7vh; }
body.projector .song-head .credits { display: none; }
body.projector .lyrics { --lyric-size: 5vh; }
body.projector .l-ch, body.projector .l-bars, body.projector .l-tail { display: none; }
/* the screen shows words only: the song's control bar covered the bottom lines (festival, 1.10.2026) */
body.projector #songbar, body.projector .song-kicker .fav-btn { display: none !important; }
/* no chords on the screen, so no room kept for them above the words (as with chords hidden): more lines fit */
body.projector .l-seg, body.projector .lr-mark { padding-top: 0; }

.footnote { max-width: 900px; margin: 0 auto; padding: 18px 16px 40px; color: var(--muted); font-size: 11.5px; text-align: center; line-height: 1.6; }
@media (max-width: 480px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ================= hub (home) ================= */
.hub-hero { text-align: center; padding: 6px 0 4px; }
.hub-logo { width: min(240px, 60vw); height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45)); }
.hub-tag { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.book-card {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 190px; margin: 18px 0 12px; padding: 20px;
  border-radius: 22px; overflow: hidden; text-decoration: none; isolation: isolate; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background: linear-gradient(to top, rgba(18, 6, 40, 0.92) 0%, rgba(18, 6, 40, 0.35) 55%, rgba(18, 6, 40, 0.05) 100%), var(--img) center 22% / cover;
  transition: transform 0.25s ease;
}
.book-card:hover { transform: translateY(-2px); }
.book-card-title { display: block; font-size: 34px; font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.book-card-sub { color: #ffe08a; font-weight: 500; }
.book-card-go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; font-size: 22px; font-weight: 700; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 500; font-size: 14.5px; }
.quick-btn:hover { background: var(--card-strong); }
.quick-btn .dot, .room-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: #7cfc9a; box-shadow: 0 0 8px #7cfc9a; }
.section-title { margin: 26px 0 12px; font-size: 20px; }
/* per-movie songbooks: picture cards at a modest, landscape size */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (min-width: 700px) { .movie-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.movie-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 10; padding: 10px 12px; border-radius: 16px; overflow: hidden; text-decoration: none;
  background: linear-gradient(to top, rgba(18, 6, 40, 0.88) 0%, rgba(18, 6, 40, 0.05) 65%), var(--img) center 70% / cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease;
}
.movie-card:hover, .movie-card:focus-visible { transform: translateY(-2px); outline: none; }
.movie-name { font-weight: 700; font-size: 16px; line-height: 1.2; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.movie-count { color: #ffe08a; font-size: 12.5px; }

/* ================= song lists ================= */
.list-hero {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; margin: 0 calc(var(--gutter) * -1) 4px; padding: 20px var(--gutter);
  background: linear-gradient(to top, var(--bg-0) 0%, rgba(26, 11, 46, 0.35) 70%), var(--img) center 80% / cover;
}
.list-hero h1 { margin: 0; font-size: clamp(26px, 7vw, 38px); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.list-hero p { margin: 2px 0 0; color: #ffe08a; }
.song-item a { padding: 8px 10px 8px 14px; }
.song-thumb { flex: 0 0 52px; height: 52px; border-radius: 12px; background: center 85% / cover; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.song-item .song-meta { flex: 1 1 auto; }
.song-item .song-num { background: transparent; color: var(--muted); font-weight: 500; }

/* ================= song page ================= */
#song-bg { position: fixed; inset: 0; z-index: -1; background: center top / cover no-repeat; opacity: 0; transition: opacity 0.4s ease; }
#song-bg.on { opacity: 1; }
#song-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.78) 45%, rgba(255, 255, 255, 0.86)); }
body[data-page="song"] {
  --text: #1c0f33; --muted: #4a3a66; --chord: #6d28d9; --section: #b45309; --line: rgba(40, 20, 80, 0.14); --card: rgba(255, 255, 255, 0.6); --card-strong: rgba(255, 255, 255, 0.85);
  background: #f4efff;
  /* Daniel: never a plain colour - his D pattern shows through a light veil wherever a song has no picture of its own */
  --page-tint: linear-gradient(rgba(244, 239, 255, 0.86), rgba(244, 239, 255, 0.9));
}
body[data-page="song"] .topbar { background: rgba(255, 255, 255, 0.72); border-bottom-color: rgba(40, 20, 80, 0.12); }
body[data-page="song"] .footnote { color: #4a3a66; }
body[data-page="song"] .l-tx { text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 2px #fff; }
body[data-page="song"] .l-ch { text-shadow: 0 0 5px #fff, 0 0 2px #fff; }
:root[data-theme="night"] body[data-page="song"] { --text: #e6def5; --muted: #9a8fb3; --chord: #f0b35a; --section: #b69cff; --line: rgba(255, 255, 255, 0.1); --card: rgba(255, 255, 255, 0.05); --card-strong: rgba(255, 255, 255, 0.1); background: #07040d; --page-tint: linear-gradient(rgba(7, 4, 13, 0.8), rgba(7, 4, 13, 0.86)); }
:root[data-theme="night"] #song-bg::after { background: rgba(7, 4, 13, 0.9); }
:root[data-theme="night"] body[data-page="song"] .topbar { background: rgba(7, 4, 13, 0.85); }
:root[data-theme="night"] body[data-page="song"] .l-tx, :root[data-theme="night"] body[data-page="song"] .l-ch { text-shadow: none; }

.song-head { text-align: center; padding: 10px 0 18px; }
.song-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.song-kicker .song-num { flex: 0 0 26px; height: 26px; font-size: 12px; background: rgba(109, 40, 217, 0.12); color: var(--chord); }
.song-head h1 { margin: 4px 0 0; font-size: clamp(30px, 8vw, 46px); line-height: 1.1; }
.song-head .credits { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.6; }
.capo-pill { display: inline-block; margin: 10px 4px 0; padding: 5px 12px; border-radius: 999px; background: rgba(109, 40, 217, 0.12); color: var(--chord); font-weight: 500; font-size: 13px; }
.soon { text-align: center; color: var(--muted); padding: 40px 0; font-size: 18px; }
.lyrics { padding-bottom: 10px; }
.song-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 30px 0 90px; }
.nav-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.nav-card small { color: var(--muted); font-weight: 400; font-size: 12px; }
.nav-card.prev { text-align: left; }

/* bottom bar: in thumb reach, slides away while reading */
.songbar {
  position: fixed; z-index: 30; bottom: calc(env(safe-area-inset-bottom) + 10px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px; max-width: calc(100vw - 20px);
  border-radius: 999px; background: rgba(26, 11, 46, 0.9); color: #f7f3ff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); transition: transform 0.25s ease, opacity 0.25s ease;
}
.songbar.tucked { transform: translate(-50%, 140%); opacity: 0; }
.songbar .seg-ctl, .songbar .stepper { background: rgba(255, 255, 255, 0.08); }
.songbar .seg-ctl button { padding: 0 12px; min-height: 40px; }
.songbar .stepper button { width: 40px; height: 40px; font-size: 18px; }
.bar-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
.bar-btn:hover { background: rgba(255, 255, 255, 0.18); }
body.in-room .songbar { bottom: calc(env(safe-area-inset-bottom) + 10px); }

/* settings sheet */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.set-row .seg-ctl button { padding: 0 12px; }
.toggle { position: relative; width: 52px; height: 30px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.18); cursor: pointer; }
.toggle i { position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start 0.2s; }
.toggle[aria-pressed="true"] { background: linear-gradient(45deg, var(--violet-a), var(--violet-b)); }
.toggle[aria-pressed="true"] i { inset-inline-start: 25px; }
.field.text { text-align: start; letter-spacing: 0; font-size: 17px; text-transform: none; }

.sheet-card { color: #f7f3ff; }

/* easy mode explanation */
.easy-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; max-width: 520px; margin: 12px auto 0; padding: 10px 14px; border-radius: 16px; background: rgba(109, 40, 217, 0.1); border: 1px solid rgba(109, 40, 217, 0.22); font-size: 14px; line-height: 1.5; }
.easy-note b { color: var(--chord); }
.easy-help { border: 0; border-radius: 999px; padding: 4px 12px; background: rgba(109, 40, 217, 0.16); color: var(--chord); font-weight: 500; font-size: 13px; cursor: pointer; }.capo-pill.reset { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; }
.songbar .stepper .tr-val { width: auto; min-width: 40px; padding: 0 8px; border-radius: 999px; background: linear-gradient(45deg, var(--violet-a), var(--violet-b)); font-size: 14px; font-weight: 700; }
/* ================= song requests ================= */
.req-form { display: grid; gap: 8px; margin-top: 8px; }
.req-form .search { margin: 0; }
.req-form .btn { justify-self: stretch; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid transparent; }
.req-item.added { opacity: 0.6; }
.req-meta { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.req-title { font-weight: 700; font-size: 17px; }
.req-movie { color: var(--muted); font-size: 13px; }
.req-status { color: #ffe08a; font-size: 12px; margin-top: 2px; }
.req-vote { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 70px; min-height: 58px; border: 0; border-radius: 14px; background: linear-gradient(45deg, var(--violet-a), var(--violet-b)); color: #fff; cursor: pointer; transition: transform 0.15s; }
.req-vote:active { transform: scale(0.95); }
.req-vote.done, .req-vote[disabled] { background: var(--card-strong); color: var(--muted); cursor: default; }
.req-count { font-size: 20px; font-weight: 700; line-height: 1; }
.req-label { font-size: 12px; margin-top: 2px; }
.song-list.compact { max-height: 55vh; overflow: auto; margin-top: 10px; }
.song-list.compact .song-item a { background: rgba(255, 255, 255, 0.06); }
.queue-count { color: #ffd166; font-weight: 700; white-space: nowrap; }
.room-banner .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-inline-start: 4px; border-radius: 999px; background: #ffd166; color: #1a0b2e; font-size: 11px; font-weight: 700; }
/* chord diagrams: always a white card with dark ink, readable on any background / theme */
.diagram { padding: 6px 4px 2px; border-radius: 12px; background: #fff; color: #1c0f33; box-shadow: 0 1px 3px rgba(28, 15, 51, 0.12); }
.diagram b { display: block; padding: 18px 14px; font-size: 20px; direction: ltr; }
.diagram svg { display: block; }
.chord-pop { position: absolute; z-index: 40; display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(28, 15, 51, 0.35); border: 1px solid rgba(109, 40, 217, 0.25); animation: pop-in 0.14s ease-out; max-width: calc(100vw - 20px); }
.chord-pop .diagram { box-shadow: none; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.chord-strip { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 35; display: block;
  width: min(760px, calc(100vw - 20px)); padding: 8px 8px 6px; animation: strip-in 0.16s ease-out; }
@keyframes strip-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
.strip-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 6px; color: #4c1d95; font-size: 14px; font-weight: 600; }
.strip-x { border: 0; background: rgba(109, 40, 217, 0.1); color: #4c1d95; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer; }
.strip-row { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.strip-row .diagram { flex: 0 0 auto; scroll-snap-align: start; background: #f6f2ff; }.strip-row .diagram svg { height: 128px; width: auto; }

/* רגעי מעגל: cues around the music - cards before/after the song, small strips between lines */
.moments-card { margin: 0.4em 0 0.9em; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid color-mix(in srgb, var(--section) 30%, transparent); font-size: 0.72em; }
.moments-card h2 { margin: 0 0 6px; font-size: 0.85em; color: var(--section); letter-spacing: 0.02em; }
.moment { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; line-height: 1.4; }
.moment .m-ic { flex: 0 0 auto; font-size: 1.15em; line-height: 1.2; }
.moment .m-tx { flex: 1 1 auto; font-weight: 400; }
.moment .m-tx b { color: var(--section); font-weight: 700; margin-inline-end: 2px; }
.moment .m-src { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--section) 18%, transparent); color: var(--section); text-decoration: none; font-size: 0.75em; }
.moment .m-src:hover { background: color-mix(in srgb, var(--section) 32%, transparent); }
.moments-inline { margin: 0.25em 0 0.35em; padding: 4px 10px; border-inline-start: 3px solid var(--section); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--section) 10%, transparent); font-size: 0.68em; }
[dir="rtl"] .moments-inline { border-radius: 10px 0 0 10px; }
.ltr-song .moments-card, .ltr-song .moments-inline { direction: rtl; text-align: right; }
.song-badges { flex: 0 0 auto; font-size: 15px; letter-spacing: 1px; margin-inline-start: auto; opacity: 0.9; }
.song-badges + .song-num { margin-inline-start: 6px; }
/* projection: only what the audience does (clap, jump, sit, sign, lights...) */
body.projector .moment:not(.crowd), body.projector .moment .m-src, body.projector .moments-card h2 { display: none; }
body.projector .moments-card:not(:has(.moment.crowd)), body.projector .moments-inline:not(:has(.moment.crowd)) { display: none; }
body.projector .moment.crowd { font-size: 1.3em; font-weight: 700; }
/* moments are written by hand, like notes on the leader's page */
.moment .m-tx { font-family: "Daniel Letters", "Daniel Letters", "Rubik", sans-serif; font-size: 1.02em; font-weight: 400; line-height: 1.45; }
.moment .m-tx b { font-family: "Daniel Letters", "Rubik", sans-serif; font-size: 0.8em; font-weight: 600; opacity: 0.85; }
.moments-card h2 { font-family: "Daniel Letters", "Daniel Letters", "Rubik", sans-serif; font-size: 1em; font-weight: 600; }
/* ================= song page in the colours of its illustration =================
   --h1 / --h2 = the two main hues of the song picture (data/palettes.json), --s1 = how colourful it is */
body { --h1: 265; --s1: 70; --h2: 35; --s2: 80; }
body[data-page="song"] {
  --sat: clamp(55%, calc(var(--s1) * 1% + 18%), 88%);
  --text: hsl(var(--h1) 45% 12%);
  --muted: hsl(var(--h1) 22% 32%);
  --chord: hsl(var(--h1) var(--sat) 34%);
  --section: hsl(var(--h2) 68% 36%);
  --line: hsl(var(--h1) 40% 30% / 0.16);
  --card: hsl(var(--h1) 80% 98% / 0.62);
  --card-strong: hsl(var(--h1) 80% 98% / 0.86);
  --accent-a: hsl(var(--h1) var(--sat) 46%);
  --accent-b: hsl(var(--h2) 72% 50%);
  background: hsl(var(--h1) 60% 96%);
}
#song-bg::after { background: linear-gradient(to bottom, hsl(var(--h1) 70% 97% / 0.45), hsl(var(--h1) 70% 97% / 0.74) 45%, hsl(var(--h1) 60% 96% / 0.86)); }
body[data-page="song"] .topbar { background: hsl(var(--h1) 70% 97% / 0.74); border-bottom-color: var(--line); }
.song-kicker .song-num, .capo-pill { background: hsl(var(--h1) 70% 45% / 0.14); color: var(--chord); }
.song-head h1 {
  background: linear-gradient(100deg, var(--text) 20%, var(--chord) 45%, var(--section) 55%, var(--text) 80%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: title-shine 7s ease-in-out infinite;
}
.songbar { background: hsl(var(--h1) 45% 13% / 0.92); }
.songbar .seg-ctl button[aria-pressed="true"] { background: linear-gradient(45deg, var(--accent-a, #8b5cf6), var(--accent-b, #3b82f6)); animation: pill-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.nav-card:hover { border-color: var(--chord); transform: translateY(-2px); }
.nav-card { transition: transform 0.2s ease, border-color 0.2s ease; }
:root[data-theme="night"] body[data-page="song"] {
  --text: hsl(var(--h1) 30% 90%); --muted: hsl(var(--h1) 15% 65%);
  --chord: hsl(var(--h1) 85% 72%); --section: hsl(var(--h2) 75% 74%);
  --line: rgba(255, 255, 255, 0.1); --card: hsl(var(--h1) 40% 50% / 0.08); --card-strong: hsl(var(--h1) 40% 50% / 0.14);
  background: hsl(var(--h1) 40% 5%);
}
:root[data-theme="night"] #song-bg::after { background: hsl(var(--h1) 40% 5% / 0.9); }
:root[data-theme="night"] body[data-page="song"] .topbar { background: hsl(var(--h1) 40% 5% / 0.85); }

/* ================= motion: pages glide in, lines arrive one after another ================= */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes title-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes pill-pop { from { transform: scale(0.85); } to { transform: scale(1); } }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, 1.5%); } }
@keyframes chord-flip { from { opacity: 0; transform: translateX(-50%) translateY(6px) rotateX(70deg); } to { opacity: 1; } }
@keyframes chord-flip-static { from { opacity: 0; transform: translateY(6px) rotateX(70deg); } to { opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
main > * { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.song-head { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.lyrics > * { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(min(var(--i, 0), 24) * 35ms + 120ms); }
.lyrics.soft > * { animation: none; }
.lyrics.soft .l-anchor > .l-ch { animation: chord-flip 0.35s ease both; }
.lyrics.soft .b-ch { display: inline-block; animation: chord-flip-static 0.35s ease both; }
/* the chord after a line's last word stays up in the chord row after a redraw too (Daniel, 27.9.2026: as in the printed songbook) */
.lyrics.soft .l-tail .l-ch { display: block; animation: chord-flip-static 0.35s ease both; }
.moments-card, .moments-inline { animation: slide-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
#song-bg { overflow: hidden; }
#song-bg.on { animation: kenburns 38s ease-in-out infinite alternate; }
.song-list .song-item { animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(min(var(--i, 0), 20) * 28ms); }
.l-ch, .b-ch { transition: transform 0.15s ease; }
.l-ch:hover, .b-ch:hover { transform: translateX(-50%) scale(1.15); }
.l-tail .l-ch:hover, .b-ch:hover { transform: scale(1.15); }
button, .btn, .quick-btn, .nav-card, .song-item a { -webkit-tap-highlight-color: transparent; }
button:active, .btn:active, .quick-btn:active, .song-item a:active, .nav-card:active, .movie-card:active { transform: scale(0.96); transition: transform 0.08s ease; }

/* movie songbooks: name centred, picture drifts on hover */
.movie-card { align-items: center; justify-content: center; text-align: center; isolation: isolate; background: none; animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(min(var(--i, 0), 20) * 30ms); }
.movie-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18, 6, 40, 0.78) 0%, rgba(18, 6, 40, 0.28) 60%, rgba(18, 6, 40, 0.12) 100%), var(--img) center 70% / cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.movie-card:hover::before, .movie-card:focus-visible::before { transform: scale(1.08); }
.movie-card .movie-name { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}main.soft > * { animation: none; }
/* discreet way in for the team, from the settings sheet */
.team-link { display: block; width: fit-content; margin: 16px auto 0; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.team-link:hover { border-color: var(--line); color: var(--text); }
.team-link.on { color: #1a0b2e; background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); font-weight: 600; font-size: 14px; padding: 8px 18px; }
/* ================= song scenes: living backdrop (lib/scene.js) ================= */
#song-bg { background: none !important; animation: none !important; overflow: hidden; }
#song-bg::after { content: none !important; }
#song-bg.on { opacity: 1; }
.sc-bg { position: absolute; inset: -5%; background: center / cover no-repeat; opacity: 0; transition: opacity 2.4s ease;
  transform: translateY(calc(var(--sy, 0px) * -0.04)); }
.sc-bg.show { opacity: 1; animation: sc-drift 46s ease-in-out infinite alternate; }
@keyframes sc-drift { from { scale: 1.02; translate: 0 0; } to { scale: 1.1; translate: -1.2% 1%; } }
.sc-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sc-veil { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 90% at 50% 50%, hsl(var(--h1) 70% 97% / 0.93) 0%, hsl(var(--h1) 70% 97% / 0.82) 55%, hsl(var(--h1) 70% 97% / 0.18) 100%); }
:root[data-theme="night"] .sc-veil { background: radial-gradient(ellipse 46% 90% at 50% 50%, hsl(var(--h1) 40% 5% / 0.95) 0%, hsl(var(--h1) 40% 5% / 0.86) 55%, hsl(var(--h1) 40% 5% / 0.45) 100%); }
.sc-layers { position: absolute; inset: 0; pointer-events: none; }
.sc-fixed { transform: translateY(calc(var(--sy, 0px) * -0.02)); }
@media (max-width: 1099px) {
  .sc-veil { background: hsl(var(--h1) 70% 97% / 0.9); }
  :root[data-theme="night"] .sc-veil { background: hsl(var(--h1) 40% 5% / 0.93); }
  .sc-fixed { display: none; }
}

@keyframes hero-in { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }

/* characters: placed in a corner or flying through the sky; each one moves in its own way */
.sc-char { position: absolute; width: min(calc(var(--w) * 0.6vw), 440px); height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
  opacity: 0; animation: char-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--d) + 0.3s); user-select: none; }
@keyframes char-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.p-tl { top: 7%; left: 2%; } .p-tr { top: 7%; right: 2%; } .p-bl { bottom: 0; left: 1%; } .p-br { bottom: 0; right: 1%; }
.p-bc { bottom: 1%; left: 50%; margin-left: calc(min(calc(var(--w) * 0.6vw), 440px) / -2); }
.p-sky { top: 14%; left: 0; }
.sc-char.a-breathe { transform-origin: 50% 100%; animation: char-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, breathe 5.5s ease-in-out infinite alternate; animation-delay: calc(var(--d) + 0.3s), var(--d); }
.sc-char.a-float { animation: char-in 1.1s forwards, float 4.5s ease-in-out infinite alternate; animation-delay: calc(var(--d) + 0.3s), var(--d); }
.sc-char.a-sway { transform-origin: 50% 100%; animation: char-in 1.1s forwards, sway 6.5s ease-in-out infinite alternate; animation-delay: calc(var(--d) + 0.3s), var(--d); }
.sc-char.a-hop { transform-origin: 50% 100%; animation: char-in 1.1s forwards, hop 3.6s ease-in-out infinite; animation-delay: calc(var(--d) + 0.3s), var(--d); }
.sc-char.a-rise { animation: char-in 1.6s forwards, moonrise 11s ease-in-out infinite alternate; animation-delay: calc(var(--d) + 0.3s), var(--d); }
.sc-char.a-dance { transform-origin: 50% 90%; animation: char-in 1.1s forwards, dance 1.8s ease-in-out infinite alternate; animation-delay: calc(var(--d) + 0.3s), var(--d); }
.sc-char.a-sail { animation: char-in 1.1s forwards, sail 16s ease-in-out infinite alternate; animation-delay: calc(var(--d) + 0.3s), var(--d); }
.sc-char.a-fly { opacity: 1; animation: fly 19s linear infinite; animation-delay: calc(var(--d) + 1.5s); translate: -130% 0; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
@keyframes hop { 0%, 55%, 100% { transform: translateY(0) scaleY(1); } 62% { transform: translateY(0) scaleY(0.94); } 72% { transform: translateY(-16px) scaleY(1.03); } 84% { transform: translateY(0) scaleY(0.97); } }
@keyframes moonrise { from { transform: translateY(18px); filter: drop-shadow(0 0 6px rgba(255, 240, 200, 0.3)); } to { transform: translateY(-14px); filter: drop-shadow(0 0 22px rgba(255, 240, 200, 0.75)); } }
@keyframes dance { from { transform: rotate(-7deg) translateY(0); } to { transform: rotate(7deg) translateY(-6px); } }
@keyframes sail { 0% { transform: translateX(-9vw) rotate(-1.5deg); } 25% { transform: translateX(-4vw) translateY(-5px) rotate(1.5deg); } 50% { transform: translateX(0) rotate(-1.5deg); } 75% { transform: translateX(4vw) translateY(-5px) rotate(1.5deg); } 100% { transform: translateX(9vw) rotate(-1deg); } }
@keyframes fly { 0% { translate: -130% 10vh; rotate: 4deg; } 50% { translate: 50vw -2vh; rotate: -3deg; } 100% { translate: 110vw 6vh; rotate: 4deg; } }
@media (prefers-reduced-motion: reduce) { .sc-char { opacity: 1 !important; } .sc-char.a-fly { translate: 20% 0 !important; } }
/* ================= the booklet's opening pages (lib/pages.js) ================= */
.book-page { position: relative; min-height: calc(100vh - 70px); margin: -16px calc(var(--gutter) * -1) -40px; padding: 28px var(--gutter) 90px; display: grid; justify-items: center; overflow: hidden; }
.pg-bg { position: fixed; inset: -4%; z-index: -2; background: var(--pg) center / cover no-repeat; animation: sc-drift 50s ease-in-out infinite alternate; }
.pg-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 5, 25, 0.1), rgba(10, 5, 25, 0.45)); }
.pg-fx, .about-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.about-fx { position: absolute; z-index: 0; }
.parchment {
  position: relative; width: min(760px, 100%); padding: clamp(6px, 3vw, 30px) clamp(6px, 4vw, 44px); color: #3b2412; line-height: 1.75; font-size: 16.5px;
  /* torn edges kept as they are, only the middle of the paper stretches with the text */
  border-style: solid; border-width: clamp(40px, 9vw, 70px) clamp(26px, 7vw, 52px);
  border-image: url("img/opening/parchment.webp") 150 110 fill / clamp(40px, 9vw, 70px) clamp(26px, 7vw, 52px) stretch;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: unroll 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: 50% 0;
}
@keyframes unroll { from { opacity: 0; transform: scaleY(0.6) translateY(-12px); clip-path: inset(0 0 60% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.parchment h1 { margin: 0 0 14px; text-align: center; font-size: clamp(28px, 6vw, 40px); color: #2a1706; }
.parchment h2 { margin: 22px 0 6px; font-size: 22px; color: #2a1706; }
.parchment h3 { margin: 18px 0 2px; font-size: 16.5px; color: #5a3310; }
.parchment p { margin: 0 0 12px; }
.parchment .pg-small { font-size: 13px; color: #6b4a2b; text-align: center; }
.parchment .pg-quote { text-align: center; margin-top: 20px; }
.parchment .pg-sign { text-align: center; margin-top: 16px; }
.parchment a { color: #7a3e0a; }
.pg-char.miguel { position: fixed; bottom: 0; left: 2%; width: min(26vw, 230px); z-index: 1; pointer-events: none; transform-origin: 50% 100%;
  animation: char-in 1s forwards, strum 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); }
@keyframes strum { from { transform: rotate(-2deg); } to { transform: rotate(2.5deg) translateY(-4px); } }
.chart-inst { display: flex; width: fit-content; margin: 6px auto 16px; background: rgba(90, 51, 16, 0.12); }
.chart-inst button { color: #3b2412; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.chart-grid .diagram { background: rgba(255, 255, 255, 0.72); box-shadow: 0 1px 3px rgba(60, 30, 0, 0.15); }
.chart-grid .diagram svg { width: 100%; height: auto; }
.magic-pad { width: 100%; padding: 14px 16px; border: 1px dashed rgba(90, 51, 16, 0.45); border-radius: 12px; background: rgba(255, 250, 235, 0.55);
  color: #3b2412; font-family: "Daniel Letters", "Daniel Letters", "Rubik", sans-serif; font-size: 17px; line-height: 1.9; resize: vertical;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.9em - 1px), rgba(90, 51, 16, 0.18) calc(1.9em - 1px), rgba(90, 51, 16, 0.18) 1.9em); }
.magic-pad:focus { outline: 2px solid rgba(122, 62, 10, 0.45); }

/* home: "who we are" on the lantern page */
.about-card { position: relative; margin: 22px calc(var(--gutter) * -1) 6px; padding: 30px var(--gutter); background: var(--pg) center / cover no-repeat; overflow: hidden; border-radius: 0; display: grid; justify-items: center; }
@media (min-width: 900px) { .about-card { margin-inline: 0; border-radius: 26px; } }
.about-card .parchment { z-index: 1; font-size: 15.5px; animation: none; }
.about-lead { font-weight: 700; font-size: 1.12em; text-align: center; }
.about-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.about-links a { padding: 7px 14px; border-radius: 999px; background: rgba(90, 51, 16, 0.12); color: #4a2a0c; text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.2s; }
.about-links a:hover { background: rgba(90, 51, 16, 0.22); }

/* the booklet's pages as stops inside the full songbook */
.song-list .book-insert a { position: relative; min-height: 92px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: linear-gradient(rgba(20, 8, 40, 0.1), rgba(20, 8, 40, 0.5)), var(--pg) center 30% / cover no-repeat; border-radius: 18px; color: #fff; overflow: hidden; filter: saturate(1.15) brightness(1.12); }
.bi-title { font-weight: 800; font-size: 19px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.bi-sub { font-size: 13px; color: #ffe8b0; }
.back-cover { display: grid; place-items: end center; min-height: 220px; margin-top: 18px; padding: 16px; border-radius: 22px; background: var(--pg) center / cover no-repeat; text-decoration: none; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.bc-title { font-weight: 800; font-size: 20px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 30px; }
.social a { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.strip-all { display: block; text-align: center; margin-top: 6px; font-size: 13px; color: #4c1d95; font-weight: 600; text-decoration: none; }

/* the cover greets you, then opens like a book */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0b0520; perspective: 1600px; }
.splash-cover { position: absolute; inset: 0; background: var(--pg) center / contain no-repeat; transform-origin: 100% 50%; transition: transform 1s cubic-bezier(0.5, 0, 0.3, 1), opacity 1s ease; }
.splash-cover::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--pg) center / cover no-repeat; filter: blur(28px) brightness(0.7); }
.splash { isolation: isolate; }
.splash-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-open { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 9vh); font-size: 18px; min-height: 54px; padding: 0 28px; animation: rise 0.8s 0.6s both, glow 2.4s 1.4s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 0 rgba(255, 215, 0, 0); } to { box-shadow: 0 0 34px rgba(255, 215, 0, 0.75); } }
.splash.opening .splash-cover { transform: rotateY(-100deg); opacity: 0; }
.splash.opening { background: transparent; transition: background 1s; }
.splash.opening .splash-open { opacity: 0; transition: opacity 0.3s; }
/* chord names inside diagrams are always read left to right (C#, not #C) */
.diagram svg text { direction: ltr; unicode-bidi: bidi-override; }
/* page turns between songs: the new song slides in from the side it came from */
@keyframes turn-next { from { opacity: 0; transform: perspective(1400px) translateX(-40px) rotateY(8deg); } to { opacity: 1; transform: none; } }
@keyframes turn-prev { from { opacity: 0; transform: perspective(1400px) translateX(40px) rotateY(-8deg); } to { opacity: 1; transform: none; } }
main[data-turn="next"] > .song-head, main[data-turn="next"] > .lyrics { animation: turn-next 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
main[data-turn="prev"] > .song-head, main[data-turn="prev"] > .lyrics { animation: turn-prev 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
main[data-turn="next"] > .lyrics > *, main[data-turn="prev"] > .lyrics > * { animation: none; }
main { perspective: 1400px; }/* "בנימה אישית": each line starts a letter of ג-ב-ר-מ-ל-כ; the letters glow in turn, then keep a quiet shimmer */
.acrostic p { margin: 0 0 4px; }
.acrostic .ac { display: inline-block; font-weight: 800; color: #3b2412; transition: color 0.6s; }
.acrostic.lit .ac { color: #b8741a; animation: ac-glow 1.1s ease both, ac-breath 9s ease-in-out 4s infinite; }
.acrostic.lit p:nth-child(2) .ac { animation-delay: 0.35s, 4.35s; } .acrostic.lit p:nth-child(3) .ac { animation-delay: 0.7s, 4.7s; }
.acrostic.lit p:nth-child(4) .ac { animation-delay: 1.05s, 5.05s; } .acrostic.lit p:nth-child(5) .ac { animation-delay: 1.4s, 5.4s; }
.acrostic.lit p:nth-child(6) .ac { animation-delay: 1.75s, 5.75s; }
@keyframes ac-glow { 0% { color: #3b2412; text-shadow: none; transform: none; } 45% { color: #e0a130; text-shadow: 0 0 14px rgba(255, 190, 70, 0.95); transform: translateY(-3px) scale(1.25); } 100% { color: #b8741a; text-shadow: 0 0 5px rgba(255, 190, 70, 0.45); transform: none; } }
@keyframes ac-breath { 0%, 88%, 100% { text-shadow: 0 0 5px rgba(255, 190, 70, 0.45); } 94% { text-shadow: 0 0 14px rgba(255, 190, 70, 0.95); } }
/* ================= arrival: the booklet as a 3D book (lib/pages.js splash) ================= */
html.splashing, html.splashing body { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 300; display: block; background: #07031a; isolation: isolate; perspective: none; overflow: hidden;
  --bw: min(62vw, 40vh, 420px); --bh: calc(var(--bw) * 1.414); --bd: calc(var(--bw) * 0.045); }
.sp-sky { position: absolute; inset: -6%; z-index: -2;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 190, 110, 0.18), transparent 55%), linear-gradient(180deg, rgba(7, 3, 26, 0.55), rgba(7, 3, 26, 0.9)), var(--pg) center / cover no-repeat;
  filter: blur(14px) saturate(1.2); animation: sc-drift 40s ease-in-out infinite alternate; }
.sp-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.65)); }
.sp-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sp-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1900px; perspective-origin: 50% 42%; }
.sp-float { transform-style: preserve-3d; animation: book-float 5.5s ease-in-out infinite alternate; margin-top: -6vh; }
@keyframes book-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.book { position: relative; direction: ltr; width: var(--bw); height: var(--bh); transform-style: preserve-3d; cursor: pointer; outline: none;
  transform: rotateX(10deg) rotateY(-24deg) rotateZ(-2deg); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.splash:not(.opening) .book:hover { transform: rotateX(8deg) rotateY(-18deg) rotateZ(-1deg) translateZ(20px); }
.book > * { position: absolute; inset: 0; }

/* back board, page block edges, spine */
.bk-back { transform: translateZ(calc(var(--bd) * -1)); border-radius: 9px 3px 3px 9px; background: linear-gradient(135deg, #2b1a5c, #140a34); box-shadow: 0 0 0 1px rgba(255, 215, 120, 0.2) inset; }
.bk-block { transform-style: preserve-3d; }
.bk-block i { position: absolute; background: repeating-linear-gradient(to var(--dir, right), #f4ead2 0 1px, #d9ccab 1px 2px); }
.bk-block i:nth-child(1) { --dir: right; left: 2px; top: 1.2%; bottom: 1.2%; width: var(--bd); transform-origin: 0 50%; transform: rotateY(90deg); }            /* fore-edge */
.bk-block i:nth-child(2) { --dir: bottom; left: 1.5%; right: 0; top: 2px; height: var(--bd); transform-origin: 50% 0; transform: rotateX(-90deg); }          /* top */
.bk-block i:nth-child(3) { --dir: bottom; left: 1.5%; right: 0; bottom: 2px; height: var(--bd); transform-origin: 50% 100%; transform: rotateX(90deg); }     /* bottom */
.bk-spine { left: 100%; width: var(--bd); transform-origin: 0 50%; transform: rotateY(90deg);
  background: linear-gradient(90deg, #1a0d40, #3a2380 50%, #1a0d40), #2a1860; box-shadow: inset 0 0 0 1px rgba(255, 215, 120, 0.25); }
.bk-spine::before, .bk-spine::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #b8862e, #ffe39a, #b8862e); }
.bk-spine::before { top: 9%; } .bk-spine::after { bottom: 9%; }

/* the first printed page: the lantern page with "מעגל מחווה לדיסני הוא..." */
.bk-page.first { inset: 1.2% 0 1.2% 1.5%; transform: translateZ(-1.5px); border-radius: 6px 2px 2px 6px; overflow: hidden;
  background: var(--pg) center / cover no-repeat; box-shadow: inset -18px 0 26px -18px rgba(60, 30, 0, 0.55); display: grid; place-items: center; }
.pp-parch { direction: rtl; width: 80%; padding: 10% 8%; text-align: center; color: #3b2412; font-size: calc(var(--bw) * 0.036); line-height: 1.55; font-weight: 700;
  border-style: solid; border-width: calc(var(--bw) * 0.07) calc(var(--bw) * 0.05); border-image: url("img/opening/parchment.webp") 150 110 fill / calc(var(--bw) * 0.07) calc(var(--bw) * 0.05) stretch; }
.pp-parch img { width: 70%; margin: -30% auto 6%; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.pp-parch p { margin: 0; }
.pp-glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at 45% 45%, rgba(255, 245, 210, 0.95), rgba(255, 200, 110, 0.35) 45%, transparent 75%); mix-blend-mode: screen; }
.bk-rays { inset: -45% -60%; transform: translateZ(2px); opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg at 42% 50%, rgba(255, 226, 150, 0.5) 0deg 5deg, transparent 5deg 17deg);
  -webkit-mask-image: radial-gradient(circle at 42% 50%, #000 0 18%, transparent 55%); mask-image: radial-gradient(circle at 42% 50%, #000 0 18%, transparent 55%); }

/* blank leaves that riffle over after the cover */
.bk-leaf { inset: 1.2% 0 1.2% 1.5%; transform-origin: 100% 50%; transform-style: preserve-3d; transform: translateZ(calc(var(--k) * 0.6px));
  background: repeating-linear-gradient(180deg, transparent 0 11px, rgba(120, 90, 40, 0.07) 11px 12px), radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.6), transparent 60%), linear-gradient(90deg, #efe3c4, #fbf5e6 70%, #e9dcb9);
  border-radius: 6px 2px 2px 6px; box-shadow: inset 12px 0 18px -14px rgba(90, 60, 20, 0.5); backface-visibility: visible; }

/* the hard cover: the booklet's cover outside, the lantern art as the endpaper inside */
.bk-cover { transform-origin: 100% 50%; transform-style: preserve-3d; transform: translateZ(3px); }
.cv-front, .cv-inside { position: absolute; inset: 0; border-radius: 9px 3px 3px 9px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.cv-front { background: var(--pg) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 225, 150, 0.35), inset -10px 0 14px -8px rgba(0, 0, 0, 0.55), inset 7px 0 10px -8px rgba(255, 255, 255, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.cv-front::after { content: ""; position: absolute; top: 0; bottom: 0; right: 5.5%; width: 1.5%; background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.2)); }   /* the hinge groove */
.cv-sheen { position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.34) 50%, transparent 58%); animation: sheen 5.5s ease-in-out infinite 1.2s; mix-blend-mode: soft-light; }
@keyframes sheen { 0% { transform: translateX(-60%); } 45%, 100% { transform: translateX(60%); } }
.cv-inside { transform: rotateY(180deg); background: linear-gradient(rgba(40, 20, 80, 0.35), rgba(40, 20, 80, 0.55)), var(--pg) center / cover no-repeat; box-shadow: inset 16px 0 26px -16px rgba(0, 0, 0, 0.6); }
.bk-shadow { inset: auto 6% -9% 6%; height: 12%; transform: translateZ(calc(var(--bd) * -1.2)) rotateX(90deg); transform-origin: 50% 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.55), transparent 70%); filter: blur(6px); }

.sp-ui { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 7vh); display: grid; justify-items: center; gap: 10px; animation: sp-ui-in 1s 0.6s both cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sp-ui-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sp-open { position: relative; min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1px solid rgba(255, 220, 140, 0.75); cursor: pointer;
  color: #fff6dc; font: inherit; font-size: 18px; font-weight: 600; letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(255, 210, 120, 0.22), rgba(120, 60, 180, 0.25)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(0, 0, 0, 0.4); animation: gold-pulse 2.8s ease-in-out infinite 1.6s; transition: transform 0.15s, background 0.2s; }
.sp-open:hover { background: linear-gradient(180deg, rgba(255, 210, 120, 0.35), rgba(120, 60, 180, 0.35)); }
.sp-open:active { transform: scale(0.96); }
@keyframes gold-pulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 rgba(255, 200, 100, 0); }
  50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 38px rgba(255, 200, 100, 0.55); } }
.sp-ui small { color: rgba(255, 240, 210, 0.7); font-size: 12.5px; letter-spacing: 0.08em; }
@media (prefers-reduced-motion: reduce) { .sp-float, .cv-sheen, .sp-sky { animation: none; } .book { transform: none; } }
#home-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; overflow: hidden; }
#home-sky .sky-layer { position: absolute; inset: -6%; background: center / cover no-repeat; opacity: 0; transition: opacity 2.6s ease-in-out; will-change: opacity, transform; }
#home-sky .sky-layer.on { opacity: 1; }
#home-sky .sky-layer.drift-1 { animation: skyDrift1 46s ease-in-out infinite alternate; }
#home-sky .sky-layer.drift-2 { animation: skyDrift2 52s ease-in-out infinite alternate; }
#home-sky .sky-layer.drift-3 { animation: skyDrift3 40s ease-in-out infinite alternate; }
@keyframes skyDrift1 { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-2%, 1.5%); } }
@keyframes skyDrift2 { from { transform: scale(1.08) translate(1.5%, 0); } to { transform: scale(1) translate(-1%, -1.5%); } }
@keyframes skyDrift3 { from { transform: scale(1.02) translate(0, 1.5%); } to { transform: scale(1.1) translate(2%, -1%); } }
#home-sky .sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the veil keeps the cards readable but lets the picture breathe through: his purple-navy, light in the middle */
#home-sky .sky-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(56, 24, 131, 0.55) 0%, rgba(2, 39, 117, 0.42) 40%, rgba(11, 19, 64, 0.62) 100%); }
:root[data-theme="night"] #home-sky .sky-veil { background: linear-gradient(180deg, rgba(7, 4, 13, 0.6), rgba(7, 4, 13, 0.72)); }
html[data-motion="calm"] #home-sky .sky-layer { animation: none !important; transition: none; }
/* on the home page the picture is the background; the pattern + tint stay only as the first frame while it loads */
body[data-page="home"]::after { opacity: 0.35; }
/* chord diagrams on a song page use the song's colour, not a fixed purple */
body[data-page="song"] { --dot: hsl(var(--h1) var(--sat) 42%); --dot-soft: hsl(var(--h1) var(--sat) 62%); }

.replay-cover { margin-top: 10px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255, 220, 140, 0.45); background: rgba(255, 210, 120, 0.1); color: #ffe8b0; font: inherit; font-size: 13.5px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s; }
.replay-cover:hover { background: rgba(255, 210, 120, 0.2); box-shadow: 0 0 18px rgba(255, 200, 100, 0.35); }

/* speaker names and bracketed notes: thin, as in the printed booklet */
.l-tx .l-thin { font-weight: 300; }

/* ================= phone polish ================= */
/* sheets (settings, chords, requests) keep their own dark colours, whatever page they open over */
.sheet-card { --text: #f7f3ff; --muted: #cbbfe6; --card: rgba(255, 255, 255, 0.08); --card-strong: rgba(255, 255, 255, 0.15); --line: rgba(255, 255, 255, 0.18); color: var(--text); }
.sheet-card .btn-ghost { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.32); color: #fff; }
.sheet-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.sheet-card .team-link { color: rgba(255, 240, 210, 0.8); }
.sheet-card .hint { color: var(--muted); }

.hub-logo { width: min(250px, 64vw); }
.book-card { background-position: center 40%; }
.book-card-title { font-size: 30px; }

@media (max-width: 700px) {
  :root { --gutter: 14px; }
  main { padding: 10px var(--gutter) 96px; }
  /* home: less air between blocks */
  .hub-hero { padding: 0; }
  .hub-tag { font-size: 14px; }
  .replay-cover { margin-top: 6px; padding: 5px 13px; font-size: 12.5px; }
  .book-card { min-height: 150px; margin: 12px 0 10px; padding: 16px; border-radius: 18px; }
  .book-card-title { font-size: 27px; }
  .book-card-go { width: 42px; height: 42px; }
  .quick { gap: 6px; } .quick-btn { min-height: 44px; font-size: 13.5px; border-radius: 12px; }
  .section-title { margin: 18px 0 10px; font-size: 18px; }
  .about-card { margin-top: 14px; padding: 18px 10px; }
  .movie-grid { gap: 8px; }
  /* lists */
  .list-hero { min-height: 118px; padding: 14px var(--gutter); margin: -10px calc(var(--gutter) * -1) 2px; }
  .search { margin: 12px 0 10px; padding: 11px 14px; font-size: 16px; }
  .song-list { gap: 6px; }
  .song-item a { gap: 10px; padding: 7px 10px; }
  .song-thumb { flex-basis: 46px; height: 46px; border-radius: 10px; }
  .song-title { font-size: 16px; } .song-movie { font-size: 12.5px; }
  .song-num { flex-basis: 30px; height: 30px; font-size: 12.5px; }
  /* song: a slim picture band instead of a tall "forehead"; the title sits on its lower edge */
  .song-head { padding: 0 0 8px; }
  .song-head h1 { font-size: clamp(26px, 8.4vw, 36px); filter: drop-shadow(0 1px 0 hsl(var(--h1) 70% 97% / 0.9)) drop-shadow(0 0 10px hsl(var(--h1) 70% 97% / 0.9)); }
  .song-kicker { font-size: 13px; } .song-kicker .song-num { flex-basis: 24px; height: 24px; font-size: 11px; }
  .song-head .credits { font-size: 11.5px; margin-top: 4px; line-height: 1.5; }
  .capo-pill { margin-top: 6px; font-size: 12.5px; padding: 4px 10px; }
  .moments-card { padding: 8px 10px; margin: 0.3em 0 0.7em; }
  .lyrics { padding-inline: 0.2em; }
  /* bar charts always fit the screen width */
  .l-bars { width: 100%; }
  .bars { width: 100%; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); padding: 5px 2px; }
  .bars .m { padding: 0 0.3em; gap: 0.25em; flex-wrap: wrap; font-size: 0.92em; }
  .bars .m.rep-open { padding-left: 0.75em; } .bars .m.rep-close { padding-right: 0.75em; }
  .song-nav { margin: 22px 0 80px; }
  /* sheets */
  .sheet-card { padding: 18px 14px calc(env(safe-area-inset-bottom) + 18px); }
}/* repeat brackets from the booklet: the lines, then a curly bracket and how many times (on the line-end side, like the print) */
.l-repeat { display: flex; align-items: stretch; gap: 6px; margin: 0.1em 0 0.35em; }
.lr-body { flex: 0 1 auto; min-width: 0; }
.lr-mark { flex: 0 0 auto; display: flex; align-items: center; gap: 3px; color: var(--section); padding-top: 1.05em; }
.lr-brace { width: 11px; align-self: stretch; height: auto; }
.lr-mark b { font-size: 0.95em; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.ltr-song .lr-brace { transform: scaleX(-1); }
.no-chords-song .lr-mark, .hide-chords .lr-mark { padding-top: 0; }
/* ================= navigation: search from anywhere, your songs, never a dead end ================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; inset-inline-start: 12px; z-index: 400; padding: 10px 16px; border-radius: 12px; background: var(--gold-a); color: #1a0b2e; font-weight: 700; text-decoration: none; transition: top 0.15s; }
.skip-link:focus { top: calc(env(safe-area-inset-top) + 8px); }
.linklike { border: 0; padding: 0; background: none; color: var(--chord); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.star { color: #f5b82e; font-size: 0.85em; }
mark { background: color-mix(in srgb, var(--chord) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.lyric-hit { font-style: italic; }

/* home: the search field is the first thing under the logo */
.hub-search { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; min-height: 58px; margin: 16px auto 0; padding: 0 18px;
  border: 1.5px solid rgba(255, 220, 140, 0.55); border-radius: 18px; background: rgba(12, 5, 28, 0.55); color: #fff6dc; font-size: 16.5px; text-align: start; cursor: text;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.2s, background 0.2s; }
.hub-search:hover { border-color: rgba(255, 220, 140, 0.9); background: rgba(12, 5, 28, 0.7); }
.hub-search svg { flex: 0 0 auto; color: #ffd166; }
.hub-search span { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-purpose { margin: 10px auto 0; max-width: 560px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.section-title.small { font-size: 17px; margin: 20px 0 8px; }
.section-title small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 400; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.song-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; max-width: 220px; min-height: 52px; padding: 5px 12px 5px 5px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; scroll-snap-align: start; }
[dir="rtl"] .song-chip { padding: 5px 5px 5px 12px; }
.song-chip .song-thumb { flex: 0 0 40px; height: 40px; border-radius: 10px; }
.chip-title { font-weight: 600; font-size: 14.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.song-chip:hover, .song-chip:focus-visible { background: var(--card-strong); }
.quick-btn { text-decoration: none; color: inherit; }
.replay-row { margin: 14px 0 0; }

/* song page: the favourite star beside the song number */
.fav-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -10px -8px -10px 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--chord); font-size: 22px; line-height: 1; cursor: pointer; }
.fav-btn[aria-pressed="true"] { color: #e8a317; }
.fav-btn:hover { background: var(--card); }

/* the finder: a full-screen sheet on phones, a floating panel on wide screens */
html.finder-open, html.finder-open body { overflow: hidden; }
.finder { position: fixed; inset: 0; z-index: 120; background: rgba(6, 2, 16, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.finder-card { --text: #f7f3ff; --muted: #b9acd8; --card: rgba(255, 255, 255, 0.06); --card-strong: rgba(255, 255, 255, 0.12); --line: rgba(255, 255, 255, 0.14); --chord: #ffd166;
  position: absolute; inset: 0; display: flex; flex-direction: column; background: #150a2b; color: var(--text); animation: finder-in 0.18s ease-out; }
@keyframes finder-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 760px) { .finder-card { inset: 8vh auto auto 50%; width: 640px; max-height: 80vh; transform: translateX(-50%); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: none; } }
.finder-bar { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .finder-bar { padding-top: 12px; } }
.finder-bar svg { flex: 0 0 auto; color: var(--chord); }
#finder-q { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--card); color: var(--text); font: inherit; font-size: 18px; outline: none; }
#finder-q:focus-visible { box-shadow: 0 0 0 2px var(--chord); }
#finder-q::placeholder { color: var(--muted); }
.finder-close { flex: 0 0 auto; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.finder-close:hover { color: var(--text); background: var(--card); }
.finder-status { margin: 0; padding: 0 16px; color: var(--muted); font-size: 13px; }
.finder-status:not(:empty) { padding: 8px 16px 0; }
.finder-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px calc(env(safe-area-inset-bottom) + 16px); }
.f-group { padding: 14px 8px 6px; color: var(--chord); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.f-item { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 8px; border-radius: 14px; text-decoration: none; color: inherit; }
.f-item[aria-selected="true"], .f-item:hover, .f-item:focus-visible { background: var(--card-strong); outline: none; }
.f-item .song-thumb { flex: 0 0 46px; height: 46px; border-radius: 10px; }
.f-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.f-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.f-sub { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-num { flex: 0 0 auto; min-width: 28px; color: var(--muted); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.f-empty { padding: 36px 16px; text-align: center; color: var(--muted); line-height: 1.6; }
.f-empty .btn-ghost { margin-top: 10px; color: var(--text); }

/* a song link that leads nowhere */
.not-found { max-width: 520px; margin: 8vh auto 0; text-align: center; line-height: 1.6; }
.not-found h1 { margin: 0 0 8px; font-size: 28px; }
.not-found p { color: var(--muted); margin: 0 0 12px; }
.not-found a:not(.btn) { color: var(--chord); font-weight: 600; }
.not-found .btn-ghost { text-decoration: none; }

/* short confirmations */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 86px); z-index: 150; translate: -50% 20px; padding: 10px 18px; border-radius: 999px;
  background: rgba(20, 10, 40, 0.94); color: #fff6dc; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity 0.2s, translate 0.2s; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.toast.on { opacity: 1; translate: -50% 0; }

/* ================= song reader: "Aa" panel, auto-scroll, cinema mode ================= */
.bb-read span { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.read-pop { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 72px); translate: -50% 0; z-index: 36; display: block; width: min(420px, calc(100vw - 20px));
  padding: 12px; border-radius: 20px; background: #170b2e; color: #f7f3ff; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.rp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 10px; font-weight: 500; }
.read-pop .stepper { background: rgba(255, 255, 255, 0.08); }
.read-pop .stepper button { width: 46px; height: 46px; font-size: 17px; font-weight: 700; }
.read-pop .stepper .val { min-width: 36px; font-weight: 700; }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-btn { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); color: inherit; font-size: 14.5px; font-weight: 500; text-align: start; cursor: pointer; }
.rp-btn span { flex: 0 0 22px; font-size: 18px; text-align: center; }
.rp-btn:hover { background: rgba(255, 255, 255, 0.12); }
.rp-btn[aria-pressed="true"] { border-color: #ffd166; background: rgba(255, 209, 102, 0.12); }
.rp-more { display: block; width: 100%; margin-top: 8px; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: #cbbfe6; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rp-more:hover { color: #fff; }

.auto-scroll { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 12px); translate: -50% 0; z-index: 34; display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(15, 8, 30, 0.9); color: #fff6dc; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.auto-scroll button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: inherit; font-size: 18px; cursor: pointer; }
.auto-scroll .as-play { background: #ffd166; color: #1a0b2e; font-size: 14px; font-weight: 700; }
.as-speed { min-width: 70px; text-align: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }
/* auto-scroll running: its controls ARE the song bar (one bar, same place) */
.songbar.scrolling > :not(.auto-scroll) { display: none !important; }
.songbar .auto-scroll { position: static; translate: none; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#bb-scroll[aria-pressed="true"] { background: rgba(255, 209, 102, 0.25); color: #ffd166; }   /* armed: the next song scrolls by itself */

/* cinema mode (the moon): a dark room, warm light text, the art only as a faint memory, nothing moving */
:root[data-theme="night"] body[data-page="song"] {
  --text: hsl(var(--h1) 18% 88%); --muted: hsl(var(--h1) 10% 62%);
  --chord: hsl(var(--h1) 70% 74%); --section: hsl(var(--h2) 60% 72%);
  background: hsl(var(--h1) 30% 4%);
}
:root[data-theme="night"] body[data-page="song"] .sc-bg { opacity: 0 !important; }
:root[data-theme="night"] body[data-page="song"] .sc-char, :root[data-theme="night"] body[data-page="song"] .sc-fx { display: none; }
:root[data-theme="night"] body[data-page="song"] .song-head h1 { animation: none; background: none; color: var(--text); -webkit-background-clip: border-box; background-clip: border-box; filter: none; }
:root[data-theme="night"] body[data-page="song"] .lyrics > *, :root[data-theme="night"] body[data-page="song"] main > * { animation: none; }
:root[data-theme="night"] body[data-page="song"] .l-tx { font-weight: 500; }
:root[data-theme="night"] .songbar { background: rgba(10, 6, 16, 0.94); }
:root[data-theme="night"] #btn-theme { color: #ffd166; }
/* the user asked for no background motion: everything stays put, on every page */
html[data-motion="calm"] *, html[data-motion="calm"] *::before, html[data-motion="calm"] *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }

/* ================= accessibility and first paint ================= */
/* a clear focus ring for keyboard users, in every theme (the mouse and touch never show it) */
:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
body[data-page="song"] main :focus-visible { outline-color: var(--chord); }
.icon-btn:focus-visible, .bar-btn:focus-visible, .seg-ctl button:focus-visible, .stepper button:focus-visible, .song-item a:focus-visible,
.movie-card:focus-visible, .f-item:focus-visible, .nav-card:focus-visible, .quick-btn:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
main:focus { outline: none; }
/* touch targets: at least 44px for everything you press while holding the phone in one hand */
.seg-ctl button, .songbar .seg-ctl button { min-height: 44px; }
.stepper button, .songbar .stepper button { width: 44px; height: 44px; }
.moment .m-src { width: 34px; height: 34px; }
.room-banner button { min-height: 36px; }
.req-vote { min-height: 60px; }
/* before the app starts: the logo and a line, never a blank screen */
.boot { display: grid; justify-items: center; gap: 10px; padding: 18vh 16px 0; color: var(--muted); text-align: center; }
.boot img { width: 180px; height: auto; opacity: 0.9; animation: boot-breathe 1.6s ease-in-out infinite alternate; }
@keyframes boot-breathe { from { opacity: 0.55; } to { opacity: 1; } }
/* the system asks for high contrast: solid backgrounds, no see-through veils */
@media (prefers-contrast: more) {
  :root { --muted: #e6dcfa; --line: rgba(255, 255, 255, 0.4); }
  body[data-page="song"] { --muted: hsl(var(--h1) 30% 20%); }
  .sc-veil { background: hsl(var(--h1) 70% 97%) !important; }
  :root[data-theme="night"] .sc-veil { background: #000 !important; }
}

/* ================= legal pages and footer ================= */
.footnote p { margin: 0 auto 10px; max-width: 640px; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.legal-links a { display: inline-block; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.legal-links a:hover { color: var(--text); background: var(--card); }
body[data-page="song"] .footnote { padding-bottom: 110px; }
.song-purpose { margin: 26px 0 0; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.song-purpose a { color: inherit; }
.legal { max-width: 720px; margin: 0 auto; line-height: 1.75; font-size: 16px; }
.legal h1 { margin: 10px 0 2px; font-size: clamp(26px, 6vw, 34px); }
.legal h2 { margin: 26px 0 6px; font-size: 19px; color: #ffe08a; }
.legal p, .legal li { color: var(--text); }
.legal ul, .legal ol { padding-inline-start: 22px; margin: 6px 0 12px; }
.legal li { margin-bottom: 4px; }
.legal a { color: #ffd166; }
.lg-date { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.lg-lead { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.lg-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; text-decoration: none; }
.lg-tabs a[aria-current="page"] { background: #ffd166; border-color: #ffd166; color: #1a0b2e; font-weight: 700; }
.lg-form { display: grid; gap: 4px; margin-top: 10px; }
.lg-form label { margin-top: 10px; font-weight: 600; font-size: 14.5px; }
.lg-form .field { margin: 0; font-size: 16px; }
.lg-form select.field { appearance: auto; }
.lg-form select.field option { color: #1a0b2e; }
.lg-form .btn { margin-top: 14px; justify-self: start; }
.lg-help { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.lg-msg { min-height: 1.4em; margin: 6px 0 0; color: #ffd166; }
.sheet-card .hint a { color: inherit; }

/* phones: the bottom bar keeps what you reach for while playing; transposing moves into the settings (the capo button needs the room) */
.rp-tr { display: none; }
@media (max-width: 479px) {
  /* the key stays in the bar (Daniel); the "+2" is already in the pill under the title, so the bar keeps just ♯ ♭ */
  .songbar .stepper .tr-val { display: none; }
  .songbar .stepper button { width: 36px; height: 38px; }
  .songbar { gap: 4px; padding: 5px; }
  .songbar .seg-ctl button { padding: 0 9px; font-size: 13.5px; }
  .songbar .bar-btn { width: 40px; height: 40px; }
  .capo-btn { padding: 0 10px; }
}
@media (max-width: 399px) {
  /* the smallest phones: the chord diagrams move into the settings (and a tap on any chord shows it) */
  #bb-chords { display: none; }
  .songbar .seg-ctl button { padding: 0 7px; font-size: 13px; }
  .capo-btn { padding: 0 8px; font-size: 13px; }
}
.rp-chords { display: none; }
@media (max-width: 399px) { .rp-chords { display: flex; } }
/* phones on their side: every pixel of height goes to the lyrics */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { padding-top: calc(env(safe-area-inset-top) + 2px); padding-bottom: 2px; }
  .brand img { height: 30px; } .icon-btn { width: 40px; height: 40px; }
  .room-banner { top: calc(env(safe-area-inset-top) + 45px); padding: 4px 10px; }
  main { padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right)); }
}
/* the projector screen shows only the song */
body.projector .song-purpose, body.projector .auto-scroll, body.projector .skip-link { display: none; }

/* ================= the extended songbook (archive) ================= */
.archive-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 12px 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.archive-card b { display: block; font-size: 17px; }
.archive-card small { color: var(--muted); font-size: 13px; }
.archive-card:hover, .archive-card:focus-visible { background: var(--card-strong); }
.arch-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--chord) 18%, transparent); color: var(--chord);
  font-size: 12px; font-weight: 600; text-decoration: none; }

.films-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.arch-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 14px; cursor: pointer; }
.arch-toggle input { width: 20px; height: 20px; accent-color: var(--gold-a); }
.ver-ctl { margin-top: 10px; }

/* ================= "הדגשת הקטע": a soft highlight that flows with the part being sung (lib/focus.js) =================
   One motion for everything - where the highlight is, its height, the dimming of the rest of the song: the same shape
   (a calm start, faster through the middle, a soft landing, never past the target) and the same length, 0.7s. The
   highlight's path is drawn in focus.js so a new target mid-move bends it without stopping; the dimming here follows
   on the matching curve. */
.lyrics.focus-on { --focus-ease: cubic-bezier(0.65, 0, 0.35, 1); --focus-dur: 0.7s; position: relative; isolation: isolate; }
/* the lines' entrance animation must let go of their opacity when it ends (backwards, not both), or the dimming never shows */
.lyrics.focus-on > :not(.focus-blob) { position: relative; z-index: 1; animation-fill-mode: backwards; transition: opacity var(--focus-dur) var(--focus-ease); }
/* the rest of the song only steps back a little: still there to read, just quieter */
.lyrics.focus-on > :not(.focus-blob):not(.is-focus):not(.moments-card) { opacity: 0.75; }
/* a tint of the song's own colour, not a dark card: no floating shadow, only a hairline to hold its edge */
.focus-blob { position: absolute; z-index: 0; top: 0; inset-inline: -12px; height: 0; border-radius: 22px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, hsl(var(--h1) 55% 50% / 0.2), hsl(var(--h1) 55% 42% / 0.26));
  box-shadow: inset 0 0 0 1px hsl(var(--h1) 50% 35% / 0.1);
  transition: opacity var(--focus-dur) var(--focus-ease); will-change: transform, height; }   /* its movement is drawn frame by frame in focus.js */
.focus-blob.on { opacity: 1; }
/* the lines' entrance animation (.lyrics > *) must never touch the highlight: it would hold its transform at none */
.lyrics .focus-blob { animation: none; }
/* cinema: only a little lighter than the dark room, no glow */
:root[data-theme="night"] .focus-blob { background: linear-gradient(to bottom, hsl(var(--h1) 40% 60% / 0.1), hsl(var(--h1) 40% 55% / 0.13)); box-shadow: inset 0 0 0 1px hsl(var(--h1) 45% 70% / 0.07); }
@media (prefers-reduced-motion: reduce) { .focus-blob, .lyrics.focus-on > * { transition: none; } }
html[data-motion="calm"] .focus-blob, html[data-motion="calm"] .lyrics.focus-on > * { transition: none; }

/* ================= the end of the page: no empty scroll below the song ================= */
/* only the very end needs room for the bottom bar; the next-song card and the footer follow each other closely */
main { padding-bottom: 24px; }
.song-nav { margin-bottom: 8px; }
body[data-page="song"] .footnote { padding-bottom: calc(env(safe-area-inset-bottom) + 84px); }
@media (max-width: 700px) {
  main { padding-bottom: 20px; }
  .song-nav { margin: 18px 0 6px; }
}

/* ================= the song's illustration: the whole picture in a card after the lyrics, large on a tap ================= */
.art-viewer { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: calc(env(safe-area-inset-top) + 48px) 12px calc(env(safe-area-inset-bottom) + 78px);
  background: rgba(8, 5, 14, 0.94); opacity: 0; transition: opacity 0.25s ease; }
.art-viewer.on { opacity: 1; }
.art-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.av-cap { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 12px); left: 0; right: 0; margin: 0; padding: 0 16px; text-align: center; color: #e9e2f5; font-size: 14px; display: grid; gap: 3px; }
.av-cap b { font-weight: 600; }
.av-credit { font-size: 13px; color: #cdbff0; }
.av-credit:empty { display: none; }
.av-close, .av-prev, .av-next { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 22px; cursor: pointer; }
.av-close { top: calc(env(safe-area-inset-top) + 10px); inset-inline-start: 12px; font-size: 18px; }
.av-prev { top: 50%; right: 10px; } .av-next { top: 50%; left: 10px; }
@media (prefers-reduced-motion: reduce) { .art-viewer { transition: none; } }
body.projector .end-figs, body.projector .head-fig { display: none; }
}

/* a part set in the admin as "no highlight": the highlight fades out there and every line reads at full strength */
.lyrics.focus-rest > .focus-blob { opacity: 0; transition: opacity var(--focus-dur) var(--focus-ease); }
.lyrics.focus-on.focus-rest > :not(.focus-blob):not(.is-focus):not(.moments-card) { opacity: 1; }

/* ================= the song's characters, cut out of the picture (tools/make_figures.py) =================
   the scenery alone is the page backdrop (its pale parts see-through); the characters stand in the free places:
   wide screens - the empty margins beside the lyrics; phones - beside the title, and the rest after the lyrics */
.sc-fig { position: absolute;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22)); opacity: 0; user-select: none;
  animation: char-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--d) + 0.4s); }
.sc-fig.s-l { left: 8px; } .sc-fig.s-r { right: 8px; }
.sc-fig.down { bottom: 0; } .sc-fig.up { top: 90px; }
.head-fig { display: none; }
@media (max-width: 1099px) {
  /* on phones the scenery frames the page: a light veil, the painting's pale middle is already see-through */
  .sc-veil { background: hsl(var(--h1) 70% 97% / 0.5); }
  :root[data-theme="night"] .sc-veil { background: hsl(var(--h1) 40% 5% / 0.93); }
  .song-head.has-fig { position: relative; --fw: min(30vw, 128px); }
  .song-head.fig-l { padding-left: var(--fw); } .song-head.fig-r { padding-right: var(--fw); }
  .head-fig { display: block; position: absolute; bottom: 0;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2)); opacity: 0; animation: char-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s forwards; }
  .head-fig.s-l { left: -4px; } .head-fig.s-r { right: -4px; }
  .end-figs { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 26px 0 -8px; }
}
@media (min-width: 1100px) { .end-figs { display: none; } }
:root[data-theme="night"] body[data-page="song"] .sc-fig { display: none; }
:root[data-theme="night"] body[data-page="song"] .head-fig, :root[data-theme="night"] body[data-page="song"] .end-figs { opacity: 0.45; filter: saturate(0.6); animation: none; }
@media (prefers-reduced-motion: reduce) { .sc-fig, .head-fig { opacity: 1; animation: none; } }
html[data-motion="calm"] .sc-fig, html[data-motion="calm"] .head-fig { opacity: 1; animation: none; }

/* ================= the song's header: number · the name, large · the film, a little smaller but clear ·
   the credits - the role in bold, the names in the regular weight ================= */
.song-kicker { display: flex; justify-content: center; align-items: center; gap: 6px; }
.song-film { margin-top: 4px; font-size: clamp(17px, 4.6vw, 21px); font-weight: 600; line-height: 1.25; color: hsl(var(--h1) 40% 30%); }
:root[data-theme="night"] .song-film { color: hsl(var(--h1) 40% 78%); }
.song-head .credits { margin-top: 8px; font-weight: 400; }
.song-head .credits b { font-weight: 700; color: var(--text); opacity: 0.85; }
@media (max-width: 1099px) { .song-film { font-size: clamp(16px, 4.6vw, 19px); margin-top: 2px; } .song-head .credits { margin-top: 6px; } }
body.projector .song-film { font-size: 3.2vh; }

/* next / previous song straight after the lyrics */
body[data-page="song"] .song-nav { margin: 22px 0 6px; }

/* the characters open the whole picture on a tap (the card at the end of the page is gone) */
#song-figs { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
body:not([data-page="song"]) #song-figs { display: none; }
.sc-fig, .head-fig, .end-figs button { padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.sc-fig { pointer-events: auto; line-height: 0; }
.sc-fig img { display: block; width: auto; height: auto; max-height: min(52vh, 560px); max-width: calc((100vw - 900px) / 2 - 10px); }
.head-fig img { display: block; width: auto; height: auto; max-width: var(--fw); max-height: 150px; }
.end-figs button img { display: block; max-height: 170px; max-width: 100%; height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2)); }
.end-figs button { max-width: 46%; }
.sc-fig:focus-visible, .head-fig:focus-visible, .end-figs button:focus-visible { outline: 3px solid var(--chord); outline-offset: 4px; border-radius: 12px; }
@media (hover: hover) { .sc-fig:hover img, .head-fig:hover img, .end-figs button:hover img { transform: scale(1.03); transition: transform 0.3s ease; } }
@media (max-width: 1099px) { #song-figs { display: none; } }
:root[data-theme="night"] body[data-page="song"] #song-figs { display: none; }
#song-figs .sc-fixed { position: absolute; inset: 0; }
/* the whole picture fits the screen in the viewer (a percentage height does not resolve inside the grid) */
.art-viewer img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 132px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }

/* "Aa": all the song's settings in one panel - switches show on / off and keep the panel open */
.read-pop { max-height: calc(100dvh - 150px); overflow-y: auto; }
.rp-inst button { padding: 0 10px; min-height: 40px; font-size: 14px; }
.rp-sw { position: relative; }
.rp-dot { margin-inline-start: auto; width: 30px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); position: relative; flex: 0 0 30px; transition: background 0.2s ease; }
.rp-dot::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start 0.2s ease; }
.rp-sw[aria-checked="true"] { border-color: #ffd166; background: rgba(255, 209, 102, 0.12); }
.rp-sw[aria-checked="true"] .rp-dot { background: #ffd166; }
.rp-sw[aria-checked="true"] .rp-dot::after { inset-inline-start: 14px; }
.rp-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.rp-foot .rp-more { text-decoration: none; }
.rp-foot .rp-more { width: auto; flex: 1 1 0; margin-top: 0; text-align: center; display: flex; align-items: center; justify-content: center; }

/* a dark picture behind the page (Shiny's cave): in day mode a stronger light veil, so the words stay readable */
:root:not([data-theme="night"]) #song-bg.dark-art .sc-veil { background: radial-gradient(ellipse 50% 95% at 50% 50%, hsl(var(--h1) 60% 97% / 0.9) 0%, hsl(var(--h1) 60% 97% / 0.84) 60%, hsl(var(--h1) 60% 97% / 0.55) 100%); }
@media (max-width: 1099px) { :root:not([data-theme="night"]) #song-bg.dark-art .sc-veil { background: hsl(var(--h1) 60% 97% / 0.8); } }

/* two languages: the Circle's own version is marked, and the other one says so with a way back */
.ver-ours { font-size: 11px; opacity: 0.75; font-weight: 500; }
.ver-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 10px auto 0; max-width: 560px;
  padding: 8px 12px; border-radius: 12px; background: hsl(var(--h1) 70% 45% / 0.1); border: 1px solid hsl(var(--h1) 60% 45% / 0.25); font-size: 13.5px; }
.ver-review { color: #b45309; font-weight: 700; }
.ver-back { font: inherit; font-size: 13.5px; font-weight: 600; border: 0; border-radius: 999px; padding: 5px 14px; cursor: pointer;
  background: var(--chord); color: #fff; }
:root[data-theme="night"] .ver-review { color: #fbbf24; }

/* the language switch: a gliding pill under the two buttons */
.ver-ctl { position: relative; isolation: isolate; }
.ver-ctl button { position: relative; z-index: 1; transition: color 0.3s ease; }
.ver-ctl button[aria-pressed="true"] { background: transparent; color: #fff; }
.ver-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; z-index: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(45deg, var(--accent-a, var(--violet-a, #8b5cf6)), var(--accent-b, var(--violet-b, #3b82f6)));
  box-shadow: 0 6px 16px hsl(var(--h1, 265) 70% 45% / 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

/* ---- in which Circles a song was sung (circlesMark / renderCircles in app.js, data/circles.json) ---- */
.circles-mark { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 26px 0 -14px; margin-inline-start: auto;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); text-decoration: none; }
.circles-mark small { font-size: 12px; white-space: nowrap; }
.circles-mark:hover, .circles-mark:focus-visible { border-color: var(--chord); color: var(--text); }
.cm-dots { display: inline-flex; gap: 3px; }
.cm-dots i { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 9px; font: 600 9px/1 Rubik, sans-serif;
  font-style: normal; color: var(--muted); border: 1px solid var(--line); opacity: 0.55; }
.cm-dots i.on { opacity: 1; color: #1a0b2e; border-color: transparent; background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); }
.circ-stats { max-width: 760px; margin: 0 auto; padding-bottom: 60px; }
.circ-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.circ-facts div { padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; }
.circ-facts b { display: block; font-size: 30px; color: var(--chord); }
.circ-facts span { font-size: 14px; color: var(--muted); }
.circ-bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding: 8px 0; }
.circ-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.cb-col { width: 100%; max-width: 46px; height: var(--h); min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); }
.cb-n { font-size: 13px; font-weight: 700; }
.cb-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.circ-list { list-style: none; margin: 0; padding: 0; }
.circ-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.circ-list a:hover { background: var(--card); }
.cl-title { display: flex; flex-direction: column; min-width: 0; }
.cl-title small { color: var(--muted); font-size: 12px; }
@media (max-width: 480px) { .cm-dots i { min-width: 15px; height: 15px; font-size: 8px; padding: 0 2px; } .circ-list .cm-dots { gap: 2px; } }

/* ---- duets: light one part (partsOf / lightPart in app.js) ---- */
.parts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 12px auto 0; max-width: 600px; }
.parts-label { font-size: 13px; color: var(--muted); }
.parts button { font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer; }
.parts button[aria-pressed="true"] { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; border-color: transparent; font-weight: 700; }
.lyrics.part-on .p-other { filter: opacity(0.3); transition: filter 0.25s; }   /* not opacity: the lines' entrance animation holds it */
.lyrics .p-mine, .lyrics .p-other { transition: filter 0.25s; }
.lyrics.part-on .p-mine .l-tx { font-weight: 700; }

/* ---- where a song stands (songStatus in app.js): the Circle now / earlier Circles / added to the songbook ---- */
.st-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.st-now { background: color-mix(in srgb, var(--chord) 20%, transparent); color: var(--chord); }
.st-past { background: rgba(125, 211, 252, 0.16); color: #7dd3fc; }
.st-added { background: rgba(196, 181, 253, 0.18); color: #c4b5fd; }
body[data-page="song"] .st-past { color: #0369a1; background: rgba(3, 105, 161, 0.12); }
body[data-page="song"] .st-added { color: #6d28d9; background: rgba(109, 40, 217, 0.12); }
.list-group { display: flex; align-items: center; gap: 10px; margin: 14px 4px 2px; }
.list-group:first-child { margin-top: 0; }
.list-group .st-pill { font-size: 14px; padding: 4px 12px; }
.list-group small { color: var(--muted); }

/* ---- glass (Daniel): buttons and cards over the doodle pattern blur what is behind them ---- */
.icon-btn, .search, .song-item a, .btn-ghost, .seg-ctl, .stepper, .quick-btn, .nav-card, .req-item, .social a, .song-chip,
.lg-tabs a, .archive-card, .circles-mark, .circ-facts div, .parts button, .legal-links a {
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
/* a clause of a lyric line moves to the next row whole: long lines break after the comma (renderLine) */
.l-clause { display: inline-block; max-width: 100%; }

/* the capo switch in the song bar (apart from the chord level: same sound, easier shapes) */
.capo-btn { height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.capo-btn[aria-pressed="true"] { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; }

/* ---- first-time guide (lib/tour.js) ---- */
.tour { position: fixed; inset: 0; z-index: 200; }
.tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(8, 3, 20, 0.72); outline: 2px solid var(--gold-a);
  transition: opacity 0.2s; pointer-events: none; }
.tour.center .tour-hole { top: 50%; left: 50%; width: 0; height: 0; outline: 0; }
.tour-card { position: fixed; z-index: 1; max-width: calc(100vw - 24px); padding: 18px 18px 12px; border-radius: 18px; color: #f7f3ff;
  background: rgba(34, 16, 64, 0.94); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: opacity 0.22s ease; }
.tour.moving .tour-card { opacity: 0; }   /* no gliding: out while the page moves, in where it lands */
.tour.moving .tour-hole { width: 0 !important; height: 0 !important; outline: 0; }   /* meanwhile the whole page stays dim */
.tour.center .tour-card { top: 50%; left: 50%; width: min(380px, calc(100vw - 32px)); transform: translate(-50%, -50%); text-align: center; }
.tour-card h2 { margin: 0 0 6px; font-size: 19px; }
.tour-text { margin: 0 0 14px; color: #ddd2f3; line-height: 1.55; font-size: 15px; }
.tour-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.tour.center .tour-dots { justify-content: center; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.tour-dots i.on { width: 18px; border-radius: 4px; background: var(--gold-a); }
.tour-nav { display: flex; gap: 8px; justify-content: flex-end; }
.tour.center .tour-nav { justify-content: center; }
.tour-prev { border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 8px 16px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tour-prev[hidden] { display: none; }
.tour-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: inherit; cursor: pointer; }
.tour-skip { display: block; margin: 10px auto 0; color: #bfb2dc; font-size: 13px; }

/* ---- install as an app (installGuide) ---- */
.ig-why { text-align: center; }
.ig-or { text-align: center; margin: 12px 0 0; }
.ig-for { margin: 14px 0 6px; font-size: 15px; }
.ig-steps { margin: 0; padding-inline-start: 24px; display: grid; gap: 10px; line-height: 1.7; }
.ig-steps li::marker { color: var(--gold-a); font-weight: 700; }
.ig-key { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; margin: 0 2px; border-radius: 8px; vertical-align: middle;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); white-space: nowrap; }
.ig-key b { font-weight: 600; }
.ig-other { margin-top: 16px; }
.ig-other summary { cursor: pointer; color: var(--muted); }
.ig-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ig-tabs button { font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer; }
.ig-tabs button[aria-pressed="true"] { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; border-color: transparent; }
body:has(.tour) .songbar.tucked { transform: translate(-50%, 0); opacity: 1; }   /* the guide points at the bar: it stays up */

/* the settings from the gear in the top bar: under the bar, on every page */
.read-pop.from-top { top: calc(env(safe-area-inset-top) + 64px); bottom: auto; }
.rp-tours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.rp-tours span { font-size: 14px; }
.rp-tours .rp-more { display: inline-flex; flex: 0 0 auto; width: auto; margin: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08); color: inherit; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.rp-tours .rp-more:hover { background: rgba(255, 255, 255, 0.16); }

/* ---- live circle: names, who is in (roomSheet / drawPeople) ---- */
.lead-fixed { margin: 6px 0 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.lead-fixed .row { gap: 8px; }
.lead-fixed .field { max-width: 140px; margin: 0; text-align: center; font-weight: 700; letter-spacing: 2px; }
.room-link { word-break: break-all; font-size: 13px; }
.people-head { margin: 16px 0 6px; font-size: 16px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 40vh; overflow: auto; }
.people-sum { font-weight: 700; margin-bottom: 4px; }
.person { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: 14px; }
.person span { color: var(--muted); font-size: 13px; text-align: end; }
.person.p-away { background: rgba(251, 191, 36, 0.16); }
.person.p-away span { color: #fcd34d; }
.person.p-off { opacity: 0.55; }
.person.p-ok span { color: #86efac; }
.q-names { padding: 0 14px 8px; font-size: 12.5px; color: var(--muted); }
.name-privacy { text-align: center; font-size: 12.5px; }
/* a sheet stays above the phone's keyboard (--kb: its height, set in app.js) */
.sheet { padding-bottom: var(--kb, 0px); transition: padding-bottom 0.15s; }
.sheet-card { max-height: calc(100dvh - var(--kb, 0px) - 24px); }
/* a button's text sits in its middle (Daniel: the settings pills had it at the top) - every flex button, and these links */
button { align-items: center; }
.rp-tours .rp-more, .rp-foot .rp-more { align-items: center; justify-content: center; line-height: 1.2; }
.rp-foot { align-items: center; }

/* ---- קיר הקסם (renderMagic in lib/pages.js) ---- */
.magic-tabs { margin: 6px auto 12px; }
.magic-tabs button[aria-selected="true"] { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; }
.wall-text { min-height: 90px; }
.wall-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.wall-name { flex: 1 1 160px; margin: 0; }
.wall-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.wall-post { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.55); color: #2a1a10; box-shadow: 0 2px 8px rgba(80, 40, 0, 0.12); }
.wp-text { margin: 0 0 8px; white-space: pre-wrap; line-height: 1.55; font-size: 16px; }
.wp-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: #6b4a2a; }
.wp-heart, .wp-hide { border: 0; background: rgba(255, 255, 255, 0.6); border-radius: 999px; padding: 4px 10px; font: inherit; cursor: pointer; color: inherit; }
.wp-heart[aria-pressed="true"] { background: #fde2e4; }
.wp-hide { margin-inline-start: 6px; color: #9b1c1c; }
/* name fields read as names, not like a circle code */
.wall-name, #my-name { letter-spacing: normal; text-align: start; font-weight: 500; }
/* on the wall's parchment the name field is dark ink, like the page (it was white on cream) */
.mt-wall .wall-name { color: #2a1a10; background: rgba(255, 255, 255, 0.55); border-color: rgba(80, 40, 0, 0.25); }
.mt-wall .wall-name::placeholder { color: #8a6a4a; }

/* an answer inside another character's line (data-v): with its character chosen it stays lit in a dimmed line */
.lyrics.part-on .p-mixed .l-ch, .lyrics.part-on .p-mixed .l-tx { color: color-mix(in srgb, currentColor 30%, transparent); }
.lyrics.part-on .p-mixed .v-mine { color: var(--text); font-weight: 700; }
.lyrics.part-on .p-mine .v-other { opacity: 0.35; }
/* the footer: one short line and one row of links (not repeated after every song) */
#site-footer .foot-note { margin: 0 auto 6px; max-width: 560px; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; }
#site-footer .legal-links { gap: 0 2px; align-items: center; color: var(--muted); font-size: 11.5px; }
#site-footer .legal-links a { padding: 4px 6px; font-size: 11.5px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* a song shown in its picture's own deep colours (figures.json "deep"): a thin dark veil, light words */
:root:not([data-theme="night"]) body.deep-art[data-page="song"] { --text: #f3f0ff; --muted: #c8d4f0; --chord: #ffd166; --section: #9fd0ff;
  --line: rgba(255, 255, 255, 0.16); --card: rgba(10, 20, 60, 0.35); --card-strong: rgba(10, 20, 60, 0.55); background: #0b1740; }
:root:not([data-theme="night"]) body.deep-art #song-bg::after { background: linear-gradient(to bottom, rgba(5, 12, 40, 0.25), rgba(5, 12, 40, 0.45)); }
:root:not([data-theme="night"]) body.deep-art .sc-veil { background: radial-gradient(ellipse 50% 95% at 50% 50%, rgba(6, 14, 45, 0.62) 0%, rgba(6, 14, 45, 0.45) 60%, rgba(6, 14, 45, 0.1) 100%); }
@media (max-width: 1099px) { :root:not([data-theme="night"]) body.deep-art .sc-veil { background: rgba(6, 14, 45, 0.5); } }
:root:not([data-theme="night"]) body.deep-art[data-page="song"] .topbar { background: rgba(8, 16, 50, 0.72); border-bottom-color: rgba(255, 255, 255, 0.1); }
:root:not([data-theme="night"]) body.deep-art[data-page="song"] .l-tx { text-shadow: 0 1px 6px rgba(0, 0, 20, 0.85), 0 0 2px rgba(0, 0, 20, 0.9); }
:root:not([data-theme="night"]) body.deep-art[data-page="song"] .l-ch { text-shadow: 0 1px 4px rgba(0, 0, 20, 0.9); }
:root:not([data-theme="night"]) body.deep-art[data-page="song"] .icon-btn { color: #f3f0ff; }
:root:not([data-theme="night"]) body.deep-art[data-page="song"] .song-film { color: #c8dcff; opacity: 1; }

/* cinema mode with a night picture (scene.night): the painting shows, under a thin dark veil, still */
:root[data-theme="night"] body[data-page="song"] #song-bg.night-art .sc-bg { opacity: 1 !important; animation: none; }
:root[data-theme="night"] #song-bg.night-art::after { background: linear-gradient(to bottom, rgba(4, 3, 12, 0.35), rgba(4, 3, 12, 0.55)); }
:root[data-theme="night"] #song-bg.night-art .sc-veil { background: radial-gradient(ellipse 50% 95% at 50% 50%, rgba(4, 3, 12, 0.55) 0%, rgba(4, 3, 12, 0.4) 60%, rgba(4, 3, 12, 0.1) 100%); }
@media (max-width: 1099px) { :root[data-theme="night"] #song-bg.night-art .sc-veil { background: rgba(4, 3, 12, 0.45); } }
:root[data-theme="night"] body[data-page="song"]:has(#song-bg.night-art) { background: #05040c; }
:root[data-theme="night"] body[data-page="song"]:has(#song-bg.night-art) .l-tx { text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9); }

/* ================= cinema (dark) mode, designed (Daniel, 27.9.2026: as polished as the day, nothing glaring) ========
   One idea throughout: a deep violet night, the art present but lowered like a lit stage in a dark hall, warm gold
   only where it matters. */
:root[data-theme="night"] {
  --night-card: rgba(255, 255, 255, 0.045); --night-card-2: rgba(255, 255, 255, 0.08); --night-line: rgba(255, 255, 255, 0.09);
  --night-glow: hsl(var(--h1, 265) 60% 55% / 0.16);
}
:root[data-theme="night"] body { background: #07040d; }
:root[data-theme="night"] body::before { background: var(--page-art); }
:root[data-theme="night"] body::after { background: var(--page-tint); }

/* pictures and thumbnails: lowered, not glaring (brighter again on hover / focus) */
:root[data-theme="night"] .song-thumb, :root[data-theme="night"] .movie-card::before { filter: brightness(0.72) saturate(0.85); transition: filter 0.25s; }
:root[data-theme="night"] .song-item a:hover .song-thumb, :root[data-theme="night"] .movie-card:hover::before { filter: brightness(0.9) saturate(0.95); }
/* cards with a picture and words on it: only the picture is lowered (a deeper shade over it), the words stay bright */
:root[data-theme="night"] .book-card { background: linear-gradient(to top, rgba(7, 4, 13, 0.95) 0%, rgba(7, 4, 13, 0.55) 55%, rgba(7, 4, 13, 0.35) 100%), var(--img) center 22% / cover; }
:root[data-theme="night"] .list-hero { box-shadow: inset 0 0 0 999px rgba(7, 4, 13, 0.42); }
:root[data-theme="night"] .song-list .book-insert a { box-shadow: inset 0 0 0 999px rgba(7, 4, 13, 0.45); filter: saturate(0.9); }

/* the parchment pages (about, notes, story, magic, chord chart): the paper by candlelight, the picture behind it dim */
:root[data-theme="night"] .parchment { filter: brightness(0.6) sepia(0.18) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.7)); }
:root[data-theme="night"] .parchment, :root[data-theme="night"] .parchment h1, :root[data-theme="night"] .parchment h2 { color: #1e1006; }   /* ink a touch deeper on the lowered paper */
:root[data-theme="night"] .pg-bg { filter: brightness(0.34) saturate(0.7); }
:root[data-theme="night"] .about-card { box-shadow: inset 0 0 0 9999px rgba(7, 4, 13, 0.62); }   /* the lantern picture lowered, the paper on it lit on its own */
:root[data-theme="night"] .pg-bg { animation: none; }
   /* inside the dimmed card: back to candlelight */

/* chord diagrams: dark cards with light ink, the finger dots in warm gold */
:root[data-theme="night"] .diagram { background: #1a1428; color: #ece6f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  --ink: #e9e2f6; --ink-x: #ff8a8a; --dot: #f0b35a; --dot-soft: #d9a054; --key-w: #d8d2e4; --key-b: #120d1e; }
:root[data-theme="night"] .chord-pop { background: rgba(22, 16, 36, 0.97); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6); }
:root[data-theme="night"] .chord-strip { background: rgba(18, 12, 30, 0.96); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6); }
:root[data-theme="night"] .strip-head { color: #d9ccf5; }
:root[data-theme="night"] .strip-x { background: rgba(255, 255, 255, 0.08); color: #e6def5; }
:root[data-theme="night"] .chart-grid .diagram { background: #1a1428; }

/* a song with a picture but no night version: the picture stays, lowered and still, instead of a blank black page */
:root[data-theme="night"] body[data-page="song"] #song-bg:not(.night-art) .sc-bg.show { opacity: 1 !important; filter: brightness(0.32) saturate(0.6); animation: none; }
:root[data-theme="night"] #song-bg:not(.night-art)::after { background: linear-gradient(to bottom, rgba(7, 4, 13, 0.35), rgba(7, 4, 13, 0.7)); }
:root[data-theme="night"] #song-bg:not(.night-art) .sc-veil { background: radial-gradient(ellipse 50% 95% at 50% 50%, rgba(7, 4, 13, 0.7) 0%, rgba(7, 4, 13, 0.55) 60%, rgba(7, 4, 13, 0.25) 100%); }
@media (max-width: 1099px) { :root[data-theme="night"] #song-bg:not(.night-art) .sc-veil { background: rgba(7, 4, 13, 0.55); } }
:root[data-theme="night"] body[data-page="song"] { background: #07040d; }

/* cards, pills, fields: one quiet surface, gold for what is chosen */
:root[data-theme="night"] .song-item a, :root[data-theme="night"] .archive-card, :root[data-theme="night"] .quick-btn,
:root[data-theme="night"] .nav-card, :root[data-theme="night"] .circ-facts div, :root[data-theme="night"] .req-item,
:root[data-theme="night"] .search, :root[data-theme="night"] .hub-search, :root[data-theme="night"] .song-chip { background: var(--night-card); border-color: var(--night-line); }
:root[data-theme="night"] .song-item a:hover, :root[data-theme="night"] .archive-card:hover, :root[data-theme="night"] .quick-btn:hover,
:root[data-theme="night"] .song-chip:hover { background: var(--night-card-2); }
:root[data-theme="night"] .cb-col { background: linear-gradient(180deg, #a87a2c, #5e3f12); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.35); }
:root[data-theme="night"] .cm-dots i.on { background: linear-gradient(45deg, #d9a441, #b98421); }
:root[data-theme="night"] .st-now { background: rgba(240, 179, 90, 0.14); color: #f0c27a; }
:root[data-theme="night"] .st-past { background: rgba(125, 211, 252, 0.12); color: #9fdcfb; }
:root[data-theme="night"] .st-added { background: rgba(196, 181, 253, 0.13); color: #cfc2ff; }
:root[data-theme="night"] .btn-gold { background: linear-gradient(45deg, #e8b53a, #d98a12); box-shadow: none; }
:root[data-theme="night"] .field, :root[data-theme="night"] .magic-pad { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: var(--text); }
:root[data-theme="night"] .parchment .magic-pad, :root[data-theme="night"] .parchment .field { background: rgba(255, 255, 255, 0.45); color: #2a1a10; }

/* sheets, the settings and the guide: the same deep glass */
:root[data-theme="night"] .sheet { background: rgba(0, 0, 0, 0.65); }
:root[data-theme="night"] .sheet-card { background: #140d22; border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6); }
:root[data-theme="night"] .read-pop { background: rgba(16, 10, 28, 0.97); border-color: rgba(255, 255, 255, 0.08); }
:root[data-theme="night"] .tour-card { background: rgba(20, 13, 34, 0.96); }
:root[data-theme="night"] .tour-hole { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.78); outline-color: #e8b53a; }
:root[data-theme="night"] .finder { background: rgba(0, 0, 0, 0.7); }
:root[data-theme="night"] .toast { background: #1d1430; color: #eee6fb; }

/* the top bar and the lyrics' own marks */
:root[data-theme="night"] .topbar { background: rgba(9, 5, 17, 0.82); border-bottom-color: rgba(255, 255, 255, 0.06); }
:root[data-theme="night"] .icon-btn { background: rgba(255, 255, 255, 0.05); color: #ddd4ee; }
:root[data-theme="night"] .icon-btn.active, :root[data-theme="night"] #btn-theme[aria-pressed="true"] { background: rgba(232, 181, 58, 0.16); color: #f0c27a; }
:root[data-theme="night"] .l-section { color: #b9a4f0; }
:root[data-theme="night"] .bars { background: rgba(255, 255, 255, 0.035); }
:root[data-theme="night"] .wall-post { background: rgba(255, 255, 255, 0.5); }
:root[data-theme="night"] #site-footer { color: #8f86a3; }
:root[data-theme="night"] .about-card .parchment { filter: brightness(0.6) sepia(0.18) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.7)); }
/* the film boxes: a deeper shade from below instead of a milky wash */
:root[data-theme="night"] .movie-card::before { background: linear-gradient(to top, rgba(7, 4, 13, 0.92) 0%, rgba(7, 4, 13, 0.62) 55%, rgba(7, 4, 13, 0.5) 100%), var(--img) center 70% / cover; filter: saturate(0.85) brightness(0.85); }
:root[data-theme="night"] .movie-card:hover::before { filter: saturate(1) brightness(1.1); }

/* ---- home page, tighter (Daniel, 27.9.2026): the films in three columns on phones, the about card folded ---- */
@media (max-width: 599px) {
  .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .movie-card { aspect-ratio: 6 / 5; padding: 7px 8px; border-radius: 14px; }
  .movie-card .movie-name { font-size: 14px; }
  .movie-count { font-size: 11px; }
  .hub-logo { width: min(210px, 54vw); }
}
.about-more summary { cursor: pointer; text-align: center; font-weight: 700; color: #7a3e0a; list-style: none; margin: 4px 0 12px; }
.about-more summary::-webkit-details-marker { display: none; }
.about-more summary::after { content: " ▾"; }
.about-more[open] summary::after { content: " ▴"; }
.about-card { padding-top: 22px; padding-bottom: 22px; }
.replay-row { flex-wrap: wrap; gap: 6px; }
.replay-row .replay-cover { margin-top: 0; }

/* a song with a beat (scene.groove - Everybody Wants to Be a Cat): its characters sway to it, small and slow enough to
   stay in the corner of the eye; nothing moves in cinema mode, for calm motion or reduced motion */
@keyframes groove { 0%, 100% { transform: rotate(-1.6deg) translateY(0); } 25% { transform: rotate(0deg) translateY(-3px); } 50% { transform: rotate(1.6deg) translateY(0); } 75% { transform: rotate(0deg) translateY(-3px); } }
body.groove .head-fig img, body.groove #song-figs .sc-fig img { animation: groove 2.07s ease-in-out infinite; transform-origin: 50% 100%; }
body.groove #song-figs .sc-fig:nth-child(2) img { animation-delay: -1.03s; }
:root[data-theme="night"] body.groove .head-fig img, html[data-motion="calm"] body.groove .head-fig img, html[data-motion="calm"] body.groove .sc-fig img { animation: none; }
/* the characters after the lyrics dance too, each a little off the others' beat */
body.groove .end-figs img { animation: groove 2.07s ease-in-out infinite; transform-origin: 50% 100%; }
body.groove .end-figs button:nth-child(2) img { animation-delay: -1.03s; }
body.groove .end-figs button:nth-child(3) img { animation-delay: -0.52s; }
:root[data-theme="night"] body.groove .end-figs img, html[data-motion="calm"] body.groove .end-figs img { animation: none; }
/* a character's name inside the song is a button: tap = light that part, tap again = everyone */
.lyrics .part-name { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.lyrics .part-name:hover, .lyrics .part-name:focus-visible { text-decoration-color: currentColor; outline: none; }
/* a wide drawing (a group across the picture) stands above the title instead of squeezed beside it (Daniel) */
@media (max-width: 1099px) {
  .song-head.fig-top { display: flex; flex-direction: column; align-items: center; padding-left: 0; padding-right: 0; }
  .song-head.fig-top .head-fig { position: static; order: -1; margin: 0 auto -6px; }
  .song-head.fig-top .head-fig img { max-width: min(78vw, 340px); max-height: 130px; }
  .song-head.fig-top .song-kicker { order: -2; }
}

/* ---- a song with voices (song.voices - We Don't Talk About Bruno): colour + a name where the singer changes ---- */
.voiced-song .voiced { border-inline-start: 3px solid var(--vc); padding-inline-start: 10px; border-image: linear-gradient(var(--vc), var(--vc2)) 1; }
.voiced-song .v-answer { margin-inline-start: 18px; }
.voiced-song .v-answer .l-tx { color: color-mix(in srgb, var(--vc) 70%, var(--text)); }
.voiced-song .voice-tag { display: inline-block; margin-top: 12px; padding: 2px 10px; border-radius: 999px; font-size: 13px; color: #fff;
  background: var(--vc); letter-spacing: 0; }
.lanes { display: grid; gap: 10px; margin: 6px 0 14px; }
.lane { border-inline-start: 3px solid var(--vc); padding-inline-start: 10px; border-radius: 2px; }
.lane-who { display: inline-block; margin: 2px 0 2px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--vc); }
.lane .voiced { border: 0; padding-inline-start: 0; }
.lane .l-line { font-size: 0.92em; }
.lyrics.part-on .lane:not(:has(.p-mine)):has(.p-other) .lane-who { opacity: 0.35; }
.voiced-song .v-alt .l-tx { color: color-mix(in srgb, var(--vc) 75%, var(--text)); }
/* the character buttons of a coloured song: a dot in the character's colour, on the right of the name */
.parts button { display: inline-flex; align-items: center; gap: 6px; }
.part-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.parts button[aria-pressed="true"] .part-dot { box-shadow: 0 0 0 1.5px #1a0b2e; }
/* cinema mode: the voice colours a little softer on the dark page, tags and strips still clear */
:root[data-theme="night"] .voiced-song .voice-tag, :root[data-theme="night"] .lane-who { filter: saturate(0.85) brightness(0.9); color: #fff; }
:root[data-theme="night"] .voiced-song .v-answer .l-tx, :root[data-theme="night"] .voiced-song .v-alt .l-tx { color: color-mix(in srgb, var(--vc) 65%, #fff); }
:root[data-theme="night"] .part-dot { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.6); }
/* every line of a song on the song's own side (Daniel: on phones some lines sat left, some right): an English line in a
   Hebrew song keeps reading left-to-right but stands on the right edge, and a Hebrew line in an English song on the left */
.lyrics:not(.ltr-song) .l-line.ltr { justify-content: flex-end; }
.lyrics.ltr-song .l-line:not(.ltr) { justify-content: flex-end; }

/* live circle: requests others already made, with a heart to join them */
.ask-head { font-size: 14px; margin: 10px 0 4px; color: var(--muted); font-weight: 700; }
.asked .queue-count { white-space: nowrap; font-weight: 700; color: var(--chord); }
.asked .queue-count.mine { color: var(--muted); }
.asked a[aria-disabled="true"] { cursor: default; }

/* ================= reading polish (audit, 27.9.2026) ================= */
/* the room above the words is for a chord: a word with no chord over it takes none, so the second row of a wrapped line
   sits right under the first (it read as a new line) - rows with a chord keep their height from the word that has it */
.l-seg:not(:has(.l-ch)) { padding-top: 0; }
.l-word { align-items: flex-end; }
.l-clause { vertical-align: bottom; }
/* a line of chords with no chord on its first row still starts a chord's height below the line before it */
.l-line:not(.no-chords) { padding-top: 0.15em; }

/* ================= touch polish (audit round 2): small controls get a finger-sized tap area ================= */
/* the character chips were 25px tall - hard to hit in a dark hall */
.parts button { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.parts { gap: 8px; }
/* the live circle strip */
.room-banner button { min-height: 40px; padding: 8px 14px; }
/* small round links keep their look; the tap area around them grows */
.moment .m-src, #site-footer .legal-links a { position: relative; }
.moment .m-src::after, #site-footer .legal-links a::after { content: ""; position: absolute; inset: -9px -6px; }
.song-kicker .share-btn, .song-kicker .fav-btn { min-width: 44px; min-height: 44px; }
.arch-toggle input { width: 22px; height: 22px; }
/* the key buttons (♯ ♭) are used mid-song: a full finger's width */
.songbar .stepper button { min-width: 42px; min-height: 44px; }

/* the song page has its settings in the bottom bar: the top gear would open the same panel (Daniel, 27.9.2026) */
body[data-page="song"]:not(.projector) #btn-settings { display: none; }
/* cinema mode: the parchment pages were the brightest screens of the app - lowered a little more, ink kept dark */
:root[data-theme="night"] .parchment, :root[data-theme="night"] .about-card .parchment { filter: brightness(0.5) sepia(0.2) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.7)); }
:root[data-theme="night"] .parchment, :root[data-theme="night"] .parchment h1, :root[data-theme="night"] .parchment h2 { color: #120903; }
:root[data-theme="night"] .pg-bg { filter: brightness(0.26) saturate(0.7); }

/* ================= the next event's card (lib/promo.js): small, at the bottom, closed with one tap ================= */
.promo { position: fixed; z-index: 40; inset-inline: 0; bottom: calc(env(safe-area-inset-bottom) + 12px); margin-inline: auto;
  width: min(430px, calc(100vw - 24px)); display: grid; grid-template-columns: 92px 1fr; gap: 4px 12px; align-items: center;
  padding: 14px 14px 12px; border-radius: 20px; color: #fff6e0; overflow: hidden; isolation: isolate;
  background: #1c0c33; border: 1px solid rgba(255, 207, 90, 0.45); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0; translate: 0 24px; transition: opacity 0.35s ease, translate 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(28, 12, 51, 0.72), rgba(28, 12, 51, 0.93) 55%), var(--promo-bg) center 30% / cover; }
.promo.on { opacity: 1; translate: 0 0; }
.promo-logo { width: 92px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.promo-tx { display: grid; gap: 1px; min-width: 0; padding-inline-end: 30px; }
.promo-kicker { font-size: 12px; color: #ffcf5a; font-weight: 500; }
.promo-title { font-size: 17px; line-height: 1.25; }
.promo-when { font-size: 12.5px; color: #e6d9f5; }
.promo-hook { font-size: 13px; margin-top: 3px; color: #ffe9b0; }
.promo-row { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.promo-row a, .promo-row button { flex: 1; font-family: inherit; cursor: pointer; display: grid; place-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: 14.5px; font-weight: 700; text-decoration: none; text-align: center; }
.promo-go { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; }
.promo-code { border: 1px solid rgba(255, 207, 90, 0.55); color: #ffe9b0; background: rgba(255, 255, 255, 0.06); }
.promo-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff6e0; font-size: 16px; cursor: pointer; opacity: 0.8; }
.promo-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }
:root[data-theme="night"] .promo { filter: brightness(0.82); }
@media (prefers-reduced-motion: reduce) { .promo { transition: none; translate: 0 0; } }

.promo-coupon { padding: 1px 9px; border-radius: 8px; border: 1px dashed rgba(255, 207, 90, 0.8); color: #ffcf5a; font-size: 15px; letter-spacing: 0.03em; }

/* auto-scroll waiting at an instrumental passage / a part played twice: the passage is marked, play glows */
.l-bars.as-hold, .l-repeat.as-hold { outline: 2px dashed color-mix(in srgb, var(--chord) 70%, transparent); outline-offset: 6px; border-radius: 10px; }
.auto-scroll.holding .as-play { animation: as-pulse 1.4s ease-in-out infinite; }
@keyframes as-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 209, 102, 0.28); } }
@media (prefers-reduced-motion: reduce) { .auto-scroll.holding .as-play { animation: none; } }
.as-speed { min-width: 92px; }

/* cinema mode keeps the song's characters (Daniel, 30.9.2026: Scar vanished in the night): a little lowered, not gone */
:root[data-theme="night"] body[data-page="song"] .sc-fig { display: block; filter: brightness(0.78) saturate(0.85); }
:root[data-theme="night"] body[data-page="song"] .head-fig, :root[data-theme="night"] body[data-page="song"] .end-figs { opacity: 1; filter: brightness(0.82) saturate(0.85); }
/* a line two characters share: the chosen one's words lit, the other's words and their chords dimmed */
.l-sung { font-weight: inherit; }
.lyrics.part-on .p-mine .l-seg:has(.v-other) .l-ch { opacity: 0.35; }
/* the film's name on a song page is a link to all the film's songs: it looks the same, with a quiet underline on hover */
a.song-film { display: inline-block; color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color 0.2s; cursor: pointer; }
a.song-film:hover, a.song-film:focus-visible { border-bottom-color: currentColor; }
a.song-film::after { content: " ›"; opacity: 0.5; font-size: 0.8em; }

/* a song that runs straight into the next one (song.then): the way on, right after the lyrics */
.then-card { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin: 18px 0 6px; padding: 14px 18px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; font-weight: 700; font-size: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease; }
.then-card small { font-weight: 500; font-size: 13px; opacity: 0.8; flex-basis: 100%; }
.then-card bdi { flex: 1; }
.then-arrow { font-size: 26px; line-height: 1; }
.then-card:hover { transform: translateY(-2px); }
:root[data-theme="night"] .then-card { filter: brightness(0.85); }
body.projector .then-card { display: none; }
@media (min-width: 1100px) { :root[data-theme="night"] body[data-page="song"] #song-figs { display: block; } }   /* the margins' characters in the night too */
/* the song before on the right, the next on the left (a Hebrew book): each card's text leans to its own side */
.nav-card.prev { text-align: right; }
.nav-card.next { text-align: left; }

/* ================= the song before / after: tickets with the song's picture (like the circle site's circle pager) ======= */
.song-nav { gap: clamp(10px, 2vw, 18px); }
.nav-card { --nh: 265; --ns: 60%; position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(128px, 22vw, 170px);
  padding: 16px 18px; border: 0; border-radius: 20px; color: #fff; text-decoration: none; background: hsl(var(--nh) 45% 22%);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.55); transition: translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s; }
.nc-ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: scale 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, hsl(var(--nh) 60% 8% / 0.92) 8%, hsl(var(--nh) 60% 10% / 0.35) 60%, transparent 90%); }
.nav-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, hsl(var(--nh) var(--ns) 55%), hsl(calc(var(--nh) + 40) var(--ns) 45%)); mix-blend-mode: color; opacity: 0.4; transition: opacity 0.4s; }
.nc-t { display: grid; gap: 1px; min-width: 0; }
.nc-t small { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.82); }
.nc-title { font-size: clamp(17px, 2.6vw, 22px); font-weight: 800; line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); overflow-wrap: anywhere; }
.nc-film { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }
.nav-card.prev { text-align: right; } .nav-card.next { text-align: left; }
.nc-arrow { position: absolute; top: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: translate 0.3s, background 0.3s; }
.nav-card.prev .nc-arrow { right: 12px; } .nav-card.next .nc-arrow { left: 12px; }
.nav-card:hover, .nav-card:focus-visible { translate: 0 -4px; box-shadow: 0 0 0 2px hsl(var(--nh) 70% 65%), 0 24px 40px -22px hsl(var(--nh) 70% 40%); border-color: transparent; transform: none; }
.nav-card:hover .nc-ph { scale: 1.07; }
.nav-card:hover::after { opacity: 0.18; }
.nav-card.prev:hover .nc-arrow { translate: 4px 0; background: rgba(255, 255, 255, 0.3); }
.nav-card.next:hover .nc-arrow { translate: -4px 0; background: rgba(255, 255, 255, 0.3); }
.nav-card:focus-visible { outline: 3px solid var(--chord); outline-offset: 3px; }
:root[data-theme="night"] .nav-card .nc-ph { filter: brightness(0.7) saturate(0.85); }
@media (prefers-reduced-motion: reduce) { .nav-card, .nc-ph, .nc-arrow { transition: none; } }

/* "כולל השירון המורחב" (Daniel, 30.9.2026: make it lovely): a glass pill with a golden switch and a line on what it adds */
.films-head { align-items: center; }
.arch-toggle { position: relative; gap: 12px; padding: 7px 8px 7px 16px; border-radius: 999px; color: var(--text); font-size: 14px;
  background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.arch-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.at-text { display: grid; line-height: 1.2; text-align: start; }
.at-text b { font-weight: 700; font-size: 14px; }
.at-text small { font-size: 11.5px; color: var(--muted); }
.at-track { position: relative; flex: 0 0 auto; width: 52px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35); transition: background 0.35s; }
.at-knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: transparent; font-size: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: inset-inline-start 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), color 0.3s, background 0.3s; }
.arch-toggle:has(input:checked) { border-color: rgba(255, 209, 102, 0.6); background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(255, 165, 0, 0.08));
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.25), 0 8px 22px -10px rgba(255, 190, 60, 0.6); }
.arch-toggle:has(input:checked) .at-track { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); }
.arch-toggle:has(input:checked) .at-knob { inset-inline-start: 25px; color: #c98a00; }
.arch-toggle:hover { border-color: rgba(255, 209, 102, 0.45); }
.arch-toggle:has(input:focus-visible) { outline: 3px solid var(--chord); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .at-knob, .at-track, .arch-toggle { transition: none; } }

/* ================= characters in the middle of the film boxes and on the song tickets (Daniel, 30.9.2026) ================= */
.movie-card.has-fig { --nh: 265; --ns: 55%; justify-content: flex-end; align-items: stretch; padding: 0; background: hsl(var(--nh) 40% 30%); }
.movie-card.has-fig::before { background: var(--img) center / cover; filter: saturate(1.05); }
.movie-card.has-fig::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, hsl(var(--nh) 55% 10% / 0.92) 0%, hsl(var(--nh) 55% 12% / 0.35) 38%, transparent 62%); }
.mc-fig { position: absolute; z-index: 0; left: 50%; bottom: 0; translate: -50% 0; height: 92%; width: auto; max-width: 96%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); transition: translate 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), scale 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: 50% 100%; }
.movie-card.has-fig:hover .mc-fig, .movie-card.has-fig:focus-visible .mc-fig { scale: 1.06; translate: -50% -2px; }
.mc-t { position: relative; z-index: 1; display: grid; gap: 0; padding: 0 8px 9px; text-align: center; }
.movie-card.has-fig .movie-name { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
:root[data-theme="night"] .movie-card.has-fig::before { background: var(--img) center / cover; filter: brightness(0.55) saturate(0.8); }
:root[data-theme="night"] .mc-fig { filter: brightness(0.85) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
@media (max-width: 599px) { .mc-fig { height: 88%; } .mc-t { padding-bottom: 6px; } }

.nc-ph.soft { filter: saturate(1.05); }
.nc-fig { position: absolute; z-index: -1; bottom: 0; height: 94%; width: auto; max-width: 46%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4)); transition: scale 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: 50% 100%; }
.nc-fig.wide { height: 72%; max-width: 50%; }
.nav-card.prev .nc-fig { left: 4%; } .nav-card.next .nc-fig { right: 4%; }
.nav-card:hover .nc-fig { scale: 1.06; }
.nav-card .nc-t { max-width: 58%; }
.nav-card.prev .nc-t { justify-self: end; } .nav-card.next .nc-t { justify-self: start; }
.nav-card:has(.nc-fig) .nc-shade { background: linear-gradient(0deg, hsl(var(--nh) 60% 8% / 0.9) 4%, hsl(var(--nh) 60% 10% / 0.3) 55%, transparent 85%); }
:root[data-theme="night"] .nc-fig { filter: brightness(0.8) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
/* the text on the arrow's side, the character on the other (in RTL "start" is the right) */
.nav-card.prev .nc-t { justify-self: start; text-align: right; }
.nav-card.next .nc-t { justify-self: end; text-align: left; }
.nav-card:has(.nc-fig) .nc-t { max-width: 56%; }
.nav-card .nc-t { margin-top: 44px; }   /* never under the arrow, however the title wraps */
/* the film's own colours: the whole painting, soft, under the scenery (whose pale parts are see-through) */
.movie-card.has-fig { background: var(--full, none) center / cover, hsl(var(--nh) 40% 30%); }
.movie-card.has-fig::before { filter: none; }
.movie-card.has-fig > .mc-fig ~ * { }
.movie-card.has-fig { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
/* a wide character (lying, a group) stands above the name, not behind it */
.mc-fig.wide { height: auto; width: 88%; max-width: 88%; bottom: 36%; }
@media (max-width: 599px) { .mc-fig.wide { width: 96%; max-width: 96%; bottom: 38%; } }
:root[data-theme="night"] .movie-card.has-fig::after { background: linear-gradient(to top, rgba(7, 4, 13, 0.92) 0%, rgba(7, 4, 13, 0.45) 45%, rgba(7, 4, 13, 0.25) 100%); }

/* ================= home page, one product (Daniel, 1.10.2026): search · the two songbooks · sing together (live circle,
   chord chart) · films · who we are · song requests at the bottom ================= */
.books { display: grid; gap: 12px; margin: 18px 0 4px; }
.books .book-card { margin: 0; }
@media (min-width: 760px) { .books { grid-template-columns: 1.35fr 1fr; } .books .archive-card { min-height: 190px; } }

/* the extended songbook: a fan of its songs' pictures */
.archive-card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  margin: 0; padding: 16px 18px; border-radius: 22px; min-height: 118px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 209, 102, 0.22), transparent 55%), linear-gradient(135deg, rgba(76, 29, 149, 0.92), rgba(30, 12, 64, 0.95));
  border: 1px solid rgba(255, 209, 102, 0.35); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s; }
.archive-card:hover, .archive-card:focus-visible { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 209, 102, 0.3), transparent 55%), linear-gradient(135deg, rgba(88, 34, 170, 0.95), rgba(34, 14, 72, 0.95));
  transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 209, 102, 0.5); }
.ac-fan { position: relative; width: 92px; height: 86px; }
.ac-fan i { position: absolute; top: 6px; inset-inline-start: calc(var(--k) * 18px); width: 56px; height: 74px; border-radius: 10px; background: center / cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.85); rotate: calc((var(--k) - 1) * 9deg); transform-origin: 50% 100%;
  transition: rotate 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), translate 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
.archive-card:hover .ac-fan i { rotate: calc((var(--k) - 1) * 16deg); translate: calc((var(--k) - 1) * -4px) -4px; }
.ac-text { display: grid; gap: 1px; min-width: 0; }
.ac-text b { font-size: 21px; line-height: 1.15; }
.ac-count { color: #ffd166; font-weight: 700; font-size: 15px; }
.ac-text small { color: rgba(255, 255, 255, 0.72); font-size: 12.5px; }
.ac-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 18px; transition: translate 0.3s, background 0.3s; }
.archive-card:hover .ac-go { translate: -4px 0; background: rgba(255, 209, 102, 0.3); }

/* sing together: the live circle and the chord chart */
.together-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .together-grid { grid-template-columns: 1fr 1fr; } }
.live-card, .chart-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 18px; color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.live-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center;
  background: radial-gradient(90% 120% at 0% 0%, rgba(124, 252, 154, 0.16), transparent 60%), linear-gradient(145deg, rgba(20, 58, 70, 0.95), rgba(18, 16, 52, 0.96));
  border: 1px solid rgba(124, 252, 154, 0.28); }
.live-card h3, .chart-card h3 { margin: 0; font-size: 20px; }
.live-card p, .chart-card p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.lc-signal { position: relative; width: 58px; height: 58px; display: grid; place-items: center; }
.lc-signal b { width: 14px; height: 14px; border-radius: 50%; background: #7cfc9a; box-shadow: 0 0 14px #7cfc9a; }
.lc-signal i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(124, 252, 154, 0.7); opacity: 0; animation: lc-ring 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.lc-signal i:nth-child(2) { animation-delay: 0.93s; } .lc-signal i:nth-child(3) { animation-delay: 1.86s; }
@keyframes lc-ring { 0% { scale: 0.25; opacity: 0.9; } 100% { scale: 1.15; opacity: 0; } }
.lc-join { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.lc-join input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.1);
  color: #fff; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; transition: border-color 0.2s, background 0.2s; }
.lc-join input::placeholder { letter-spacing: 0; font-weight: 400; text-transform: none; color: rgba(255, 255, 255, 0.55); }
.lc-join input:focus { outline: none; border-color: #7cfc9a; background: rgba(124, 252, 154, 0.1); }
.lc-join .btn { min-height: 48px; padding: 0 18px; border-radius: 14px; }
.lc-lead { grid-column: 1 / -1; justify-self: center; margin-top: 4px; padding: 8px 12px; border: 0; background: none; color: rgba(255, 255, 255, 0.8); font: inherit; font-size: 13.5px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); cursor: pointer; }
.lc-lead:hover { color: #fff; }
.lc-now { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; min-height: 48px; border: 0; border-radius: 14px;
  background: rgba(124, 252, 154, 0.16); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.lc-dot { width: 9px; height: 9px; border-radius: 50%; background: #7cfc9a; box-shadow: 0 0 8px #7cfc9a; animation: breathe-dot 1.6s ease-in-out infinite; }
@keyframes breathe-dot { 50% { opacity: 0.45; scale: 0.8; } }
.live-card.nudge .lc-join input { animation: nudge 0.4s; border-color: #ffd166; }
@keyframes nudge { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }

.chart-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-decoration: none;
  background: radial-gradient(100% 120% at 100% 100%, rgba(255, 209, 102, 0.18), transparent 60%), linear-gradient(145deg, rgba(70, 30, 120, 0.95), rgba(26, 12, 56, 0.96));
  border: 1px solid rgba(255, 209, 102, 0.28); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s; }
.chart-card:hover, .chart-card:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 209, 102, 0.5); }
.cc-diagram { display: grid; place-items: center; width: 92px; height: 104px; border-radius: 16px; background: #fffaf0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 18px rgba(0, 0, 0, 0.3);
  --ink: #2a1a45; --dot: #6d28d9; --key-w: #fff; --key-b: #2a1a45; color: #2a1a45; }
.cc-shape { display: block; transition: opacity 0.28s ease, scale 0.28s ease; }
.cc-shape.out { opacity: 0; scale: 0.9; }
.cc-shape svg { display: block; width: 78px; height: auto; }
.cc-chips { display: flex; gap: 5px; margin-top: 8px; direction: ltr; justify-content: flex-end; flex-wrap: wrap; }
.cc-chips i { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); transition: background 0.3s, color 0.3s; }
.cc-chips i.on { background: #ffd166; color: #1a0b2e; }
.cc-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 18px; color: #fff; transition: translate 0.3s; }
.chart-card:hover .cc-go { translate: -4px 0; }

/* song requests: at the bottom, an invitation */
.req-invite { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 16px 0 6px; padding: 14px 16px; border-radius: 18px;
  text-decoration: none; color: inherit; background: var(--card); border: 1px dashed rgba(255, 209, 102, 0.45); transition: background 0.2s, border-color 0.2s; }
.req-invite:hover { background: var(--card-strong); border-color: rgba(255, 209, 102, 0.8); }
.ri-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 209, 102, 0.18); color: #ffd166; font-size: 20px; }
.ri-text b { display: block; font-size: 16px; } .ri-text small { color: var(--muted); font-size: 13px; }
.ri-go { color: var(--muted); font-size: 18px; }

/* the chord chart page: instruments and the extended songbook switch side by side */
.chart-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 14px; }
.chart-controls .arch-toggle { color: #2a1a10; background: rgba(255, 255, 255, 0.55); border-color: rgba(80, 40, 0, 0.2); }
.chart-controls .at-text small { color: #6b4a2a; }

:root[data-theme="night"] .archive-card, :root[data-theme="night"] .live-card, :root[data-theme="night"] .chart-card { filter: brightness(0.85); }
@media (prefers-reduced-motion: reduce) { .lc-signal i, .lc-dot { animation: none; } .lc-signal i:first-child { opacity: 0.5; scale: 0.8; } }
html[data-motion="calm"] .lc-signal i { animation: none; }

/* ================= the songbook on a phone (Daniel, 1.10.2026: made for the phone, not a smaller desktop) ================= */
/* the song's name in the top bar once its title has scrolled away - a tap goes back to the top */
.tb-song { display: none; }
body[data-page="song"].title-off .tb-song { display: block; flex: 1; min-width: 0; margin-inline: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-weight: 700; font-size: 16px; cursor: pointer; animation: tb-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
body[data-page="song"].title-off .brand { display: none; }
@keyframes tb-in { from { opacity: 0; translate: 0 6px; } }

@media (max-width: 599px) {
  /* the character buttons: one row that scrolls sideways, fading at its ends - not four rows above the song */
  .song-head .parts { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
  .song-head .parts::-webkit-scrollbar { display: none; }
  .song-head .parts > * { flex: 0 0 auto; }
  /* the credits: one short line each, the whole on a tap */
  .song-head .credits { cursor: pointer; }
  .song-head .credits:not(.open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .song-head .credits:not(.open)::after { content: ""; }
  /* a little more air between the head and the song, less inside the head */
  .song-head { padding-bottom: 4px; }
  .ver-ctl { margin-top: 10px; }
  /* chords a touch bigger and firmer against the words - read at arm's length in a dark hall */
  .lyrics .l-ch { font-size: 0.8em; font-weight: 700; letter-spacing: 0.01em; }
  .lyrics .l-line { margin-bottom: 0.32em; }
  .lyrics .l-gap { height: 1.1em; }
  .l-section { font-size: 0.82em; margin-top: 0.9em; }
}

/* ================= the home page on a phone: tighter, so the first screen already shows the top of the films ================= */
.lc-tap { display: none; }
@media (max-width: 599px) {
  .hub-logo { width: min(168px, 44vw); }
  .hub-tag { margin: 2px 0 10px; font-size: 13px; }
  .hub-search { min-height: 50px; }
  .books { grid-template-columns: 1.15fr 1fr; gap: 10px; margin: 12px 0 0; }
  .books .book-card { min-height: 148px; padding: 12px; border-radius: 18px; align-items: flex-end; }
  .books .book-card-title { font-size: 24px; }
  .books .book-card-sub { font-size: 12.5px; }
  .books .book-card-go { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; font-size: 16px; }
  .archive-card { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: space-between; gap: 6px; min-height: 148px; padding: 12px; border-radius: 18px; }
  .ac-fan { width: 84px; height: 62px; justify-self: start; }
  .ac-fan i { width: 42px; height: 56px; top: 2px; inset-inline-start: calc(var(--k) * 16px); border-radius: 8px; }
  .ac-text b { font-size: 17px; } .ac-count { font-size: 13px; } .ac-text small { display: none; }
  .ac-go { position: absolute; top: 10px; inset-inline-end: 10px; width: 32px; height: 32px; font-size: 15px; }
  .together .section-title { display: none; }
  .together { margin-top: 10px; }
  .together-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .live-card, .chart-card { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: start; align-items: end; gap: 6px; min-height: 132px; padding: 12px; border-radius: 18px; }
  .lc-tap { display: block; position: absolute; inset: 0; z-index: 2; border: 0; background: none; cursor: pointer; }
  .live-card .lc-join, .live-card .lc-lead, .live-card .lc-live { display: none; }
  .live-card.has-live .lc-signal b { background: #7cfc9a; box-shadow: 0 0 18px #7cfc9a, 0 0 4px #fff; }   /* a circle is live: the tile's light says so */
  .live-card .lc-now { position: relative; z-index: 3; grid-column: auto; min-height: 36px; margin-top: 2px; padding: 0 10px; font-size: 13px; }
  .lc-signal { width: 44px; height: 44px; }
  .live-card h3, .chart-card h3 { font-size: 17px; }
  .live-card p, .chart-card p { font-size: 12px; line-height: 1.35; }
  .chart-card { grid-template-rows: auto auto; }
  .cc-diagram { width: 58px; height: 64px; border-radius: 12px; }
  .cc-shape svg { width: 50px; }
  .cc-chips, .cc-go { display: none; }
  .films-head .section-title { margin-top: 14px; }
}
@media (max-width: 599px) {
  .books .book-card, .archive-card { min-height: 132px; }
  .live-card, .chart-card { min-height: 118px; }
  .live-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .chart-card p { display: none; }
  .chart-card::after { content: "גיטרה · יוקלילי · פסנתר"; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
}

/* ================= the current songbook first and biggest; the extended songbook, the live circle and the chord chart
   as three tiles in one row under it (Daniel, 1.10.2026) ================= */
.lyrics .l-ch { font-weight: 500; }
@media (max-width: 599px) { .lyrics .l-ch { font-size: 0.78em; font-weight: 600; letter-spacing: 0; } }
.book-card.hero { margin: 16px 0 12px; min-height: 210px; border: 1px solid rgba(255, 209, 102, 0.55);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 209, 102, 0.25), 0 0 40px rgba(255, 190, 60, 0.18); }
.book-card.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 170, 0.22) 45%, transparent 60%) no-repeat; background-size: 250% 100%; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 55% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.bc-badge { position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(20, 8, 44, 0.62); color: #ffd166; border: 1px solid rgba(255, 209, 102, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.book-card.hero .book-card-title { font-size: 40px; }
.book-card.hero .book-card-go { width: 54px; height: 54px; font-size: 24px; box-shadow: 0 8px 22px rgba(255, 190, 60, 0.45); animation: go-breathe 2.8s ease-in-out infinite; }
@keyframes go-breathe { 50% { scale: 1.07; box-shadow: 0 10px 28px rgba(255, 190, 60, 0.65); } }
.book-card.hero:hover .book-card-go { animation: none; translate: -4px 0; }
@media (min-width: 760px) { .together-grid { grid-template-columns: repeat(3, 1fr); } .book-card.hero { min-height: 250px; } }
.together { margin-top: 0; }

@media (max-width: 599px) {
  .book-card.hero { min-height: 176px; padding: 16px; border-radius: 20px; margin: 12px 0 10px; }
  .book-card.hero .book-card-title { font-size: 34px; }
  .book-card.hero .book-card-sub { font-size: 13px; }
  .book-card.hero .book-card-go { position: static; width: 46px; height: 46px; font-size: 20px; }
  .bc-badge { top: 12px; inset-inline-start: 12px; font-size: 12px; }
  /* three tiles, each centred: its picture, its name, one short line */
  .together-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .archive-card, .live-card, .chart-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
    min-height: 132px; padding: 12px 6px 10px; border-radius: 18px; }
  .ac-fan { width: 70px; height: 54px; justify-self: auto; }
  .ac-fan i { width: 38px; height: 50px; top: 2px; inset-inline-start: calc(var(--k) * 14px); }
  .ac-text { justify-items: center; }
  .ac-text b, .live-card h3, .chart-card h3 { font-size: 15px; line-height: 1.2; }
  .ac-count { font-size: 12px; }
  .ac-go { display: none; }
  .live-card p { display: none; }
  .live-card::after { content: "להצטרף · להוביל"; font-size: 11.5px; color: rgba(255, 255, 255, 0.78); }
  .lc-signal { width: 50px; height: 50px; }
  .live-card .lc-now { font-size: 12px; min-height: 30px; padding: 0 8px; }
  .live-card.on::after { content: none; }
  .cc-diagram { width: 50px; height: 56px; border-radius: 10px; }
  .cc-shape svg { width: 44px; }
  .chart-card::after { content: "3 כלים"; font-size: 11.5px; }
  .ac-count, .chart-card::after, .live-card::after { line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) { .book-card.hero::after, .book-card.hero .book-card-go { animation: none; } }
html[data-motion="calm"] .book-card.hero::after, html[data-motion="calm"] .book-card.hero .book-card-go { animation: none; }
@media (min-width: 600px) {
  .archive-card, .chart-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 18px 14px; min-height: 210px; }
  .ac-text { justify-items: center; }
  .ac-go, .cc-go { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; font-size: 15px; }
  .cc-chips { justify-content: center; }
  .live-card { grid-template-columns: auto 1fr; align-content: center; min-height: 210px; }
  .live-card .lc-join input { font-size: 15px; }
}

/* ================= a little more life, still quiet (Daniel, 1.10.2026): characters breathe, the films' characters stand
   up on a touch, cards answer a press, pictures drift. All of it off with calm motion / reduced motion ================= */
/* the song's characters: a slow breath (scale from the feet), each at its own pace; not in cinema mode */
@keyframes breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.012 1.028; } }
.head-fig img, #song-figs .sc-fig img { transform-origin: 50% 100%; animation: breathe 5.2s ease-in-out infinite; }
#song-figs .sc-fig:nth-child(2) img { animation-duration: 6.1s; animation-delay: -2s; }
body.groove .head-fig img, body.groove #song-figs .sc-fig img { animation: groove 2.07s ease-in-out infinite; }
/* the films' boxes: the character breathes too, and stands a little taller on a touch */
.mc-fig { animation: breathe 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
.movie-card.has-fig:active .mc-fig { scale: 1.08; transition: scale 0.15s; }
/* the scenery behind a film's box drifts, very slowly */
@keyframes drift { from { background-position: 50% 50%; } to { background-position: 54% 46%; } }
.movie-card.has-fig::before { background-size: 115%; animation: drift 18s ease-in-out infinite alternate; }
/* the extended songbook's fan opens a little when it comes into view, like a hand of cards */
@keyframes fan-in { from { rotate: 0deg; translate: 0 8px; opacity: 0; } }
.ac-fan i { animation: fan-in 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: calc(0.25s + var(--k) * 0.09s); }
/* tiles and cards answer a press */
.archive-card:active, .live-card:active, .chart-card:active, .book-card:active, .req-invite:active { scale: 0.97; transition: scale 0.12s; }
/* the live circle's dot beats softly like a heart */
.lc-signal b { animation: breathe-dot 1.6s ease-in-out infinite; }
/* the parchment pages breathe with the light */
@keyframes glow { 50% { filter: brightness(1.03) saturate(1.04); } }
.parchment { animation: glow 7s ease-in-out infinite; }
:root[data-theme="night"] .head-fig img, :root[data-theme="night"] #song-figs .sc-fig img, :root[data-theme="night"] .parchment { animation: none; }
@media (prefers-reduced-motion: reduce) { .head-fig img, #song-figs .sc-fig img, .mc-fig, .movie-card.has-fig::before, .ac-fan i, .lc-signal b, .parchment { animation: none; } }
html[data-motion="calm"] .head-fig img, html[data-motion="calm"] #song-figs .sc-fig img, html[data-motion="calm"] .mc-fig,
html[data-motion="calm"] .movie-card.has-fig::before, html[data-motion="calm"] .ac-fan i, html[data-motion="calm"] .lc-signal b, html[data-motion="calm"] .parchment { animation: none; }
/* the films' heading and the extended-songbook switch: room above and below, never pressed against the tiles or the films */
.films-head { margin: 22px 0 12px; row-gap: 10px; align-items: center; }
.films-head .section-title { margin: 0; }
@media (max-width: 599px) { .films-head { margin: 20px 0 12px; } .films-head .arch-toggle { margin-inline-start: auto; } }
/* the films' title and the switch on one line (Daniel): on a phone the switch keeps only its name */
.films-head { flex-wrap: nowrap; justify-content: space-between; }
.films-head .section-title { white-space: nowrap; }
@media (max-width: 599px) {
  .films-head .section-title { font-size: 17px; }
  .films-head .arch-toggle { flex: 0 1 auto; min-width: 0; min-height: 40px; gap: 8px; padding: 4px 5px 4px 12px; }
  .films-head .at-text small { display: none; }
  .films-head .at-text b { font-size: 13px; white-space: nowrap; }
  .films-head .at-track { width: 44px; height: 26px; }
  .films-head .at-knob { width: 20px; height: 20px; }
  .films-head .arch-toggle:has(input:checked) .at-knob { inset-inline-start: 21px; }
}

/* ================= table of contents: the songbook, a film's songs, the extended songbook - one design (Daniel,
   1.10.2026: a magic songbook opening). Hero with the film's character, glass search, status filters, cards with the
   picture as their edge and the status at a glance ================= */
.st-now { --st: #ffd166; } .st-past { --st: #7dd3fc; } .st-added { --st: #c4b5fd; }

/* the hero */
.toc-hero { --nh: 265; --ns: 55%; position: relative; overflow: hidden; isolation: isolate; min-height: 176px; justify-content: flex-end;
  padding: 18px var(--gutter) 18px; margin-bottom: 0;
  background: linear-gradient(to top, var(--bg-0) 0%, rgba(26, 11, 46, 0.55) 45%, rgba(26, 11, 46, 0.15) 100%), var(--img) center 45% / cover; }
.toc-hero::before { content: ""; position: absolute; inset: -6%; z-index: -1; background: inherit; filter: blur(0); animation: hero-drift 22s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
.th-text { position: relative; z-index: 1; max-width: min(640px, 64%); }
.toc-hero:not(.has-fig) .th-text { max-width: 100%; }
.th-kicker { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(20, 8, 44, 0.55); color: #ffd166; border: 1px solid rgba(255, 209, 102, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.toc-hero h1 { margin: 0; font-size: clamp(28px, 8vw, 44px); line-height: 1.05; text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7); }
.th-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; color: #ffe08a; font-weight: 600; font-size: 14px; }
.th-stat { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, 0.85); font-weight: 500; font-size: 13px; }
.th-stat i, .tf i, .tc-status i, .tg-name i { width: 8px; height: 8px; border-radius: 50%; background: var(--st); box-shadow: 0 0 8px var(--st); flex: none; }
.th-fig { position: absolute; z-index: 0; bottom: 0; inset-inline-end: calc(var(--gutter) - 4px); height: 92%; max-width: 38%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); transform-origin: 50% 100%; animation: fig-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, breathe 5.6s ease-in-out 0.8s infinite; }
@keyframes fig-rise { from { opacity: 0; translate: 0 18px; } }

/* the tools: a glass search with its icon and a clear button; the status filters as chips */
.toc-tools { position: sticky; top: calc(env(safe-area-inset-top) + 58px); z-index: 12; display: grid; gap: 8px; margin: 0 calc(var(--gutter) * -1) 10px;
  padding: 10px var(--gutter) 10px; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg-0) 92%, transparent) 70%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toc-search { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 16px; cursor: text;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; }
.toc-search:focus-within { border-color: rgba(255, 209, 102, 0.75); background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.14), 0 10px 26px rgba(0, 0, 0, 0.22); }
.toc-search svg { flex: none; color: #ffd166; }
.toc-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.toc-search input::placeholder { color: var(--muted); }
.toc-search input::-webkit-search-cancel-button { display: none; }
.ts-clear { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--text); font-size: 13px; cursor: pointer; }
.toc-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.toc-filters::-webkit-scrollbar { display: none; }
.tf { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.tf small { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.tf.st-all i { display: none; }
.tf[aria-pressed="true"] { background: color-mix(in srgb, var(--st, #ffd166) 26%, rgba(20, 8, 44, 0.6)); border-color: color-mix(in srgb, var(--st, #ffd166) 70%, transparent); color: #fff; }
.tf.st-all[aria-pressed="true"] { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; border-color: transparent; }
.tf.st-all[aria-pressed="true"] small { background: rgba(26, 11, 46, 0.18); }

/* the cards */
.toc-list { gap: 8px; }
.toc-item a { position: relative; gap: 12px; min-height: 72px; padding: 0 12px 0 0; overflow: hidden; border-radius: 18px; isolation: isolate;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1)); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.3s, background 0.3s; }
/* the picture is the card's edge: full height, fading into the card */
.tc-thumb { flex: 0 0 76px; align-self: stretch; height: auto; min-height: 72px; border-radius: 0; box-shadow: none; background-position: center 30%;
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent); mask-image: linear-gradient(to left, #000 60%, transparent); transition: scale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.toc-item .song-meta { padding: 10px 0; gap: 3px; }
.toc-item .song-title { font-size: 17px; line-height: 1.25; }
.tc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12.5px; color: var(--muted); }
.tc-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--st); }
.tc-num { flex: 0 0 34px; height: 34px; margin-inline-start: auto; border-radius: 50%; font-size: 14px; font-weight: 700; color: #1a0b2e;
  background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); box-shadow: 0 4px 12px rgba(255, 190, 60, 0.35); }
/* a song of the Circle now: a golden edge, so the eye finds them at once */
.toc-item.st-now a { border-color: rgba(255, 209, 102, 0.28); background: linear-gradient(90deg, rgba(255, 209, 102, 0.04), rgba(255, 209, 102, 0.12)); }
.toc-item.st-now a::after { content: ""; position: absolute; inset-block: 10px; inset-inline-end: 0; width: 3px; border-radius: 3px 0 0 3px; background: linear-gradient(#ffd166, #ffa500); }
body[data-page="book"] .toc-item.st-now a::after { display: none; }
.toc-item a:hover, .toc-item a:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--st) 60%, transparent);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 0 1px color-mix(in srgb, var(--st) 40%, transparent), 0 0 24px color-mix(in srgb, var(--st) 18%, transparent); }
.toc-item a:hover .tc-thumb { scale: 1.06; }
.toc-item a:active { transform: scale(0.98); transition-duration: 0.1s; }

/* groups in the extended songbook */
.toc-group { justify-content: space-between; margin: 16px 2px 4px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.tg-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--st); }
.toc-group small { color: var(--muted); font-size: 12.5px; }

/* the booklet's first pages side by side */
.bi-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; }
.bi-pair .book-insert a { min-height: 84px; }
.bi-pair .bi-title { font-size: 16px; }

/* entrance: quick and short, and again after a filter */
.toc-list .toc-item { animation: rise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 22ms); }
.toc-list.refilter .toc-item { animation-name: refade; }
@keyframes refade { from { opacity: 0; translate: 0 6px; } }

@media (max-width: 599px) {
  .toc-hero { min-height: 158px; margin-top: -10px; padding-bottom: 14px; }
  .th-fig { height: 88%; max-width: 40%; }
  .toc-tools { top: calc(env(safe-area-inset-top) + 56px); padding-top: 8px; padding-bottom: 8px; margin-bottom: 8px; }
  .toc-item a { min-height: 66px; gap: 10px; border-radius: 16px; }
  .tc-thumb { flex-basis: 64px; min-height: 66px; }
  .toc-item .song-title { font-size: 15.5px; }
  .tc-num { flex-basis: 30px; height: 30px; font-size: 12.5px; }
}
@media (max-width: 360px) {
  .th-kicker { font-size: 11px; }
  .toc-hero h1 { font-size: 26px; }
  .tc-thumb { flex-basis: 54px; }
  .toc-item .song-title { font-size: 14.5px; }
  .tf { padding: 0 10px; font-size: 12.5px; }
}
:root[data-theme="night"] .toc-item a { background: rgba(255, 255, 255, 0.035); }
:root[data-theme="night"] .toc-item.st-now a { background: rgba(255, 209, 102, 0.05); }
:root[data-theme="night"] .toc-hero::before, :root[data-theme="night"] .th-fig { filter: brightness(0.8); }
@media (prefers-reduced-motion: reduce) { .toc-hero::before, .th-fig, .toc-list .toc-item { animation: none; } }
html[data-motion="calm"] .toc-hero::before, html[data-motion="calm"] .th-fig { animation: none; }
/* the status classes on a card / heading / stat carry only --st (the pill colours are for the pills) */
.toc-item.st-now, .toc-item.st-past, .toc-item.st-added, .toc-group.st-now, .toc-group.st-past, .toc-group.st-added,
.tc-status, .th-stat { background: none; }
.toc-item { color: var(--text); }
.toc-item .song-title { color: var(--text); }
.th-stats { font-size: 13.5px; gap: 2px 10px; }
@media (max-width: 599px) { .th-stat { font-size: 12px; } }
.toc-item .tc-num { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; font-weight: 800; margin-inline-end: 0; }
.toc-item.st-now a::after { display: none; }   /* the golden number marks the Circle's songs; no second mark */
.toc-item a { padding-inline-end: 12px; }

/* ================= table of contents, polish 2 (Daniel, 1.10.2026): name -> search -> filters -> songs. The hero is a
   cover, not a stats board: the name, the count quietly, a character, slow light and a few stars ================= */
.th-fx { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.85; }
.toc-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 80% 110%, rgba(255, 209, 102, 0.18), transparent 60%); animation: hero-glow 7s ease-in-out infinite; }
@keyframes hero-glow { 50% { opacity: 0.55; } }
.th-count { margin: 6px 0 0; font-size: 13.5px; font-weight: 500; color: rgba(255, 236, 190, 0.82); letter-spacing: 0.02em; }
.th-count::before { content: "✦ "; color: #ffd166; font-size: 11px; }
.toc-hero h1 { letter-spacing: -0.01em; }

/* the search: the main tool - a warm glow of light rather than a plain field */
.toc-search { min-height: 54px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 209, 102, 0.28); }
.toc-search svg { filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.55)); }
.toc-search input { font-size: 16.5px; }
.toc-search:focus-within svg { animation: glint 1.6s ease-in-out infinite; }
@keyframes glint { 50% { filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.9)); } }

/* the filters carry the split; their numbers are small and quiet */
.tf { min-height: 36px; font-weight: 600; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s; }
.tf small { padding: 0; background: none; font-weight: 500; font-size: 11.5px; opacity: 0.6; }
.tf:active { transform: scale(0.95); }
.tf[aria-pressed="true"] { box-shadow: 0 0 16px color-mix(in srgb, var(--st, #ffd166) 35%, transparent); }
.tf.st-all[aria-pressed="true"] small { background: none; opacity: 0.7; }

/* the cards: the picture melts into the card, long names wrap to two lines, every card ends with an intent */
.tc-thumb { flex-basis: 84px; -webkit-mask-image: linear-gradient(to left, #000 35%, rgba(0, 0, 0, 0.55) 70%, transparent);
  mask-image: linear-gradient(to left, #000 35%, rgba(0, 0, 0, 0.55) 70%, transparent); }
.toc-item a { gap: 8px; }
.toc-item .song-meta { flex: 1 1 auto; min-width: 0; }
.toc-item .song-title { display: block; overflow: visible; overflow-wrap: anywhere; }   /* never cut (Daniel) */
.tc-status { font-weight: 600; opacity: 0.92; }
.tc-status i { width: 7px; height: 7px; }
.tc-go { flex: 0 0 30px; height: 30px; margin-inline-start: auto; display: grid; place-items: center; border-radius: 50%; font-size: 18px; color: var(--muted);
  background: rgba(255, 255, 255, 0.06); transition: translate 0.3s, background 0.3s, color 0.3s; }
.toc-item a:hover .tc-go { translate: -3px 0; background: color-mix(in srgb, var(--st) 25%, transparent); color: #fff; }
.toc-item a:hover .tc-num { box-shadow: 0 0 18px rgba(255, 200, 80, 0.7); }
.toc-item a::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 120% at 90% 50%, color-mix(in srgb, var(--st) 22%, transparent), transparent 70%); transition: opacity 0.35s; }
.toc-item a:hover::before, .toc-item a:focus-visible::before, .toc-item a:active::before { opacity: 1; }

@media (max-width: 599px) {
  .toc-list { gap: 7px; }
  .toc-item a { min-height: 62px; border-radius: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
  .tc-thumb { flex-basis: 70px; min-height: 62px; }
  .toc-item .song-meta { padding: 8px 0; }
  .toc-item .song-title { font-size: 15px; }
  .tc-sub { font-size: 12px; }
  .tc-go { flex-basis: 26px; height: 26px; font-size: 16px; }
  .th-count { font-size: 12.5px; }
}
:root[data-theme="night"] .th-fx { opacity: 0.45; }
@media (prefers-reduced-motion: reduce) { .toc-hero::after, .toc-search:focus-within svg { animation: none; } }
html[data-motion="calm"] .toc-hero::after { animation: none; }
/* a film with no drawing: a watercolour wash in the film's colours (--w1 --w2 --w3, washOf in app.js) under the logo */
.wash { --wash: radial-gradient(55% 60% at 22% 28%, color-mix(in srgb, var(--w1) 85%, transparent), transparent 70%),
  radial-gradient(60% 55% at 80% 70%, color-mix(in srgb, var(--w2) 80%, transparent), transparent 72%),
  radial-gradient(45% 45% at 70% 18%, color-mix(in srgb, var(--w3) 75%, transparent), transparent 70%),
  radial-gradient(50% 50% at 30% 85%, color-mix(in srgb, var(--w3) 45%, transparent), transparent 70%),
  linear-gradient(160deg, color-mix(in srgb, var(--w1) 55%, #1a0b2e), color-mix(in srgb, var(--w2) 70%, #1a0b2e)); }
.movie-card.wash::before { background: var(--wash); background-size: 130% 130%; filter: saturate(1.05) blur(0.3px); }
.movie-card.wash::after { background: linear-gradient(to top, rgba(18, 6, 40, 0.8) 0%, rgba(18, 6, 40, 0.2) 45%, transparent 70%); }
.movie-card.wash .mc-fig { height: 70%; bottom: 22%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.toc-hero.wash { background: linear-gradient(to top, var(--bg-0) 0%, rgba(26, 11, 46, 0.25) 60%, transparent 100%), var(--wash); }
.toc-hero.wash::before { background: var(--wash); opacity: 0.6; mix-blend-mode: soft-light; }
.toc-hero.wash .th-fig { height: 76%; bottom: 10%; }
.nc-ph.wash { display: block; background: var(--wash); }
.nav-card:has(.nc-ph.wash) .nc-fig { height: 64%; bottom: 20%; }
/* every card's picture (Daniel, 1.10.2026): a framed miniature of the song's own painting, cropped around its character
   (img/toc, tools/make_toc_thumbs.py) - full colour, the watercolour whole, the same size on every card */
.toc-item a { height: auto; min-height: 84px; padding-inline-start: 10px; gap: 14px; }
.toc-item .tc-thumb.tc-pic { position: relative; flex: 0 0 66px; width: 66px; height: 66px; min-height: 0; align-self: center; overflow: hidden;
  border-radius: 16px; background: #2a1646; -webkit-mask-image: none; mask-image: none;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.18), 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s; }
.tc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tc-pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.28), transparent 45%); mix-blend-mode: soft-light; }
.toc-item.st-now .tc-thumb.tc-pic { box-shadow: 0 0 0 1.5px rgba(255, 209, 102, 0.6), 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 190, 60, 0.18); }
.toc-item a:hover .tc-thumb { scale: 1; }
.toc-item a:hover .tc-thumb.tc-pic, .toc-item a:focus-visible .tc-thumb.tc-pic { transform: rotate(-3deg) scale(1.07);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--st, #ffd166) 75%, transparent), 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 20px color-mix(in srgb, var(--st, #ffd166) 35%, transparent); }
.toc-item a:hover .tc-pic img { scale: 1.1; }
.tc-pic.tc-wash { background: var(--wash); }
.tc-pic.tc-wash img { object-fit: contain; padding: 9px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4)); }
:root[data-theme="night"] .tc-pic img { filter: brightness(0.86); }
@media (max-width: 599px) {
  .toc-item a { height: auto; min-height: 72px; padding-inline-start: 8px; gap: 11px; }
  .toc-item .tc-thumb.tc-pic { flex-basis: 56px; width: 56px; height: 56px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .toc-item a:hover .tc-thumb.tc-pic { transform: none; } .toc-item a:hover .tc-pic img { scale: 1; } }

/* ================= the next / previous song cards (Daniel, 1.10.2026): the same format, but bright, colourful and inviting -
   the song's painting blurred into a glow of its own colours, a soft light behind the character, the words on a veil of the
   song's hue (not black), and every card the same size however long the title ================= */
.nav-card { height: clamp(150px, 19vw, 176px); min-height: 0; }
.nav-card:has(.nc-ph.glow) { background: radial-gradient(70% 90% at 50% 0%, hsl(calc(var(--nh) + 30) 90% 88%), transparent 70%),
  linear-gradient(160deg, hsl(var(--nh) 80% 80%), hsl(calc(var(--nh) + 40) 75% 66%)); }
.nc-ph.glow { filter: saturate(1.2) brightness(1.06); object-position: center 40%; }
.nav-card:has(.nc-ph.glow)::after { opacity: 0; }
.nav-card:has(.nc-ph.glow) .nc-shade {
  background: radial-gradient(48% 62% at var(--lx, 22%) 62%, rgba(255, 250, 235, 0.55), transparent 70%),
    linear-gradient(var(--vd, 270deg), hsl(var(--nh) 70% 22% / 0.82) 0%, hsl(var(--nh) 65% 26% / 0.5) 38%, transparent 68%); }
.nav-card.prev { --lx: 20%; --vd: 270deg; }      /* the character on the left, the words on the right */
.nav-card.next { --lx: 80%; --vd: 90deg; }
.nav-card:has(.nc-ph.glow) .nc-fig { filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.85)) drop-shadow(0 10px 14px hsl(var(--nh) 60% 18% / 0.45));
  animation: nc-float 5s ease-in-out infinite; }
@keyframes nc-float { 50% { translate: 0 -4px; } }
.nav-card:has(.nc-ph.glow) .nc-arrow { background: rgba(255, 255, 255, 0.28); box-shadow: 0 4px 14px hsl(var(--nh) 60% 25% / 0.35); }
/* a slow gleam passes over the card now and then - an invitation, not a flash */
.nav-card:has(.nc-ph.glow)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%); background-size: 250% 100%;
  background-position: 130% 0; animation: nc-gleam 7s ease-in-out infinite; }
.nav-card.next:has(.nc-ph.glow)::before { animation-delay: 3.5s; }
@keyframes nc-gleam { 0%, 70% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
/* the same size for every song, and nothing cut: a long name gets a smaller font (nc-long / nc-xlong in navCard) */
.nav-card .nc-t { margin-top: 0; }
.nav-card:has(.nc-fig) .nc-t { max-width: 62%; }
.nav-card .nc-title { display: block; overflow: visible; line-height: 1.12; text-shadow: 0 2px 12px hsl(var(--nh) 70% 15% / 0.7); }
.nav-card.nc-long .nc-title { font-size: clamp(15px, 2.1vw, 19px); }
.nav-card.nc-xlong .nc-title { font-size: clamp(13.5px, 1.8vw, 17px); }
.nav-card .nc-film { line-height: 1.2; }
.nav-card .nc-t small { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 6px hsl(var(--nh) 70% 15% / 0.6); }
@media (max-width: 599px) {
  .nav-card { height: 158px; padding: 10px 12px; }
  .nav-card .nc-title { font-size: 16px; }
  .nav-card.nc-long .nc-title { font-size: 14.5px; }
  .nav-card.nc-xlong .nc-title { font-size: 13px; }
  .nav-card .nc-t small, .nav-card .nc-film { font-size: 11.5px; }
}
@media (max-width: 380px) {
  .nav-card { padding: 10px; }
  .nav-card .nc-title { font-size: 15px; }
  .nav-card.nc-long .nc-title { font-size: 13.5px; }
  .nav-card.nc-xlong .nc-title { font-size: 12.5px; }
  .nav-card:has(.nc-fig) .nc-t { max-width: 66%; }
}
/* cinema mode: the same card, only lower */
:root[data-theme="night"] .nc-ph.glow { filter: saturate(1.1) brightness(0.62); }
:root[data-theme="night"] .nav-card:has(.nc-ph.glow) { background: linear-gradient(160deg, hsl(var(--nh) 45% 22%), hsl(calc(var(--nh) + 40) 45% 14%)); }
:root[data-theme="night"] .nav-card:has(.nc-ph.glow) .nc-shade { background: radial-gradient(48% 62% at var(--lx, 22%) 62%, rgba(255, 230, 190, 0.16), transparent 70%),
  linear-gradient(var(--vd, 270deg), hsl(var(--nh) 60% 10% / 0.85) 0%, transparent 70%); }
:root[data-theme="night"] .nav-card:has(.nc-ph.glow)::before { display: none; }
@media (prefers-reduced-motion: reduce) { .nav-card .nc-fig, .nav-card::before { animation: none !important; } }
html[data-motion="calm"] .nav-card .nc-fig, html[data-motion="calm"] .nav-card::before { animation: none !important; }
@media (max-width: 340px) { .nav-card .nc-arrow { width: 30px; height: 30px; top: 8px; } .nav-card.prev .nc-arrow { right: 8px; } .nav-card.next .nc-arrow { left: 8px; } }

/* ================= the live circle's window (Daniel, 1.10.2026): joining first and biggest, leading a quiet second ================= */
.lv { display: grid; gap: 14px; }
.lv-head { display: grid; justify-items: center; gap: 2px; text-align: center; }
.lv-head h2 { margin: 2px 0 0; font-size: 24px; }
.lv-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lv-signal { width: 52px; height: 52px; }
.lv-now { display: grid; gap: 8px; }
.lv-now:empty { display: none; }
.lv-live { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 16px; border-radius: 18px; border: 1px solid rgba(124, 252, 154, 0.55); cursor: pointer;
  color: #fff; font: inherit; text-align: start; background: linear-gradient(135deg, rgba(124, 252, 154, 0.22), rgba(56, 189, 148, 0.12)); box-shadow: 0 10px 26px -14px rgba(124, 252, 154, 0.8);
  animation: lv-in 0.35s ease both; }
.lv-live:hover { background: linear-gradient(135deg, rgba(124, 252, 154, 0.32), rgba(56, 189, 148, 0.18)); }
.lv-live-t { flex: 1 1 auto; display: grid; }
.lv-live-t b { font-size: 16px; }
.lv-live-t small { color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.lv-live-go { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #7cfc9a; color: #0d2b1c; font-weight: 800; }
@keyframes lv-in { from { opacity: 0; transform: translateY(6px); } }
.lv-form { display: grid; gap: 8px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.lv-form label { font-weight: 700; font-size: 14px; color: var(--muted); }
.lv-row { display: flex; gap: 8px; }
.lv-code { flex: 1 1 auto; min-width: 0; height: 60px; padding: 0 16px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.1);
  color: #fff; font: inherit; font-size: 26px; font-weight: 800; letter-spacing: 0.22em; text-align: center; text-transform: uppercase; }
.lv-code::placeholder { color: rgba(255, 255, 255, 0.28); font-weight: 600; }
.lv-code:focus { outline: none; border-color: #ffd166; background: rgba(255, 209, 102, 0.08); box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.15); }
.lv-code.sm { height: 48px; font-size: 18px; }
.lv-go { min-height: 60px; padding: 0 22px; border-radius: 16px; font-size: 17px; }
.lv-go:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.lv-qr { margin: 2px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.lv-lead { border-top: 1px dashed rgba(255, 255, 255, 0.16); padding-top: 6px; }
.lv-lead-toggle { display: block; width: 100%; min-height: 44px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.lv-lead-toggle b { color: #c9b6ff; text-decoration: underline; text-underline-offset: 3px; }
.lv-lead-toggle:hover b { color: #fff; }
.lv-lead.open .lv-lead-toggle { color: var(--text); }
.lv-lead-box { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 4px 0 2px; animation: lv-in 0.25s ease both; }
.lv-lead-box p { margin: 0; color: var(--muted); font-size: 13.5px; }
.lv-lead-box .lead-fixed { width: 100%; display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
@media (max-width: 420px) { .lv-code { height: 56px; font-size: 22px; } .lv-go { min-height: 56px; padding: 0 18px; } }
/* the home card: a circle live right now, one tap */
.lc-live { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; min-height: 48px; border: 1px solid rgba(124, 252, 154, 0.55); border-radius: 14px;
  background: rgba(124, 252, 154, 0.16); color: #fff; font: inherit; font-weight: 700; cursor: pointer; position: relative; z-index: 3; }
.lc-live:hover { background: rgba(124, 252, 154, 0.26); }
/* nothing in the live window may be wider than the window (a long field pushed the join button off the edge) */
.lv, .lv-form, .lv-now, .lv-lead-box { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.lv-row { min-width: 0; }
.lv-code { width: auto; }
.lv-go { flex: 0 0 auto; }
.lv-live-t { min-width: 0; }
/* a picture element (an AVIF with a WebP fallback) lays out exactly like the image it holds */
picture { display: contents; }
/* the footer waits for the first page (mobile performance, 1.10.2026): under the "opening the songbook" placeholder it
   stood in the middle of the screen and jumped down when the page came (the biggest layout shift of a first visit) */
body:not(.ready) #site-footer { display: none; }

/* Daniel's GeverMelech mode: the capo moves inside the song (lib/capomoves.js) */
.capo-move { display: table; margin: 14px 0 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 196, 0, 0.22);
  border: 1px solid rgba(214, 150, 0, 0.55); color: var(--text); font-weight: 700; font-size: 15px; }
html[data-theme="night"] .capo-move { background: rgba(255, 196, 0, 0.16); color: #ffe6a0; }

/* "live now" invitation (the room banner before you join): big, gold, impossible to miss */
.room-banner.invite { gap: 12px; padding: 10px 12px; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(45deg, rgba(22, 163, 74, 0.96), rgba(16, 185, 129, 0.96)); }
.room-banner.invite .dot { background: #fff; box-shadow: 0 0 10px #fff; }
.room-banner.invite .inv-join { padding: 9px 18px; background: #ffd166; color: #1a0b2e; font-size: 16px; font-weight: 800; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.room-banner.invite .inv-x { padding: 6px 10px; background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---- the band area (#/band, lib/band.js): band page, sound requests, parts, notes on song lines ---- */
.band-as { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 0; color: var(--muted); font-size: 14px; }
.band-as select { min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); color: var(--text); font: inherit; }
.band-as option { color: #1a0b2e; }
.band-tabs { display: flex; width: min(520px, calc(100% - 32px)); margin: 14px auto 6px; }
.band-tabs a { flex: 1; text-align: center; padding: 10px 6px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; }
.band-tabs a[aria-pressed="true"] { background: linear-gradient(45deg, var(--violet-a), var(--violet-b)); color: #fff; }
.band-body { width: min(820px, 100%); margin: 0 auto; padding: 0 16px; }
.band-foot { text-align: center; margin: 28px 0 10px; }
.band-login { max-width: 420px; margin: 18px auto; padding: 0 16px; }
.band-roster { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.band-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.band-card b { font-size: 17px; }
.band-card span { color: var(--muted); font-size: 14px; }
.band-card small { color: #ffe08a; font-size: 12.5px; }
.band-card.me { border-color: rgba(255, 215, 0, 0.6); background: rgba(255, 215, 0, 0.1); }
.band-card.sound { border-style: dashed; }
/* sound requests */
.snd-free { display: flex; gap: 8px; margin: 8px 0 4px; }
.snd-free .search { flex: 1; min-width: 0; }
.snd-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.snd-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }
.snd-item small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.snd-item.open { background: rgba(255, 196, 0, 0.16); border: 1px solid rgba(255, 196, 0, 0.45); }
.snd-item.done { opacity: 0.6; }
.snd-hall { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(139, 92, 246, 0.35); }
.snd-board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.snd-board-head .hint { margin: 0; text-align: start; flex: 1; }
.snd-board { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.snd-col { padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.snd-col.hot { border-color: rgba(255, 196, 0, 0.7); box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.3), 0 6px 20px rgba(255, 196, 0, 0.12); }
.snd-col h3 { margin: 2px 4px 8px; font-size: 18px; }
.snd-col h3 small { color: #ffe08a; font-size: 13px; font-weight: 500; }
.snd-done { min-width: 48px; min-height: 44px; border: 0; border-radius: 11px; background: linear-gradient(45deg, #16a34a, #10b981); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.snd-item.done .snd-done { background: rgba(255, 255, 255, 0.14); font-size: 16px; }
/* parts */
.parts-songs { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.parts-song { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.ps-num { color: #ffd166; font-weight: 700; text-align: center; }
.ps-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ps-count b { color: #7cfc9a; font-weight: 700; }
.ps-h { margin: 14px 0 6px; font-size: 16px; color: var(--muted); }
.part-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.part-item { display: flex; align-items: center; gap: 8px; }
.part-open { flex: 1; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: var(--text); text-decoration: none; }
.part-ic { grid-row: 1 / 3; display: grid; place-items: center; height: 40px; border-radius: 10px; background: rgba(255, 215, 0, 0.18); font-size: 13px; font-weight: 800; color: #ffd166; }
.part-open small { color: var(--muted); font-size: 12px; }
.part-up { display: grid; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.part-up label:not(.pu-pick) { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.part-up select { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); color: var(--text); font: inherit; }
.part-up option { color: #1a0b2e; }
.pu-pick { text-align: center; cursor: pointer; }
/* notes feed */
.bn-feed { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.bn-feed a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: var(--text); text-decoration: none; }
.bn-feed small { color: var(--muted); font-size: 12px; }
/* the band's layer on a song page */
.band-chip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.band-chip button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, rgba(255, 255, 255, 0.6)); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.band-chip button[aria-pressed="true"] { background: linear-gradient(45deg, var(--violet-a), var(--violet-b)); color: #fff; border-color: transparent; }
.lyrics.bn-live [data-b] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.bn-mark { border-radius: 8px; box-shadow: 0 0 0 4px var(--bn); background: var(--bn); }
.bn-gold { --bn: rgba(255, 214, 0, 0.32); } .bn-rose { --bn: rgba(255, 105, 180, 0.24); } .bn-sky { --bn: rgba(56, 189, 248, 0.26); } .bn-mint { --bn: rgba(52, 211, 153, 0.26); }
.bn-off .bn-mark { box-shadow: none; background: none; }
.bn-off .bn-note { display: none; }
.bn-note { display: flex; align-items: baseline; gap: 8px; width: fit-content; max-width: 100%; margin: 2px 0 8px; padding: 4px 10px; border-radius: 10px; font-family: "Daniel Letters", "Daniel Letters", "Rubik", sans-serif; font-size: 0.72em; line-height: 1.45;
  background: rgba(255, 214, 0, 0.22); border-inline-start: 3px solid #d69e00; color: var(--text); }
.bn-note.band { background: rgba(139, 92, 246, 0.16); border-inline-start-color: #8b5cf6; }
.bn-who { font-size: 0.82em; font-weight: 700; opacity: 0.75; white-space: nowrap; }
.bn-x { border: 0; background: none; color: inherit; opacity: 0.55; cursor: pointer; font-size: 0.9em; padding: 0 2px; }
.bn-pressed { background: rgba(139, 92, 246, 0.18); border-radius: 8px; transition: background 0.2s; }
.bn-scope { display: flex; margin: 8px 0; }
.bn-scope button { flex: 1; }
.bn-colors { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bn-sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); background: var(--bn); cursor: pointer; }
.bn-sw.bn-gold { --bn: #f5c400; } .bn-sw.bn-rose { --bn: #ff69b4; } .bn-sw.bn-sky { --bn: #38bdf8; } .bn-sw.bn-mint { --bn: #34d399; }
@media (max-width: 420px) { .parts-song { grid-template-columns: 28px 1fr; } .ps-count { grid-column: 2; } }

/* the band entry: a link that looks like its neighbours (top bar icon, home pill) */
a.icon-btn { display: inline-grid; place-items: center; color: inherit; text-decoration: none; }
a.icon-btn[hidden] { display: none; }
a.replay-cover { text-decoration: none; display: inline-block; }
.bn-people { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 10px; }
.bn-people .chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); color: var(--text); font: inherit; cursor: pointer; }
.bn-people .chip[aria-pressed="true"] { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; border-color: transparent; font-weight: 700; }
.bn-note.some { background: rgba(56, 189, 248, 0.16); border-inline-start-color: #0ea5e9; }
.bn-note.editable { cursor: pointer; }
.bn-edit { border: 0; background: none; color: inherit; opacity: 0.7; cursor: pointer; font-size: 0.95em; padding: 0 2px; }

/* who a note is for, by colour (Daniel): yellow = myself, blue = everyone, green = some people */
.bn-note.me { background: rgba(255, 214, 0, 0.24); border-inline-start-color: #d69e00; }
.bn-note.band { background: rgba(147, 197, 253, 0.62); border-inline-start-color: #2563eb; }
.bn-note.some { background: rgba(34, 197, 94, 0.18); border-inline-start-color: #16a34a; }
.bn-m-me { --bn: rgba(255, 214, 0, 0.32); } .bn-m-band { --bn: rgba(147, 197, 253, 0.6); } .bn-m-some { --bn: rgba(34, 197, 94, 0.24); }
.bn-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: 0; }
.bn-dot.me { background: #f5c400; } .bn-dot.band { background: #2563eb; } .bn-dot.some { background: #16a34a; }
.bn-legend { flex-basis: 100%; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.band-chip:has(#bn-toggle[aria-pressed="false"]) .bn-legend { display: none; }
.band-tabs a { white-space: nowrap; }
@media (max-width: 420px) { .band-tabs a { padding: 10px 2px; font-size: 13.5px; } }

/* the note window in the colour of who it is for (Daniel: every button in its right colour) */
.bn-scope button[data-scope="me"] { --sc: #f5c400; --sc-ink: #1a0b2e; }
.bn-scope button[data-scope="some"] { --sc: #16a34a; --sc-ink: #fff; }
.bn-scope button[data-scope="band"] { --sc: #2563eb; --sc-ink: #fff; }
.bn-scope button { border: 1px solid transparent; }
.bn-scope button[aria-pressed="true"] { background: var(--sc); color: var(--sc-ink); box-shadow: 0 0 0 2px var(--sc); }
.bn-scope button[aria-pressed="true"] .bn-dot { background: var(--sc-ink); }
#sheet-body[data-bn-scope="me"] #bn-save { background: #f5c400; color: #1a0b2e; }
#sheet-body[data-bn-scope="some"] #bn-save { background: #16a34a; color: #fff; }
#sheet-body[data-bn-scope="band"] #bn-save { background: #2563eb; color: #fff; }
#sheet-body[data-bn-scope="me"] #bn-mark { color: #ffd84d; }
#sheet-body[data-bn-scope="some"] #bn-mark { color: #4ade80; }
#sheet-body[data-bn-scope="band"] #bn-mark { color: #93c5fd; }
.bn-people .chip[aria-pressed="true"] { background: #16a34a; color: #fff; }

/* the who-is-it-for switch: each button in its own colour even when not chosen, and one pill that slides between them */
.bn-scope { position: relative; display: flex; isolation: isolate; }
.bn-scope button { position: relative; z-index: 1; flex: 1; color: var(--sc); font-weight: 700; background: color-mix(in srgb, var(--sc) 14%, transparent); margin: 0 2px; transition: color 0.3s; }
.bn-scope button[aria-pressed="true"] { background: transparent; box-shadow: none; color: var(--sc-ink); }
.bn-scope button[data-scope="me"]:not([aria-pressed="true"]) { color: #ffd84d; }
.bn-scope button[data-scope="some"]:not([aria-pressed="true"]) { color: #4ade80; }
.bn-scope button[data-scope="band"]:not([aria-pressed="true"]) { color: #93c5fd; }
.bn-scope button:not([aria-pressed="true"]) .bn-dot { background: currentColor; }
.bn-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; z-index: 0; border-radius: 999px; pointer-events: none;
  background: #f5c400; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); transition: background-color 0.35s; }
.bn-pill[data-scope="some"] { background: #16a34a; }
.bn-pill[data-scope="band"] { background: #2563eb; }
.bn-scope { overflow: hidden; }
.bn-scope button { white-space: nowrap; padding: 0 8px; }
@media (max-width: 420px) { .bn-scope button { font-size: 13px; padding: 0 4px; margin: 0 1px; } .bn-scope .bn-dot { margin-inline-end: 4px; } }

/* breaks: where the whole band stops (public/lib/breaks.js) - a red stop sign in the line itself */
.brk { display: inline-flex; align-items: center; gap: 3px; margin: 0 5px; padding: 1px 8px 1px 7px; border-radius: 999px; vertical-align: 0.1em;
  background: #dc2626; color: #fff; font-family: "Daniel Letters", "Rubik", sans-serif; font-size: 0.55em; font-weight: 800; line-height: 1.6; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35); }
.brk b { font-size: 1.1em; }
.lyrics.brk-mode .l-line { cursor: crosshair; outline: 1px dashed rgba(220, 38, 38, 0.35); outline-offset: 3px; border-radius: 6px; }
.lyrics.brk-mode .brk { cursor: pointer; outline: 2px solid #fff; }
.band-chip #bn-brk[aria-pressed="true"] { background: #dc2626; color: #fff; border-color: transparent; }

/* "אנשים מסוימים": the names open with the window growing gently, each name floating in a moment after the one before */
.bn-people-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease; }
.bn-people-wrap.open { grid-template-rows: 1fr; opacity: 1; }
.bn-people-wrap > .bn-people { min-height: 0; overflow: hidden; margin: 0; padding: 6px 2px 12px; }
.bn-people-wrap .chip { opacity: 0; transform: translateY(8px) scale(0.92); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s; }
.bn-people-wrap.open .chip { opacity: 1; transform: none; transition-delay: calc(var(--i) * 28ms + 60ms), calc(var(--i) * 28ms + 60ms), 0s, 0s; }
@media (prefers-reduced-motion: reduce) { .bn-people-wrap, .bn-people-wrap .chip { transition: none; } }
.bn-people-wrap > .bn-people { transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.bn-people-wrap:not(.open) > .bn-people { padding-block: 0; }
.m-ico { font-size: 0.95em; }
.bn-people .chip .m-ico { margin-inline-end: 5px; }

/* ---- the quick sound panel (lib/sounddeck.js, 5.10.2026): a tile per player, + / - halves, one screen, no scroll ----
   On a song page it docks at the bottom in the song bar's place (same dark glass), with no backdrop: the song stays
   readable and scrolling above it. --sd-th = tile height; phones under 600px tall and landscape phones get less. */
.sd { --sd-th: 64px; --sd-cols: 3; --sd-rows: 4; color: #f7f3ff; }
@media (min-width: 400px) { .sd { --sd-cols: 4; --sd-rows: 3; } }   /* 4 across only when each half stays 44px+ wide */
@media (max-height: 600px) { .sd { --sd-th: 60px; } }
@media (orientation: landscape) and (max-height: 500px) { .sd { --sd-cols: 6; --sd-rows: 2; --sd-th: 52px; } }
.sd-deck { position: fixed; z-index: 45; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 6px); width: min(640px, calc(100% - 12px));
  padding: 6px; border-radius: 22px; background: hsl(var(--h1, 268) 45% 13% / 0.95); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, calc(100% + 20px)); transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.sd-deck.in { transform: translate(-50%, 0); }
.sd-deck.out { transform: translate(-50%, calc(100% + 20px)); }
@media (orientation: landscape) and (max-height: 500px) { .sd-deck { width: min(920px, calc(100% - 12px)); } }
html[data-theme="night"] .sd-deck, html[data-theme="night"] .sd-fab { background: rgba(12, 7, 22, 0.96); }
/* the song makes room for the panel (the last lines can scroll above it), the song bar steps aside */
body.sd-open #view { padding-bottom: var(--sd-h, 0px); }
body.sd-open .songbar { opacity: 0; pointer-events: none; transform: translate(-50%, 140%); }
body.sd-open .toast { bottom: calc(var(--sd-h, 0px) + 14px); }

.sd-head { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 6px; }
.sd-status { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 44px; }
.sd-place { flex: 1; display: flex; background: rgba(255, 255, 255, 0.08); }
.sd-place button { flex: 1; min-height: 44px; padding: 0 6px; font-size: 13.5px; white-space: nowrap; }
.sd.hall .sd-place button[data-place="hall"][aria-pressed="true"] { background: linear-gradient(45deg, var(--gold-a), var(--gold-b)); color: #1a0b2e; }
.sd-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 18px; cursor: pointer; }
.sd-sent { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; font-size: 13.5px; padding-inline-start: 6px; overflow: hidden; }
.sd-sent b, .sd-sent { white-space: nowrap; text-overflow: ellipsis; }
.sd-sent.up b { color: #4ade80; } .sd-sent.down b { color: #cbd5e1; }
.sd-wait { font-size: 12px; color: #c9bde6; }
.sd-err { flex: 1; padding-inline-start: 6px; color: #fca5a5; font-weight: 700; font-size: 14px; }
.sd-which { display: flex; gap: 4px; }
.sd-ref, .sd-undo { display: grid; place-items: center; align-content: center; gap: 1px; min-width: 44px; height: 44px; padding: 0 4px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.sd-ref small, .sd-undo small { font-size: 10px; font-weight: 600; color: #e6dcff; }
.sd-undo { background: rgba(255, 209, 102, 0.2); color: #ffd166; font-size: 19px; }
.sd-status[data-mode="sending"] .sd-sent, .sd-status[data-mode="sent"] .sd-sent { animation: sd-in 0.25s ease-out; }
@keyframes sd-in { from { opacity: 0; transform: translateY(6px); } }

.sd-grid { display: grid; grid-template-columns: repeat(var(--sd-cols), 1fr); gap: 6px; }
.sd-tile { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: var(--sd-th); border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.14); transition: background 0.25s, border-color 0.25s; }
.sd-h { display: flex; align-items: flex-end; justify-content: center; padding: 0 0 3px; border: 0; background: transparent; color: #fff; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; font: inherit; }
.sd-h b { font-size: 25px; font-weight: 800; line-height: 1; }
.sd-up { border-inline-end: 1px solid rgba(255, 255, 255, 0.12); }
.sd-up b { color: #4ade80; } .sd-down b { color: #cbd5e1; }
.sd-h:active, .sd-h.hit { animation: sd-hit 0.45s ease-out; }
.sd-up:active, .sd-up.hit { --hit: rgba(34, 197, 94, 0.55); } .sd-down:active, .sd-down.hit { --hit: rgba(148, 163, 184, 0.55); }
@keyframes sd-hit { from { background: var(--hit); } to { background: transparent; } }
.sd-h:active b { transform: scale(1.25); }
.sd-name { position: absolute; top: 5px; inset-inline: 3px; text-align: center; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; pointer-events: none; }
.sd-name i { font-style: normal; font-size: 14px; margin-inline-end: 3px; }
.sd-st { position: absolute; top: 24px; inset-inline: 2px; text-align: center; font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; pointer-events: none; color: #ffe08a; }
@media (max-height: 600px) { .sd-name { top: 3px; } .sd-st { top: 21px; } .sd-h b { font-size: 22px; } }
@media (orientation: landscape) and (max-height: 500px) { .sd-name { top: 2px; font-size: 14px; } .sd-st { top: 18px; } .sd-h b { font-size: 19px; } .sd-head { margin-bottom: 4px; } }
.sd-tile.me { border-color: rgba(255, 215, 0, 0.6); }
.sd-tile.me .sd-name { color: #ffe08a; }
.sd-tile[data-state="up"] { background: rgba(34, 197, 94, 0.2); border-color: #22c55e; }
.sd-tile[data-state="up"] .sd-st { color: #86efac; }
.sd-tile[data-state="down"] { background: rgba(148, 163, 184, 0.24); border-color: #cbd5e1; }
.sd-tile[data-state="down"] .sd-st { color: #f1f5f9; }
.sd-tile[data-state="mix"] { background: rgba(255, 209, 102, 0.18); border-color: #ffd166; }
.sd-tile[data-state="done"] { border-color: rgba(74, 222, 128, 0.7); border-style: dashed; }
.sd-tile[data-state="done"] .sd-st { color: #4ade80; }
.sd-more { display: block; border-style: dashed; background: rgba(255, 255, 255, 0.04); color: #f7f3ff; cursor: pointer; font: inherit; }
.sd-more .sd-st { color: #c9bde6; font-weight: 600; }
.sd-fixes { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 6px;
  min-height: calc(var(--sd-rows) * var(--sd-th) + (var(--sd-rows) - 1) * 6px); }   /* the same height as the tiles: the panel never jumps */
@media (orientation: landscape) and (max-height: 500px) { .sd-fixes { grid-template-columns: repeat(3, 1fr); } }
.sd-fix { min-height: 52px; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; touch-action: manipulation; }
.sd-fix.hit { background: rgba(255, 209, 102, 0.35); }
.sd-back { background: transparent; border-style: dashed; color: #c9bde6; }
/* the band area's sound tab: the same panel inside the page */
.sd-inline { max-width: 640px; margin: 10px auto 14px; padding: 6px; border-radius: 22px; background: rgba(26, 11, 46, 0.88); border: 1px solid rgba(255, 255, 255, 0.14); }
@media (max-width: 480px) { .band-body .sd-inline { width: calc(100vw - 8px); max-width: none; margin-inline: calc(50% - 50vw + 4px); } }   /* phones: the tiles get the room the page's margin took */
/* the headphones button on a song page: at the end side, just above the song bar; its number = my requests waiting */
.sd-fab { position: fixed; z-index: 31; inset-inline-end: 10px; bottom: calc(env(safe-area-inset-bottom) + 72px); width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.22); background: hsl(var(--h1, 268) 45% 13% / 0.9); color: #fff; font-size: 23px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); cursor: pointer; touch-action: manipulation; }
.sd-fab-n { position: absolute; top: -4px; inset-inline-start: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: #ffd166; color: #1a0b2e;
  font-size: 12px; font-weight: 800; line-height: 21px; text-align: center; }
body.sd-open .sd-fab { opacity: 0; pointer-events: none; }
body:not([data-page="song"]) .sd-fab, body.projector .sd-fab { display: none; }
@media (prefers-reduced-motion: reduce) { .sd-deck, .sd-deck.in, .sd-deck.out { transition: none; } .sd-h.hit, .sd-h:active { animation: none; } }


/* ---- Daniel's songbook ---- */
.about-card { grid-template-columns: minmax(0, 1fr); }
.about-me { position: relative; z-index: 1; width: min(38vw, 220px); height: auto; margin: 0 auto -22px; filter: drop-shadow(0 12px 22px rgba(2, 39, 117, 0.45)); }
@media (min-width: 760px) { .about-card { grid-template-columns: 230px minmax(0, 1fr); align-items: end; column-gap: 18px; }
  .about-me { margin: 0 0 -30px; width: 230px; } }
.together-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
