/* page specific: home header, search, library tiles, collection hero, artist hero, account, onboarding */
.home-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-h .hello { font: 700 30px/1.2 var(--kufi); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font: 700 17px var(--kufi); flex: none; }
.avatar.ghost { background: var(--s2); color: var(--sub); }
.taste-card { margin-top: 22px; display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r2); cursor: pointer;
  background: linear-gradient(120deg, rgba(184, 166, 255, .18), rgba(255, 159, 138, .1)), var(--s1); box-shadow: inset 0 0 0 1px rgba(184, 166, 255, .25); }
.taste-card .tc-i { flex: 1; } .taste-card b { font: 700 18px var(--kufi); display: block; }

/* search */
.search-top { position: sticky; top: 0; z-index: 15; background: var(--bg); padding: calc(var(--safe-t) + 14px) 16px 12px; margin: calc(-1 * (var(--safe-t) + 18px)) -16px 0; }
@media (min-width: 960px) { .search-top { margin: -28px -32px 0; padding: 28px 32px 14px; } }
.sugg { margin-top: 4px; }
.sugg button { display: flex; align-items: center; gap: 14px; width: 100%; height: 48px; text-align: start; font-size: 15px; border-radius: 10px; padding: 0 6px; }
.sugg button:hover { background: var(--s1); }
.sugg svg.i { color: var(--mute); width: 20px; height: 20px; }
.genres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.genre { position: relative; height: 96px; border-radius: 14px; overflow: hidden; padding: 12px 14px; text-align: start; background: var(--g); color: var(--ink); transition: transform .15s; }
.genre:active { transform: scale(.97); }
.genre b { font: 700 19px/1.2 var(--kufi); color: var(--ink); position: relative; z-index: 1; }
.genre::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; inset-inline-end: -22px; bottom: -30px; border: 14px solid rgba(34, 28, 56, .08); }
.top-res { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r2); background: var(--s1); cursor: pointer; }
.top-res img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; }
.top-res.artist img { border-radius: 50%; }
.top-res .k { font: 700 22px/1.2 var(--kufi); }
@media (min-width: 700px) { .genres { grid-template-columns: repeat(4, 1fr); } }

/* library */
.lib-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 8px; }
.tile { border-radius: var(--r2); padding: 14px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; text-align: start; transition: transform .15s; }
.tile:active { transform: scale(.97); }
.tile b { font: 700 18px/1.25 var(--kufi); hyphens: auto; overflow-wrap: anywhere; } /* "Téléchargements" breaks cleanly instead of spilling */
.tile span { font-size: 12.5px; opacity: .85; }
.tile.liked { background: var(--pp); color: var(--ink); }
.tile.dl { background: var(--pm); color: var(--ink); }
.tile.hist { background: var(--pl); color: var(--ink); }
.tile.stats { background: var(--pb); color: var(--ink); }
.cover { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--s2); display: grid; grid-template-columns: 1fr 1fr; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.one { grid-template-columns: 1fr; }
.cover .ph { display: grid; place-items: center; color: var(--mute); grid-column: 1 / -1; }
.row .cover { width: 56px; height: 56px; flex: none; }

/* collection / artist hero */
.hero { position: relative; padding: 0 16px 8px; margin-top: calc(-1 * (var(--safe-t) + 60px)); padding-top: calc(var(--safe-t) + 70px);
  background: linear-gradient(to bottom, rgba(var(--tint), .45), rgba(var(--tint), .08) 70%, transparent); }
.hero .h-cover { width: min(58vw, 240px); margin: 0 auto 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); border-radius: 14px; overflow: hidden; }
.hero .h-cover .cover { border-radius: 0; }
.hero .h-t { font: 700 28px/1.2 var(--kufi); }
.hero .h-s { color: var(--sub); font-size: 13.5px; margin-top: 4px; }
.actions { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; }
.actions .grow { flex: 1; }
.artist-hero { position: relative; height: min(62vw, 340px); margin: calc(-1 * (var(--safe-t) + 60px)) 0 0; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; }
.artist-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artist-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(21,20,29,.3) 55%, rgba(21,20,29,.2)); }
.artist-hero h1 { position: relative; z-index: 1; font: 700 40px/1.1 var(--kufi); }
.sub-body { padding: 0 16px; }
@media (min-width: 960px) {
  .hero { display: flex; gap: 28px; align-items: flex-end; padding: 90px 32px 20px; }
  .hero .h-cover { margin: 0; width: 220px; flex: none; }
  .hero .h-t { font-size: 40px; }
  .sub-body { padding: 0 32px; }
  .artist-hero { padding: 28px 32px; height: 340px; }
  .artist-hero h1 { font-size: 64px; }
}

/* account */
.acct { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r2); background: var(--s1); }
.acct .avatar { width: 56px; height: 56px; font-size: 24px; }
.set-group { margin-top: 26px; }
.set-group h3 { font-size: 13px; color: var(--sub); font-weight: 500; margin-bottom: 6px; }
.set { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 8px 0; text-align: start; border-bottom: 1px solid var(--line); cursor: pointer; }
.set:last-child { border-bottom: 0; }
.set .s-i { flex: 1; min-width: 0; }
.set .s-i span { display: block; font-size: 12.5px; color: var(--sub); }
.set svg.i { color: var(--sub); }
.set .val { color: var(--sub); font-size: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--s3); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--sun); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--s3); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--sun); }
.stat-bar { height: 6px; border-radius: 6px; background: var(--sun); margin-top: 6px; }

