/* Bins — minimal */
:root{
  --bg:#FFFFFF;
  --ink:#000000;
  --muted:#7A7A7A;
  --line:#E6E6E6;
  --soft:#F4F4F4;
  --bar-h:52px;
  --font:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
*{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:1.5px solid var(--ink);outline-offset:3px}
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:28px;padding:0 20px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.brand{font-weight:700;font-size:17px;letter-spacing:-.01em;text-decoration:none}
.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{margin-left:auto;font-size:14px;display:flex;gap:6px;align-items:center}
.bag::before{content:"Bag"}
.bag-n{font-variant-numeric:tabular-nums}
.bag-n::before{content:"("}.bag-n::after{content:")"}
.bag-n[data-zero]{display:none}
@media (max-width:719px){.bar-nav{display:none}}

#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) + 8px) 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 - 300px);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 1px 2px rgba(0,0,0,.08)}
.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,#0c0c0c 0 1.4px,#151515 1.4px 2.8px);
  animation:spin 1.82s linear infinite;animation-play-state:paused}
.disc-label{position:absolute;inset:33%;border-radius:50%;background:#fff;color:#000;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:#000;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:#555;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;color:#333}

/* Sides */
.sides{display:flex;gap:18px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
.side{flex:none;position:relative;height:34px;font-weight:500;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.side .prog{position:absolute;left:0;bottom:-1px;height:1px;width:0;background:var(--ink)}
.side[aria-current="true"]{color:var(--ink)}
.side[aria-current="true"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--line)}
.side[aria-current="true"] .prog{z-index:1}
.rec:not(.is-playing) .side[aria-current="true"]::after{background:var(--ink)}
.side-now{font-size:13px;color:var(--muted);min-height:1.45em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:-6px}
.side-now b{color:var(--ink);font-weight:400}

/* 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:44px;padding:0 20px;background:var(--ink);color:var(--bg);font-weight:500;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) + 24px);padding-bottom:40px}
  .shop-row{grid-column:2;grid-row:1}
  .deck{grid-column:1;grid-row:1/3;max-height:calc(100dvh - 140px);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) + 32px) 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:44px;padding:0 20px;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(--bg);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(255,255,255,.7);backdrop-filter:blur(2px)}
.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:44px;background:var(--ink);color:var(--bg);font-weight:500}

.toast{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)}
