:root {
  --bg: #ffffff;
  --bg-2: #f2f2f4;
  --text: #111113;
  --muted: #86868b;
  --hairline: rgba(0, 0, 0, 0.1);
  --accent: #fa2d48;
  --track: rgba(0, 0, 0, 0.1);
  --bar-bg: rgba(255, 255, 255, 0.86);
  --tint-strength: 0.28;
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-shine: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  --tabs-h: 62px;
  --mini-h: 58px;
  --bar-x: 14px;
  --glass-bar: rgba(255, 255, 255, 0.62);
  --pill: rgba(0, 0, 0, 0.06);
  --glow: rgb(var(--tint, 150 150 150));
  /* toutes les animations de paroles partagent la même courbe : départ doux, arrivée très douce */
  --ease-lyrics: cubic-bezier(0.42, 0, 0.18, 1);
  --lyrics-duration: 1.6s;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bar-bottom: max(calc(var(--safe-b) - 6px), 12px);
  /* hauteur occupée en bas par les barres flottantes */
  --chrome-b: calc(var(--bar-bottom) + var(--tabs-h) + 14px);
}
body.has-mini { --chrome-b: calc(var(--bar-bottom) + var(--tabs-h) + var(--mini-h) + 24px); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-2: #1c1c1e;
    --text: #f5f5f7;
    --muted: #8e8e93;
    --hairline: rgba(255, 255, 255, 0.1);
    --track: rgba(255, 255, 255, 0.16);
    --bar-bg: rgba(18, 18, 20, 0.86);
    --tint-strength: 0.45;
    --glass-bar: rgba(30, 30, 32, 0.55);
    --pill: rgba(255, 255, 255, 0.1);
    --glow: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-shine: rgba(255, 255, 255, 0.24);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

main {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Le contenu défile sous les barres de verre ; on lui laisse juste la place en bas. */
.view { padding-bottom: var(--chrome-b); }
body.host-offline main { top: calc(var(--safe-t) + 34px); }

.view { display: none; }
.view.active { display: block; }

/* ---------- En cours ---------- */
#view-now.active {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  isolation: isolate;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--tint, 128 128 128) / var(--tint-strength)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.backdrop.visible { opacity: 1; }

.now {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 24px) 28px 28px;
}

.artwork-wrap { display: flex; justify-content: center; }
.artwork {
  width: min(80vw, 360px, 44vh);
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s;
}
body:not(.playing) .artwork { transform: scale(0.86); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16); }
.artwork.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.artwork.placeholder svg { width: 30%; fill: none; stroke: currentColor; stroke-width: 1.4; }

.meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.meta-text { flex: 1; min-width: 0; }
.meta h1,
.meta p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta h1 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
.meta p { margin-top: 2px; font-size: 17px; color: var(--muted); }
.meta-thumb { display: none; width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }

