/* Listnbox foundation styles. Module styles live in their own files (catalog.css, social.css, store.css, seller.css, content.css). */
@font-face { font-family: "Jost"; src: url("../fonts/Jost-var.woff2") format("woff2-variations"), url("../fonts/Jost-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* =========================================================================
   Listnbox. Black frame, a middle a shade lighter, the music is the colour.
   Buttons are square (no rounding). Cards and covers keep a 4px corner.
   ========================================================================= */
:root {
  --base: #000000; --side: #000000; --surface: #121212; --raised: #1c1c1c; --sel: #2a2a2a;
  --frame: #0c0c0c; --line: rgba(255, 255, 255, .06); --line-2: #333333;
  --text: #f5f5f5; --text-2: #b5b5b5; --text-3: #8f8f8f;
  --accent: #a69175; --accent-ink: #111111;
  --wave: #4d4d4d; --wave-hi: #6b6b6b; --wave-played: #f5f5f5;
  --danger: #ff8a7a; --ok: #8be3b6; --warn: #f5c451;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 4px; --r-btn: 0px;
  --side-w: 232px; --top-h: 60px; --player-h: 88px;
  --gutter: 28px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .5);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--text); font: 400 14px/1.45 var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
p a, .prose a, .link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* scrollbars match the frame */
* { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2f2f2f; border: 3px solid transparent; background-clip: padding-box; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: #444; }

/* ---------------- buttons (square) ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-btn); background: var(--raised); color: var(--text); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .15s, color .15s, opacity .15s; }
.btn:hover { background: var(--sel); color: var(--text); }
.btn-primary { background: #ffffff; color: #0b0b0b; }
.btn-primary:hover { background: #e2e2e2; color: #0b0b0b; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent); filter: brightness(1.1); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--raised); color: var(--text); }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { background: var(--raised); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 138, 122, .35); }
.btn-danger:hover { background: rgba(255, 138, 122, .1); color: var(--danger); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-btn); color: var(--text-2); transition: background .15s, color .15s; flex: none; }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.is-on { color: var(--accent); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.play-sq { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-btn); background: #fff; color: #0b0b0b; flex: none; transition: transform .12s, background .15s; }
.play-sq:hover { background: #e6e6e6; }
.play-sq svg.i { width: 18px; height: 18px; }
.play-sq.sm { width: 30px; height: 30px; }
.play-sq.lg { width: 52px; height: 52px; }
.play-sq.lg svg.i { width: 22px; height: 22px; }

/* ---------------- fields ---------------- */
.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field > span, .field > label { color: var(--text-2); font-size: 13px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]), .field textarea, .field select, select.input {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: var(--r); border: 0; background: var(--raised); color: var(--text);
}
.field textarea, textarea.input { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--sel); }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-left: 6px; cursor: pointer; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 12px no-repeat; }
input[type=search]::-webkit-search-cancel-button:hover { opacity: 1; }
.field-hint { color: var(--text-3); font-size: 12.5px; font-style: normal; }
.field-error, .form-error { color: var(--danger); font-size: 13px; margin: 0; font-style: normal; }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.row-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.form-card { width: 100%; max-width: 1240px; margin: 0 auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.alert { padding: 12px 14px; border-radius: var(--r); background: var(--raised); color: var(--text-2); margin: 0 0 16px; }
.alert.ok { color: var(--ok); }
.alert.err { color: var(--danger); }

/* ---------------- the shell: sidebar | stage, player across the bottom ---------------- */
body.shell { height: 100dvh; overflow: hidden; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) var(--player-h); grid-template-areas: "side stage" "player player"; }
.side { grid-area: side; display: flex; flex-direction: column; min-height: 0; background: var(--side); }
.stage { grid-area: stage; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; background: var(--surface); position: relative; container: stage / inline-size; }
.main { min-height: calc(100dvh - var(--player-h) - var(--top-h)); padding: 6px var(--gutter) 40px; outline: none; }
.main.flush { padding-left: 0; padding-right: 0; }
body.is-navigating .main { opacity: .55; transition: opacity .15s .1s; }

