/* FLOGVIT.music. The family palette and chrome (portal/STYLE.md, SETTINGS.md, FOOTER.md), copied as the
   other products do; the chrome part below is books' (with the same px-floor rules, flogvit-com#48).
   The accent is rosentre. The light mode comes first; dark follows the system, and an explicit
   [data-fv-theme] from the fv-prefs cookie wins either way. */
:root {
  --paper: #faf9f6; --surface: #ffffff; --ink: #1b1b18; --ink-2: #67665f; --line: #dcdacf;
  --paper-2: #f0eee6; --paper-3: #e8e6dc; --bad: #c03b2e;
  --accent: #774440; --accent-tint: #f1e6e4;
  --font-ui: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-lyric: "Literata", Georgia, serif;
  --side: 2rem;
  --gutter: max(var(--side), env(safe-area-inset-left));
  --gutter-r: max(var(--side), env(safe-area-inset-right));
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161614; --surface: #1e1e1b; --ink: #edece6; --ink-2: #99978d; --line: #2e2d29;
    --paper-2: #211f1c; --paper-3: #262420; --bad: #e0604f;
    --accent: #d4918c; --accent-tint: #33221f;
  }
}
:root[data-fv-theme='light'] {
  --paper: #faf9f6; --surface: #ffffff; --ink: #1b1b18; --ink-2: #67665f; --line: #dcdacf;
  --paper-2: #f0eee6; --paper-3: #e8e6dc; --bad: #c03b2e;
  --accent: #774440; --accent-tint: #f1e6e4;
}
:root[data-fv-theme='dark'] {
  --paper: #161614; --surface: #1e1e1b; --ink: #edece6; --ink-2: #99978d; --line: #2e2d29;
  --paper-2: #211f1c; --paper-3: #262420; --bad: #e0604f;
  --accent: #d4918c; --accent-tint: #33221f;
}
html { color-scheme: light; }
@media (prefers-color-scheme: dark) { html { color-scheme: dark; } }
:root[data-fv-theme='light'] { color-scheme: light; }
:root[data-fv-theme='dark'] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
@media (max-width: 1024px) { :root { --side: 1.5rem; } }
@media (max-width: 640px) { :root { --side: 1rem; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-ui);
}
a { color: var(--accent); text-underline-offset: 0.15em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; }
/* A long word in a big heading ("Innstillinger" at 150 % text on 320 px) breaks with a hyphen, or anywhere,
   rather than widen the page. */
h1, h2 { hyphens: auto; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: absolute; left: 0.5rem; top: -10rem; z-index: 100; padding: 0.6rem 1rem;
  background: var(--ink); color: var(--paper); border-radius: 4px; font-weight: 600; text-decoration: underline;
}
.skip-link:focus { top: 0.5rem; }
.main:focus { outline: none; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }
.container { max-width: 1120px; margin: 0 auto; padding: 2rem var(--gutter-r) 3rem var(--gutter); }