.lyrics-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.lyrics-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.lyrics-toggle .ink { stroke-linecap: round; }
.lyrics-toggle[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Paroles ---------- */
body.lyrics-on #view-now.active { height: 100%; }
body.lyrics-on #view-now.active .now { min-height: 0; justify-content: flex-start; gap: 18px; }
body.lyrics-on .artwork-wrap { display: none; }
body.lyrics-on .meta-thumb { display: block; }
body.lyrics-on .lyrics { order: 0; }

.lyrics {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -28px;
  padding: 0 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0, #000 12%, #000 76%, transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 12%, #000 76%, transparent 100%);
}
.lyrics.synced { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.lyrics.static { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.lyrics.static .lyrics-inner { padding: 24px 0 30vh; }
.lyrics.synced .lyrics-inner { will-change: transform; }
.lyrics::-webkit-scrollbar { display: none; }

/* Chaque ligne est déplacée par transformation (puce graphique) : pas de défilement ni de flou. */
.lyric {
  display: block;
  width: 100%;
  margin: 0;
  padding: 7px 0;
  text-align: left;
  color: var(--text);
  transition: transform var(--lyrics-duration) var(--ease-lyrics);
}
.lyrics.no-anim .lyric,
.lyrics.no-anim .lyrics-credits,
.lyrics.dragging .lyric,
.lyrics.dragging .lyrics-credits { transition: none; }

.lyric-text {
  display: block;
  font-size: 27px;
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.015em;
  position: relative;
  opacity: 0.26;
  transform: scale(0.95);
  transform-origin: left center;
  transition: opacity 1.3s ease, transform var(--lyrics-duration) var(--ease-lyrics);
}
/* Halo : copie floutée du texte, seulement sur la ligne active (et la précédente le temps
   qu'elle s'éteigne). Un flou par ligne en permanence alourdissait trop le défilement. */
.lyric.active .lyric-text[data-text]::after,
.lyric.fading .lyric-text[data-text]::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--glow);
  filter: blur(14px);
  pointer-events: none;
}
.lyric.active .lyric-text[data-text]::after { animation: glow-in 1.6s ease forwards; }
.lyric.fading .lyric-text[data-text]::after { animation: glow-out 1.3s ease forwards; }
@keyframes glow-in { from { opacity: 0; } to { opacity: 0.5; } }
@keyframes glow-out { from { opacity: 0.5; } to { opacity: 0; } }
.lyric.near .lyric-text { opacity: 0.4; }
.lyric.active .lyric-text { opacity: 1; transform: scale(1); }
.lyrics.user-scrolling .lyric .lyric-text { opacity: 0.6; }
.lyrics.user-scrolling .lyric.active .lyric-text { opacity: 1; }

/* Pause instrumentale : trois points qui respirent */
.lyric.gap { padding: 14px 0; }
.lyric.gap .lyric-text { display: flex; gap: 7px; }
.lyric.gap i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.lyric.gap.active i { animation: breathe 1.4s ease-in-out infinite; }
.lyric.gap.active i:nth-child(2) { animation-delay: 0.2s; }
.lyric.gap.active i:nth-child(3) { animation-delay: 0.4s; }
@keyframes breathe {
  0%, 100% { transform: scale(0.7); opacity: 0.45; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Paroles non synchronisées : texte simple qui défile normalement */
.lyrics.static .lyric-text { opacity: 0.9; transform: none; font-size: 22px; }
.lyrics-message { padding-top: 30%; text-align: center; color: var(--muted); font-size: 17px; }
.lyrics-credits {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--muted);
  transition: transform var(--lyrics-duration) var(--ease-lyrics);
}
.lyrics-credits .lyric-text { font-size: 13px; font-weight: 400; opacity: 1; transform: none; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .lyric, .lyric-text, .lyrics-credits { transition-duration: 0.2s; transition-delay: 0s !important; }
  .lyric.gap.active i { animation: none; }
  .lyric .lyric-text::after { animation-duration: 0.2s !important; }
}

/* Barre de progression qu'on peut glisser */
.seek {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  touch-action: none;
  cursor: pointer;
  outline: none;
}
.seek .bar {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--track);
  overflow: hidden;
  transition: height 0.15s;
}
.bar-fill { height: 100%; width: 0; background: var(--text); opacity: 0.85; }
.seek-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--text);
  transform: scale(0);
  transition: transform 0.15s;
  pointer-events: none;
}
.seek.dragging .bar { height: 8px; }
.seek.dragging .seek-knob,
.seek:focus-visible .seek-knob { transform: scale(1); }
.progress:has(.seek.dragging) .times { color: var(--text); }

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.15s;
}

.controls { display: flex; justify-content: space-evenly; align-items: center; }
.ctrl {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transition: transform 0.12s, background-color 0.12s;
}
.ctrl:active { transform: scale(0.9); background: var(--track); }
.ctrl svg { width: 36px; height: 36px; fill: currentColor; }
.ctrl.main { width: 80px; height: 80px; }
.ctrl.main svg { width: 52px; height: 52px; }
.ctrl.small { width: 44px; height: 44px; }
.ctrl.small svg { width: 24px; height: 24px; }

/* Volume en « Liquid Glass » : capsule translucide, floutée, avec un reflet sur le bord haut */
.volume {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-shine), inset 0 -1px 0 rgba(255, 255, 255, 0.05), var(--glass-shadow);
}
.volume::before {
  /* reflet diffus en haut à gauche, comme une surface de verre bombée */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 15% -40%, var(--glass-shine), transparent 55%);
  opacity: 0.35;
  pointer-events: none;
}
.volume .seek { flex: 1; height: 28px; }
.volume .seek .bar { height: 6px; }
.volume .bar-fill { opacity: 0.9; }
.vol-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }
.vol-icon .wave { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Curseur : pastille blanche, qui devient une lentille de verre quand on la glisse */
.volume .seek-knob {
  width: 26px;
  height: 18px;
  margin: -9px 0 0 -13px;
  border-radius: 999px;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
  transform: none;
  transition: width 0.22s cubic-bezier(.2, .8, .2, 1), height 0.22s cubic-bezier(.2, .8, .2, 1),
    margin 0.22s cubic-bezier(.2, .8, .2, 1), background-color 0.22s, box-shadow 0.22s;
}
.volume .seek.dragging .seek-knob {
  width: 40px;
  height: 28px;
  margin: -14px 0 0 -20px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(1.5px) saturate(240%) brightness(1.15);
  backdrop-filter: blur(1.5px) saturate(240%) brightness(1.15);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 4px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.22);
}
.volume .seek.dragging .bar { height: 6px; }

body.playing .icon-play,
body:not(.playing) .icon-pause { display: none; }

/* ---------- En-têtes ---------- */
.view-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: calc(var(--safe-t) + 14px) 20px 12px;
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--hairline);
}
body.host-offline .view-header { padding-top: 14px; }
.view-header h2 { margin: 0; font-size: 30px; font-weight: 750; letter-spacing: -0.025em; }

