/* Tube2Pod — la page est la face d'un iPod classic : aluminium anodisé,
   écran blanc dans sa vitre noire, menus à barre de sélection bleue. */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-sans-3-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Face (aluminium argent) */
  --alu-top: #eceded;
  --alu-bottom: #d4d6d9;
  --face-ink: #1f2023;
  --face-muted: #5b5e64;
  --face-field: #fff;
  --face-line: #b4b7bc;
  --face-tabs: rgba(255, 255, 255, 0.45);
  --wheel: #fafafa;
  --wheel-line: #c3c6ca;
  --wheel-button: #dcdee1;

  /* Écran */
  --lcd: #fff;
  --ink: #000;
  --muted: #696c71;
  --hair: #dcdde0;
  --select-top: #3f8be3;
  --select-bottom: #1a56b8;
  --select: linear-gradient(180deg, var(--select-top), var(--select-bottom));
  --title-top: #fcfcfd;
  --title-bottom: #cfd2d6;
  --title-line: #989ca2;
  --danger: #b42318;
  --ok: #2c7a31;

  --focus: 0 0 0 3px rgba(63, 139, 227, 0.45);
  --font: "Source Sans 3", "Myriad Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  /* iPod classic noir : face graphite, molette noire, l'écran reste blanc */
  :root {
    --alu-top: #36373b;
    --alu-bottom: #222326;
    --face-ink: #f3f3f5;
    --face-muted: #a7aab0;
    --face-field: #1a1b1d;
    --face-line: #4a4c51;
    --face-tabs: rgba(0, 0, 0, 0.28);
    --wheel: #17181a;
    --wheel-line: #3e4044;
    --wheel-button: #2b2c2f;
    color-scheme: dark;
  }
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--face-ink);
  background: var(--alu-bottom) linear-gradient(180deg, var(--alu-top), var(--alu-bottom)) fixed;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(63, 139, 227, 0.6);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ face */