/* Segment choices on the settings page (theme, language); they wrap rather than push past a phone. */
.fv-seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.fv-segBtn { font: inherit; font-size: 0.875rem; padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.fv-segBtn.on { background: var(--paper-2); color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 500 0.875rem/1.2 var(--font-ui);
  text-decoration: none; cursor: pointer;
}
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { border-color: var(--accent); }

/* ---------- chrome (from books) ---------- */
.fv-wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.fv-menu {
  position: relative;
  display: inline-block;
}

.fv-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.fv-summary::-webkit-details-marker {
  display: none;
}
.fv-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.fv-caret {
  flex: none;
  color: var(--ink-2);
  transition: transform 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .fv-caret {
    transition: none;
  }
}

.fv-menu[open] .fv-caret {
  transform: rotate(180deg);
}

/* INGEN FASTE PX-GULV I CHROMEN — flogvit-com#48.
   Her sto `min-width: 230px`. Panelet står 23 px inn fra venstre kant, så
   gulvet alene var mer enn et 320 px-viewport har igjen; med tekstforstørrelse
   fra tilgjengelighetsinnstillingene vokste oppføringene i tillegg, og panelet
   ble 25–55 px bredere enn skjermen — verst på finsk, minst på tysk. Målt i
   Chrome, 320 px, 150 % tekst, alle åtte språkene.
   Gulvet er derfor i `em` — det er TEKST som skal få plass, og den vokser med
   brukeren — og BEGGE kantene er klippet mot viewportet. Bare et `min()`-gulv
   holder ikke: innholdet dyttet panelet forbi skjermkanten på egen hånd, så
   `max-width` er den som faktisk binder ved 150 %. */
.fv-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: min(14em, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  /* Panelet henger fra headeren og ruller ikke med siden. Med hele familien i
     lista rekker det ikke ned til «Konto og innstillinger» på 320 × 568 — det
     ruller da i seg selv. */
  max-height: calc(100vh - 5em);
  max-height: calc(100dvh - 5em - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 80;
}

.fv-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  /* `min-width: auto` på et flex-barn betyr «aldri smalere enn min-content»,
     og da presser en lang oppføring panelet ut igjen uansett hva taket over
     sier. `flex-wrap` er den andre halvdelen: wordmarken er en LÅST enhet
     («FLOGVIT.photosuite» skal ikke brekkes midt i), så når raden ikke lenger
     rekker, må merkelappen få falle ned på egen linje. */
  min-width: 0;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  /* `white-space: nowrap` sto her. Konto-oppføringen er en hel setning som er
     ulikt lang på åtte språk — «kommer snart»-merkelappen og kontoteksten er
     nettopp den variable teksten regelen i flogvit.com/CLAUDE.md advarer mot.
     Wordmarken beholder sin egen nowrap i `.fv-wm`; den er en etikett. */
  white-space: normal;
}
.fv-item:hover {
  background: rgba(27, 27, 24, 0.06);
  color: var(--ink);
}
.fv-item[aria-current=true] {
  background: rgba(27, 27, 24, 0.06);
}
.fv-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fv-wm {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* Wordmarken er en LÅST enhet (portal/STYLE.md) — «FLOGVIT.photosuite» skal
     ikke brekkes midt i. Den lå tidligere i `white-space: nowrap` på hele
     `.fv-item`; da den måtte vekk derfra (flogvit-com#48 — konto-oppføringen er
     en setning som er ulikt lang på åtte språk), hører den her, der den bare
     gjelder merkenavnet. lab og puzzles har den samme regelen samme sted. */
  white-space: nowrap;
}

.fv-prod {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 0.95em;
  letter-spacing: 0;
}

.fv-dot {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

/* Prikkfargen er data, ikke CSS: layouten setter `--fv-dot`/`--fv-dot-dark`
   fra src/lib/family-menu.json (kopi av portal/design/family-menu.json). Uten
   dem er prikken blekk — det er FLOGVIT. selv. */
.fv-dot {
  color: var(--fv-dot, var(--ink));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-fv-theme='light']) .fv-dot {
    color: var(--fv-dot-dark, var(--ink));
  }
}
:root[data-fv-theme='dark'] .fv-dot {
  color: var(--fv-dot-dark, var(--ink));
}

.fv-soon {
  cursor: default;
}
.fv-soon .fv-brand-b,
.fv-soon .fv-prod {
  color: var(--ink-2);
}
.fv-soon:hover {
  background: transparent;
}

.fv-chip {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
}

.fv-product {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 0.95em;
  color: var(--ink);
  text-decoration: none;
}
.fv-product:hover {
  color: var(--accent);
}
.fv-product:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.fv-kontoitem {
  font-size: 13px;
  border-top: 1px solid var(--border, var(--line));
  margin-top: 4px;
  padding-top: 10px;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter-r) 0 var(--gutter);
}
/* The row wraps when it cannot fit (WCAG 1.4.10): the nav drops below the
   wordmark instead of pushing the page past a phone's edge (books#23). */
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 22px;
  padding-bottom: 22px;
}
@media (max-width: 640px) {
  .site-header__inner {
    gap: 0.5rem;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
.site-header__brand {
  font-size: 1.25rem;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .site-header__brand {
    font-size: 1.0625rem;
  }
}
@media (max-width: 400px) {
  .site-header__brand {
    font-size: 1rem;
  }
}




.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  font-size: 14px;
}
@media (max-width: 1024px) {
  .site-header__nav {
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .site-header__nav {
    gap: 0.5rem;
    font-size: 13px;
  }
}
.site-header__nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  transition: color 150ms ease;
  white-space: nowrap;
}
.site-header__nav-link:hover { color: var(--accent); }
.site-header__nav-link[aria-current='page'] { color: var(--accent); }
.site-header__settings { color: var(--ink-2); text-decoration: none; font-size: 1.1rem; line-height: 1; padding: 6px 2px; }
.site-header__settings:hover, .site-header__settings[aria-current='page'] { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  color: var(--ink-2);
  font-size: 13px;
}
.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem var(--gutter-r) 1.5rem var(--gutter);
}
.site-footer__tag { margin: 0 0 1rem; max-width: 42ch; }
.site-footer__brand-name { color: var(--ink); text-decoration: none; }
.site-footer__brand-word {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.95em; letter-spacing: 0;
  color: var(--ink); text-decoration: none;
}
.site-footer__legal {
  grid-column: 1/-1;
  border-top: 1px solid var(--paper-3);
  padding-top: 18px;
  margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  letter-spacing: 0.04em;
}
.site-footer__legal-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.site-footer__legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-left: auto;
}
.site-footer__legal-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 150ms ease;
}
.site-footer__legal-links a:hover {
  color: var(--accent);
}
.site-footer__legal-copy {
  white-space: nowrap;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
.account-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- the music page ---------- */
.music {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 2.5rem;
  padding: 1.75rem var(--gutter-r) 0 var(--gutter);
}
.music[data-view='songs'] .mine, .music[data-view='mine'] .browse { display: none; }
.browse h1, .mine h1 { font-size: 2.5rem; line-height: 1.1; font-weight: 800; margin: 0 0 0.4rem; }
.browse__lead { color: var(--ink-2); margin: 0 0 1.25rem; max-width: 34em; }
.browse__search input {
  width: 100%; min-width: 0;
  font: 400 1.0625rem/1.3 var(--font-ui);
  padding: 0.7rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
}
.browse__search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.browse__result { font: 500 0.8125rem/1.4 var(--font-mono); color: var(--ink-2); margin: 0.75rem 0 0.5rem; }
.browse__modes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-top: 0.9rem; }
.browse__modes-label { font: 500 0.8125rem/1.4 var(--font-mono); color: var(--ink-2); }
.songs__group h2 {
  font-size: 1rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 1.25rem 0 0.3rem; padding: 0 0.6rem;
}
.songs__group + li .song-row { border-top-color: var(--ink); }
.songs__more-row { padding: 1rem 0; border-top: 1px solid var(--line); }

