/* Store (store.js): price badges, the Sell drawer, Buy sheet, player preview line, albums, My music, Download sheet.
   One accent (#00dcc4); never teal. */

/* price badges */
.sto-badge { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  background: rgba(0, 220, 196,.16); color: #9ef3e7; white-space: nowrap; vertical-align: middle; }
.sto-badge.free { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 600; }
.sto-badge.own { background: transparent; color: #9ef3e7; box-shadow: inset 0 0 0 1px rgba(0, 220, 196,.45); }
.sto-badge.lg { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.dc-tt b:has(.sto-badge), .ar-pop b:has(.sto-badge) { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sto-tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sto-tb { position: absolute; left: 8px; top: 8px; z-index: 2; font-style: normal; }
.sto-tb .sto-badge { background: rgba(14,16,20,.78); color: #d4fbf5; box-shadow: none; backdrop-filter: none; }
.sto-tb .sto-badge.free { color: #c9cdd8; }

/* the money icon on My catalog rows and cards */
.sto-sell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.sto-sell.on { color: var(--accent); }

/* drawers: right side, a bottom sheet on phones */
.sto-sheet .cx-sheet-body { display: flex; flex-direction: column; gap: 12px; }
.sto-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); }
.sto-item > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.sto-item span { display: flex; flex-direction: column; min-width: 0; } .sto-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-item small, .sto-buyitem small { color: var(--muted); font-size: 12.5px; }
.sto-f { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sto-l { width: 84px; flex: none; color: var(--muted); font-size: 13px; }
.sto-seg { flex-wrap: wrap; } .sto-seg button { padding: 6px 12px; font-size: 13px; }
.sto-price { display: inline-flex; align-items: center; gap: 6px; }
.sto-price select { padding: 8px 8px; } .sto-price input { width: 110px; }
.sto-price.sm input { width: 80px; padding: 6px 8px; } .sto-price i { font-style: normal; color: var(--muted); }
.sto-custom input[data-ps] { width: 64px; } .sto-custom input[data-pl] { width: 70px; } .sto-custom span { color: var(--muted); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.sto-fpin { width: 70px; }
.sto-tg { margin-left: 96px; } .sto-tg span { font-size: 13px; }
.sto-net, .sto-hint { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.sto-hint { margin-left: 96px; } .sto-net { margin-left: 96px; }
.sto-hint svg { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }
.sto-h { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text); }
.sto-tp { list-style: none; margin: 0 0 0 96px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sto-tp li { display: flex; align-items: center; gap: 10px; } .sto-tp b { flex: 1; min-width: 0; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-n { width: 18px; color: var(--muted); font-size: 12px; text-align: right; }
.sto-fmts { display: flex; gap: 8px; flex-wrap: wrap; }
.sto-chip { display: inline-flex; align-items: center; cursor: pointer; }
.sto-chip input { display: none; }
.sto-chip span { padding: 7px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--muted); font-size: 13px; font-weight: 600; }
.sto-chip input:checked + span { background: rgba(0, 220, 196,.16); box-shadow: inset 0 0 0 1px rgba(0, 220, 196,.6); color: #d4fbf5; }
.sto-chip.dis { opacity: .45; cursor: not-allowed; }
.sto-sales { font-size: 13.5px; } .sto-sales b { font-size: 15px; }
.sto-testtag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; font-style: normal;
  color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.sto-testtag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.sto-foot2 { gap: 12px; align-items: center; margin-top: auto; border-top: 1px solid var(--line); }
.sto-foot2 .sto-testtag { margin-right: auto; }

/* Buy */
.sto-buyitem { display: flex; align-items: center; gap: 14px; }
.sto-buyitem span { display: flex; flex-direction: column; min-width: 0; } .sto-buyitem b { font-size: 17px; }
.sto-buycov { width: 72px; height: 72px; border-radius: 10px; background-size: cover; background-position: center; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 24px; }
.sto-buy label.sto-f { cursor: default; }
.sto-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sto-total span { color: var(--muted); } .sto-total b { font-size: 22px; }
.sto-testbox { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sto-testbox .sto-testtag { flex: none; }
.sto-pay { justify-content: center; padding: 12px; font-size: 15px; }
.sto-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 0 10px; }
.sto-done span:not(.sto-doneic) { color: var(--muted); margin-bottom: 12px; }
.sto-done .btn { width: 100%; justify-content: center; }
.sto-doneic { width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 220, 196,.16); display: grid; place-items: center; }
.sto-doneic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.2; }

/* the footer player: Preview · 0:30  [Buy · R25] */
.sto-pfoot { display: flex; align-items: center; gap: 8px; flex: none; margin-left: 4px; }
.sto-pfoot[hidden] { display: none; }
.sto-pl { font-size: 12px; color: #9ef3e7 !important; white-space: nowrap; }
.sto-buybtn { border: 0; background: var(--accent); color: #0b0d14; font-weight: 700; font-size: 12px; border-radius: 99px; padding: 5px 11px; white-space: nowrap; cursor: pointer; }
.sto-buybtn:hover { filter: brightness(1.08); }

/* albums */
.sto-alhead .sto-alcov { border: 0; padding: 0; cursor: pointer; position: relative; background: none; }
.sto-alhead .sto-alcov .cx-art-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s; border-radius: inherit; }
.sto-alhead .sto-alcov:hover .cx-art-hint { opacity: 1; }
.sto-alhead .sto-alcov .cx-art-hint svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; }
.sto-alinfo { min-width: 0; flex: 1; }
.sto-alinfo h1.ed { cursor: text; }
.sto-alnote { margin: 10px 0 0; color: var(--muted); max-width: 640px; }
.sto-albar { flex-wrap: wrap; }
.sto-pricebtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sto-date { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.sto-date input { padding: 7px 9px; color-scheme: dark; }
.sto-alsales { margin: 12px 4px 0; }
.sto-altr { margin-top: 18px; }
.sto-altr .dc-row { grid-template-columns: 28px 52px minmax(0, 1fr) 64px 44px 32px; }
.sto-tprice { font-size: 13px; color: var(--muted); text-align: right; }
.sto-rm { opacity: .55; } .sto-alrow:hover .sto-rm { opacity: 1; }
.sto-alrow.dragging { opacity: .5; } .sto-alrow.drag-over { box-shadow: inset 0 2px 0 var(--accent); }
.sto-aladd { margin: 14px 4px 0; }
.sto-algrid .cx-card.dragging { opacity: .5; } .sto-algrid .cx-card.drag-over { box-shadow: 0 0 0 2px var(--accent); }
.sto-arals .dc-scroll { margin-top: 6px; }

/* Discover · My music */
.sto-dtabs { margin: 0 0 18px; }
.sto-dtabs a[role=tab] { text-decoration: none; }
.sto-mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-width: 980px; }
.sto-mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.sto-mrow:hover { background: rgba(255,255,255,.04); }
.sto-mrow.gone { opacity: .5; }
.sto-mrow:hover .dc-pp, .sto-msub li:hover .dc-pp, .sto-mrow .dc-on .dc-pp { opacity: 1; }
.sto-paid { font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.sto-dls { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sto-dl { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2);
  color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.sto-dl:hover { border-color: var(--accent); }
.sto-dl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.sto-msub { grid-column: 1 / -1; list-style: none; margin: 4px 0 6px 66px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sto-msub li { display: grid; grid-template-columns: 20px 32px minmax(0, 1fr) 44px auto; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 8px; }
.sto-msub li:hover { background: rgba(255,255,255,.04); }
.sto-msub .dc-pp { position: static; opacity: .7; width: 30px; height: 30px; }
.sto-msub b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-mlikes { margin-top: 4px; }

/* Download sheet */
.sto-mcheck { border-radius: 12px; padding: 14px; background: var(--panel2); display: flex; flex-direction: column; gap: 8px; }
.sto-mcheck.warn { box-shadow: inset 0 0 0 1px rgba(245,183,78,.45); }
.sto-mhead { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sto-mhead b { font-size: 13.5px; } .sto-mhead a { color: var(--accent); font-size: 13px; white-space: nowrap; }
.sto-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.sto-facts span + span::before { content: "·"; margin-right: 14px; color: var(--muted); }
.sto-mnote { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.sto-mnote svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--warn); stroke-width: 2; margin-top: 1px; }
.sto-mnote.ok svg { stroke: var(--accent); }
.sto-mcheck.warn .sto-mnote { color: var(--text); }
.sto-dlbox { padding: 0; border: 0; background: none; }
/* 2 Dec: the sheet body is a flex column; .dl-box (overflow: hidden) shrank to fit it, cut its rows off and left nothing
   to scroll ("stuck"). Children keep their height; the body scrolls (touch too) and the scroll stays inside the sheet */
.sto-sheet .cx-sheet-body { min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sto-sheet .cx-sheet-body > * { flex-shrink: 0; }
.sto-dlsheet .dl-box { overflow: visible; }
.sto-dlsheet .dl-gh small { font-weight: 400; color: var(--muted); margin-left: 6px; text-transform: none; letter-spacing: 0; }

@media (max-width: 640px) {
  .sto-sheet { top: auto; left: 0; right: 0; width: 100vw; max-height: 90vh; max-height: 90dvh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.5); }
  .sto-sheet header { padding: 14px 16px; } .sto-sheet .cx-sheet-body { padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .sto-l { width: 100%; } .sto-tg, .sto-hint, .sto-net, .sto-tp { margin-left: 0; }
  .sto-f { gap: 8px; }
  .sto-mrow { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 8px 4px; }
  .sto-mrow .sto-dls { grid-column: 2 / -1; justify-content: flex-start; }
  .sto-msub { margin-left: 0; } .sto-msub li { grid-template-columns: 18px 30px minmax(0, 1fr) auto; } .sto-msub .dc-du { display: none; } .sto-msub .sto-dls { grid-column: 3 / -1; justify-content: flex-start; }
  .sto-altr .dc-row { grid-template-columns: 22px 48px minmax(0, 1fr) 40px 28px; } .sto-altr .sto-tprice { display: none; }
  .sto-pfoot .sto-pl { display: none; }
  .sto-dtabs { margin-bottom: 12px; }
}
.sto-sheet .cx-sheet-body > .seg { align-self: flex-start; }
.cxf-seek:has(> .sto-pfoot:not([hidden])) { grid-template-columns: auto auto minmax(0, 1fr) auto; }
/* Discover · My music: beside the search bar */
.sto-toprow { display: flex; align-items: center; gap: 14px; }
.sto-toprow .dc-search { flex: 1; min-width: 0; }
.sto-switch { display: flex; gap: 6px; flex: none; }
.sto-sw { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s; }
.sto-sw:hover { color: var(--text); background: rgba(255,255,255,.05); }
.sto-sw.on { color: #d4fbf5; background: rgba(0, 220, 196,.16); border-color: rgba(0, 220, 196,.4); }
.sto-sw svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .sto-toprow { gap: 8px; }
  .sto-sw { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .sto-sw span { display: none; }
}
.sto-sales .sto-sub { margin-top: 18px; } .sto-sales .sto-sub h3 { font-size: 13px; }
.sto-spills dd { font-variant-numeric: tabular-nums; }

/* Edit profile sheet (My catalog): bio, location, roles, links */
.pf-form { display: flex; flex-direction: column; gap: 12px; }
.pf-form .sto-f { flex-wrap: nowrap; } .pf-form .sto-f > input, .pf-form .sto-f > textarea { flex: 1; min-width: 0; }
.pf-form .pf-top { align-items: flex-start; } .pf-form .pf-top .sto-l { padding-top: 9px; }
.pf-form textarea { resize: vertical; min-height: 92px; }
.pf-acts { display: flex; justify-content: flex-end; margin-top: 4px; }
.pf-err { margin: 0; }
.cx-editprof { display: inline-flex; align-items: center; gap: 6px; }
.cx-editprof svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