.face {
  max-width: 640px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 16px 112px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 4px 22px;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand p {
  margin: 3px 0 0;
  color: var(--face-muted);
  font-size: 15px;
}

.wheel-mark {
  width: 46px;
  height: 46px;
  flex: none;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.wheel-ring {
  fill: var(--wheel);
  stroke: var(--wheel-line);
}

.wheel-button {
  fill: var(--wheel-button);
  stroke: var(--wheel-line);
}

/* --------------------------------------------------------------- recherche */

.search {
  margin: 0 0 22px;
}

.search-line {
  display: flex;
  gap: 10px;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  background: var(--face-field);
  border: 1px solid var(--face-line);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.search-field:focus-within {
  border-color: var(--select-bottom);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), var(--focus);
}

.search-field .icon {
  width: 18px;
  height: 18px;
  margin-left: 12px;
  flex: none;
  fill: none;
  stroke: var(--face-muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.search-field input {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 12px 9px;
  border: 0;
  background: transparent;
  font-size: 17px;
  outline: none;
}

.search-field input::placeholder {
  color: var(--face-muted);
  opacity: 0.85;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  margin: 12px 0 0;
  padding: 3px;
  min-width: 0;
  border: 1px solid var(--face-line);
  border-radius: 11px;
  background: var(--face-tabs);
}

.tabs label {
  position: relative;
}

.tabs input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tabs span {
  display: block;
  padding: 6px 18px;
  border-radius: 8px;
  color: var(--face-muted);
  font-size: 15px;
  font-weight: 600;
}

.tabs input:checked + span {
  color: #fff;
  background: var(--select);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.tabs input:focus-visible + span {
  box-shadow: var(--focus);
}

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--select);
  border-color: #164a9e;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 1px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  filter: brightness(1.07);
}

.btn-primary:active {
  filter: brightness(0.93);
}

.btn-primary:disabled {
  opacity: 0.55;
  filter: none;
  cursor: default;
}

.btn-plain {
  color: #1d1e20;
  background: linear-gradient(180deg, #fdfdfd, #e3e4e7);
  border-color: #a6a9ae;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.btn-plain:hover {
  background: linear-gradient(180deg, #fff, #ebecee);
}

.btn-small {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-wide {
  width: 100%;
}

.btn-link {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------- écrans */

.screen {
  position: relative;
  margin: 0 0 22px;
  padding: 10px;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 32px -16px rgba(0, 0, 0, 0.55);
}

/* Reflet de la vitre, visible sur le cadre noir */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.lcd {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: var(--lcd);
  color: var(--ink);
  color-scheme: light;
}

.titlebar {
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  background: linear-gradient(180deg, var(--title-top), var(--title-bottom));
  border-bottom: 1px solid var(--title-line);
}

.titlebar h2 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tb-side {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tb-side:last-child {
  justify-content: flex-end;
}

/* Triangle « lecture » : affiché tant qu'un téléchargement tourne */
.busy .tb-play::before {
  content: "";
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #3a3d42;
}

.battery {
  position: relative;
  display: block;
  width: 24px;
  height: 11px;
  border: 1px solid #5c6066;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff, #e6e7e9);
}

.battery::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 1px;
  background: linear-gradient(180deg, #a9e07c, #4fa82c);
}

.battery::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -4px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: #5c6066;
}

.tb-back {
  position: relative;
  padding: 4px 6px 4px 14px;
  border: 0;
  background: none;
  color: var(--select-bottom);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.tb-back::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 7px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.notice {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #ead7a0;
  background: #fff6dc;
  color: #634800;
  font-size: 14px;
}

.notice.is-error {
  border-color: #f0c3be;
  background: #fdeceb;
  color: var(--danger);
}

.empty {
  padding: 30px 22px 34px;
  color: var(--muted);
  text-align: center;
}

.empty p {
  max-width: 36em;
  margin: 0 auto;
}

.empty .empty-lead {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ menus */

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

.menu > li + li {
  border-top: 1px solid var(--hair);
}

.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.row:hover,
.row:focus-visible,
.row:focus-within:has(input:focus-visible) {
  outline: none;
  background: var(--select);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.row-text {
  min-width: 0;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.row-title-text,
.row-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-sub {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.row-sub:empty {
  display: none;
}

.row-end {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.row:hover :is(.row-sub, .row-end, .track-num),
.row:focus-visible :is(.row-sub, .row-end, .track-num),
.row:focus-within:has(input:focus-visible) :is(.row-sub, .row-end, .track-num) {
  color: rgba(255, 255, 255, 0.86);
}

.chevron {
  width: 8px;
  height: 14px;
  fill: none;
  stroke: #8b8e93;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row:hover .chevron,
.row:focus-visible .chevron {
  stroke: #fff;
}

.row.is-loading .chevron {
  visibility: hidden;
}

.row.is-loading .row-end::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.badge {
  flex: none;
  padding: 0 4px;
  border-radius: 3px;
  background: #8c8f94;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-shadow: none;
}

.row:hover .badge,
.row:focus-visible .badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--select-bottom);
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  color: var(--muted);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #cbcdd1;
  border-top-color: var(--select-bottom);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------- pochettes */

.art {
  display: block;
  flex: none;
  overflow: hidden;
  margin: 0;
  background: #e6e7e9
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a3a6ab' d='M9 18.5a2.5 2.5 0 1 1-2-2.45V6.2l11-2.2v11.5a2.5 2.5 0 1 1-2-2.45V7.3l-7 1.4z'/%3E%3C/svg%3E")
    center / 45% no-repeat;
}

.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-small {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.art-job {
  width: 72px;
  height: 72px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.art-medium {
  width: 112px;
  height: 112px;
  border-radius: 4px;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.55);
}

/* Pochette façon Cover Flow, avec son reflet */
.art-large {
  width: min(232px, 62vw);
  aspect-ratio: 1;
  border-radius: 3px;
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.6);
  -webkit-box-reflect: below 2px linear-gradient(transparent 80%, rgba(255, 255, 255, 0.3));
}

/* Le reflet est dessiné hors du flux : on lui réserve sa place là où il existe. */
@supports (-webkit-box-reflect: below) {
  .art-large {
    margin-bottom: 50px;
  }
}

/* ------------------------------------------------------- téléchargements */

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

.job {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.job + .job {
  border-top: 1px solid var(--hair);
}

.job-main p {
  margin: 0;
}

.job-title {
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-sub {
  color: var(--muted);
  font-size: 14px;
}

.job-main .job-status {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.job.is-done .job-status {
  color: var(--ok);
}

.job.is-error .job-status {
  color: var(--danger);
}

.job-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

/* Barre de progression de l'écran « En lecture », avec son losange */
.progress {
  position: relative;
  display: block;
  height: 9px;
  margin-top: 9px;
  border: 1px solid #8e9298;
  border-radius: 1px;
  background: linear-gradient(180deg, #d0d2d6, #f1f2f3);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.18);
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, #92c4f7, #3f8be3 55%, #1a56b8);
  transition: width 0.45s ease-out;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 9px;
  height: 9px;
  border: 1px solid #5e6268;
  background: linear-gradient(135deg, #fff, #c6c9cd);
  transform: translateY(-50%) rotate(45deg);
}

.is-done .progress-fill::after {
  display: none;
}

.is-queued .progress-fill::after {
  right: -5px;
}

/* Mini-lecteur flottant pendant un téléchargement */
.mini {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100% - 24px));
  padding: 8px 14px 8px 8px;
  border: 1px solid #b4b7bc;
  border-radius: 14px;
  background: #fff;
  color: #000;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.5);
  text-align: left;
  cursor: pointer;
  transform: translateX(-50%);
  color-scheme: light;
}

.mini-art {
  width: 42px;
  height: 42px;
  border-radius: 3px;
  object-fit: cover;
  background: #e6e7e9;
}

.mini-text {
  min-width: 0;
}

.mini-title {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-progress {
  height: 7px;
  margin-top: 5px;
}

.mini-pct {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- fiches */

dialog.sheet {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 10px;
  border: 0;
  border-radius: 18px;
  background: #000;
  color: var(--ink);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

dialog.sheet-wide {
  width: min(640px, calc(100% - 24px));
}

dialog.sheet[open] {
  animation: sheet-in 0.2s ease-out;
}

dialog.sheet::backdrop {
  background: rgba(18, 19, 21, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

dialog.sheet .lcd {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 52px);
}

.sheet-body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px 18px 6px;
}

.sheet-actions {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--hair);
  background: var(--lcd);
}

.now {
  display: grid;
  justify-items: center;
  margin: 2px 0 22px;
}

.now-source {
  max-width: 44ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.fields {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  background: #fff;
}

.field-row + .field-row {
  border-top: 1px solid var(--hair);
}

.field-row > span {
  color: var(--muted);
  font-size: 15px;
}

.field-row input {
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}

.field-row input::placeholder {
  color: #a3a6ab;
}

.field-row:focus-within {
  background: #eef5fe;
}

.was-validated .field-row:has(input:invalid) {
  background: #fdeceb;
}

.formats {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.formats legend,
.tracks-head {
  padding: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.format {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--hair);
  cursor: pointer;
}

.format:first-of-type {
  border-radius: 10px 10px 0 0;
}

.format:last-of-type {
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.format input {
  position: absolute;
  opacity: 0;
}

.format-text {
  position: relative;
  display: block;
  padding: 10px 14px 11px 42px;
}

.format-text::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 14px;
  width: 17px;
  height: 17px;
  border: 1.5px solid #8b8e93;
  border-radius: 50%;
  background: #fff;
}

.format-name {
  display: block;
  font-weight: 700;
}

.format-desc {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.format input:checked + .format-text {
  background: var(--select);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.format input:checked + .format-text::before {
  border-color: #fff;
  background: radial-gradient(circle, #fff 0 3.5px, transparent 4px), var(--select-bottom);
}

.format input:checked + .format-text .format-desc {
  color: rgba(255, 255, 255, 0.88);
}

.format input:focus-visible + .format-text {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7), inset 0 0 0 5px var(--select-bottom);
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 15px;
  cursor: pointer;
}

.check input,
.track-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--select-bottom);
}

.form-error {
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

.hint {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.album-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
}

.album-meta p {
  margin: 0;
}

.album-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.album-artist {
  margin-top: 2px;
  font-size: 17px;
}

.album-meta .album-info {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.tracks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tracks-head .check {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

.tracks {
  max-height: 340px;
  margin: 0 0 18px;
  overflow-y: auto;
  border: 1px solid var(--hair);
  border-radius: 10px;
}

.track-row {
  grid-template-columns: auto 1.6em minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 6px 12px;
}

.track-row .row-title {
  font-size: 16px;
}

.track-num {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.track-row.is-unavailable {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- pied */

.foot {
  padding: 0 6px;
  color: var(--face-muted);
  font-size: 14px;
}

.foot p {
  max-width: 62ch;
  margin: 0 0 6px;
}

.foot .versions {
  font-size: 13px;
}

/* ------------------------------------------------------------- mobiles */

@media (max-width: 560px) {
  .face {
    padding: max(18px, env(safe-area-inset-top)) 10px 112px;
  }

  .brand {
    margin-bottom: 16px;
  }

  .brand p {
    font-size: 14px;
  }

  .screen {
    padding: 7px;
    border-radius: 14px;
  }

  .tabs {
    display: flex;
    width: 100%;
  }

  .tabs label {
    flex: 1;
  }

  .tabs span {
    padding: 6px 8px;
    text-align: center;
  }

  .row {
    gap: 10px;
    padding: 8px 10px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 7px 12px 4px;
  }

  .field-row > span {
    font-size: 13px;
  }

  .field-row input {
    padding: 2px 0 4px;
  }

  .job {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .art-job {
    width: 56px;
    height: 56px;
  }

  .job-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }

  dialog.sheet,
  dialog.sheet-wide {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    padding: 7px 7px 0;
    border-radius: 16px 16px 0 0;
  }

  dialog.sheet .lcd {
    max-height: calc(94dvh - 7px);
    border-radius: 9px 9px 0 0;
  }

  .sheet-body {
    padding: 16px 14px 4px;
  }

  .sheet-actions {
    padding: 10px 14px max(14px, env(safe-area-inset-bottom));
  }

  .art-medium {
    width: 88px;
    height: 88px;
  }

  .album-title {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