.songs { list-style: none; margin: 0; padding: 0; }
.song-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 1rem;
  width: 100%;
  padding: 0.75rem 0.6rem;
  border: 0; border-top: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer;
}
.song-row:hover .song-row__title, .songs .is-open .song-row__title { color: var(--accent); }
.song-row__title { font: 700 1.0625rem/1.3 var(--font-ui); min-width: 0; }
.song-row__length { font: 500 0.8125rem/1.6 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.song-row__where { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-2); min-width: 0; }
/* The song that is playing stands out in the list: a tinted row with the accent along its edge, and the
   family's dot before the title. Brown text alone was hard to see. */
.songs .is-playing .song-row {
  background: var(--accent-tint);
  box-shadow: inset 3px 0 0 var(--accent);
  border-top-color: transparent;
}
.songs .is-playing + li .song-row { border-top-color: transparent; }
.songs .is-playing .song-row__title { color: var(--ink); }
.songs .is-playing .song-row__title::before { content: '•'; color: var(--accent); margin-right: 0.35em; font-weight: 800; }

.mine h2 { font-size: 1.3125rem; margin: 2rem 0 0.5rem; }
.playlist { margin-top: 1.25rem; }
.playlist h3 { font-size: 1.0625rem; margin: 0 0 0.4rem; }
.playlist__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.5rem; }
.empty { color: var(--ink-2); }
.plus-gate { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; background: var(--surface); }
.plus-gate p { margin: 0 0 0.75rem; }
.plus-gate__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plus-gate__actions .btn[hidden] { display: none; }
.plus-gate--inline { margin: 0 0 1rem; }

/* The open song stays in view while the list scrolls. */
.song, .welcome {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  overflow-y: auto;
}
.welcome { color: var(--ink-2); padding-top: 4.5rem; }
.welcome p { font: 400 1.25rem/1.6 var(--font-lyric); max-width: 26em; }
.song { padding-bottom: 2rem; }
.song__back { display: none; }
.song__head h2 { font-size: 2.25rem; line-height: 1.1; font-weight: 800; margin: 0 0 0.35rem; }
.song__style { color: var(--ink-2); margin: 0 0 0.75rem; }
.song__actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.song__note { color: var(--ink-2); font-size: 0.875rem; }
.copy-from { display: inline-flex; align-items: center; gap: 0.35rem; font: 500 0.8125rem/1.2 var(--font-mono); color: var(--ink-2); cursor: pointer; }
.copy-from[hidden] { display: none; }
.copy-from input { accent-color: var(--accent); margin: 0; }
.song__passages, .song__tags, .song__files { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.song__passages { font-weight: 700; }
.heart {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); cursor: pointer; color: var(--ink-2);
}
.heart svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.heart[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); }
.heart[aria-pressed='true'] svg { fill: currentColor; }
/* The panel hangs under the whole row of actions, not under its button, so it is never wider than the row
   (at 320 px and 150 % text it went 72 px past the edge when it hung from the button). */
