/* Spince's website: the page is a Spince window (same tokens and sizes as the app's styles.css) */
:root {
  --bg: #000; --base: #121212; --elev: #1f1f1f; --elev-2: #2a2a2a; --elev-3: #3e3e3e;
  --text: #fff; --sub: #b3b3b3; --dim: #8a8a8a; --green: #1ed760; --green-hi: #3be477;
  --radius: .5rem; --gap: .5rem; --top-h: 4rem; --player-h: 4.5rem; --lib-w: 18.75rem; --rp-w: 21.25rem;
  --ease: cubic-bezier(.3, 0, 0, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: "Figtree", "Segoe UI", system-ui, sans-serif; font-size: .875rem; -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--green); color: #000; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
svg.i { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.f { fill: currentColor; stroke: none; }

/* ---------- the window ---------- */
.shell { height: 100%; display: grid; grid-template: var(--top-h) 1fr var(--player-h) / var(--lib-w) 1fr var(--rp-w); gap: 0 var(--gap); padding: 0 var(--gap); }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; }
.panel { background: var(--base); border-radius: var(--radius); overflow: hidden; min-height: 0; }

/* top bar */
.logo { display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo svg { width: 2rem; height: 2rem; }
.mid { flex: 1; display: flex; justify-content: center; align-items: center; gap: .5rem; }
.round { width: 3rem; height: 3rem; border-radius: 50%; background: var(--elev); display: grid; place-items: center; color: var(--sub); transition: color .15s, transform .15s var(--ease); }
.round:hover { color: var(--text); transform: scale(1.04); }
.search { width: min(29rem, 100%); height: 3rem; border-radius: 999px; background: var(--elev); display: flex; align-items: center; gap: .6rem; padding: 0 1rem; color: var(--sub); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s, background .15s; }
.search:hover { background: var(--elev-2); box-shadow: inset 0 0 0 1px var(--elev-3); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--text); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 1rem; }
.search input::placeholder { color: var(--sub); }
.right { display: flex; align-items: center; gap: .75rem; padding-right: .5rem; }
.textlink { color: var(--sub); font-weight: 700; font-size: .9rem; transition: color .15s, transform .15s; }
.textlink:hover { color: var(--text); transform: scale(1.04); }
.pill { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; font-weight: 700; padding: .55rem 1.1rem; transition: transform .15s var(--ease), background .15s; white-space: nowrap; }
.pill:hover { transform: scale(1.04); }
.pill.green { background: var(--green); color: #000; }
.pill.green:hover { background: var(--green-hi); }
.pill.white { background: var(--text); color: #000; }
.pill.line { box-shadow: inset 0 0 0 1px var(--dim); }
.pill.line:hover { box-shadow: inset 0 0 0 1px var(--text); }
.pill.big { padding: .9rem 1.75rem; font-size: 1rem; }

/* ---------- Your Library = the site's menu ---------- */
.lib { display: flex; flex-direction: column; }
.lib-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .5rem 1.25rem; font-weight: 700; font-size: 1rem; }
.chips { display: flex; gap: .5rem; padding: .5rem 1rem; }
.chip { background: var(--elev-2); border-radius: 999px; padding: .4rem .8rem; font-size: .8rem; font-weight: 600; }
.chip.on { background: var(--text); color: #000; }
.lib-list { overflow-y: auto; padding: .25rem .5rem 1rem; }
.li { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: .375rem; transition: background .15s; }
.li:hover { background: var(--elev); }
.li.on { background: var(--elev-2); }
.li img, .li .tile { width: 3rem; height: 3rem; border-radius: .25rem; object-fit: cover; flex: none; }
.li .tile { display: grid; place-items: center; }
.li b { display: block; font-weight: 600; font-size: .95rem; }
.li.on b { color: var(--green); }
.li small { color: var(--sub); font-size: .8rem; }

/* ---------- main panel ---------- */
.main { overflow-y: auto; position: relative; scroll-behavior: smooth; }
.hero { position: relative; padding: 4.5rem 1.5rem 1.5rem; display: flex; align-items: flex-end; gap: 1.5rem; background: linear-gradient(#1b5e3a, #0f3a24); }
.hero::after { content: ""; position: absolute; inset: auto 0 -14rem 0; height: 14rem; background: linear-gradient(rgba(15,58,36,.85), transparent); pointer-events: none; }
.cover-big { width: clamp(8rem, 18vw, 14.5rem); aspect-ratio: 1; border-radius: .25rem; box-shadow: 0 .5rem 2.5rem rgba(0,0,0,.5); flex: none; }
.hero-text { min-width: 0; }
.hero-text .type { font-weight: 600; font-size: .85rem; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: .35rem 0 .75rem; }
.hero .about { color: rgba(255,255,255,.82); font-size: 1rem; max-width: 40rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .6rem; font-size: .875rem; }
.meta svg { width: 1.5rem; height: 1.5rem; }
.meta b { font-weight: 700; }
.meta span { color: rgba(255,255,255,.75); }
.actions { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1.5rem; }
.bigplay { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--green); color: #000; display: grid; place-items: center; box-shadow: 0 .5rem .5rem rgba(0,0,0,.3); transition: transform .15s var(--ease), background .15s; }
.bigplay:hover { transform: scale(1.04); background: var(--green-hi); }
.bigplay svg { width: 1.5rem; height: 1.5rem; }
.dl-label { display: flex; flex-direction: column; }
.dl-label b { font-size: 1.05rem; } .dl-label small { color: var(--sub); }
.actions .ghost { color: var(--sub); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; transition: color .15s; }
.actions .ghost:hover { color: var(--text); }

/* the feature list is a track list */
.tracks { position: relative; z-index: 1; padding: 0 1.5rem; }
.th, .tr { display: grid; grid-template-columns: 2.5rem minmax(0, 1.2fr) minmax(0, 1fr) 4.5rem; gap: 1rem; align-items: center; padding: 0 1rem; }
.th { height: 2.25rem; color: var(--sub); font-size: .8rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: .75rem; }
.th :last-child, .tr .len { text-align: right; font-variant-numeric: tabular-nums; }
.tr { height: 3.5rem; border-radius: .25rem; color: var(--sub); cursor: pointer; transition: background .1s; }
.tr:hover { background: rgba(255,255,255,.1); }
.tr.sel { background: rgba(255,255,255,.18); }
.tr .n { text-align: center; font-variant-numeric: tabular-nums; font-size: 1rem; position: relative; }
.tr .n svg { display: none; margin: 0 auto; width: 1rem; height: 1rem; color: var(--text); }
.tr:hover .n span { display: none; } .tr:hover .n svg.p { display: block; }
.tr.playing .n span, .tr.playing:hover .n svg.p { display: none; }
.tr.playing .n .eq { display: flex; }
.eq { display: none; justify-content: center; align-items: flex-end; gap: 2px; height: .9rem; }
.eq i { width: 3px; background: var(--green); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.tr .t { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.tr img { width: 2.5rem; height: 2.5rem; border-radius: .25rem; object-fit: cover; flex: none; }
.tr .tt { min-width: 0; }
.tr .tt b { display: block; color: var(--text); font-weight: 500; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr.playing .tt b { color: var(--green); }
.tr .tt small { font-size: .875rem; }
.tr .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { display: none; }

/* shelves */
.sec { position: relative; z-index: 1; padding: 2.5rem 1.5rem 0; scroll-margin-top: 1rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.sec h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.sec .note { color: var(--sub); font-size: .8rem; font-weight: 600; }
.sec p.lead { color: var(--sub); font-size: 1rem; max-width: 42rem; margin: -.25rem 0 1rem; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10rem, 1fr); gap: .25rem; overflow-x: auto; margin: 0 -.75rem; padding-bottom: .5rem; scrollbar-width: none; }
.card { padding: .75rem; border-radius: .375rem; transition: background .2s; min-width: 0; position: relative; }
.card:hover { background: var(--elev); }
.card img { width: 100%; aspect-ratio: 1; border-radius: .375rem; object-fit: cover; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.5); display: block; }
.card b { display: block; margin-top: .5rem; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card small { color: var(--sub); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.card .hover-play { position: absolute; right: 1.25rem; top: calc(.75rem + (100% - 4.5rem) - 3.75rem); width: 3rem; height: 3rem; border-radius: 50%; background: var(--green); color: #000; display: grid; place-items: center; opacity: 0; transform: translateY(.5rem); transition: opacity .2s, transform .2s var(--ease); box-shadow: 0 .5rem .5rem rgba(0,0,0,.3); }
.card:hover .hover-play { opacity: 1; transform: none; }

/* phone section: an artist page-style banner */
.phone-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; background: var(--elev); border-radius: .75rem; padding: 2rem; margin-top: .5rem; }
.phone-sec h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.phone-sec p { color: var(--sub); font-size: 1rem; margin-top: .75rem; max-width: 34rem; }
.ticks { list-style: none; margin: 1.25rem 0 1.5rem; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
.ticks svg { color: var(--green); width: 1.1rem; height: 1.1rem; }
.phone { width: 15rem; border-radius: 2rem; padding: .6rem; background: #0a0a0a; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.6), inset 0 0 0 1px var(--elev-3); }
.screen { border-radius: 1.5rem; overflow: hidden; background: linear-gradient(#6b5a3a, #121212 70%); padding: 1rem .9rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.screen .bar1 { display: flex; justify-content: space-between; align-items: center; font-size: .65rem; font-weight: 700; }
.screen img { width: 100%; aspect-ratio: 1; border-radius: .4rem; box-shadow: 0 .75rem 2rem rgba(0,0,0,.5); }
.screen b { font-size: .95rem; display: block; } .screen small { color: var(--sub); font-size: .75rem; }
.prog { height: .25rem; border-radius: 1rem; background: rgba(255,255,255,.25); overflow: hidden; }
.prog i { display: block; height: 100%; width: 38%; background: var(--text); border-radius: 1rem; }
.ctl { display: flex; justify-content: space-between; align-items: center; padding: 0 .25rem; }
.ctl .pp { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; }
.ctl svg { width: 1.2rem; height: 1.2rem; }
.dev { display: flex; gap: .4rem; align-items: center; color: var(--green); font-size: .7rem; font-weight: 600; }
.dev svg { width: .9rem; height: .9rem; }

/* downloads: two "tracks" with sizes */
.dl-list { display: grid; gap: .5rem; }
.dl-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: var(--elev); border-radius: .5rem; padding: .9rem 1rem; transition: background .15s; }
.dl-row:hover { background: var(--elev-2); }
.dl-row .os { width: 3.5rem; height: 3.5rem; border-radius: .375rem; background: var(--elev-3); display: grid; place-items: center; }
.dl-row .os svg { width: 1.75rem; height: 1.75rem; }
.dl-row b { font-size: 1.05rem; display: block; } .dl-row small { color: var(--sub); }
.smartscreen { color: var(--sub); font-size: .85rem; margin-top: .9rem; }
.smartscreen b { color: var(--text); font-weight: 600; }

/* questions */
details { border-bottom: 1px solid rgba(255,255,255,.08); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem .25rem; font-weight: 600; font-size: 1rem; }
summary::-webkit-details-marker { display: none; }
summary svg { color: var(--sub); transition: transform .2s var(--ease); }
details[open] summary svg { transform: rotate(180deg); }
details p { color: var(--sub); padding: 0 .25rem 1.1rem; max-width: 46rem; font-size: .95rem; line-height: 1.55; }
.foot { position: relative; z-index: 1; margin: 3rem 1.5rem 0; padding: 2rem 0 3rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; color: var(--sub); font-size: .85rem; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot .c { margin-left: auto; color: var(--dim); }
.hide { display: none !important; }

/* ---------- right panel: what's playing ---------- */
.rp { display: flex; flex-direction: column; }
.rp-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem; font-weight: 700; font-size: 1rem; }
.rp-body { overflow-y: auto; padding: 0 1rem 1.25rem; }
.rp-art { width: 100%; aspect-ratio: 1; border-radius: .5rem; object-fit: cover; display: block; transition: opacity .35s var(--ease), filter .35s var(--ease); }
.rp-art.swap { opacity: 0; filter: blur(8px); }
.rp h3 { font-size: 1.5rem; font-weight: 700; margin-top: 1rem; letter-spacing: -.01em; }
.rp .by { color: var(--sub); font-size: 1rem; }
.rp-card { background: var(--elev); border-radius: .5rem; padding: 1rem; margin-top: 1rem; }
.rp-card p { color: var(--sub); font-size: .9rem; line-height: 1.55; }
.rp-card ul { list-style: none; margin-top: .75rem; display: grid; gap: .45rem; font-size: .875rem; }
.rp-card li { display: flex; gap: .5rem; } .rp-card li svg { color: var(--green); width: 1rem; height: 1rem; margin-top: .15rem; }
.lyr { background: #6b3b2e; border-radius: .5rem; padding: 1rem; margin-top: 1rem; }
.lyr .lh { font-weight: 700; margin-bottom: .6rem; display: flex; justify-content: space-between; }
.lyr .lh small { font-weight: 600; color: rgba(255,255,255,.6); font-size: .7rem; }
.lyr p { font-size: 1.3rem; font-weight: 800; line-height: 1.35; color: rgba(0,0,0,.55); transition: color .4s var(--ease); }
.lyr p.now { color: var(--text); }

/* ---------- player bar ---------- */
.player { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(0, 45rem) 1fr; align-items: center; gap: 1rem; padding: 0 .5rem; }
.np { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.np img { width: 3.5rem; height: 3.5rem; border-radius: .25rem; object-fit: cover; flex: none; }
.np b { display: block; font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np small { color: var(--sub); font-size: .75rem; }
.np-text { min-width: 0; }
.center { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.btns { display: flex; align-items: center; gap: 1.25rem; color: var(--sub); }
.btns button:hover { color: var(--text); }
.btns .pp { width: 2rem; height: 2rem; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; transition: transform .15s var(--ease); }
.btns .pp:hover { transform: scale(1.06); color: #000; }
.btns .pp svg { width: 1rem; height: 1rem; }
.btns .on { color: var(--green); }
.seek { width: 100%; display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--sub); font-variant-numeric: tabular-nums; }
.track { flex: 1; height: .25rem; background: rgba(255,255,255,.3); border-radius: 1rem; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 1rem; }
.seek:hover .track i { background: var(--green); }
.pr { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }
.pr .ver { color: var(--sub); font-size: .8rem; }

/* phones: the phone app's layout (mini player and bottom tabs) */
.tabs { display: none; }
@media (max-width: 1200px) { .shell { grid-template-columns: 5rem 1fr; } .rp { display: none; } .lib-head span, .chips, .li .lt { display: none; } .lib-head { justify-content: center; padding: 1rem 0 .5rem; } .li { justify-content: center; } }
@media (max-width: 760px) {
  body { overflow: auto; }
  .shell { display: block; padding: 0; height: auto; }
  .top { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); padding: 0 1rem; height: 3.5rem; }
  .top .mid, .top .textlink, .lib { display: none; }
  .logo { padding: 0; } .right { margin-left: auto; padding: 0; }
  .main { overflow: visible; border-radius: 0; background: var(--base); padding-bottom: 9rem; }
  .hero { flex-direction: column; align-items: flex-start; padding: 2rem 1rem 1.25rem; gap: 1rem; }
  .cover-big { width: 9rem; }
  .actions, .tracks, .sec { padding-left: 1rem; padding-right: 1rem; }
  .th { display: none; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; padding: 0 .25rem; height: 4rem; }
  .tr .n, .tr .d { display: none; }
  .tr.sel + .more { display: block; padding: .25rem .25rem 1rem 3.5rem; color: var(--sub); font-size: .9rem; line-height: 1.5; }
  .phone-sec { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; justify-items: center; }
  .phone-sec > div:first-child { justify-self: stretch; }
  .dl-row { grid-template-columns: 2.75rem minmax(0, 1fr); } .dl-row .os { width: 2.75rem; height: 2.75rem; } .dl-row .pill { grid-column: 1 / -1; justify-content: center; }
  .foot { margin: 2.5rem 1rem 0; } .foot .c { margin-left: 0; }
  .player { position: fixed; left: .5rem; right: .5rem; bottom: 4rem; z-index: 6; height: 3.5rem; display: flex; padding: 0 .5rem; border-radius: .5rem; background: #2c5a3e; gap: .5rem; }
  .player .center { display: none; } .player .np { flex: 1; } .np img { width: 2.5rem; height: 2.5rem; }
  .pr .ver { display: none; } .pr .pill { padding: .45rem .9rem; font-size: .85rem; }
  .player::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--text) var(--p, 0%), rgba(255,255,255,.25) 0); }
  .tabs { display: flex; position: fixed; inset: auto 0 0 0; z-index: 6; height: 4rem; justify-content: space-around; align-items: center; background: linear-gradient(transparent, rgba(0,0,0,.95) 35%); padding-top: .75rem; }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .65rem; color: var(--sub); }
  .tabs a.on { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- reading pages (changelog, privacy, not found) ---------- */
.player.simple .center { visibility: hidden; }
.doc { position: relative; z-index: 1; padding: 0 1.5rem 1rem; max-width: 48rem; }
.doc h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 .75rem; letter-spacing: -.01em; }
.doc h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.doc p, .doc li { color: var(--sub); font-size: 1rem; line-height: 1.6; }
.doc p + p { margin-top: .75rem; }
.doc ul { padding-left: 1.25rem; margin: .5rem 0; display: grid; gap: .35rem; }
.doc strong, .doc b { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--green); }
.doc code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--elev-2); border-radius: .25rem; padding: .1rem .35rem; color: var(--text); }
.rel { border-top: 1px solid rgba(255,255,255,.08); padding: 1.75rem 0; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; }
.rel:first-child { border-top: 0; }
.rel .v { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.rel .when { color: var(--sub); font-size: .85rem; display: block; margin-top: .15rem; }
.rel .newest { display: inline-block; margin-top: .5rem; background: var(--green); color: #000; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; }
.rel .notes h2 { font-size: 1.1rem; margin: 1.25rem 0 .4rem; }
.rel .notes h2:first-child { margin-top: 0; }
.rel .notes h3 { font-size: 1rem; }
.loading { color: var(--sub); font-size: 1rem; padding: 1rem 0; }
.hero.small { padding-top: 3.5rem; }
.hero.small h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
@media (max-width: 760px) {
  .doc { padding: 0 1rem 1rem; }
  .rel { grid-template-columns: 1fr; gap: .75rem; }
}
.shell.no-rp { grid-template-columns: var(--lib-w) 1fr; }
@media (max-width: 1200px) { .shell.no-rp { grid-template-columns: 5rem 1fr; } }