/* sidebar */
.side .brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--top-h); padding: 0 10px 0 20px; flex: none; color: var(--text); }
.side .brand-link { display: flex; align-items: center; min-width: 0; color: var(--text); }
.side-toggle { color: var(--text-3); flex: none; }
.side-toggle:hover { color: var(--text); }
.side .brand img { max-height: var(--logo-h, 26px); width: auto; }
.wordmark { font: 600 17px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 16px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: var(--r); color: var(--text-2); font-size: 13.5px; }
.nav-item:hover { background: var(--raised); color: var(--text); }
.nav-item.is-active { background: var(--sel); color: var(--text); font-weight: 500; }
.nav-item svg.i { width: 17px; height: 17px; }
.nav-item .count { margin-left: auto; color: var(--text-3); font-size: 12px; }
.side-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 20px 0 6px; padding: 0 12px; background: none; border: 0; color: var(--text-3); font: 500 11.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer; }
.side-head:hover { color: var(--text-2); }
.side-head svg.i { width: 14px; height: 14px; transition: transform .15s; opacity: .7; }
.side-head[aria-expanded="false"] svg.i { transform: rotate(-90deg); }
.side-group.is-folded { display: none; }
.side-install { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; background: none; border: 0; color: var(--text-2); font: inherit; cursor: pointer; }
.side-install:hover { color: var(--text); }
.side-install[hidden] { display: none; }
.side-tip { position: fixed; z-index: 120; padding: 6px 10px; border-radius: var(--r); background: #fff; color: #0b0b0b; font-size: 12.5px; font-weight: 500; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
@media (min-width: 861px) {
  html.side-mini { --side-w: 68px; }
  html.side-mini .side .brand { justify-content: center; padding: 0; }
  html.side-mini .side .brand-link { display: none; }
  html.side-mini .side-scroll { padding: 4px 10px 16px; overflow-x: hidden; }
  html.side-mini .nav-item { position: relative; justify-content: center; padding: 0; gap: 0; }
  html.side-mini .nav-item > span, html.side-mini .nav-item .count { display: none; }
  html.side-mini .nav-badge { position: absolute; top: 4px; right: 6px; min-width: 9px; width: 9px; height: 9px; padding: 0; font-size: 0; }
  html.side-mini .side-head { height: 1px; margin: 12px 8px; padding: 0; overflow: hidden; background: var(--line); pointer-events: none; }
  html.side-mini .side-head > * { display: none; }
  html.side-mini .side-group.is-folded { display: block; }
  html.side-mini .side-cta, html.side-mini .side-foot { display: none; }
}
.side-foot { padding: 14px 20px 18px; color: var(--text-3); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.side-foot a:hover { color: var(--text-2); }
.side-cta { margin: 16px 10px 0; padding: 14px; border-radius: var(--r); background: var(--raised); }
.side-cta p { margin: 0 0 10px; color: var(--text-2); font-size: 12.5px; }

/* top bar: transparent, search in the middle */
.top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(180px, 560px) minmax(max-content, 1fr); align-items: center; gap: 12px; height: var(--top-h); padding: 0 var(--gutter); background: transparent; transition: background .2s; }
.top.is-scrolled { background: rgba(12, 12, 12, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-l, .top-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.top-r { justify-content: flex-end; }
.search { position: relative; width: 100%; margin: 0; }
.search > svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: var(--r); border: 0; background: var(--raised); color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; background: var(--sel); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; max-height: min(70vh, 540px); overflow: auto; padding: 6px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); }
.suggest h4 { margin: 8px 8px 4px; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r); }
.suggest a:hover, .suggest a.is-active { background: var(--sel); }
.suggest img, .suggest .ph { width: 36px; height: 36px; border-radius: 3px; object-fit: cover; flex: none; background: var(--sel); }
.suggest small { display: block; color: var(--text-3); font-size: 12px; }
.cart-btn { position: relative; }
/* The B Side, a side of its own: a link by the cart instead of a menu group. */
.top-side { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-btn); color: var(--text); font-size: 13px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.top-side svg.i { width: 16px; height: 16px; color: var(--accent); }
.top-side:hover { background: var(--raised); }
.top-side.is-active { background: var(--text); border-color: var(--text); color: var(--base); }
.top-side.is-active svg.i { color: var(--base); }
.top-side-flag { padding: 1px 5px; background: var(--raised); color: var(--text-3); font-style: normal; font-size: 9.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.top-side.is-active .top-side-flag { background: rgba(0, 0, 0, .12); color: var(--base); }
@media (max-width: 640px) { .top-side { height: 32px; padding: 0 9px; gap: 5px; } .top-side-flag { display: none; } }
@media (max-width: 420px) { .top-side svg.i { display: none; } }
.badge-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--sel); color: var(--text); font-weight: 600; font-size: 12px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.only-mobile { display: none !important; }

/* menus and popovers */
.menu { position: absolute; z-index: 60; min-width: 200px; padding: 6px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: var(--r); color: var(--text-2); text-align: left; font-size: 13.5px; }
.menu a:hover, .menu button:hover { background: var(--sel); color: var(--text); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .menu-head { padding: 8px 10px 6px; color: var(--text); font-weight: 500; }
.menu .menu-head small { display: block; color: var(--text-3); font-weight: 400; }
.drop { position: relative; }

/* page headings */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 14px 0 22px; }
.page-head h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.page-head p { margin: 6px 0 0; color: var(--text-2); max-width: 70ch; }
.kicker { color: var(--text-3); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }

/* sections: a title row with "See more" and arrows, content under it */
.section { margin: 0 0 38px; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.section-head h2 { font-size: 21px; flex: 1; min-width: 0; }
.section-head h2 a:hover { color: var(--text-2); }
.section-head .see-more { color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.section-head .see-more:hover { color: var(--text); }
.section-head .arrows { display: flex; gap: 2px; }
.section-sub { margin: -8px 0 14px; color: var(--text-3); font-size: 13px; }

/* horizontal rows of cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols, 6) - 1) * 16px) / var(--cols, 6)); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 16px; }
@container stage (max-width: 1400px) { .rail { --cols: 5; } }
@container stage (max-width: 1100px) { .rail { --cols: 4; } }
@container stage (max-width: 820px) { .rail { --cols: 3; } }
@container stage (max-width: 560px) { .rail { --cols: 2.3; } }

/* covers */
.cover { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--raised); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .5); background: linear-gradient(135deg, var(--c1, #2b2b2b), var(--c2, #151515)); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 10px; }
.cover .play-sq { position: absolute; left: 10px; bottom: 10px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.card:hover .cover .play-sq, .cover .play-sq:focus-visible, .cover .play-sq.is-playing { opacity: 1; transform: none; }
.tag { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tag.new { background: #fff; color: #000; }
.tag.excl { background: var(--accent); }
.tag.free { background: var(--ok); color: #062b1a; }
.tag + .tag { top: 32px; }

/* cards */
.card { min-width: 0; }
.card .meta { margin-top: 10px; min-width: 0; }
.card .t { display: block; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .s { display: block; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.card .s a:hover, .card .t:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.card .x { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }

/* genre tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; place-items: center; height: 64px; padding: 0 14px; border-radius: var(--r); overflow: hidden; background: var(--raised); color: #fff; font-weight: 500; font-size: 13.5px; letter-spacing: .02em; text-align: center; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, var(--g, #444) 0%, color-mix(in srgb, var(--g, #444) 30%, #111) 100%); opacity: .55; transition: opacity .2s; }
.tile img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.tile:hover::before { opacity: .85; }
.tile.big { height: 120px; font-size: 16px; }
.tile .tile-n { position: absolute; left: 8px; bottom: 7px; padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .9); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; line-height: 1.4; font-variant-numeric: tabular-nums; }

/* chips: key, BPM, version */
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 21px; padding: 0 6px; border-radius: 3px; background: color-mix(in srgb, var(--k, #555) 22%, transparent); color: color-mix(in srgb, var(--k, #999) 80%, #fff); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 3px; background: var(--raised); color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.chip.ver { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); }
.chip.explicit { background: #3a3a3a; color: #ddd; padding: 0 5px; font-size: 10px; }
a.chip:hover { background: var(--sel); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* tabs */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; height: 38px; padding: 0 14px; color: var(--text-3); font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active { color: var(--text); border-bottom-color: var(--text); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pills a, .pills button { height: 30px; padding: 0 12px; border-radius: var(--r-btn); background: var(--raised); color: var(--text-2); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; }
.pills a:hover, .pills button:hover { background: var(--sel); color: var(--text); }
.pills .is-active { background: #fff; color: #000; }

/* panels */
.panel { background: var(--frame); border-radius: var(--r); padding: 18px; }
.panel h3 { font-size: 16px; margin: 0 0 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--frame); border-radius: var(--r); padding: 16px; }
.stat b { display: block; font: 300 26px/1.1 var(--sans); }
.stat span { color: var(--text-3); font-size: 12.5px; }

/* empty state */
.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; text-align: center; color: var(--text-3); }
.empty h3 { color: var(--text); font-size: 18px; }
.empty p { margin: 0; max-width: 46ch; }

/* error pages (resources/views/errors): centred, thin title, a way home */
.err { display: grid; justify-items: center; gap: 12px; max-width: 620px; margin: 0 auto; padding: clamp(40px, 9vh, 96px) 0 36px; text-align: center; }
.err-code { margin: 0 0 4px; color: var(--text-3); font: 300 clamp(64px, 11vw, 112px)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.err h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; text-wrap: balance; }
.err-text { margin: 0; max-width: 52ch; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.err-search { max-width: 460px; margin-top: 10px; }
.err-search input { height: 46px; }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
body.err-solo { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--surface); padding: 0 16px; }
.err-solo .err-brand { display: block; padding: 22px 4px; color: var(--text); font-size: 15px; }
.err-solo .err { align-self: center; padding-top: 0; padding-bottom: 12vh; }
@media (max-width: 560px) { .err-actions .btn { flex: 1 1 100%; } }

/* pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 26px 0 0; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-btn); color: var(--text-2); font-size: 13px; }
.pager a:hover { background: var(--raised); color: var(--text); }
.pager .is-current { background: #fff; color: #000; font-weight: 600; }
.pager .is-disabled { opacity: .35; }

/* footer inside the stage */
.site-foot { margin-top: 40px; padding: 28px 0 34px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; display: grid; gap: 14px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a:hover { color: var(--text); }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: calc(var(--player-h) + 16px); z-index: 90; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; max-width: 360px; padding: 12px 16px; border-radius: var(--r); background: #f5f5f5; color: #0b0b0b; font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast.err { background: #3a1512; color: #ffd6d0; }
.toast a { color: inherit; text-decoration: underline; margin-left: 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* modal */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .62); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); }
.modal h2 { font-size: 20px; margin: 0 0 16px; }
.modal .form-actions { justify-content: flex-end; margin-top: 18px; }
.pick-list { display: grid; gap: 2px; max-height: 320px; overflow: auto; margin: 0 -6px; }
.pick-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--r); text-align: left; color: var(--text-2); }
.pick-list button:hover { background: var(--sel); color: var(--text); }

/* ---------------- track lists: one grid for every list on the site ---------------- */
.tl { --cols: 30px 44px minmax(180px, 1.7fr) minmax(110px, 1.1fr) minmax(90px, .8fr) minmax(80px, .7fr) 52px 64px 84px 132px;
      --areas: "n art title wave ai genre time plays date act"; }
.tl.no-wave { --cols: 30px 44px minmax(200px, 2fr) minmax(110px, 1fr) minmax(90px, .8fr) 52px 64px 84px 132px;
      --areas: "n art title ai genre time plays date act"; }
.tl-head, .tr { display: grid; grid-template-columns: var(--cols); grid-template-areas: var(--areas); align-items: center; column-gap: 14px; }
.tl-head { height: 34px; padding: 0 10px; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.tl-head a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.tl-head a:hover, .tl-head a.is-sorted { color: var(--text); }
.tr { position: relative; min-height: 58px; padding: 7px 10px; border-radius: var(--r); transition: background .12s; }
.tr + .tr { box-shadow: 0 -1px 0 var(--line); }
.tr:hover { background: var(--raised); box-shadow: none; }
.tr:hover + .tr { box-shadow: none; }
.tr.is-current { background: var(--sel); }
.c-n { grid-area: n; color: var(--text-3); font-size: 12.5px; text-align: center; font-variant-numeric: tabular-nums; }
.c-art { grid-area: art; position: relative; width: 44px; height: 44px; border-radius: 3px; overflow: hidden; background: var(--sel); }
.c-art img { width: 100%; height: 100%; object-fit: cover; }
.c-art .play-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .12s; }
.tr:hover .c-art .play-over, .tr.is-current .c-art .play-over { opacity: 1; }
.c-art .play-over svg.i { width: 18px; height: 18px; }
.c-title { grid-area: title; min-width: 0; }
.c-title .t { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 500; font-size: 13.5px; }
.c-title .t a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.c-title .t .v { color: var(--text-3); font-weight: 400; }
.c-title .t a:hover { text-decoration: underline; text-underline-offset: 2px; }
.c-title .s { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.c-title .s a:hover { color: var(--text); }
.c-title .m { display: none; align-items: center; gap: 8px; margin-top: 4px; }
.c-title .m .m-plays { color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.c-wave { grid-area: wave; height: 34px; min-width: 0; cursor: pointer; position: relative; }
.c-wave svg { width: 100%; height: 100%; display: block; }
.c-wave rect { fill: var(--wave); transition: fill .15s; }
.tr:hover .c-wave rect { fill: var(--wave-hi); }
.c-wave .played rect { fill: var(--wave-played); }
.c-wave .nowave { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line-2); }
.c-ai { grid-area: ai; min-width: 0; color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-genre { grid-area: genre; min-width: 0; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-ai a:hover, .c-genre a:hover { color: var(--text); }
.c-time { grid-area: time; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: center; }
.c-plays { grid-area: plays; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tl-head .c-plays { text-align: right; }
.c-date { grid-area: date; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-act { grid-area: act; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.tl-head .c-time { text-align: center; }
/* "Made with Suno": the AI tool, on every row, card and page */
.ai-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--raised); color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.ai-chip svg.i { width: 13px; height: 13px; flex: none; color: var(--accent); }
a.ai-chip:hover { color: var(--text); background: var(--sel); }
.tl-head .c-act { justify-content: flex-end; }
.tl-head .c-art { height: auto; background: none; }
.cl .ci .c-art { grid-area: auto; display: block; }

/* the buy button: price, or download once owned */
.buy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-btn); background: var(--raised); color: var(--text); font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr:hover .buy { background: var(--sel); }
.buy:hover { background: #fff !important; color: #000; }
.buy.in-cart { background: var(--accent) !important; color: var(--accent-ink); }
.buy.owned { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ok); }
.buy.owned:hover { background: var(--ok) !important; color: #062b1a; }
.buy svg.i { width: 15px; height: 15px; }
.tl .c-act .buy { min-width: 84px; justify-content: center; } /* Free, Get and prices line up, so the heart and plus do too */

/* Narrower: the waveform and the date go first, so Made with, Genre, Time and Plays stay */
@container stage (max-width: 1380px) {
  .tl, .tl.no-wave { --cols: 30px 44px minmax(170px, 2fr) minmax(90px, 1fr) minmax(80px, .8fr) 52px 60px 132px; --areas: "n art title ai genre time plays act"; }
  .tl .c-wave, .tl .c-date { display: none; }
}
@container stage (max-width: 1000px) {
  .tl, .tl.no-wave { --cols: 30px 44px minmax(150px, 2fr) minmax(80px, 1fr) minmax(70px, .8fr) 48px 54px 76px; --areas: "n art title ai genre time plays act"; }
  .tl .c-act .icon-btn.opt { display: none; }
  .tl .c-act .icon-btn.opt[data-add-playlist] { display: inline-grid; }
}
@container stage (max-width: 860px) {
  .tl, .tl.no-wave { --cols: 44px minmax(0, 1fr) 52px 60px; --areas: "art title time act"; }
  .tl .c-n, .tl .c-ai, .tl .c-genre, .tl .c-plays { display: none; }
  .tl .c-act .icon-btn.opt { display: none; }
  .tl .c-title .m { display: flex; }
}
@container stage (max-width: 560px) {
  .tl, .tl.no-wave { --cols: 44px minmax(0, 1fr) auto; --areas: "art title act"; }
  .tl .c-time { display: none; }
  .tl-head { display: none; }
  .tr { padding: 7px 4px; }
}

/* compact list (home top 10, side panels) */
.cl { display: grid; }
.cl .ci { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: var(--r); }
.cl .ci:hover { background: var(--raised); }
.cl .ci .n { color: var(--text-3); font: 300 18px/1 var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.cl .ci .c-art { width: 44px; height: 44px; }
.cl .ci .c-art .play-over { opacity: 0; }
.cl .ci:hover .c-art .play-over { opacity: 1; }

/* ---------------- web player (Listncloud style) ---------------- */
.player { grid-area: player; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 22px; padding: 0 18px; background: var(--frame); border-top: 1px solid var(--line); z-index: 40; }
.player.is-empty .transport, .player.is-empty .np-right > :not(.vol-wrap):not([data-connect]):not([data-p="videos"]) { opacity: .4; pointer-events: none; }
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np-art { flex: none; width: 56px; height: 56px; border-radius: var(--r); background: var(--raised); object-fit: cover; display: grid; place-items: center; color: var(--text-3); overflow: hidden; }
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-text { min-width: 0; }
.np-title { display: block; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-title .v { color: var(--text-3); font-weight: 400; }
.np-sub { display: block; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-sub a:hover, .np-title:hover { color: var(--text); }
.transport { display: grid; gap: 3px; min-width: 0; }
.ctl { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ctl .play-sq { width: 38px; height: 38px; border-radius: 50%; }
.ctl .play-sq svg.i { transform: translateX(1px); } /* the triangle looks centred in a circle */
.ctl .play-sq.is-playing svg.i, .ctl .play-sq[aria-label=Pause] svg.i { transform: none; }
.ctl .icon-btn { width: 32px; height: 32px; }
.ctl .icon-btn.is-on { color: var(--accent); }
.scrub { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.scrub .time-l { text-align: right; }
.wave { position: relative; height: 34px; cursor: pointer; touch-action: none; }
.wave canvas { width: 100%; height: 100%; display: block; }
.wave .hover-time { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 6px; border-radius: 3px; background: var(--text); color: var(--base); font-size: 11px; font-weight: 600; pointer-events: none; white-space: nowrap; }
.wave-marks { position: absolute; inset: 0; pointer-events: none; }
.mark { position: absolute; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 999px; background: var(--text); box-shadow: 0 0 0 2px var(--frame); pointer-events: auto; cursor: pointer; transition: transform .12s; }
.mark:hover { transform: scale(1.35); }
.mark-pop { position: absolute; bottom: calc(100% + 12px); transform: translateX(-50%); z-index: 5; width: max-content; max-width: 280px; padding: 8px 10px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); font-size: 12.5px; pointer-events: none; }
.mark-pop b { display: block; font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.np-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.np-right .key, .np-right .chip { flex: none; }
.np-right .ai-chip { flex: none; max-width: 150px; }
.vol-wrap { display: flex; align-items: center; gap: 4px; }
input.vol { -webkit-appearance: none; appearance: none; width: 96px; height: 18px; margin: 0; padding: 0; background: transparent; cursor: pointer; --v: 100%; }
input.vol:focus { outline: none; }
input.vol:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent); }
input.vol:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--accent); }
input.vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--text) 0 var(--v), #3a3a3a var(--v) 100%); }
input.vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
input.vol::-moz-range-track { height: 4px; border-radius: 4px; background: #3a3a3a; }
input.vol::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--text); }
input.vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 999px; background: #fff; }
.preview-note { color: var(--text-3); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }

/* queue panel */
.queue { position: fixed; right: 0; top: 0; bottom: var(--player-h); z-index: 45; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--frame); border-left: 1px solid var(--line); box-shadow: var(--shadow); }
/* Play queue panel (Qobuz style): tabs, round tools, rows with a ⋮ menu, Autoplay at the end */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--top-h); padding: 12px 14px 10px; }
.q-tabs { display: flex; gap: 4px; min-width: 0; }
.q-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.q-tab:hover { color: var(--text); }
.q-tab.is-on { background: var(--raised); color: var(--text); }
.q-tools { display: flex; gap: 6px; flex: none; }
.q-round { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--raised); color: var(--text-2); cursor: pointer; }
.q-round:hover { background: var(--sel); color: var(--text); }
.q-round[hidden] { display: none; }
.q-scroll { flex: 1; min-height: 0; overflow: auto; padding: 2px 10px 16px; }
.q-list { display: grid; gap: 2px; }
.q-list.is-sorting { user-select: none; }
.q-empty { margin: 14px 10px; color: var(--text-3); font-size: 13px; }
.q-item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 32px; align-items: center; gap: 12px; padding: 6px 6px 6px 8px; border-radius: 10px; cursor: pointer; }
.q-item:hover { background: var(--raised); }
.q-item.is-current { background: color-mix(in srgb, var(--accent) 22%, var(--frame)); }
.q-item.is-current .q-t b { color: var(--accent); }
.q-item.is-drag { background: var(--sel); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); z-index: 2; cursor: grabbing; }
.q-item.is-auto { opacity: .62; }
.q-item.is-auto:hover { opacity: 1; }
.q-art { position: relative; width: 52px; height: 52px; border-radius: 4px; overflow: hidden; background: var(--sel); }
.q-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; opacity: 0; transition: opacity .12s; }
.q-item:hover .q-play, .q-item.is-current .q-play { opacity: 1; }
.q-t { display: grid; min-width: 0; gap: 2px; }
.q-t b { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-t small { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-more { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.q-more:hover { background: var(--sel); color: var(--text); }
.q-more svg.i { transform: rotate(90deg); }
.q-auto { margin-top: 14px; padding: 14px 6px 0; border-top: 1px solid var(--line); }
.q-auto[hidden] { display: none; }
.q-auto-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.q-auto > p { margin: 4px 4px 10px; color: var(--text-3); font-size: 13px; }
.q-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.q-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-switch b { font-weight: 600; }
.q-knob { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--sel); transition: background .15s; }
.q-knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.q-switch input:checked + .q-knob { background: var(--accent); }
.q-switch input:checked + .q-knob::after { transform: translateX(20px); }
.q-switch input:focus-visible + .q-knob { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-auto-list { display: grid; gap: 2px; }
.q-menu { position: absolute; z-index: 5; min-width: 240px; padding: 6px; border-radius: 10px; background: var(--raised); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.q-menu[hidden] { display: none; }
.q-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.q-menu button:hover { background: var(--sel); }
.q-menu button svg.i { color: var(--text-2); }
.q-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.np-right [data-p=queue].is-on { color: var(--accent); }
/* The queue opens over the page on every screen size: the page underneath keeps its width. */

/* ---------------- responsive shell ---------------- */
@media (max-width: 1100px) {
  :root { --gutter: 20px; }
  .player { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 14px; }
  .np-right .opt { display: none; }
}
@media (max-width: 860px) {
  :root { --side-w: 0px; --gutter: 16px; --player-h: 72px; }
  body.shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "player"; }
  .side { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .2s, visibility .2s; visibility: hidden; }
  body.nav-open .side { transform: none; visibility: visible; box-shadow: var(--shadow); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, .55); }
  .only-mobile { display: inline-grid !important; }
  .hide-mobile { display: none !important; }
  .top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .top .brand-m { display: inline-flex !important; }
  .player { position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 0 10px 0 12px; }
  .transport { position: static; }
  .transport .scrub { position: absolute; left: 0; right: 0; top: -1px; display: block; }
  .transport .scrub .time-l, .transport .scrub .time-r { display: none; }
  .transport .wave { height: 4px; }
  .transport .wave canvas { display: none; }
  .transport .wave .bar { position: absolute; inset: 0; background: var(--line-2); }
  .transport .wave .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text); width: var(--p, 0%); }
  .ctl .opt { display: none; }
  .np-art { width: 46px; height: 46px; }
  /* phones keep one extra control on the right: the queue */
  .player { grid-template-columns: minmax(0, 1fr) auto auto; }
  .np-right { order: 3; gap: 0; margin-right: -4px; }
  .np-right > :not([data-p=queue]) { display: none !important; }
  .transport { order: 2; }
  .queue { bottom: var(--player-h); }
  .transport .wave-marks { display: none; } /* comment dots sit on a 4px line here: too small to use */
  .side-cta .side-login { display: flex; margin-top: 6px; }
}
@media (min-width: 861px) { .wave .bar { display: none; } .side-cta .side-login { display: none; } }
.top-cta .lbl-short { display: none; }
@media (max-width: 560px) {
  .top-cta { height: 34px; padding: 0 12px; }
  .top-cta .lbl-long { display: none; }
  .top-cta .lbl-short { display: inline; }
  /* suggestions use the whole width of the phone, not just the search box: they hang from the top bar */
  .top .search { position: static; display: flex; align-items: center; }
  .top .search > svg.i { position: relative; left: 12px; top: auto; transform: none; margin-right: -18px; z-index: 1; }
  .top .suggest { left: 8px; right: 8px; top: calc(100% - 4px); max-height: calc(100dvh - var(--top-h) - var(--player-h) - 12px); }
}
/* phones swipe rails, so the arrows only squeeze the section title */
@container stage (max-width: 560px) { .section-head .arrows { display: none; } }
.nav-badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: #fff; color: #0b0b0b; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* installable app */
.pwa-help h2 { margin: 0 0 12px; font-weight: 300; }
.pwa-help ol { margin: 0 0 12px; padding-left: 20px; line-height: 1.8; }
html.is-app .top { padding-top: env(safe-area-inset-top); height: calc(var(--top-h) + env(safe-area-inset-top)); }
.lbl-plain { cursor: default; }

/* The web player shows a plain line for where the track is (not a waveform). */
@media (min-width: 861px) {
  #player .wave { height: 20px; }
  #player .wave canvas { display: none; }
  #player .wave .bar { display: block; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--line-2); transition: height .12s, margin-top .12s; }
  #player .wave .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent, var(--text)); }
  #player .wave .bar i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .12s; }
  #player .wave:hover .bar { height: 6px; margin-top: -3px; }
  #player .wave:hover .bar i::after { opacity: 1; }
  #player .wave .mark { top: 50%; margin-top: -4.5px; }
}
/* The free AI detector's score beside a track */
.ai-score { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.ai-score svg.i { width: 11px; height: 11px; }
.ai-score.is-hi { background: rgba(95, 210, 138, .16); color: #7fe0a3; }
.ai-score.is-mid { background: rgba(242, 184, 75, .16); color: #f2c46b; }
.ai-score.is-lo { background: var(--raised); color: var(--text-3); }
.ply-tl { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ply-tl > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; }
.cat-ci-text .ai-score { margin-left: 4px; }

/* ---------------- notifications: the bell, its panel, and banners ---------------- */
.nt-bell { position: relative; }
.nt-count { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #ff4d4f; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
.nt-panel { position: absolute; z-index: 61; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 520px); display: flex; flex-direction: column; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); overflow: hidden; }
.nt-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.nt-list { overflow-y: auto; }
.nt-empty { margin: 0; padding: 20px 16px; color: var(--text-3); font-size: 13px; }
.nt-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.nt-item:last-child { border-bottom: 0; }
.nt-item.is-new { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.nt-item-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nt-item-t b { font-size: 14px; font-weight: 600; }
.nt-item-t small { flex: none; color: var(--text-3); font-size: 12px; }
.nt-item.is-new .nt-item-t b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--accent); }
.nt-item p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.nt-item .link { display: inline-block; margin-top: 6px; font-size: 13px; }
.nt-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 14%, var(--raised)); }
.nt-banner > .icon { flex: none; color: var(--accent); }
.nt-banner-t { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; line-height: 1.45; }
.nt-banner-t span { color: var(--text-2); }
.nt-banner .btn { flex: none; }
.nt-banner-x { width: 30px; height: 30px; }
@media (max-width: 640px) { .nt-banner { flex-wrap: wrap; } .nt-banner-t { flex-basis: calc(100% - 80px); } }

/* ---------------- AI label notes ---------------- */
.ai-tip { position: fixed; z-index: 200; width: 290px; max-width: calc(100vw - 16px); padding: 12px 14px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow), 0 0 0 1px var(--line); font-size: 13px; line-height: 1.5; }
.ai-tip b { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; }
.ai-tip p { margin: 4px 0 0; color: var(--text-2); }
.ai-tip .ai-tip-dim { color: var(--text-3); font-size: 12px; }
.ai-tip .link { display: inline-block; margin-top: 8px; font-size: 12.5px; }
.ai-score[tabindex] { cursor: help; }
.ai-score[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ai-what { margin-left: 6px; color: var(--text-3); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.ai-what:hover { color: var(--text); }
/* The Lyrics tab in the queue panel (lines styled in social.css) */
.q-lyrics { padding: 6px 14px 30px; }
.q-ly-head { display: grid; gap: 2px; margin: 4px 0 16px; }
.q-ly-head b { font-size: 16px; font-weight: 600; }
.q-ly-head span { color: var(--text-3); font-size: 13px; }
.q-lyrics .ly-line { font-size: 18px; }
.q-lyrics[data-synced="1"] .ly-line[data-ms] { cursor: pointer; }
.q-ly-empty { color: var(--text-3); margin: 18px 0; }
.q-head .q-tab { padding: 0 12px; }
.hq-chip { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2, rgba(255,255,255,.18)); color: var(--text-2); font-size: 11px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hq-chip.is-wav { color: var(--text); border-color: var(--text-3); }

/* ---------------- motion: smooth page changes and panels (Admin > Settings > Identity, Page transitions) ---------------- */
:root { --motion: 900ms; --ease-out: cubic-bezier(.16, 1, .3, 1); --motion-ui: calc(var(--motion) * .45); }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes queue-in { from { opacity: 0; transform: translateX(24px); } }
/* "backwards": nothing is left on the page afterwards, so sticky and fixed parts inside it behave as before. */
#pjax { animation: page-in var(--motion) var(--ease-out) backwards; }
body.is-navigating .main { opacity: .6; transition: opacity calc(var(--motion) * .35) ease .08s; }
.main { transition: opacity calc(var(--motion) * .35) ease; }
.scrim { animation: fade-in var(--motion-ui) ease-out; }
.scrim .modal { animation: pop-in var(--motion-ui) var(--ease-out); }
.menu:not([hidden]) { animation: pop-in calc(var(--motion-ui) * .8) var(--ease-out); }
.queue:not([hidden]) { animation: queue-in var(--motion-ui) var(--ease-out); }
.toast { animation-duration: var(--motion-ui); animation-timing-function: var(--ease-out); }
:where(a, button, .btn, .icon-btn, .nav-item, .chip, input, select, textarea) { transition: color .25s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease, box-shadow .25s ease; }
html { scroll-behavior: smooth; }
/* The logo while the platform opens */
.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--frame, #0b0b0b); transition: opacity .7s ease, visibility .7s; animation: splash-safety 0s linear 4s forwards; }
.splash img { width: auto; height: auto; max-width: min(220px, 52vw); max-height: 72px; animation: splash-logo 1.1s var(--ease-out) both; }
.splash-word { font-size: clamp(24px, 4vw, 34px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text, #f5f5f5); animation: splash-logo 1.1s var(--ease-out) both; }
.splash.is-out { opacity: 0; visibility: hidden; }
@keyframes splash-logo { from { opacity: 0; transform: scale(.94); } }
@keyframes splash-safety { to { opacity: 0; visibility: hidden; } }
html.splashing #pjax { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #pjax, .scrim, .scrim .modal, .menu, .queue, .splash img, .splash-word { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Poppins: the left menu, the account menu and artist names */
@font-face { font-family: Poppins; src: url('../fonts/Poppins-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url('../fonts/Poppins-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url('../fonts/Poppins-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
:root { --font-poppins: Poppins, Jost, system-ui, sans-serif; }
.side .nav-item, .side .side-head, .side .side-foot, .side .side-foot a, .side .side-me, .side .side-cta,
#user-menu, #user-menu a, #user-menu button, #user-menu .menu-head { font-family: var(--font-poppins); }
.side .nav-item { font-size: 14px; }

/* ---------------- The desktop app's window (1.0.1 and later): no title bar of its own ----------------
   The top bar (and the queue's head, the sidebar's logo row) is where the window is dragged from.
   Windows: minimise, maximise and close sit over the right end, 138px wide, so whatever is at the top
   right leaves room; Podcasts, Audiobooks, Magazine and Premium fold into the Browse menu.
   Mac: the three round buttons sit at the top left, over the sidebar's logo row. */
.top-browse { display: none; }
html.in-desk .top, html.in-desk .q-head, html.in-desk .side .brand, html.in-desk .adm-top { -webkit-app-region: drag; }
html.in-desk .top a, html.in-desk .top button, html.in-desk .top input, html.in-desk .top form, html.in-desk .top .menu, html.in-desk .top .suggest,
html.in-desk .top .nt-panel, html.in-desk .q-head button, html.in-desk .q-head a, html.in-desk .side .brand a, html.in-desk .side .brand button,
html.in-desk .adm-top a, html.in-desk .adm-top button, html.in-desk .adm-top .menu { -webkit-app-region: no-drag; }
html.desk-overlay .top-browse { display: block; }
/* The window buttons sit on the site's background colour: the bar under them is that colour too. */
/* App 1.0.1 paints the window buttons black, so its top bar is solid to match; 1.0.2 (desk-clear) keeps it transparent. */
html.desk-overlay:not(.desk-clear) .top { background: var(--base); }
/* The queue opens below the window buttons, never under them. */
html.desk-overlay .queue, html.desk-mac .queue { top: var(--top-h); }
html.desk-overlay .top-r > .top-side:not(.top-browse-btn) { display: none; }
html.desk-overlay .top { padding-right: calc(var(--gutter) + 138px); }
html.desk-overlay .adm-top { padding-right: 150px; }
html.desk-mac .side .brand { padding-left: 86px; }
html.desk-mac.side-mini .side .brand { padding-top: 26px; align-items: flex-end; }
.top-browse-btn { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.top-browse-btn svg.i { width: 14px; height: 14px; }

/* Google banners (resources/views/components/google-ad.blade.php) */
.gad { margin: 0 auto; max-width: 970px; text-align: center; }
.gad:has(ins[data-ad-status="filled"]) { margin: 8px auto 28px; }
/* Nothing shows until Google has filled the banner (no empty gap before approval, or with an ad blocker). */
.gad-label { display: none; }
.gad:has(ins[data-ad-status="filled"]) .gad-label { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.gad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* What the creator made by hand (resources/views/components/creator-did.blade.php) */
.creator-did { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--raised); color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.creator-did svg.i { width: 13px; height: 13px; color: var(--accent); flex: none; }
.creator-did .dim { color: var(--text-3); }
dd .creator-did { height: auto; padding: 3px 9px; white-space: normal; }

/* Desktop app update banner (public/js/app.js, deskUpdates) */
.desk-upd { position: fixed; right: 20px; bottom: calc(var(--player-h, 88px) + 16px); z-index: 80; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 40px)); padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
.desk-upd > svg.i { flex: none; width: 22px; height: 22px; color: var(--accent); }
.desk-upd-t { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.desk-upd-t b { font-weight: 600; font-size: 14px; }
.desk-upd-t span { color: var(--text-2); }
.desk-upd .btn { flex: none; }
/* It flashes for a few seconds when it appears, so it is noticed, then stays still. */
.desk-upd.is-ready { animation: deskUpdFlash 1.1s ease-in-out 4; }
@keyframes deskUpdFlash { 0%, 100% { box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 50% { box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 4px color-mix(in srgb, var(--accent) 70%, transparent); } }
@media (max-width: 640px) { .desk-upd { left: 12px; right: 12px; flex-wrap: wrap; } }