/* onboarding */
.onb { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: flex; flex-direction: column; }
.onb-h { padding: calc(var(--safe-t) + 26px) 20px 12px; max-width: 900px; width: 100%; margin: 0 auto; }
.onb-b { flex: 1; overflow-y: auto; padding: 8px 20px 120px; max-width: 900px; width: 100%; margin: 0 auto; }
/* minmax(0, 1fr): a long name never widens its column, so every circle is the same size */
.onb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; margin-top: 16px; }
.onb-s { max-width: 900px; width: 100%; margin: 0 auto; padding: 4px 20px 6px; }
.onb-s .field { height: 46px; }
.onb-s .field svg.i { width: 19px; height: 19px; flex: none; }
.onb-note { grid-column: 1 / -1; text-align: center; color: var(--sub); font-size: 14px; padding: 18px 0; }
.onb-g { margin: 22px 0 0; font-family: var(--kufi); font-size: 17px; font-weight: 400; color: var(--t2, inherit); display: flex; align-items: center; gap: 10px; }
.onb-g::after { content: ''; flex: 1; height: 1px; background: var(--line, rgba(255, 255, 255, .08)); }
.onb-g + .onb-grid { margin-top: 12px; }
.pick { text-align: center; cursor: pointer; min-width: 0; }
.pick .art { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--s2); transition: transform .2s var(--ease), box-shadow .2s; }
.pick .art img { width: 100%; height: 100%; object-fit: cover; }
.pick .art .ok { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(184, 166, 255, .85); color: var(--sun-ink); opacity: 0; transition: opacity .2s; }
.pick.on .art { transform: scale(.92); box-shadow: 0 0 0 3px var(--sun); }
.pick.on .art .ok { opacity: 1; }
.pick b { display: block; font-size: 13.5px; font-weight: 600; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onb-f { position: fixed; bottom: 0; inset-inline: 0; padding: 16px 20px calc(var(--safe-b) + 16px); background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; justify-content: center; }
.onb-f .btn { width: min(100%, 420px); }
@media (min-width: 700px) { .onb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.install-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; list-style: none; }
.install-steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; font-weight: 700; flex: none; }
@keyframes inst-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 35%, transparent); } }
.inst-go { width: 100%; height: 52px; margin: 14px 0 6px; font-size: 16px; font-weight: 700; }
.inst-direct a, .inst-safari { color: var(--sun); text-decoration: underline; font-weight: 600; }
/* the "Add to Home Screen" row as it looks in the Share list */
.install-steps .inst-row { justify-content: space-between; margin: 2px 0 6px; margin-inline-start: 42px; padding: 12px 16px; border-radius: 12px; background: var(--s2); font-weight: 600; box-shadow: 0 0 0 2px var(--sun); animation: inst-pulse 1.8s ease-in-out infinite; }
.install-steps .inst-hint { display: block; padding: 0 0 6px; margin-inline-start: 42px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .install-steps .inst-row { animation: none; } }
/* a pill above Safari's bottom bar pointing at its Share button */
#sheet .sh.inst-pad { padding-bottom: 84px; }
.inst-point { position: fixed; inset-inline: 0; bottom: calc(env(safe-area-inset-bottom) + 10px); margin: 0 auto; width: max-content; max-width: calc(100% - 32px); z-index: 201; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.45); animation: inst-bob 1.2s ease-in-out infinite; }
.inst-point svg.i { width: 20px; height: 20px; }
@keyframes inst-bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .inst-point { animation: none; } }
/* the iPhone Settings rows the user must tap, drawn the way iOS shows them */
.install-steps .inst-mock { justify-content: space-between; margin: 0 0 6px; margin-inline-start: 42px; padding: 12px 14px; border-radius: 12px; background: #1C1C1E; color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.install-steps .inst-mock > span:nth-child(2) { flex: 1; }
.inst-mock-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #8E8E93; color: #fff; flex: none; }
.inst-mock > svg.i { color: #8E8E93; flex: none; }
.inst-mock-ic svg.i { color: #fff; }
[dir=rtl] .inst-mock > svg.i { transform: scaleX(-1); }
.install-steps .inst-mock-bar b { color: #0A84FF; font-weight: 700; }
.inst-auto.live .inst-mock { box-shadow: 0 0 0 2px var(--sun); animation: inst-pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .inst-auto.live .inst-mock { animation: none; } }
.inst-expire { margin: 4px 0 0; color: var(--mute); }

/* glue between screens and components */
.dlb { display: inline-flex; color: var(--sun); }
.card .hover-play { z-index: 2; }
.scrub, .times, .p-ctrl { direction: ltr; }
.panel-b { position: relative; }
.row .now-eq { display: none; }
.taste-card > svg.i:first-child { color: var(--sun); width: 30px; height: 30px; }
.tile svg.i { width: 26px; height: 26px; }
.acct > svg.i { width: 30px; height: 30px; color: var(--sun); }
.quick .qk { text-align: start; }
.home-h + .quick { margin-top: 20px; }
.p-tabs .tab.on svg.i { color: var(--sun); }
.mix .mix-badge .logo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.onb-f { gap: 10px; }
.onb-f .btn-line { flex: none; width: auto; }
