/* Bins — minimal */
:root{
  --bg:#211E1A;
  --ink:#EFE9DE;
  --muted:#A99F8F;
  --line:rgba(239,233,222,.14);
  --soft:#2A2621;
  --sticker:#F4C430;
  --sticker-ink:#2A2108;
  --bar-h:56px;
  --genres-h:44px;
  --font:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}
body{overflow:hidden}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--sticker);outline-offset:3px;border-radius:4px}
img{display:block;max-width:100%}

/* Top bar */
.bar{position:fixed;inset:0 0 auto 0;height:var(--bar-h);z-index:20;display:flex;align-items:center;gap:24px;padding:0 16px;background:var(--bg)}
.brand{font-weight:900;font-stretch:125%;font-size:22px;letter-spacing:-.02em;text-decoration:none;display:flex;align-items:center;gap:8px}
.brand::before{content:"";width:18px;height:18px;border-radius:50%;background:radial-gradient(circle,var(--bg) 0 1.5px,var(--sticker) 2px 5px,#0f0d0b 5.5px)}
.bar-nav{display:flex;gap:20px;margin-right:auto;overflow-x:auto;scrollbar-width:none}
.bar-nav a{font-size:14px;text-decoration:none;color:var(--muted);white-space:nowrap}
.bar-nav a:hover,.bar-nav a[aria-current="page"]{color:var(--ink)}
.bag{position:relative;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;margin-left:auto}
.bag::before{content:"";width:18px;height:16px;border:2px solid currentColor;border-top:0;border-radius:0 0 4px 4px;margin-top:4px}
.bag::after{content:"";position:absolute;top:9px;width:10px;height:7px;border:2px solid currentColor;border-bottom:0;border-radius:6px 6px 0 0}
.bag-n{position:absolute;top:2px;right:0;min-width:18px;height:18px;border-radius:9px;background:var(--sticker);color:var(--sticker-ink);font-size:11px;font-weight:800;display:grid;place-items:center;padding:0 4px}
.bag-n[data-zero]{display:none}
@media (max-width:719px){.bar-nav{display:none}}

/* Genre filter */
.genres{position:fixed;top:var(--bar-h);left:0;right:0;height:var(--genres-h);z-index:19;display:flex;gap:6px;align-items:center;padding:0 16px;overflow-x:auto;scrollbar-width:none;background:var(--bg);border-bottom:1px solid var(--line)}
.genres::-webkit-scrollbar{display:none}
.genres a{flex:none;font-size:13px;text-decoration:none;color:var(--muted);height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--line);display:inline-flex;align-items:center}
.genres a:hover{color:var(--ink)}
.genres a[aria-current="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink);font-weight:500}

#view{height:100%}

/* Feed */
.feed{height:100dvh;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none}
.feed::-webkit-scrollbar{display:none}
.rec{position:relative;height:100dvh;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.rec-inner{height:100%;max-width:440px;margin:0 auto;padding:calc(var(--bar-h) + var(--genres-h) + 12px) 20px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}

.shop-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.shop-chip{display:flex;align-items:baseline;gap:8px;text-decoration:none;min-width:0;font-size:14px}
.shop-chip b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-chip .city{color:var(--muted)}
.shop-chip:hover b{text-decoration:underline;text-underline-offset:3px}
.like{width:36px;height:36px;display:grid;place-items:center;margin-right:-8px}
.like svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4}
.like[aria-pressed="true"] svg{fill:currentColor}

/* Deck */
.deck{position:relative;flex:none;width:100%;aspect-ratio:1/1;max-height:calc(100dvh - 360px);margin:0 auto;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;background:var(--soft)}
.deck::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:center;position:relative;display:grid;place-items:center}
.sleeve-wrap{position:relative;width:100%;height:100%}
.sleeve{position:absolute;left:8%;top:12%;height:76%;aspect-ratio:1/1;z-index:2;overflow:hidden;background:var(--line);box-shadow:0 10px 30px rgba(0,0,0,.4)}
.sleeve img{width:100%;height:100%;object-fit:cover}
.sleeve-wrap .disc{position:absolute;top:14%;height:72%;width:auto;left:12%;z-index:1;transition:left .5s cubic-bezier(.2,.7,.2,1)}
.rec.is-active .sleeve-wrap .disc{left:20%}

.disc{aspect-ratio:1/1;height:76%;border-radius:50%;position:relative;
  background:repeating-radial-gradient(circle,#0c0b0a 0 1.4px,#171513 1.4px 2.8px);box-shadow:0 10px 30px rgba(0,0,0,.45),inset 0 0 0 1px #000;
  animation:spin 1.82s linear infinite;animation-play-state:paused}
.disc-label{position:absolute;inset:33%;border-radius:50%;background:var(--ink);color:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8%}
.disc-label::after{content:"";position:absolute;width:4%;aspect-ratio:1;border-radius:50%;background:var(--bg);top:50%;left:50%;transform:translate(-50%,-50%)}
.disc-label .pos{font-weight:600;font-size:clamp(18px,6vw,28px);line-height:1;letter-spacing:-.02em}
.disc-label .lbl{display:none}
.disc-label .t{font-size:clamp(8px,2.3vw,11px);line-height:1.2;color:#5c554b;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:26%}
.rec.is-playing .slide.is-current .disc,.rec.is-playing.on-sleeve .sleeve-wrap .disc{animation-play-state:running}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.disc{animation:none}.sleeve-wrap .disc{transition:none}}

.tap-hint{position:absolute;inset:auto 0 12px 0;z-index:3;display:flex;justify-content:center;pointer-events:none}
.tap-hint span{font-size:12px;color:var(--muted)}
.armed .tap-hint{display:none}

/* Meta */
.meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.artist{font-size:15px;color:var(--muted)}
.title{margin:0;font-weight:600;font-size:clamp(24px,7vw,32px);line-height:1.08;letter-spacing:-.025em;text-wrap:balance}
.facts{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:13px;color:var(--muted);margin-top:6px}
.note{font-size:14px;margin:6px 0 0;max-width:46ch}

/* Sides */
.sides{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.side{flex:none;position:relative;min-width:48px;height:40px;padding:0 12px;border-radius:6px;border:1px solid var(--line);font-weight:800;font-stretch:110%;font-size:14px;overflow:hidden;font-variant-numeric:tabular-nums}
.side .prog{position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--sticker)}
.side[aria-current="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.side-now{font-size:13px;color:var(--muted);min-height:1.45em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-now b{color:var(--ink);font-weight:500}

/* Buy */
.buy{margin-top:auto;display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);padding-top:14px}
.price{font-size:20px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.cond{font-size:12px;line-height:1.35;color:var(--muted);min-width:0}
.cond b{display:block;color:var(--ink);font-size:13px;font-weight:500}
.add{margin-left:auto;flex:none;height:46px;padding:0 20px;border-radius:999px;background:var(--ink);color:var(--bg);font-weight:600;font-size:14px}
.add[aria-pressed="true"]{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}

/* End */
.end{display:grid;place-items:center;text-align:center;padding:24px}
.end h2{font-weight:600;font-size:28px;letter-spacing:-.02em;margin:0 0 8px}
.end p{color:var(--muted);max-width:36ch;margin:0 auto 20px}
.end-shops{display:flex;flex-direction:column;gap:10px;align-items:center}
.end-shops a{text-underline-offset:3px}
.credit{font-size:12px;color:var(--muted);margin-top:28px}

@media (min-width:900px){
  .rec-inner{max-width:1040px;display:grid;grid-template-columns:minmax(0,500px) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:64px;align-content:center;padding-top:calc(var(--bar-h) + var(--genres-h) + 24px);padding-bottom:40px}
  .shop-row{grid-column:2;grid-row:1}
  .deck{grid-column:1;grid-row:1/3;max-height:calc(100dvh - 180px);align-self:center}
  .info{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:18px;align-self:start;padding-top:8px;max-width:420px}
  .title{font-size:44px}
  .buy{margin-top:12px}
}
@media (max-width:899px){.info{display:contents}}

/* Shop page */
.shop-page{height:100dvh;overflow-y:auto;padding:calc(var(--bar-h) + var(--genres-h) + 28px) 20px 48px}
.shop-head{max-width:1040px;margin:0 auto 40px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.shop-head h1{margin:0;font-weight:600;font-size:clamp(32px,8vw,52px);line-height:1;letter-spacing:-.03em}
.shop-head .where{color:var(--muted);margin:6px 0 0}
.shop-head .bio{max-width:52ch;margin:0}
.shop-facts{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;color:var(--muted)}
.dig{margin-top:8px;height:46px;padding:0 20px;border-radius:999px;background:var(--ink);color:var(--bg);font-weight:500;font-size:14px;display:inline-flex;align-items:center;text-decoration:none}
.grid{max-width:1040px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:32px 20px}
.card{text-decoration:none;display:flex;flex-direction:column;gap:2px}
.card-art{aspect-ratio:1;overflow:hidden;background:var(--soft);margin-bottom:8px}
.card-art img{width:100%;height:100%;object-fit:cover}
.card b{font-weight:500;font-size:14px;line-height:1.25}
.card span{font-size:13px;color:var(--muted)}
.card .card-price{color:var(--ink);margin-top:4px}
.card:hover b{text-decoration:underline;text-underline-offset:3px}
.shop-page .credit{max-width:1040px;margin:48px auto 0}

/* Bag */
dialog.sheet{border:0;padding:0;background:var(--soft);border-radius:14px;color:var(--ink);width:min(420px,100vw);max-height:80dvh;margin:auto;box-shadow:0 20px 60px rgba(0,0,0,.15)}
dialog.sheet::backdrop{background:rgba(0,0,0,.6)}
.sheet-in{padding:24px}
.sheet h2{margin:0 0 16px;font-weight:600;font-size:20px}
.bag-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.bag-list li{display:grid;grid-template-columns:44px 1fr auto auto;gap:12px;align-items:center;font-size:14px}
.bag-list img{width:44px;height:44px;object-fit:cover}
.bag-list small{display:block;color:var(--muted)}
.bag-list b{font-weight:500}
.bag-list .rm{color:var(--muted);font-size:12px;text-decoration:underline}
.bag-total{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:18px;padding-top:12px;font-weight:500}
.sheet .fine{font-size:13px;color:var(--muted)}
.sheet-close{margin-top:16px;width:100%;height:46px;border-radius:999px;background:var(--ink);color:var(--bg);font-weight:500}

.toast{border-radius:999px;position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%,12px);opacity:0;z-index:40;background:var(--ink);color:var(--bg);padding:10px 16px;font-size:13px;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 40px)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.loading{height:100dvh;display:grid;place-items:center;color:var(--muted)}

.empty{max-width:1040px;margin:0 auto;color:var(--muted)}
.empty a,.end p a{color:var(--ink)}
