/* social module: the track page, comments on the waveform, the crate picker, favorites, my crates, my DJ charts.
   Every class here starts with tp- (track page), tw- (big waveform), cm- (comments), cx- (crate picker),
   lib- (library pages), lr- (reorderable lists) or dc- (DJ chart builder) so nothing leaks into other modules. */

/* ---------------- track page head ---------------- */
.tp { display: block; }
.tp-head { position: relative; isolation: isolate; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 34px; align-items: start;
  margin: calc(-1 * (var(--top-h) + 6px)) calc(-1 * var(--gutter)) 0; padding: calc(var(--top-h) + 34px) var(--gutter) 30px; }
[data-flash] ~ .tp .tp-head { margin-top: 0; padding-top: 30px; }
.tp-glow { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.tp-glow::before { content: ""; position: absolute; inset: -80px; background-image: var(--art); background-size: cover; background-position: center; filter: blur(70px) saturate(1.35); opacity: .5; }
.tp-head::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(18, 18, 18, .15) 0%, rgba(18, 18, 18, .55) 55%, var(--surface) 100%); }
.tp-cover { width: 100%; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
/* The cover's top lines up with the top of the title, not the small Track label above it. */
.tp-cover { margin-top: 32px; }
.tp-info { min-width: 0; }
.tp-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 12px; border-radius: var(--r); background: rgba(0, 0, 0, .45); color: var(--warn); font-size: 13px; }
.tp-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.tp-kicker .kicker { margin: 0; color: var(--text-2); }
.tp-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 2px; background: #fff; color: #000; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tp-tag.excl { background: var(--accent); color: var(--accent-ink); }
.tp-tag.free { background: var(--ok); color: #062b1a; }
.tp-title { font-size: clamp(28px, 3.6vw, 48px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tp-title .v { color: var(--text-2); font-weight: 300; }
.tp-artists { margin-top: 10px; font-size: 16px; color: var(--text); }
.tp-artists a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-artists .sep { color: var(--text-3); }
.tp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 22px; }
.tp-actions .btn { height: 40px; }
.tp-actions .buy { height: 40px; padding: 0 16px; font-size: 14px; background: #fff; color: #000; }
.tp-actions .buy:hover { background: #e2e2e2 !important; }
.tp-actions .buy.in-cart { background: var(--accent) !important; color: var(--accent-ink); }
.tp-actions .buy.owned { background: transparent; color: var(--ok); }
.tp-actions .buy.owned:hover { background: var(--ok) !important; color: #062b1a; }
.tp-actions .play-sq.lg { width: 48px; height: 48px; }
.tp-actions .btn-line { background: rgba(0, 0, 0, .25); }
.tp-actions .btn-line:hover { background: var(--raised); }
.tp-like.is-on { color: var(--accent); }
.tp-like span { font-variant-numeric: tabular-nums; }
.tp-more { width: 40px; padding: 0; }
.tp-actions .menu { right: 0; left: auto; top: calc(100% + 6px); min-width: 236px; }
.tp-actions .menu a, .tp-actions .menu button { white-space: nowrap; }
.tp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 24px; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.tp-facts > div { min-width: 0; }
.tp-facts dt { color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.tp-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; min-width: 0; }
.tp-facts dd a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tp-facts dd a:hover { text-decoration: underline; text-underline-offset: 2px; }
.tp-facts dd .muted { font-size: 12.5px; }
.tp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; }
.tp-mix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-mix-l { color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.tp-mix .key { height: 24px; min-width: 40px; font-size: 12px; transition: filter .15s; }
.tp-mix .key:hover { filter: brightness(1.35); }
.tp-report { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; }
.tp-report:hover { color: var(--text); }

/* ---------------- the big waveform ---------------- */
.tw-wrap { margin: 6px 0 36px; padding: 26px 20px 12px; border-radius: var(--r); background: var(--frame); }
.tw { position: relative; height: 96px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tw:focus-visible { outline-offset: 6px; }
.tw canvas { display: block; width: 100%; height: 100%; }
.tw-win { position: absolute; top: -14px; height: 6px; border: 1px solid rgba(166, 145, 117, .7); border-bottom: 0; pointer-events: none; }
.tw-win span { position: absolute; left: -1px; bottom: calc(100% + 1px); color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.tw-hover { position: absolute; top: calc(70% - 30px); 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; font-variant-numeric: tabular-nums; }
.tw-avs { position: absolute; left: 0; right: 0; top: calc(70% - 9px); height: 18px; pointer-events: none; }
.tw-av { position: absolute; top: 0; width: 18px; height: 18px; margin-left: -9px; display: grid; place-items: center; border-radius: 999px; overflow: hidden; pointer-events: auto; cursor: pointer;
  background: hsl(var(--h, 0) 38% 42%); color: #fff; font-size: 7.5px; font-weight: 700; letter-spacing: -.02em; box-shadow: 0 0 0 2px var(--frame); transition: transform .12s; }
.tw-av img { width: 100%; height: 100%; object-fit: cover; }
.tw-av:hover, .tw-av.is-on { transform: scale(1.45); z-index: 3; }
.tw-pop { position: absolute; bottom: calc(30% + 16px); z-index: 5; transform: translateX(-50%); width: max-content; max-width: min(320px, 90%); padding: 9px 12px; border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); font-size: 13px; pointer-events: none; }
.tw-pop-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.tw-pop-h b { font-weight: 600; font-size: 12.5px; }
.tw-pop-h span { color: var(--text-3); font-size: 12px; }
.tw-pop p { margin: 0; color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.tw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--text-3); font-size: 12px; }
.tw-help { text-align: center; }

/* ---------------- comments + side column ---------------- */
.tp-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin: 0 0 40px; }
.tp-body > .tp-side:only-child { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.tp-comments { min-width: 0; scroll-margin-top: calc(var(--top-h) + 12px); }
.tp-comments .section-head { flex-wrap: wrap; }
.tp-count { color: var(--text-3); font-size: 16px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.cm-sort { display: flex; gap: 2px; }
.cm-sort button { height: 30px; padding: 0 11px; border-radius: var(--r-btn); color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.cm-sort button:hover { color: var(--text); background: var(--raised); }
.cm-sort button.is-active { background: var(--raised); color: var(--text); }

.cm-composer { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin: 0 0 18px; padding: 0 10px; }
.cm-composer textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border-radius: var(--r); border: 0; background: var(--raised); color: var(--text); line-height: 1.5; resize: none; }
.cm-composer textarea:focus { outline: none; background: var(--sel); }
.cm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.cm-row .btn:last-child { margin-left: auto; }
.cm-at-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13px; cursor: pointer; }
.cm-at-toggle input { width: 15px; height: 15px; accent-color: var(--accent); }
.cm-at-toggle b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-hint { color: var(--text-3); font-size: 12.5px; }
.cm-composer.is-guest { align-items: center; }
.cm-guest { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r); border: 0; background: var(--raised); color: var(--text-3); text-align: left; font-size: 13.5px; }
.cm-guest:hover { background: var(--sel); color: var(--text-2); }
.cm-composer.is-reply { margin: 2px 0 10px; padding: 0 10px; grid-template-columns: 28px minmax(0, 1fr); }
.cm-composer.is-reply .cm-av { width: 28px; height: 28px; font-size: 10.5px; }
.cm-composer.is-reply textarea { min-height: 40px; padding: 8px 11px; }

.cm-list { display: grid; }
.cm-thread { padding: 4px 0; }
.cm-thread + .cm-thread { box-shadow: 0 -1px 0 var(--line); }
.cm { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 10px; border-radius: var(--r); transition: background .8s; }
.cm.is-flash { background: var(--sel); transition: none; }
.cm.is-hidden { opacity: .5; }
.cm-av { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; overflow: hidden; background: hsl(var(--h, 0) 30% 32%); color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.cm-av img { width: 100%; height: 100%; object-fit: cover; }
.cm-main { min-width: 0; }
.cm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.cm-head strong { font-weight: 600; }
.cm-badge { padding: 1px 5px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cm-at { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 6px; border-radius: 3px; background: var(--raised); color: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-at svg.i { width: 9px; height: 9px; }
.cm-at:hover { background: #fff; color: #000; }
.cm-time { color: var(--text-3); font-size: 12px; }
.cm-flag { padding: 1px 6px; border-radius: 2px; background: rgba(255, 138, 122, .14); color: var(--danger); font-size: 11px; font-weight: 600; }
.cm-body { margin: 4px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 13.5px; }
.cm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.cm-like { display: inline-flex; align-items: center; gap: 5px; height: 26px; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cm-like:hover { color: var(--text); }
.cm-like.is-on { color: var(--accent); }
.cm-link { height: 26px; color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.cm-link:hover { color: var(--text); }
.cm-replies { margin-left: 48px; }
.cm-replies .cm { grid-template-columns: 28px minmax(0, 1fr); padding: 8px 10px; }
.cm-replies .cm-av { width: 28px; height: 28px; font-size: 10.5px; }
.cm-empty { margin: 8px 10px 0; padding: 26px 18px; border-radius: var(--r); background: var(--frame); color: var(--text-3); text-align: center; }

.tp-side { display: grid; gap: 22px; min-width: 0; }
.tp-stats { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); padding: 16px 6px; border-radius: var(--r); background: var(--frame); text-align: center; }
.tp-stats > div + div { box-shadow: -1px 0 0 var(--line); }
.tp-stats b { display: block; font: 300 22px/1.15 var(--sans); }
.tp-stats span { color: var(--text-3); font-size: 12px; }
.tp-feat h3 { font-size: 16px; margin: 0 0 10px; }
.tp-feat-i { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px; border-radius: var(--r); }
.tp-feat-i:hover { background: var(--raised); }
.tp-feat-img { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; overflow: hidden; background: var(--sel); color: var(--text-3); }
.tp-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-feat-i b { display: block; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.tp-feat-i small { display: block; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- the "Add to crate" box ---------------- */
.cx-sub { margin: -8px 0 14px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-list { display: grid; gap: 2px; max-height: min(46vh, 340px); overflow: auto; margin: 0 -8px 14px; }
.cx-msg { margin: 10px 8px; }
.cx-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 7px 8px; border-radius: var(--r); text-align: left; color: var(--text-2); }
.cx-item:hover { background: var(--sel); color: var(--text); }
.cx-item[disabled] { opacity: .6; }
.cx-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 3px; background: var(--sel); color: var(--text-2); }
.cx-item.is-in .cx-ic { background: var(--accent); color: var(--accent-ink); }
.cx-txt { min-width: 0; }
.cx-txt b { display: block; color: var(--text); font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-txt small { display: block; color: var(--text-3); font-size: 12px; }
.cx-state { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--r-btn); background: var(--base); color: var(--text-2); font-size: 12px; font-weight: 600; }
.cx-item.is-in .cx-state { color: var(--accent); }
.cx-new { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cx-new .input { height: 40px; }
.cx-new .btn { height: 40px; }
.cx-actions { justify-content: space-between !important; }

/* ---------------- library pages ---------------- */
.lib-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: end; margin: 14px 0 26px; }
.lib-head.no-art { grid-template-columns: minmax(0, 1fr); }
.lib-art { position: relative; width: 180px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--raised); display: grid; place-items: center; color: var(--text-3); box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.lib-art img { width: 100%; height: 100%; object-fit: cover; }
.lib-art .lib-mosaic { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.lib-art .lib-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.lib-art svg.i { width: 44px; height: 44px; stroke-width: 1.2; }
.lib-info { min-width: 0; }
.lib-info h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; overflow-wrap: anywhere; }
.lib-info .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lib-desc { margin: 8px 0 0; color: var(--text-2); max-width: 70ch; white-space: pre-line; }
.lib-meta { margin-top: 8px; color: var(--text-3); font-size: 13px; }
.lib-meta b { color: var(--text-2); font-weight: 500; }
.lib-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.lib-actions form { margin: 0; }
.lib-status { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 2px; background: var(--raised); color: var(--text-2); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lib-status svg.i { width: 11px; height: 11px; }
.lib-status.is-live { background: rgba(139, 227, 182, .14); color: var(--ok); }
.lib-status.is-warn { background: rgba(245, 196, 81, .14); color: var(--warn); }
.lib-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 24px 16px; }
.lib-card { position: relative; min-width: 0; }
.lib-card .cover { display: block; }
.lib-card .cover .lib-mosaic { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.lib-card .cover .lib-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.lib-hit { position: absolute; inset: 0; z-index: 1; }
.lib-card .cover .play-sq { z-index: 2; }
.lib-card:hover .cover .play-sq { opacity: 1; transform: none; }
.lib-card .meta { margin-top: 10px; min-width: 0; }
.lib-card .t { display: block; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-card .t:hover { text-decoration: underline; text-underline-offset: 2px; }
.lib-card .s { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; margin-top: 2px; overflow: hidden; white-space: nowrap; }
.lib-card .lib-status { position: absolute; left: 8px; top: 8px; z-index: 2; background: rgba(0, 0, 0, .7); color: #fff; }
.lib-card .lib-status.is-live { background: rgba(10, 40, 26, .85); color: var(--ok); }
.lib-card .ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #2b2b2b, #151515); color: var(--text-3); }
.lib-card .ph svg.i { width: 40px; height: 40px; stroke-width: 1.2; }
.lib-new { display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; aspect-ratio: 1; border-radius: var(--r); background: var(--frame); color: var(--text-2); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; box-shadow: inset 0 0 0 1px var(--line-2); }
.lib-new:hover { background: var(--raised); color: var(--text); }
.lib-new svg.i { width: 30px; height: 30px; }
.lib-new-wrap .meta { visibility: hidden; }

.lib-section { margin: 0 0 34px; }
.lib-section > h2 { font-size: 21px; margin: 0 0 14px; }
.lib-section > h2 .muted { font-size: 15px; }
.lib-form h2 { font-size: 21px; margin: 0 0 16px; }
.lib-form .field input[type=file] { color: var(--text-2); font-size: 13px; }
.lib-photo { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.lib-photo-img { width: 96px; height: 96px; border-radius: var(--r); overflow: hidden; background: var(--raised); display: grid; place-items: center; color: var(--text-3); }
.lib-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.lib-photo .check { margin: 8px 0 0; font-size: 13px; }
.lib-file { position: relative; display: inline-flex; overflow: hidden; }
.lib-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lib-file-name { display: block; margin-top: 6px; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-note { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r); background: rgba(245, 196, 81, .1); color: var(--warn); font-size: 13.5px; }
.lib-empty-cta { margin-top: 6px; }

/* charts list: rows with photo, status and actions */
.lib-charts { display: grid; gap: 2px; margin-bottom: 34px; }
.lib-chart { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px; border-radius: var(--r); }
.lib-chart + .lib-chart { box-shadow: 0 -1px 0 var(--line); }
.lib-chart:hover { background: var(--raised); box-shadow: none; }
.lib-chart:hover + .lib-chart { box-shadow: none; }
.lib-chart-img { width: 64px; height: 64px; border-radius: 3px; overflow: hidden; background: var(--sel); display: grid; place-items: center; color: var(--text-3); }
.lib-chart-img img { width: 100%; height: 100%; object-fit: cover; }
.lib-chart .t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; font-size: 14px; }
.lib-chart .t a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-chart .t a:hover { text-decoration: underline; text-underline-offset: 2px; }
.lib-chart .s { color: var(--text-3); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-chart .acts { display: flex; align-items: center; gap: 6px; }

/* ---------------- reorderable lists (crate editor, chart builder) ---------------- */
.lr-list { display: grid; }
.lr { display: grid; grid-template-columns: 26px 28px 44px minmax(0, 1fr) 52px 50px 50px auto; grid-template-areas: "grip n art title bpm key time act"; align-items: center; column-gap: 12px; min-height: 60px; padding: 7px 10px 7px 4px; border-radius: var(--r); background: var(--surface); transition: background .12s; }
.lr + .lr { box-shadow: 0 -1px 0 var(--line); }
.lr:hover { background: var(--raised); box-shadow: none; }
.lr:hover + .lr { box-shadow: none; }
.lr.is-drag { background: var(--sel); box-shadow: var(--shadow); position: relative; z-index: 2; }
.lr-list.is-sorting { user-select: none; -webkit-user-select: none; }
.lr-grip { grid-area: grip; display: grid; place-items: center; width: 26px; height: 40px; color: var(--text-3); cursor: grab; touch-action: none; border-radius: var(--r-btn); }
.lr-grip:hover { color: var(--text); }
.lr.is-drag .lr-grip { cursor: grabbing; color: var(--text); }
.lr-n { grid-area: n; color: var(--text-3); font: 300 17px/1 var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.lr .c-art { grid-area: art; }
.lr:hover .c-art .play-over, .lr .c-art.is-playing .play-over { opacity: 1; }
.lr-t { grid-area: title; min-width: 0; }
.lr-t .t { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 500; font-size: 13.5px; }
.lr-t .t a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lr-t .t a:hover { text-decoration: underline; text-underline-offset: 2px; }
.lr-t .v { color: var(--text-3); font-weight: 400; }
.lr-t .s { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.lr-t .s a:hover { color: var(--text); }
.lr-t .m { display: none; gap: 6px; margin-top: 4px; }
.lr-off { color: var(--warn); font-size: 11px; font-weight: 600; }
.lr.is-off .c-art, .lr.is-off .lr-t .t a { opacity: .5; }
.lr-bpm { grid-area: bpm; color: var(--text-2); font-size: 12.5px; text-align: center; font-variant-numeric: tabular-nums; }
.lr-key { grid-area: key; text-align: center; }
.lr-time { grid-area: time; color: var(--text-3); font-size: 12.5px; text-align: center; font-variant-numeric: tabular-nums; }
.lr-act { grid-area: act; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

/* ---------------- DJ chart builder ---------------- */
.dc-meter { position: relative; height: 3px; margin: 10px 0 0; max-width: 260px; background: var(--line-2); --p: 0%; }
.dc-meter::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--text); transition: width .25s; }
.dc-search { position: relative; margin: 0 0 16px; }
.dc-search-box { position: relative; }
.dc-search-box > svg.i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.dc-search-box input { width: 100%; height: 46px; padding: 0 44px 0 42px; border-radius: var(--r); border: 0; background: var(--raised); color: var(--text); font-size: 14px; }
.dc-search-box input:focus { outline: none; background: var(--sel); }
.dc-search-box input::-webkit-search-cancel-button { display: none; }
.dc-search-box [data-clear] { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.dc-results { margin-top: 8px; padding: 6px; border-radius: var(--r); background: var(--frame); display: grid; gap: 2px; max-height: 440px; overflow: auto; }
.dc-msg { margin: 10px; }
.dc-res { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: var(--r); }
.dc-res:hover { background: var(--raised); }
.dc-res:hover .c-art .play-over, .dc-res .c-art.is-playing .play-over { opacity: 1; }
.dc-res-t { min-width: 0; }
.dc-res-t .t { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-res-t .v { color: var(--text-3); font-weight: 400; }
.dc-res-t .s { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-res-m { display: flex; align-items: center; gap: 6px; }
.dc-res .btn { min-width: 86px; }
.dc-res .btn[disabled] { opacity: .6; }

/* ---------------- narrower screens (the stage is a size container) ---------------- */
@container stage (max-width: 1100px) {
  .tp-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tp-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@container stage (max-width: 900px) {
  .tp-head { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .tp-actions .tp-lbl { display: none; }
  .lr { grid-template-columns: 26px 26px 44px minmax(0, 1fr) 50px 48px auto; grid-template-areas: "grip n art title bpm key act"; }
  .lr-time { display: none; }
}
@container stage (max-width: 680px) {
  .tp-head { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: calc(var(--top-h) + 14px); padding-bottom: 20px; }
  [data-flash] ~ .tp .tp-head { padding-top: 14px; }
  .tp-cover { width: min(250px, 72%); margin: 0 auto; }
  .tp-title { font-size: 28px; }
  .tp-artists { font-size: 15px; }
  .tp-actions { gap: 6px; margin: 18px 0; }
  .tp-actions .tp-lbl { display: none; }
  .tp-actions .btn { padding: 0 12px; }
  .tp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .tp-foot { flex-direction: column; align-items: flex-start; }
  .tw-wrap { padding: 24px 12px 10px; margin-bottom: 28px; }
  .tw { height: 72px; }
  .tw-av { width: 16px; height: 16px; margin-left: -8px; font-size: 6.5px; }
  .tw-avs { top: calc(70% - 8px); }
  .tw-help { display: none; }
  .tp-body { gap: 24px; }
  .tp-side { grid-template-columns: minmax(0, 1fr); }
  .cm-composer { padding: 0; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .cm-composer > .cm-av { width: 30px; height: 30px; font-size: 11px; }
  .cm { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 2px; }
  .cm .cm-av { width: 30px; height: 30px; font-size: 11px; }
  .cm-replies { margin-left: 30px; }
  .cm-replies .cm { grid-template-columns: 24px minmax(0, 1fr); }
  .cm-replies .cm-av { width: 24px; height: 24px; font-size: 9.5px; }
  .cm-composer.is-reply { padding: 0 2px; grid-template-columns: 24px minmax(0, 1fr); }
  .cm-composer.is-reply .cm-av { width: 24px; height: 24px; }
  .tp-comments .section-head { gap: 8px; }
  .lib-head { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; }
  .lib-art { width: 110px; }
  .lib-actions { margin-top: 12px; }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .lr { grid-template-columns: 24px 44px minmax(0, 1fr) auto; grid-template-areas: "grip art title act"; column-gap: 10px; padding-right: 2px; }
  .lr-n, .lr-bpm, .lr-key, .lr-time { display: none; }
  .lr-t .m { display: flex; }
  .lr-act [data-move] { display: none; }
  .dc-res { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .dc-res-m { display: none; }
  .dc-res .btn { min-width: 0; }
  .lib-chart { grid-template-columns: 52px minmax(0, 1fr); }
  .lib-chart-img { width: 52px; height: 52px; }
  .lib-chart .acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@container stage (max-width: 420px) {
  .lib-head { grid-template-columns: minmax(0, 1fr); }
  .lib-art { width: 150px; }
  .tp-facts dd { font-size: 13px; }
}
.cm-composer.is-guest .cm-av { background: var(--raised); color: var(--text-3); }
.dc-res .c-art { grid-area: auto; }
.cm-thread.is-hidden .cm { opacity: .5; }
.lr.is-current, .dc-res.is-current { background: var(--sel); }
.lr.is-current + .lr { box-shadow: none; }

/* ---------------- playlists ---------------- */
.ply-cover.is-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ply-cover.is-grid img { width: 100%; height: 100%; object-fit: cover; }
.ply-cover-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-3); background: linear-gradient(135deg, var(--sel), var(--raised)); }
.ply-cover-ph svg.i.lg { width: 34%; height: 34%; }
.ply-card-art { position: relative; }
.ply-card-art .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); }
.ply-card:hover .play-sq, .ply-card .play-sq:focus-visible, .ply-card .play-sq.is-playing { opacity: 1; transform: none; }
.ply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ply-actions .btn.is-on { background: var(--sel); }

.ply-list { display: grid; margin-top: 4px; }
.ply-row { position: relative; display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) minmax(0, 150px) 52px auto; align-items: center; gap: 12px; min-height: 58px; padding: 7px 10px; border-radius: var(--r); transition: background .12s, opacity .15s; }
.ply-list.is-owner .ply-row { grid-template-columns: 26px 26px 44px minmax(0, 1fr) minmax(0, 150px) 52px auto; }
.ply-row + .ply-row { box-shadow: 0 -1px 0 var(--line); }
.ply-row:hover, .ply-row.is-current { background: var(--sel); }
.ply-row:hover .c-art .play-over, .ply-row.is-current .c-art .play-over { opacity: 1; }
.ply-row.is-leaving { opacity: .4; }
.ply-row.is-drag { background: var(--raised); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); z-index: 2; }
.ply-list.is-sorting { user-select: none; }
.ply-art { grid-area: auto; }
.ply-n { color: var(--text-3); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.ply-grip { display: grid; place-items: center; width: 26px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--text-3); cursor: grab; touch-action: none; }
.ply-grip:hover, .ply-grip:focus-visible { color: var(--text); background: var(--raised); }
.ply-list.is-sorting .ply-grip { cursor: grabbing; }
.ply-t { display: grid; min-width: 0; gap: 2px; }
.ply-t > a { font-weight: 500; font-size: 14px; }
.ply-t > a .v { color: var(--text-3); font-weight: 400; }
.ply-t > a:hover, .ply-s a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ply-s { color: var(--text-3); font-size: 12.5px; }
.ply-kind { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: var(--raised); color: var(--text-2); font-size: 11px; }
.ply-ai { min-width: 0; overflow: hidden; }
.ply-time { color: var(--text-3); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.ply-act { display: flex; align-items: center; gap: 2px; }
.ply-hidden-note { margin-top: 12px; }
@container stage (max-width: 760px) {
  .ply-row, .ply-list.is-owner .ply-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .ply-list.is-owner .ply-row { grid-template-columns: 26px 44px minmax(0, 1fr) auto; }
  .ply-n, .ply-ai, .ply-time { display: none; }
}

/* "Add to a playlist" window */
.pla-list { display: grid; gap: 4px; max-height: min(46vh, 380px); overflow: auto; margin: 0 -4px 14px; padding: 0 4px; }
.pla-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--raised); cursor: pointer; }
.pla-item:hover { background: var(--sel); }
.pla-item input { flex: none; width: 18px; height: 18px; accent-color: #fff; }
.pla-t { display: grid; min-width: 0; }
.pla-t b { font-weight: 500; font-size: 14px; }
.pla-t small { color: var(--text-3); font-size: 12px; }
.pla-none { margin: 0; }
.pla-new { display: flex; gap: 8px; }
.pla-new input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--raised); color: var(--text); font: inherit; font-size: 14px; }
.pla-new input:focus { outline: none; background: var(--sel); }
button.pla-item { width: 100%; border: 0; text-align: left; color: var(--text); font: inherit; justify-content: space-between; }
button.pla-item:disabled { opacity: .5; }

/* A playlist's own picture: the owner's buttons under the art. */
.ply-pic { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ply-pic-btn { cursor: pointer; }
.ply-cover > img:only-child { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Made for you: mixes, Recently played ---------------- */
.mix-cover { background: linear-gradient(160deg, var(--mix), #111 85%); isolation: isolate; }
.mix-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.mix-cover::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--mix) 38%, transparent) 0%, transparent 46%); mix-blend-mode: normal; }
.mix-cover-band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 9% 9% 8%; background: var(--mix); color: #fff; }
.mix-cover-band span { display: block; font-weight: 700; font-size: clamp(13px, 1.25vw, 19px); line-height: 1.1; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix-head .mix-cover-band span { font-size: clamp(20px, 2.4vw, 32px); }
.mix-s { white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.mix-grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 42vw), 1fr)); }
.mix-card .ply-card-art .play-sq { left: auto; right: 10px; top: 10px; bottom: auto; }
.mix-about { margin: 6px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.mix-head { position: relative; }
.mix-head::before { content: ''; position: absolute; z-index: -1; inset: -40px -40px auto; height: 340px; background: linear-gradient(180deg, color-mix(in srgb, var(--mix) 30%, transparent), transparent); pointer-events: none; }

.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.rp-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 12px 0 0; border-radius: var(--r); background: var(--raised); overflow: hidden; transition: background .12s; }
.rp-item:hover, .rp-item.is-current { background: var(--sel); }
.rp-art { grid-area: auto; width: 52px; height: 52px; border-radius: 0; }
.rp-item:hover .play-over, .rp-item.is-current .play-over { opacity: 1; }
.rp-t { display: grid; min-width: 0; gap: 1px; }
.rp-t a { font-weight: 500; font-size: 13.5px; }
.rp-t a:hover { text-decoration: underline; text-underline-offset: 2px; }
.rp-t span { color: var(--text-3); font-size: 12px; }
@container stage (max-width: 560px) { .rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-item { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; } .rp-art { width: 44px; height: 44px; } }

/* ---------------- Live sessions ---------------- */
.lv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lv-head h1 { margin: 6px 0 4px; }
.lv-who .kicker { display: flex; align-items: center; gap: 10px; }
.lv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 4px; background: var(--raised); color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.lv-badge.is-live { background: #e5383b; color: #fff; }
.lv-badge.is-live::before, .live-dot { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lv-pulse 1.4s ease-in-out infinite; }
.live-dot { background: #e5383b; margin-right: 6px; vertical-align: 1px; }
@keyframes lv-pulse { 50% { opacity: .35; } }
.lv-count { color: var(--text-2); font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.lv-by { margin: 0; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lv-about { max-width: 720px; margin: 8px 0 0; color: var(--text-2); }
.lv-host { margin-bottom: 18px; padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.lv-host-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lv-host-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lv-chat-on { margin: 0 6px; }
.lv-host-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lv-card { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: var(--r); background: var(--frame); }
.lv-card h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.lv-card p { margin: 0; font-size: 13px; }
.lv-card .input, .lv-say .input { width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--raised); color: var(--text); font: inherit; font-size: 13.5px; }
.lv-card input[type=file] { font-size: 12.5px; color: var(--text-2); }
.lv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lv-poll-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.lv-main { display: grid; gap: 14px; min-width: 0; }
.lv-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.lv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv-now { padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, rgba(229, 56, 59, .16), var(--surface) 55%); }
.lv-now-top { display: flex; align-items: center; gap: 14px; }
.lv-now-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.lv-now-t b { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-now-t small { color: var(--text-2); font-size: 13px; }
.lv-eq { display: flex; align-items: flex-end; gap: 3px; width: 26px; height: 22px; flex: none; }
.lv-eq i { flex: 1; height: 30%; border-radius: 1px; background: var(--text-3); }
.lv-now.is-on .lv-eq i { background: #e5383b; animation: lv-eq .9s ease-in-out infinite; }
.lv-now.is-on .lv-eq i:nth-child(2) { animation-delay: -.3s; } .lv-now.is-on .lv-eq i:nth-child(3) { animation-delay: -.6s; } .lv-now.is-on .lv-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes lv-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.lv-join { flex: none; }
.lv-prog { height: 4px; margin-top: 16px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.lv-prog i { display: block; height: 100%; width: 0; background: #fff; transition: width .3s linear; }
.lv-times { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.lv-now-empty { margin: 10px 0 0; font-size: 13px; }
.lv-poll-head { display: grid; gap: 2px; }
.lv-poll-head b { font-size: 16px; }
.lv-poll-opts { display: grid; gap: 6px; }
.lv-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--raised); color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; overflow: hidden; }
.lv-opt i { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .1); transition: width .4s; }
.lv-opt span, .lv-opt em { position: relative; font-style: normal; }
.lv-opt em { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.lv-opt:hover:not(:disabled) { background: var(--sel); }
.lv-opt.is-mine { box-shadow: inset 0 0 0 2px #fff; }
.lv-opt.is-won i { background: rgba(255, 255, 255, .22); }
.lv-opt:disabled { cursor: default; }
.lv-done { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.lv-done .kicker { grid-column: 1 / -1; }
.lv-takes h2 { font-size: 18px; margin: 4px 0 8px; }
.lv-take-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lv-take { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); }
.lv-take.is-now { box-shadow: inset 0 0 0 1px rgba(229, 56, 59, .7); }
.lv-take-n { color: var(--text-3); font-weight: 600; text-align: center; }
.lv-take-t { display: grid; min-width: 0; }
.lv-take-t b { font-weight: 500; font-size: 14px; }
.lv-take-t small { color: var(--text-3); font-size: 12.5px; }
.lv-take-d { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lv-take-act { display: flex; gap: 6px; }
.lv-chat { position: sticky; top: calc(var(--top-h, 60px) + 12px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(640px, calc(100vh - var(--top-h, 60px) - 140px)); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.lv-chat-head { display: flex; justify-content: space-between; padding: 12px 14px; box-shadow: 0 1px 0 var(--line); }
.lv-msgs { list-style: none; margin: 0; padding: 10px 14px; overflow-y: auto; display: grid; align-content: start; gap: 8px; }
.lv-msg { font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; color: var(--text-2); }
.lv-msg b { color: hsl(var(--h, 200), 70%, 72%); font-weight: 600; }
.lv-msg b em { font-style: normal; padding: 0 5px; margin-left: 2px; border-radius: 3px; background: #e5383b; color: #fff; font-size: 10.5px; vertical-align: 1px; }
.lv-msg.is-system { color: var(--text-3); font-size: 12.5px; font-style: italic; }
.lv-hide { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 15px; padding: 0 4px; }
.lv-hide:hover { color: var(--text); }
.lv-say { display: flex; gap: 6px; padding: 10px; box-shadow: 0 -1px 0 var(--line); }
.lv-say-guest { margin: 0; padding: 12px 14px; font-size: 13px; color: var(--text-2); box-shadow: 0 -1px 0 var(--line); }
@container stage (max-width: 980px) {
  .lv-grid { grid-template-columns: minmax(0, 1fr); }
  .lv-chat { position: static; height: 420px; }
  .lv-host-grid { grid-template-columns: minmax(0, 1fr); }
}
@container stage (max-width: 560px) {
  .lv-take { grid-template-columns: 24px minmax(0, 1fr); }
  .lv-take-d { display: none; }
  .lv-take-act { grid-column: 2; }
  .lv-now-top { flex-wrap: wrap; }
}
/* Session cards (/live, Discover) */
.lv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: 18px 14px; }
.lv-c { display: grid; gap: 4px; min-width: 0; }
.lv-c-art { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg, hsl(var(--h), 55%, 32%), hsl(calc(var(--h) + 60), 45%, 14%)); }
.lv-c-art img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.lv-c-badge { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.lv-c.is-live .lv-c-badge { background: #e5383b; }
.lv-c-t { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
.lv-c-s { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-c:hover .lv-c-t { text-decoration: underline; text-underline-offset: 2px; }
/* Creator area: Go live */
.live-when { border: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.live-when legend { padding: 0; margin-bottom: 8px; width: 100%; }
.live-mine { margin-top: 18px; }
.live-list { display: grid; gap: 6px; }
.live-li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--raised); }
.live-li > div:first-child { display: grid; gap: 2px; min-width: 0; }
.live-li-act { display: flex; gap: 6px; }
.nav-badge.nav-live { background: #e5383b; color: #fff; }

/* ---------------- Listn Connect ---------------- */
.player { position: relative; }
.cn-bar { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 26px; padding: 0 18px; border: 0; background: #1ed760; color: #000; font: inherit; font-size: 12.5px; cursor: pointer; z-index: 2; }
.cn-bar b { font-weight: 700; }
#player [data-connect].is-on { color: #1ed760; }
.cn-menu { position: fixed; right: 16px; bottom: calc(var(--player-h, 88px) + 12px); z-index: 80; width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; border-radius: 10px; background: var(--raised, #242424); box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.cn-head { padding: 8px 10px 6px; font-size: 15px; }
.cn-dev { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cn-dev:hover, .cn-dev:focus-visible { background: var(--sel); }
.cn-dev svg.i { width: 24px; height: 24px; color: var(--text-2); }
.cn-dev.is-active svg.i, .cn-dev.is-active b { color: #1ed760; }
.cn-dev-t { display: grid; min-width: 0; }
.cn-dev-t b { font-weight: 500; font-size: 14px; }
.cn-dev-t small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.cn-eq i { width: 3px; background: #1ed760; animation: lv-eq .9s ease-in-out infinite; }
.cn-eq i:nth-child(2) { animation-delay: -.3s; } .cn-eq i:nth-child(3) { animation-delay: -.6s; }
.cn-none { margin: 4px 10px 8px; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.cn-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.cn-foot { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--text-3); font-size: 12px; }
.cn-foot:hover { background: var(--sel); color: var(--text); }
.cn-foot svg.i { width: 18px; height: 18px; flex: none; }
.cn-list { display: grid; gap: 6px; }
.cn-li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--raised); }
.cn-li > svg.i { width: 22px; height: 22px; color: var(--text-2); }
.cn-li-t { display: grid; min-width: 0; }
.cn-li-t b { font-weight: 500; }
.cn-li-t small { color: var(--text-3); font-size: 12.5px; }
.link-card { max-width: 560px; margin: 0 auto; }
.link-code { font-size: 26px !important; letter-spacing: .3em; text-transform: uppercase; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------------- TV player (/screen) ---------------- */
body[data-page="screen"] .side, body[data-page="screen"] .top, body[data-page="screen"] #player, body[data-page="screen"] .ptabs, body[data-page="screen"] .pseg, body[data-page="screen"] .phone-tabs, body[data-page="screen"] .ptab-bar { display: none !important; }
body[data-page="screen"] .main, body[data-page="screen"] main { margin: 0 !important; padding: 0 !important; }
.scr { position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: #050505; color: #fff; padding: 3vw 4vw 5vw; isolation: isolate; }
.scr-bg { position: fixed; inset: -10%; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.3) brightness(.35); transition: background-image .6s; }
.scr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3vw; font-size: clamp(16px, 1.4vw, 26px); }
.scr-top .wordmark { font-weight: 700; letter-spacing: .2em; }
.scr-clock { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.scr h1 { font-size: clamp(28px, 3.4vw, 64px); line-height: 1.1; margin: 0 0 .3em; }
.scr h2 { font-size: clamp(18px, 1.7vw, 32px); margin: 2.2vw 0 1vw; }
.scr-small { color: rgba(255, 255, 255, .7); font-size: clamp(14px, 1.2vw, 22px); max-width: 60ch; }
.scr-link { display: grid; justify-items: center; text-align: center; margin-top: 6vh; }
.scr-link ol { color: rgba(255, 255, 255, .8); font-size: clamp(16px, 1.6vw, 28px); line-height: 1.8; padding-left: 1.2em; text-align: left; }
.scr-code { margin: 3vh 0 2vh; padding: .3em .8em; border-radius: 14px; background: rgba(255, 255, 255, .1); font-size: clamp(48px, 7vw, 140px); font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.scr-now { display: grid; grid-template-columns: minmax(200px, 38vw) minmax(0, 1fr); gap: 4vw; align-items: center; min-height: 70vh; }
.scr-art { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.scr-art img { width: 100%; height: 100%; object-fit: cover; }
.scr-kicker { color: rgba(255, 255, 255, .7); font-size: clamp(13px, 1.1vw, 20px); letter-spacing: .14em; text-transform: uppercase; }
.scr-info p { color: rgba(255, 255, 255, .78); font-size: clamp(18px, 1.8vw, 34px); margin: 0 0 3vh; }
.scr-prog { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.scr-prog i { display: block; height: 100%; width: 0; background: #fff; }
.scr-times { display: flex; justify-content: space-between; margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: clamp(14px, 1.1vw, 20px); font-variant-numeric: tabular-nums; }
.scr-ctl { display: flex; align-items: center; gap: 2vw; margin-top: 4vh; }
.scr-btn { display: grid; place-items: center; width: clamp(56px, 5vw, 96px); height: clamp(56px, 5vw, 96px); border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.scr-btn svg.i { width: 40%; height: 40%; }
.scr-btn.lg { width: clamp(76px, 7vw, 132px); height: clamp(76px, 7vw, 132px); background: #fff; color: #000; }
.scr-btn:focus-visible, .scr-card:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.scr-row { display: flex; gap: 1.6vw; overflow-x: auto; padding: 8px 4px 14px; scroll-padding: 8px; }
.scr-card { flex: none; display: grid; gap: 10px; width: clamp(150px, 14vw, 260px); padding: 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.scr-card-art { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.scr-card-art img { width: 100%; height: 100%; object-fit: cover; }
.scr-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 8%; background: var(--mix, #333); font-weight: 700; font-size: clamp(14px, 1.3vw, 24px); }
.scr-card-t { font-size: clamp(14px, 1.1vw, 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-top50 { display: grid; place-content: center; text-align: center; background: linear-gradient(135deg, #ff4d6d, #7c5cff); }
.scr-top50 b { font-size: clamp(30px, 3vw, 56px); }
.scr-top50 small { font-size: clamp(13px, 1vw, 18px); opacity: .85; }
@media (max-width: 760px) { .scr-now { grid-template-columns: minmax(0, 1fr); } .scr-art { max-width: 70vw; } }
/* Lyrics on the track page (and the player's Lyrics panel shares the line styles) */
.tp-lyrics { max-width: 760px; margin: 0 0 40px; scroll-margin-top: calc(var(--top-h) + 12px); }
.tp-lyrics .section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ly-note { color: var(--text-3); font-size: 13px; }
.ly-lines { position: relative; }
.tp-lyrics.is-short .ly-lines { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ly-line { margin: 0; padding: 3px 0; font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--text-2); transition: color .25s ease, opacity .25s ease; }
.ly-gap { display: block; height: 16px; }
[data-synced="1"] .ly-line[data-ms] { cursor: pointer; }
[data-synced="1"] .is-following .ly-line, [data-synced="1"].is-following .ly-line { color: var(--text-3); }
[data-synced="1"] .is-following .ly-line.is-past, [data-synced="1"].is-following .ly-line.is-past { color: var(--text-2); }
[data-synced="1"] .is-following .ly-line.is-now, [data-synced="1"].is-following .ly-line.is-now { color: var(--text); }
.ly-more { margin-top: 10px; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .ly-line { font-size: 17px; } }
/* Live room: how far a take's upload has got */
.lv-card .progress { height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.lv-card .progress span { display: block; height: 100%; background: var(--accent); transition: width .2s; }

/* Track page: "How it was made" sits beside the AI score; Report a rights problem sits at the end of the buttons */
.tp-made { position: relative; display: inline-flex; }
.tp-made-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tp-made-btn:hover { color: var(--text); }
.tp-made-btn svg.i { color: var(--accent); width: 14px; height: 14px; }
.tp-made-pop { left: 0; top: calc(100% + 8px); width: min(420px, 86vw); padding: 14px 16px; }
.tp-made-pop .made-facts { margin: 0; }
.tp-made-pop .made-facts div { grid-template-columns: 120px minmax(0, 1fr); }
.tp-actions .tp-report-top { margin-left: auto; }
@media (max-width: 760px) { .tp-actions .tp-report-top { margin-left: 0; flex-basis: 100%; } }

/* Discover: Recently played in four columns of four rows, paged with the arrows (catalog/home/recent.blade.php) */
.rp-rail { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-auto-columns: calc((100% - 3 * 24px) / 4); column-gap: 24px; row-gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0; }
.rp-rail::-webkit-scrollbar { display: none; }
.rp-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px 10px 0; border-top: 1px solid var(--line); scroll-snap-align: start; }
.rp-row:hover .play-over, .rp-row.is-current .play-over { opacity: 1; }
.rp-row.is-current .rp-tl a { color: var(--accent); }
.rp-row .rp-art { width: 44px; height: 44px; border-radius: 4px; }
.rp-tl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rp-tl a { color: var(--text); font-weight: 400; font-size: 14.5px; }
.rp-tl a:hover { text-decoration: underline; text-underline-offset: 2px; }
.rp-tl .ai-score { flex: none; }
.rp-row .rp-t { display: grid; gap: 2px; min-width: 0; }
.rp-row .rp-t > span:last-child { color: var(--text-3); font-size: 13.5px; }
.rp-more .icon-btn { opacity: .75; }
.rp-row:hover .rp-more .icon-btn { opacity: 1; }
.rp-more .menu { right: 0; left: auto; }
@container stage (max-width: 1100px) { .rp-rail { grid-auto-columns: calc((100% - 2 * 24px) / 3); } }
@container stage (max-width: 820px) { .rp-rail { grid-auto-columns: calc((100% - 24px) / 2); } }
@container stage (max-width: 520px) { .rp-rail { grid-auto-columns: 88%; column-gap: 16px; } }