.playlist-menu { position: static; }
.playlist-menu summary { list-style: none; }
.playlist-menu summary::-webkit-details-marker { display: none; }
.playlist-menu__panel {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0;
  width: min(22em, 100%);
  padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.playlist-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.playlist-menu__item { width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.playlist-menu__item:hover { background: var(--paper-2); }
.playlist-menu__new { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 6px 4px 2px; }
.playlist-menu__new input { flex: 1 1 8em; min-width: 0; font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); }

.lyrics { margin-top: 1.5rem; font-family: var(--font-lyric); }
.lyrics h3 { font: 500 0.8125rem/1.4 var(--font-mono); color: var(--ink-2); margin: 1.4rem 0 0.3rem; }
.lyrics__gap { height: 0.4rem; }
.lyrics__line {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.55;
  margin: 0;
  padding: 0.1rem 0.5rem 0.1rem 0.75rem;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 180ms ease-out, background-color 180ms ease-out;
}
.lyrics__line.is-timed { cursor: pointer; }
.lyrics.is-singing .lyrics__line { color: var(--ink-2); }
.lyrics.is-singing .lyrics__line.is-current { color: var(--ink); border-left-color: var(--accent); background: var(--accent-tint); }
.lyrics__line.is-current .is-sung { color: var(--accent); }

.song__foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.song__foot h3 { font: 500 0.8125rem/1.4 var(--font-mono); color: var(--ink-2); margin: 1rem 0 0.4rem; }
.plus-note { color: var(--ink-2); margin: 0; }
.song__credit { color: var(--ink-2); font-size: 0.8125rem; margin-top: 1.25rem; }

/* ---------- the player bar, on every page ---------- */
.player {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding: 0.6rem var(--gutter-r) calc(0.6rem + env(safe-area-inset-bottom)) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}
.player__now { min-width: 0; }
.player__title { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__seek { display: flex; align-items: center; gap: 0.6rem; font: 500 0.75rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.player__seek input { flex: 1; min-width: 0; accent-color: var(--accent); }
.player__controls { display: flex; align-items: center; gap: 0.15rem; }
.player__btn {
  position: relative; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer;
}
.player__btn:hover { background: color-mix(in srgb, var(--paper) 12%, transparent); }
.player__btn svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.player__btn--line svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player__btn--play { width: 3.1rem; height: 3.1rem; background: var(--paper); color: var(--ink); }
.player__btn--play:hover { background: var(--paper); }
.player__btn:focus-visible { outline-color: var(--paper); }
.icon-pause, body.is-playing .icon-play { display: none; }
body.is-playing .icon-pause { display: block; }
#shuffle[aria-pressed='false'], #repeat[data-mode='off'] { opacity: 0.55; }
.repeat-one { display: none; position: absolute; top: 0.4rem; right: 0.4rem; font: 700 0.6rem/1 var(--font-mono); }
#repeat[data-mode='one'] .repeat-one { display: block; }

/* ---------- settings and the accessibility statement ---------- */
.settings h1 { font-size: 2.5rem; line-height: 1.1; margin: 0 0 0.5rem; }
.settings__hint { color: var(--ink-2); margin: 0 0 1.5rem; }
.settings__group { margin-bottom: 1.75rem; }
.settings__group h2 { font-size: 1.3125rem; margin: 0 0 0.6rem; }
.a11y-statement .fv-a11y { max-width: 42rem; }
.a11y-statement .fv-a11y h2 { font-size: 1.3125rem; margin: 2rem 0 0.5rem; }
.a11y-statement .fv-a11y h1, .a11y-statement .fv-a11y h2 { hyphens: auto; overflow-wrap: anywhere; }

/* ---------- phones: one view at a time ---------- */
@media (max-width: 48em) {
  .music { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .browse h1, .mine h1, .settings h1 { font-size: 2rem; }
  .welcome { display: none; }
  .song { display: none; position: static; max-height: none; overflow: visible; }
  body.showing-song .browse, body.showing-song .mine { display: none; }
  body.showing-song .song:not([hidden]) { display: block; }
  .song__back {
    display: inline-block; border: 0; background: none; color: var(--accent);
    padding: 0.4rem 0; margin-bottom: 0.4rem; cursor: pointer; font-weight: 700;
  }
  .song__back::before { content: '‹ '; }
  .song__head h2 { font-size: 1.75rem; }
  .player { grid-template-columns: minmax(0, 1fr); }
  .player__controls { justify-content: center; }
}