.detail-head { display: flex; align-items: center; gap: 12px; }
.detail-head h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#playlist-detail .detail-head h2 { font-size: 24px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 6px -6px;
  color: var(--accent);
  font-size: 17px;
}
.back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.pill svg { width: 16px; height: 16px; fill: currentColor; }
.pill:active { opacity: 0.75; }

.text-btn { color: var(--accent); font-size: 16px; flex-shrink: 0; }
.text-btn:active { opacity: 0.5; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

#search-input {
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px 9px 36px;
  border: 0;
  border-radius: 10px;
  background: var(--track) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 11px center / 17px;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  -webkit-appearance: none;
  appearance: none;
}
#search-input::placeholder { color: var(--muted); }
#search-input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
#search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Listes ---------- */
.list { list-style: none; margin: 0; padding: 0 0 12px; }
.list .row {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 20px;
  background: var(--bg);
  transition: transform 0.15s ease, opacity 0.2s;
}
/* Séparateur aligné sur le texte, comme dans les listes iOS */
.list .row::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 0;
  bottom: 0;
  border-bottom: 0.5px solid var(--hairline);
}
.list .row:has(.thumb)::after { left: 80px; }
.list .row:last-child::after { display: none; }

.row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 6px 12px 6px 0;
  text-align: left;
}
.row-main:active:not(:disabled) { opacity: 0.55; }
.row-main:disabled { cursor: default; }

.list .txt { flex: 1; min-width: 0; }
.list .txt strong,
.list .txt span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list .txt strong { font-weight: 500; font-size: 16px; }
.list .txt span { margin-top: 1px; color: var(--muted); font-size: 14px; }
.list .chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; flex-shrink: 0; opacity: 0.7; }
.list .dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.list li.current strong { color: var(--accent); }
.list .empty { padding: 18px 20px; color: var(--muted); font-size: 15px; }

.thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-2);
  flex-shrink: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--muted);
}
.icon-btn:active { background: var(--track); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn.add { margin-right: 8px; color: var(--accent); }
.icon-btn.add svg { stroke-width: 2.3; }
.icon-btn.remove svg { width: 17px; height: 17px; }
.icon-btn.handle { margin-right: 8px; touch-action: none; cursor: grab; }

.row.dragging {
  z-index: 3;
  transition: none;
  background: var(--bg-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.row.dragging::after { display: none; }
.row.leaving { opacity: 0.3; pointer-events: none; }

.section-title {
  margin: 22px 20px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.more { margin: 0 20px 24px; }

/* ---------- Mini-lecteur et onglets : capsules de verre flottantes ---------- */
.mini, .tabs {
  position: fixed;
  left: var(--bar-x);
  right: var(--bar-x);
  z-index: 4;
  background: var(--glass-bar);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  border: 0.5px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-shine), var(--glass-shadow);
}
.mini {
  bottom: calc(var(--bar-bottom) + var(--tabs-h) + 10px);
  height: var(--mini-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 9px;
  border-radius: 999px;
  cursor: pointer;
}
.mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-2); }
.mini-meta { flex: 1; min-width: 0; }
.mini-meta strong,
.mini-meta span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-meta strong { font-size: 15px; font-weight: 600; }
.mini-meta span { font-size: 13px; color: var(--muted); }

.tabs {
  bottom: var(--bar-bottom);
  height: var(--tabs-h);
  display: flex;
  padding: 5px;
  border-radius: 999px;
  --tab-index: 0;
}
/* Pastille de verre qui glisse sous l'onglet actif (légère sur-oscillation, comme un liquide) */
.tab-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 4);
  border-radius: 999px;
  background: var(--pill);
  box-shadow: inset 0 1px 0 var(--glass-shine), inset 0 -0.5px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(calc(var(--tab-index) * 100%));
  transition: transform 0.55s cubic-bezier(0.3, 1.35, 0.5, 1);
  pointer-events: none;
}
.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.62;
  transition: opacity 0.25s, color 0.25s;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab svg .fill { fill: currentColor; stroke: none; }
.tab.active { color: var(--accent); opacity: 1; }
.tab:active svg { transform: scale(0.9); }
.tab svg { transition: transform 0.15s; }

.badge {
  position: absolute;
  top: 5px;
  left: calc(50% + 6px);
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* ---------- Messages ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--chrome-b) + 6px);
  z-index: 10;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  transform: translateX(-50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: calc(var(--safe-t) + 8px) 16px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.pairing {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  background: var(--bg);
  text-align: center;
}
.pairing img { border-radius: 18px; }
.pairing h1 { margin: 10px 0 0; font-size: 24px; letter-spacing: -0.02em; }
.pairing p { margin: 0; max-width: 300px; color: var(--muted); }
