/* ==========================================================================
   The dashboard, redesigned: a calm place for your songs.
   The homepage's night, Nunito and the ambient blue. Familiar shapes: a side
   bar and a "New" button like a drive, covers and track lists like a player,
   release details like a distributor. Click a song and it plays.
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  src: url('../../fonts/nunito/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('../../fonts/nunito/nunito-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --fg-rgb: 255, 255, 255;
  --bg-rgb: 7, 9, 10;
  --on-t1: #06090b;
  --empty: #141a1f;
  --menu: #1b2128;
  --bg: #07090a;
  --side: #050607;
  --s1: #0f1316;
  --s2: #151a1e;
  --s3: #1c2227;
  --line: rgba(var(--fg-rgb), 0.07);
  --line-2: rgba(var(--fg-rgb), 0.12);
  --t1: #f4f6f5;
  --t2: rgba(244, 246, 245, 0.72);
  --t3: #8d9895;
  --t4: #5e6865;
  --blue: #7cc4ff;
  --blue-2: #9ad2ff;
  --blue-ink: #04101f;
  --blue-soft: rgba(124, 196, 255, 0.12);
  --blue-line: rgba(124, 196, 255, 0.35);
  --good: #6fd3a1;
  --warn: #f2c46d;
  --bad: #ff8a8a;
  --r: 14px;
  --font: 'Nunito', system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --z-modal: 800;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--t1); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
::selection { background: var(--blue-soft); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* ---- loading ---- */
.nx-load {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; align-content: center; gap: 26px;
  background: var(--bg);
  transition: opacity .45s var(--ease), visibility .45s;
}
.nx-load.is-done { opacity: 0; visibility: hidden; }
/* Quick loads show only the pine cone; the line and words fade in if it takes a while. */
.nx-load__mark { width: 40px; height: 40px; object-fit: contain; opacity: 0; animation: nx-load-in .5s .1s var(--ease) forwards; }
.nx-load__line { position: relative; width: 96px; height: 2px; border-radius: 2px; background: rgba(var(--fg-rgb),.08); overflow: hidden; opacity: 0; animation: nx-load-in .4s .6s ease forwards; }
.nx-load__line span { position: absolute; top: 0; bottom: 0; left: 0; width: 32%; border-radius: 2px; background: rgba(var(--fg-rgb),.55); animation: nx-sweep 1.4s cubic-bezier(.45,0,.55,1) infinite; }
.nx-load__status { color: var(--t4); font-size: 13px; font-weight: 600; min-height: 1.2em; opacity: 0; animation: nx-load-in .4s 1.6s ease forwards; }
@keyframes nx-load-in { to { opacity: 1; } }
@keyframes nx-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(310%); } }
@media (prefers-reduced-motion: reduce) { .nx-load__line span { animation: none; width: 100%; opacity: .3; } }

/* ---- frame ---- */
.nx {
  display: grid; height: 100dvh;
  grid-template-columns: 244px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "side main" "player player";
  animation: nx-in .5s var(--ease);
}
@keyframes nx-in { from { opacity: 0; } to { opacity: 1; } }

.nx-side { grid-area: side; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 14px; background: var(--side); border-right: 1px solid var(--line); min-height: 0; }
.nx-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 14px; font-weight: 800; letter-spacing: -0.01em; font-size: 16px; }
.nx-brand img { width: 24px; height: 24px; object-fit: contain; }

.nx-new { position: relative; padding: 0 4px 10px; }
.nx-new__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px 0 16px; border-radius: 16px;
  background: var(--t1); color: var(--on-t1); font-weight: 800; box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: transform .15s var(--ease), background .15s;
}
.nx-new__btn:hover { background: #fff; transform: translateY(-1px); }
.nx-new__btn svg { stroke-width: 2.4; }

.nx-pop {
  position: absolute; z-index: 60; top: 52px; left: 4px; min-width: 210px; padding: 6px; border-radius: 16px;
  background: var(--s2); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0,0,0,.55);
  animation: nx-pop .14s var(--ease);
}
@keyframes nx-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.nx-pop button, .nx-pop a { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; text-align: left; color: var(--t1); }
.nx-pop button:hover, .nx-pop a:hover { background: var(--s3); }
.nx-pop svg { width: 18px; height: 18px; color: var(--t3); }
.nx-pop .is-danger { color: var(--bad); }
.nx-pop .is-danger svg { color: var(--bad); }
.nx-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.nx-nav { display: flex; flex-direction: column; gap: 2px; }
.nx-nav a, .nx-side__link {
  display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-radius: 12px;
  color: var(--t3); font-weight: 700; transition: color .15s, background .15s;
}
.nx-nav a:hover, .nx-side__link:hover { color: var(--t1); background: rgba(var(--fg-rgb),.04); }
.nx-nav a.is-on { color: var(--t1); background: var(--blue-soft); }
.nx-nav a.is-on svg { color: var(--blue); }

.nx-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.nx-store { padding: 10px 14px 12px; }
.nx-store__bar { height: 4px; border-radius: 4px; background: rgba(var(--fg-rgb),.08); overflow: hidden; }
.nx-store__bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--blue); transition: width .8s var(--ease); }
.nx-store__txt { margin-top: 8px; font-size: 12.5px; color: var(--t3); font-weight: 600; }
.nx-store.is-high .nx-store__bar span { background: var(--warn); }

.nx-main { grid-area: main; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: thin; scrollbar-color: rgba(var(--fg-rgb),.14) transparent; }
.nx-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: rgba(var(--bg-rgb),.72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.nx-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); color: var(--t3); transition: box-shadow .15s; }
.nx-search:focus-within { box-shadow: inset 0 0 0 1px var(--blue-line), 0 0 0 4px var(--blue-soft); }
.nx-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--t1); font-weight: 600; }
.nx-search input::placeholder { color: var(--t4); }
.nx-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.4); }
.nx-me { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--s3) center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-2); }

.nx-view { padding: 8px 32px 48px; animation: nx-in .35s var(--ease); }

/* ---- type and bits ---- */
.nx-h1 { margin: 18px 0 4px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.nx-h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.nx-sub { color: var(--t3); font-weight: 600; margin: 0; }
.nx-sec { margin-top: 36px; }
.nx-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nx-sec__more { color: var(--t3); font-weight: 700; font-size: 13.5px; }
.nx-sec__more:hover { color: var(--t1); }

.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 14px; background: rgba(var(--fg-rgb),.07); color: var(--t1); transition: background .15s, transform .15s; white-space: nowrap; }
.nx-btn:hover { background: rgba(var(--fg-rgb),.12); }
.nx-btn svg { width: 18px; height: 18px; }
.nx-btn--blue { background: var(--blue); color: var(--blue-ink); }
.nx-btn--blue:hover { background: var(--blue-2); }
.nx-btn--ghost { background: none; color: var(--t3); }
.nx-btn--ghost:hover { color: var(--t1); background: rgba(var(--fg-rgb),.05); }
.nx-btn--danger { background: rgba(255,138,138,.1); color: var(--bad); }
.nx-btn--danger:hover { background: rgba(255,138,138,.16); }
.nx-btn[disabled] { opacity: .5; pointer-events: none; }

.nx-ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--t3); transition: color .15s, background .15s; }
.nx-ib:hover { color: var(--t1); background: rgba(var(--fg-rgb),.07); }
.nx-ib svg { width: 18px; height: 18px; }

.nx-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(var(--fg-rgb),.07); color: var(--t2); white-space: nowrap; }
.nx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.nx-pill--idea { color: var(--t3); }
.nx-pill--in_progress, .nx-pill--progress { color: var(--warn); background: rgba(242,196,109,.1); }
.nx-pill--scheduled { color: var(--blue); background: var(--blue-soft); }
.nx-pill--released { color: var(--good); background: rgba(111,211,161,.1); }
.nx-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 800; background: rgba(var(--fg-rgb),.06); color: var(--t3); white-space: nowrap; }
.nx-chip--blue { color: var(--blue); background: var(--blue-soft); }

/* ---- covers grid (releases) ---- */
.nx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px 18px; }
.nx-card { position: relative; display: block; padding: 12px; margin: -12px; border-radius: 18px; transition: background .2s; cursor: pointer; }
.nx-card:hover { background: rgba(var(--fg-rgb),.04); }
.nx-cover { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--s2); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.nx-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-cover__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--t4); background: linear-gradient(145deg, var(--empty), var(--empty)); }
.nx-cover__empty svg { width: 38px; height: 38px; stroke-width: 1.4; }
.nx-card__play {
  position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--blue-ink); box-shadow: 0 10px 24px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease);
}
.nx-card__play svg { fill: currentColor; stroke: none; width: 20px; height: 20px; margin-left: 2px; }
.nx-card:hover .nx-card__play, .nx-card:focus-within .nx-card__play { opacity: 1; transform: none; }
.nx-card__t { margin-top: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-card__s { margin-top: 2px; color: var(--t3); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.nx-card--new .nx-cover { box-shadow: none; background: transparent; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--t3); transition: border-color .2s, color .2s; }
.nx-card--new:hover .nx-cover { border-color: var(--blue-line); color: var(--blue); }
.nx-card--new svg { width: 34px; height: 34px; stroke-width: 1.6; }

/* ---- quick row (home: jump back in) ---- */
.nx-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.nx-q { position: relative; display: flex; align-items: center; gap: 14px; height: 64px; padding-right: 14px; border-radius: 12px; overflow: hidden; background: rgba(var(--fg-rgb),.05); cursor: pointer; transition: background .2s; }
.nx-q:hover { background: rgba(var(--fg-rgb),.09); }
.nx-q__art { width: 64px; height: 64px; flex: none; background: var(--s3) center / cover no-repeat; }
.nx-q__t { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-q__s { font-size: 12.5px; color: var(--t3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-q__go { margin-left: auto; width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--blue-ink); opacity: 0; transition: opacity .2s; }
.nx-q__go svg { fill: currentColor; stroke: none; width: 16px; height: 16px; margin-left: 2px; }
.nx-q:hover .nx-q__go, .nx-q.is-playing .nx-q__go { opacity: 1; }

/* ---- release header ---- */
.nx-rh { position: relative; margin: -8px -32px 0; padding: 40px 32px 28px; display: flex; align-items: flex-end; gap: 28px; overflow: hidden; }
.nx-rh__bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(70px) saturate(1.3); opacity: .38; transform: scale(1.2); pointer-events: none; }
.nx-rh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb),.15), var(--bg)); pointer-events: none; }
.nx-rh > :not(.nx-rh__bg) { position: relative; z-index: 1; }
.nx-rh__art { position: relative; width: 220px; height: 220px; flex: none; border-radius: 14px; overflow: hidden; background: var(--s2); box-shadow: 0 24px 60px rgba(0,0,0,.55); cursor: pointer; }
.nx-rh__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-rh__art .nx-cover__empty svg { width: 54px; height: 54px; }
.nx-rh__artedit { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; font-size: 13px; opacity: 0; transition: opacity .2s; }
.nx-rh__art:hover .nx-rh__artedit, .nx-rh__art:focus-visible .nx-rh__artedit { opacity: 1; }
.nx-rh__info { min-width: 0; padding-bottom: 6px; }
.nx-rh__kind { font-size: 13px; font-weight: 800; color: var(--t2); display: flex; align-items: center; gap: 10px; }
.nx-rh__title {
  display: block; width: 100%; margin: 8px 0 10px; padding: 0; background: none; border: 0; outline: 0;
  font-size: clamp(32px, 5vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; color: var(--t1);
  border-radius: 8px;
}
.nx-rh__title:hover { background: rgba(var(--fg-rgb),.03); }
.nx-rh__title:focus { background: rgba(var(--fg-rgb),.05); box-shadow: 0 0 0 1px var(--line-2); }
.nx-rh__meta { color: var(--t2); font-weight: 700; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nx-rh__meta b { color: var(--t1); }
.nx-dot { opacity: .5; }

.nx-bar { display: flex; align-items: center; gap: 12px; padding: 18px 0 8px; flex-wrap: wrap; }
.nx-bigplay { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--blue-ink); box-shadow: 0 10px 30px rgba(124,196,255,.18); transition: transform .15s var(--ease), background .15s; }
.nx-bigplay:hover { transform: scale(1.04); background: var(--blue-2); }
.nx-bigplay svg { fill: currentColor; stroke: none; width: 24px; height: 24px; }
.nx-bigplay .i-pause { display: none; stroke: currentColor; stroke-width: 3; fill: none; }
.nx-bigplay.is-playing .i-play { display: none; }
.nx-bigplay.is-playing .i-pause { display: block; }
.nx-bigplay .i-play { margin-left: 3px; }

.nx-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(var(--fg-rgb),.05); margin-left: auto; }
.nx-seg button { height: 32px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 13.5px; color: var(--t3); }
.nx-seg button.is-on { background: var(--s3); color: var(--t1); }

/* ---- song list (track table) ---- */
.nx-list { margin-top: 6px; }
.nx-lh, .nx-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 110px 64px 40px; align-items: center; gap: 12px; padding: 0 14px; }
.nx-list--songs .nx-lh, .nx-list--songs .nx-row { grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) 110px 64px 40px; }
.nx-lh { height: 38px; color: var(--t4); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.nx-lh .r, .nx-row .r { text-align: right; }
.nx-row { height: 58px; border-radius: 10px; cursor: pointer; transition: background .12s; user-select: none; }
.nx-row:hover { background: rgba(var(--fg-rgb),.05); }
.nx-row.is-open { background: rgba(var(--fg-rgb),.05); border-radius: 10px 10px 0 0; }
.nx-row.is-current .nx-row__t { color: var(--blue); }
.nx-row__n { position: relative; color: var(--t3); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.nx-row__n .pi { display: none; }
.nx-row:hover .nx-row__n .num, .nx-row.is-current .nx-row__n .num { display: none; }
.nx-row:hover .nx-row__n .pi { display: inline-grid; place-items: center; color: var(--t1); }
.nx-row__n .pi svg { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.nx-row.is-current:not(:hover) .nx-row__n .eq { display: inline-flex; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--blue); border-radius: 1px; animation: nx-eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
.is-paused .eq i { animation-play-state: paused; height: 4px; }
@keyframes nx-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.nx-row__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nx-row__art { width: 40px; height: 40px; flex: none; border-radius: 6px; background: var(--s3) center / cover no-repeat; }
.nx-row__txt { min-width: 0; }
.nx-row__t { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-row__s { font-size: 12.5px; color: var(--t3); font-weight: 600; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.nx-row__c { color: var(--t3); font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-row__d { color: var(--t3); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.nx-row .nx-ib { opacity: 0; }
.nx-row:hover .nx-ib, .nx-row.is-open .nx-ib, .nx-row .nx-ib:focus-visible { opacity: 1; }
.nx-row.is-open .nx-ib--open svg { transform: rotate(180deg); }
.nx-ib--open svg { transition: transform .2s var(--ease); }

/* files of a song: versions, newest on top, the current master marked */
.nx-files { margin: 0 0 10px; padding: 6px 14px 16px 66px; border-radius: 0 0 12px 12px; background: rgba(var(--fg-rgb),.03); animation: nx-in .25s var(--ease); }
.nx-files__head { display: flex; align-items: center; gap: 10px; padding: 8px 0 10px; color: var(--t3); font-size: 13px; font-weight: 700; }
.nx-files__head .nx-btn { height: 32px; padding: 0 14px; font-size: 13px; margin-left: auto; }
.nx-file { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 50px; padding: 6px 10px; border-radius: 10px; }
.nx-file:hover { background: rgba(var(--fg-rgb),.04); }
.nx-file.is-master { background: var(--blue-soft); }
.nx-file__play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--fg-rgb),.07); color: var(--t1); }
.nx-file__play:hover { background: rgba(var(--fg-rgb),.14); }
.nx-file.is-master .nx-file__play { background: var(--blue); color: var(--blue-ink); }
.nx-file__play svg { fill: currentColor; stroke: none; width: 14px; height: 14px; margin-left: 2px; }
.nx-file__t { font-weight: 800; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.nx-file__s { font-size: 12.5px; color: var(--t3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-file__acts { display: flex; gap: 4px; align-items: center; }
.nx-file__acts .nx-btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.nx-file__when { color: var(--t3); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.nx-files__info { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---- forms: release details ---- */
.nx-form { max-width: 820px; margin-top: 10px; display: grid; gap: 26px; }
.nx-fs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 22px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.nx-fs__t { grid-column: 1 / -1; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.nx-fs__h { grid-column: 1 / -1; margin-top: -10px; color: var(--t3); font-size: 13px; font-weight: 600; }
.nx-f { display: grid; gap: 6px; min-width: 0; }
.nx-f--full { grid-column: 1 / -1; }
.nx-f > span { font-size: 12.5px; font-weight: 800; color: var(--t3); }
.nx-in {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; outline: 0;
  background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--t1); font-weight: 600;
  transition: box-shadow .15s;
}
.nx-in:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.nx-in:focus { box-shadow: inset 0 0 0 1px var(--blue-line), 0 0 0 4px var(--blue-soft); }
.nx-in::placeholder { color: var(--t4); }
select.nx-in { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d9895' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
select.nx-in option { background: var(--s2); }
input[type="date"].nx-in::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.5); }
.nx-check { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--t2); cursor: pointer; }
.nx-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.nx-saved { font-size: 12.5px; font-weight: 700; color: var(--t3); min-height: 1.2em; transition: color .2s; }
.nx-saved.is-ok { color: var(--good); }
.nx-danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 18px; border: 1px solid rgba(255,138,138,.18); }
.nx-danger p { margin: 2px 0 0; color: var(--t3); font-size: 13px; font-weight: 600; }

/* ---- empty states ---- */
.nx-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 70px 20px; border-radius: 20px; border: 1.5px dashed var(--line-2); color: var(--t3); }
.nx-empty svg { width: 40px; height: 40px; stroke-width: 1.4; color: var(--t4); }
.nx-empty b { color: var(--t1); font-size: 18px; font-weight: 800; }
.nx-empty .nx-btn { margin-top: 8px; }

/* skeleton */
.nx-skel { border-radius: 10px; background: linear-gradient(90deg, rgba(var(--fg-rgb),.04), rgba(var(--fg-rgb),.08), rgba(var(--fg-rgb),.04)); background-size: 200% 100%; animation: nx-shim 1.4s linear infinite; }
@keyframes nx-shim { to { background-position: -200% 0; } }

/* ---- player ---- */
.nx-player {
  grid-area: player; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 20px;
  height: 84px; padding: 0 20px; background: var(--side); border-top: 1px solid var(--line);
}
.nx-player__now { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nx-player__art { width: 54px; height: 54px; flex: none; border-radius: 8px; background: var(--s2) center / cover no-repeat; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.nx-player__meta { min-width: 0; }
.nx-player__title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-player__sub { font-size: 12.5px; color: var(--t3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-player__mid { display: grid; justify-items: center; gap: 6px; }
.nx-player__ctrl { display: flex; align-items: center; gap: 14px; }
.nx-player__ctrl .nx-ib svg { fill: currentColor; stroke-width: 1.4; }
.nx-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--t1); color: var(--on-t1); transition: transform .12s; }
.nx-play:hover { transform: scale(1.05); }
.nx-play svg { width: 18px; height: 18px; }
.nx-play .i-play { fill: currentColor; stroke: none; margin-left: 2px; }
.nx-play .i-pause { display: none; stroke-width: 3; }
.nx-play.is-playing .i-play { display: none; }
.nx-play.is-playing .i-pause { display: block; }
.nx-player__bar { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; font-size: 12px; font-weight: 700; color: var(--t3); font-variant-numeric: tabular-nums; }
.nx-range { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(var(--fg-rgb),.1); cursor: pointer; }
.nx-range::before { content: ""; position: absolute; inset: -8px 0; }
.nx-range span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--t1); }
.nx-range:hover span { background: var(--blue); }
.nx-range span::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
.nx-range:hover span::after { opacity: 1; }
.nx-player__end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--t3); }
.nx-range--vol { flex: none; width: 110px; }
.nx-player.is-empty .nx-player__ctrl, .nx-player.is-empty .nx-player__bar { opacity: .45; pointer-events: none; }

/* ---- drop overlay + upload tray ---- */
.nx-drop { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; background: rgba(var(--bg-rgb),.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: nx-in .15s; }
.nx-drop__box { display: grid; justify-items: center; gap: 10px; padding: 48px 64px; border-radius: 26px; border: 2px dashed var(--blue-line); background: rgba(124,196,255,.06); text-align: center; pointer-events: none; }
.nx-drop__box svg { width: 40px; height: 40px; color: var(--blue); }
.nx-drop__t { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.nx-drop__s { color: var(--t3); font-weight: 600; }

.nx-tray { position: fixed; right: 20px; bottom: 100px; z-index: 600; width: 360px; max-width: calc(100vw - 32px); border-radius: 18px; overflow: hidden; background: var(--s2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.55); animation: nx-pop .2s var(--ease); }
.nx-tray__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; font-weight: 800; background: var(--s3); }
.nx-tray__list { list-style: none; margin: 0; padding: 6px; max-height: 280px; overflow-y: auto; }
.nx-tray__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; }
.nx-tray__n { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-tray__st { font-size: 12px; font-weight: 700; color: var(--t3); }
.nx-tray__st.is-ok { color: var(--good); }
.nx-tray__st.is-bad { color: var(--bad); }
.nx-tray__p { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(var(--fg-rgb),.08); overflow: hidden; }
.nx-tray__p span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.nx-tray__to { grid-column: 1 / -1; font-size: 12px; color: var(--t3); font-weight: 600; }

/* ---- toasts and the one confirm dialog (from the shared helpers) ---- */
.toast-host { position: fixed; left: 50%; bottom: 104px; z-index: 900; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--t1); color: var(--on-t1); font-weight: 700; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: nx-pop .2s var(--ease); cursor: pointer; }
.toast--error { background: #2a1416; color: #ffd6d6; box-shadow: inset 0 0 0 1px rgba(255,138,138,.25), 0 16px 40px rgba(0,0,0,.45); }
.toast__icon { display: none; }
.toast.is-leaving { opacity: 0; transition: opacity .3s; }
.toast__action { margin-left: 6px; font-weight: 800; color: var(--blue-ink); text-decoration: underline; }
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: nx-in .2s; }
.modal__panel { position: relative; width: min(420px, 100%); padding: 24px; border-radius: 22px; background: var(--s2); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: nx-pop .2s var(--ease); }
.modal__icon { display: none; }
.modal__title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.modal__sub { margin-top: 6px; color: var(--t3); font-weight: 600; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal .btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 800; background: rgba(var(--fg-rgb),.07); }
.modal .btn--primary { background: var(--blue); color: var(--blue-ink); }
.modal .btn--danger { background: var(--bad); color: #1a0506; }

/* ---- phone ---- */
.nx-tabs { display: none; }
@media (max-width: 860px) {
  .nx { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "main" "player" "tabs"; }
  .nx-side { display: none; }
  .nx-top { padding: 12px 16px; }
  .nx-view { padding: 4px 16px 32px; }
  .nx-rh { margin: -4px -16px 0; padding: 24px 16px 18px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .nx-rh__art { width: min(240px, 62vw); height: min(240px, 62vw); align-self: center; }
  .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .nx-card { padding: 8px; margin: -8px; }
  .nx-card__play { opacity: 1; transform: none; width: 40px; height: 40px; }
  .nx-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nx-q { height: 56px; gap: 10px; }
  .nx-q__art { width: 56px; height: 56px; }
  .nx-q__go { display: none; }
  .nx-lh { display: none; }
  .nx-row, .nx-list--songs .nx-row { grid-template-columns: 26px minmax(0, 1fr) 40px; padding: 0 6px; gap: 10px; }
  .nx-row > .nx-row__c, .nx-row > .nx-row__d, .nx-row > .nx-ib--open { display: none; }
  .nx-row .nx-ib { opacity: 1; }
  .nx-files { padding: 6px 8px 14px; }
  .nx-file { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .nx-file__when { display: none; }
  .nx-fs { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .nx-seg { margin-left: 0; }
  .nx-player { grid-template-columns: minmax(0, 1fr) auto; height: 64px; padding: 0 10px 0 8px; gap: 10px; margin: 0 8px 6px; border-radius: 12px; border: 0; background: var(--s2); position: relative; overflow: hidden; }
  .nx-player__art { width: 46px; height: 46px; }
  .nx-player__mid { grid-row: 1; grid-column: 2; }
  .nx-player__ctrl #pl-prev, .nx-player__ctrl #pl-next { display: none; }
  .nx-player__bar { position: absolute; left: 10px; right: 10px; bottom: 0; max-width: none; }
  .nx-player__bar > span { display: none; }
  .nx-player__bar .nx-range { height: 2px; }
  .nx-player__end { display: none; }
  .nx-player.is-empty { display: none; }
  .nx-tabs { grid-area: tabs; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--side); border-top: 1px solid var(--line); }
  .nx-tabs a, .nx-tabs button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: var(--t3); font-size: 11px; font-weight: 800; }
  .nx-tabs a.is-on { color: var(--t1); }
  .nx-tabs a.is-on svg { color: var(--blue); }
  .nx-tabs svg { width: 22px; height: 22px; }
  .nx-pop--sheet { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(70px + env(safe-area-inset-bottom)); min-width: 0; }
  .nx-tray { right: 8px; left: 8px; width: auto; bottom: 150px; }
  .toast-host { bottom: 150px; }
}

/* ---- shared tokens, in the night palette (the cookie notice uses them) ---- */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  color-scheme: dark;
  --bg: #07090a;
  --font-sans: var(--font);
  --surface-panel: var(--s2); --surface-1: var(--s1); --surface-2: var(--s2); --surface-3: var(--s3);
  --text-primary: var(--t1); --text-secondary: var(--t2); --text-tertiary: var(--t3); --text-quaternary: var(--t4);
  --border: var(--line); --border-subtle: rgba(var(--fg-rgb),.05); --border-strong: var(--line-2);
  --accent: var(--blue); --accent-fg: var(--blue-ink); --accent-soft: var(--blue-soft);
}
.nwc-banner .btn, .modal .btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 13.5px; background: rgba(var(--fg-rgb),.07); color: var(--t1); }
.nwc-banner .btn:hover, .modal .btn:hover { background: rgba(var(--fg-rgb),.12); }
.nwc-banner .btn--ghost { background: none; color: var(--t3); }
.nwc-banner .btn--ghost:hover { color: var(--t1); }
.nwc-banner .btn--primary, .modal .btn--primary { background: var(--blue); color: var(--blue-ink); }
.nwc-banner__body { font-family: var(--font); }
.nwc-banner__body a { color: var(--blue); }
.switch { position: relative; display: inline-flex; width: 40px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch__track { width: 100%; height: 100%; border-radius: 999px; background: rgba(var(--fg-rgb),.14); transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.modal__panel--lg, .modal__panel--md { width: min(560px, 100%); max-height: 86vh; overflow: auto; }
.modal__head { display: flex; gap: 12px; align-items: flex-start; }
.modal__body { margin-top: 14px; }

/* ==========================================================================
   Settings, shared links, trash, account menu
   ========================================================================== */
.nx-nav__gap { height: 14px; }
.nx-side__link.is-on { color: var(--t1); background: var(--blue-soft); }
.nx-side__link.is-on svg { color: var(--blue); }
a.nx-store { display: block; border-radius: 12px; transition: background .15s; }
a.nx-store:hover { background: rgba(var(--fg-rgb),.04); }

.nx-me-wrap { position: relative; margin-left: auto; }
.nx-me { display: block; margin: 0; cursor: pointer; transition: box-shadow .15s; }
.nx-me:hover, .nx-me[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--blue-line); }
.nx-pop--right { left: auto; right: 0; top: 46px; min-width: 240px; }
.nx-pop__who { display: grid; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nx-pop__who b { font-weight: 800; }
.nx-pop__who span { font-size: 12.5px; color: var(--t3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.nx-btn.is-busy { opacity: .6; pointer-events: none; }
.nx-chip { gap: 5px; }
.nx-chip svg, .nx-chip__i { width: 12px; height: 12px; }

/* settings layout */
.nx-set { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-top: 24px; align-items: start; }
.nx-set__nav { position: sticky; top: 86px; display: grid; gap: 2px; }
.nx-set__nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 12px; color: var(--t3); font-weight: 700; transition: background .15s, color .15s; white-space: nowrap; }
.nx-set__nav a:hover { color: var(--t1); background: rgba(var(--fg-rgb),.04); }
.nx-set__nav a.is-on { color: var(--t1); background: rgba(var(--fg-rgb),.07); }
.nx-set__nav a.is-on svg { color: var(--blue); }
.nx-set__nav svg { width: 18px; height: 18px; }
.nx-set__body { display: grid; gap: 22px; max-width: 760px; min-width: 0; animation: nx-in .3s var(--ease); }

.nx-group { padding: 6px 22px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.nx-group__head { padding: 16px 0 6px; }
.nx-group__head h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.nx-group__head p { margin: 3px 0 0; color: var(--t3); font-size: 13px; font-weight: 600; }
.nx-group__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0 16px; }
.nx-group > .nx-saved { padding: 0 0 12px; }

.nx-srow { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 0; border-top: 1px solid var(--line); }
.nx-group > .nx-srow:first-child, .nx-group__head + .nx-srow { border-top: 0; }
.nx-srow--sub { min-height: 52px; padding-left: 50px; border-top: 0; margin-top: -8px; }
.nx-srow__i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--fg-rgb),.05); color: var(--t2); }
.nx-srow__i svg { width: 18px; height: 18px; }
.nx-srow__txt { flex: 1; min-width: 0; }
.nx-srow__t { font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nx-srow__d { color: var(--t3); font-size: 13px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.nx-srow__r { flex: none; display: flex; align-items: center; gap: 8px; }
.nx-in--sm { height: 38px; width: auto; min-width: 140px; }
.nx-ta { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.nx-check2 { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--t2); cursor: pointer; }

.nx-sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 8px 0 18px; }

.nx-pro { display: flex; align-items: center; gap: 18px; padding: 18px 0 14px; }
.nx-pro__pic { position: relative; width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--s3) center / cover no-repeat; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.nx-pro__pic span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; opacity: 0; transition: opacity .2s; }
.nx-pro__pic:hover span, .nx-pro__pic:focus-visible span { opacity: 1; }
.nx-pro__pic svg { width: 18px; height: 18px; }
.nx-pro__name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

.nx-handle { display: flex; gap: 10px; align-items: center; padding: 8px 0 6px; flex-wrap: wrap; }
.nx-handle__in { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 200px; max-width: 360px; color: var(--t3); cursor: text; }
.nx-handle__in:focus-within { box-shadow: inset 0 0 0 1px var(--blue-line), 0 0 0 4px var(--blue-soft); }
.nx-handle__in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--t1); font-weight: 700; }
.nx-group > .nx-srow__d { padding-bottom: 16px; }

.nx-sec-status { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; background: rgba(242,196,109,.07); border: 1px solid rgba(242,196,109,.18); }
.nx-sec-status svg { width: 28px; height: 28px; color: var(--warn); }
.nx-sec-status.is-ok { background: var(--blue-soft); border-color: var(--blue-line); }
.nx-sec-status.is-ok svg { color: var(--blue); }
.nx-sec-status div { display: grid; gap: 2px; }
.nx-sec-status span { color: var(--t2); font-size: 13.5px; font-weight: 600; }

.nx-totp { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; padding: 16px; margin: 0 0 12px; border-radius: 14px; background: rgba(var(--fg-rgb),.03); }
.nx-totp__qr { width: 168px; height: 168px; flex: none; padding: 10px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.nx-totp__qr canvas, .nx-totp__qr svg, .nx-totp__qr img { width: 100% !important; height: 100% !important; }
.nx-totp__steps { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.nx-in--code { width: 150px; text-align: center; letter-spacing: .25em; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; padding: 2px 6px; border-radius: 6px; background: rgba(var(--fg-rgb),.07); color: var(--t1); overflow-wrap: anywhere; }

.nx-codes { display: grid; gap: 14px; padding: 16px; margin: 0 0 14px; border-radius: 14px; background: var(--blue-soft); border: 1px solid var(--blue-line); }
.nx-codes__head { display: grid; gap: 2px; }
.nx-codes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.nx-codes__grid code { padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.25); font-family: ui-monospace, Consolas, monospace; font-weight: 700; text-align: center; letter-spacing: .04em; }

/* plan */
.nx-plan-now { padding: 22px; }
.nx-plan-now__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.nx-plan-now__name { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.nx-plan-now__price { font-size: 20px; font-weight: 800; }
.nx-plan-now__price span { font-size: 13px; color: var(--t3); font-weight: 700; }
.nx-meter { height: 8px; border-radius: 8px; background: rgba(var(--fg-rgb),.08); overflow: hidden; margin-top: 18px; }
.nx-meter span { display: block; height: 100%; border-radius: 8px; background: var(--blue); }
.nx-plan-now__use { margin-top: 10px; color: var(--t2); font-weight: 600; font-size: 14px; }
.nx-plan-now__use b { color: var(--t1); }
.nx-kinds { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--t3); font-size: 13px; font-weight: 600; }
.nx-kinds span { display: inline-flex; align-items: center; gap: 6px; }
.nx-kinds b { color: var(--t2); }
.nx-kinds i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.nx-kinds span:nth-child(2) i { background: rgba(124,196,255,.5); }
.nx-kinds span:nth-child(3) i { background: rgba(var(--fg-rgb),.3); }
.nx-note { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(242,196,109,.08); color: var(--warn); font-weight: 700; font-size: 13.5px; }

.nx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 8px 0 18px; }
.nx-planc { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.nx-planc.is-cur { border-color: var(--blue-line); background: linear-gradient(180deg, rgba(124,196,255,.08), var(--s2)); }
.nx-planc__name { font-weight: 800; font-size: 17px; }
.nx-planc__tag { color: var(--t3); font-size: 12.5px; font-weight: 600; min-height: 2.6em; }
.nx-planc__price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.nx-planc__price span { font-size: 13px; color: var(--t3); font-weight: 700; }
.nx-planc ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.nx-planc li { display: flex; gap: 8px; color: var(--t2); font-size: 13px; font-weight: 600; line-height: 1.35; }
.nx-planc li svg { width: 15px; height: 15px; color: var(--blue); margin-top: 1px; }
.nx-planc .nx-btn { width: 100%; }
.nx-planc__cur { display: grid; place-items: center; height: 40px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--blue); background: var(--blue-soft); }

.nx-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 8px 0 16px; }
.nx-tier { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); text-align: left; transition: border-color .15s, background .15s; }
.nx-tier:hover { border-color: var(--blue-line); background: rgba(124,196,255,.05); }
.nx-tier b { font-size: 17px; font-weight: 800; }
.nx-tier span { color: var(--t3); font-size: 13px; font-weight: 600; }

.nx-addr { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--s2); max-width: 100%; }
.nx-addr code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* shared links */
.nx-links { display: grid; gap: 4px; margin-top: 8px; }
.nx-lrow { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; min-height: 66px; border-radius: 12px; transition: background .12s; }
.nx-lrow:hover, .nx-lrow.is-open { background: rgba(var(--fg-rgb),.05); }
.nx-lrow.is-open { border-radius: 12px 12px 0 0; }
.nx-lrow.is-ended .nx-row__art { filter: grayscale(1) opacity(.5); }
.nx-lrow__main { flex: 1; min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 170px; align-items: center; gap: 14px; cursor: pointer; padding: 12px 0; }
.nx-lrow__chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nx-lrow__stat { color: var(--t3); font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }
.nx-lrow__stat b { color: var(--t1); }
.nx-lrow__acts { display: flex; align-items: center; }
.nx-lrow.is-open .nx-ib--open svg { transform: rotate(180deg); }
.nx-lpanel { padding: 4px 18px 18px 68px; }
.nx-lstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 12px 0 4px; }
.nx-lstats div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--fg-rgb),.04); }
.nx-lstats b { font-size: 18px; font-weight: 800; }
.nx-lstats span { font-size: 12px; color: var(--t3); font-weight: 700; }
.nx-lform { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
.nx-lswitches { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 16px 0 4px; }
.nx-lpanel__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; flex-wrap: wrap; }

/* trash */
.nx-trash { display: grid; gap: 4px; }
.nx-trow { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 14px; border-radius: 12px; }
.nx-trow:hover { background: rgba(var(--fg-rgb),.04); }
.nx-trow > div:nth-child(2) { flex: 1; min-width: 0; }
.nx-trow__i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--fg-rgb),.05); color: var(--t3); }
.nx-trow__left { color: var(--t3); font-size: 13px; font-weight: 700; white-space: nowrap; }
.nx-trow__left.is-soon { color: var(--warn); }

/* prompt dialogs from the shared helpers */
.modal .field { display: grid; gap: 6px; margin-top: 16px; }
.modal .field__label { font-size: 12.5px; font-weight: 800; color: var(--t3); }
.modal .input, .modal .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; outline: 0; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line); color: var(--t1); font-weight: 600; }
.modal .textarea { height: auto; padding: 12px 14px; }
.modal .input:focus, .modal .textarea:focus { box-shadow: inset 0 0 0 1px var(--blue-line), 0 0 0 4px var(--blue-soft); }
.modal .pw { position: relative; }
.modal .pw__actions { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.modal .pw__btn { width: 30px; height: 30px; border-radius: 8px; color: var(--t3); font-size: 12px; font-weight: 800; }
.modal .pw__btn i::before { content: "Show"; font-style: normal; }
.modal .pw__btn { width: auto; padding: 0 8px; }
.modal .field__hint { font-size: 12.5px; color: var(--t3); font-weight: 600; }
.modal .field__error { font-size: 12.5px; color: var(--bad); font-weight: 700; }
.modal .modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; color: var(--t3); }
.modal .modal__close:hover { background: rgba(var(--fg-rgb),.07); color: var(--t1); }
.modal .modal__close i::before { content: "\2715"; font-style: normal; font-size: 14px; }

@media (max-width: 860px) {
  .nx-set { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 14px; }
  .nx-set__nav { position: sticky; top: 68px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 6px 16px; background: rgba(var(--bg-rgb),.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nx-set__nav::-webkit-scrollbar { display: none; }
  .nx-set__nav a { height: 38px; padding: 0 14px; background: rgba(var(--fg-rgb),.05); border-radius: 999px; font-size: 14px; }
  .nx-set__nav a svg { display: none; }
  .nx-group { padding: 4px 16px; }
  .nx-sgrid, .nx-lform { grid-template-columns: minmax(0, 1fr); }
  .nx-srow { flex-wrap: wrap; }
  .nx-srow__r { margin-left: 50px; }
  .nx-srow--sub { padding-left: 0; }
  .nx-srow--sub .nx-srow__r { margin-left: 0; }
  .nx-lrow { padding: 0 4px 0 8px; }
  .nx-lrow__main { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .nx-lrow__chips, .nx-lrow__stat { display: none; }
  .nx-lpanel { padding: 4px 10px 16px; }
  .nx-lstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-lstats div:nth-child(n+4) { display: none; }
  .nx-trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "i t b" "i l b"; column-gap: 12px; row-gap: 0; padding: 10px 6px; }
  .nx-trow > .nx-trow__i { grid-area: i; }
  .nx-trow > div:nth-child(2) { grid-area: t; }
  .nx-trow__left { grid-area: l; font-size: 12px; }
  .nx-trow > .nx-btn, .nx-trow > .nx-chip { grid-area: b; }
  .nx-plan-now__top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nx-danger { flex-direction: column; align-items: flex-start; }
}

/* Songs with no cover yet: a quiet disc instead of an empty square. */
.nx-q__art[style*="url('')"], .nx-row__art[style*="url('')"] {
  background: var(--empty) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6865' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E") center / 42% no-repeat;
}

/* ---- the share panel: one link, who can listen, a few options ---- */
.nx-share .nx-share__panel { width: min(520px, 100%); padding: 0; overflow: hidden; }
.nx-share__head { display: flex; align-items: center; gap: 14px; padding: 20px 16px 16px 22px; }
.nx-share__art { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--empty) center / cover no-repeat; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.nx-share__art[style*="url('')"] { background: var(--empty) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6865' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E") center / 46% no-repeat; }
.nx-share__head > div:not(.nx-share__art) { flex: 1; }
.nx-btn:disabled { opacity: .4; pointer-events: none; }
.nx-share__t { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-share__s { font-size: 13px; color: var(--t3); font-weight: 600; }

.nx-share__link { display: flex; align-items: center; gap: 8px; margin: 0 22px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line); }
.nx-share__lic { color: var(--blue); display: grid; }
.nx-share__lic svg { width: 18px; height: 18px; }
.nx-share__link input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--t1); font-weight: 700; font-size: 14.5px; }
.nx-share__link .nx-btn { height: 38px; }
.nx-share.is-off .nx-share__link input { color: var(--t3); font-weight: 600; }
.nx-share.is-off .nx-share__lic { color: var(--t4); }
.nx-share__hint { margin: 8px 22px 0; font-size: 12.5px; color: var(--t3); font-weight: 600; }

.nx-share__access { display: flex; align-items: center; gap: 14px; margin: 18px 22px 4px; }
.nx-share__aic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.nx-share.is-off .nx-share__aic { background: rgba(var(--fg-rgb),.06); color: var(--t3); }
.nx-share__aic svg { width: 20px; height: 20px; }
.nx-share__sel { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f6f5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center / 14px; border: 0; outline: 0; padding: 4px 24px 4px 6px; margin-left: -6px; border-radius: 8px; color: var(--t1); font-weight: 800; font-size: 15px; cursor: pointer; }
.nx-share__sel:hover, .nx-share__sel:focus-visible { background-color: rgba(var(--fg-rgb),.06); }
.nx-share__sel option { background: var(--s2); }
.nx-share__ad { font-size: 13px; color: var(--t3); font-weight: 600; }

.nx-share__more { margin: 10px 22px 0; border-top: 1px solid var(--line); }
.nx-share__more summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 14px 0 12px; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--t2); }
.nx-share__more summary::-webkit-details-marker { display: none; }
.nx-share__more summary svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nx-share__more[open] summary svg { transform: rotate(180deg); }
.nx-share__more summary:hover { color: var(--t1); }
.nx-share__opts { display: grid; gap: 4px; padding-bottom: 6px; }
.nx-share__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; }
.nx-share__row > div:first-child { display: grid; gap: 1px; min-width: 0; }
.nx-share__row b { font-weight: 800; font-size: 14px; }
.nx-share__row span { font-size: 12.5px; color: var(--t3); font-weight: 600; }
.nx-share__pass { display: flex; gap: 6px; }
.nx-share__pass .nx-in { width: 130px; min-width: 0; }

.nx-share__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px 14px 22px; background: rgba(var(--fg-rgb),.03); border-top: 1px solid var(--line); }
.nx-share__stats { font-size: 12.5px; color: var(--t3); font-weight: 700; }

@media (max-width: 860px) {
  .nx-share { place-items: end center; padding: 0; }
  .nx-share .nx-share__panel { width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
  .nx-share__link { flex-wrap: wrap; }
  .nx-share__link input { flex-basis: calc(100% - 40px); padding: 6px 0; }
  .nx-share__link .nx-btn { width: 100%; }
}

/* ---- artist page: which releases it shows ---- */
.nx-ap__h { padding: 10px 0 8px; font-size: 12.5px; font-weight: 800; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; }
.nx-ap__rel { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--line); cursor: pointer; }
.nx-ap__rel:last-child { margin-bottom: 8px; }
.nx-ap__art { width: 40px; height: 40px; flex: none; border-radius: 6px; background: var(--empty) center / cover no-repeat; }
.nx-ap__t { flex: 1; min-width: 0; font-weight: 800; display: grid; }
.nx-ap__t small { font-size: 12.5px; color: var(--t3); font-weight: 600; }

/* ==========================================================================
   Icons from the Melodreams set, no glows, borders barely there.
   ========================================================================== */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --line: rgba(var(--fg-rgb), 0.045);
  --line-2: rgba(var(--fg-rgb), 0.075);
  --blue-line: rgba(124, 196, 255, 0.28);
  --border: rgba(var(--fg-rgb), 0.045);
  --border-subtle: rgba(var(--fg-rgb), 0.035);
  --border-strong: rgba(var(--fg-rgb), 0.075);
}

.ic { display: inline-block; flex: none; width: 1.25em; text-align: center; line-height: 1; font-size: 16px; }
.nx-nav .ic, .nx-side__link .ic { font-size: 17px; }
.nx-new__btn .ic { font-size: 15px; }
.nx-search .ic { font-size: 15px; }
.nx-btn .ic { font-size: 14px; width: auto; }
.nx-ib .ic { font-size: 15px; }
.nx-pop .ic { font-size: 15px; color: var(--t3); }
.nx-tabs .ic { font-size: 19px; }
.nx-bigplay .ic { font-size: 21px; width: auto; }
.nx-bigplay .i-play { margin-left: 3px; }
.nx-bigplay .i-pause { display: none; }
.nx-bigplay.is-playing .i-play { display: none; }
.nx-bigplay.is-playing .i-pause { display: inline-block; }
.nx-play .ic { font-size: 15px; width: auto; }
.nx-play .i-play { margin-left: 2px; }
.nx-play .i-pause { display: none; }
.nx-play.is-playing .i-play { display: none; }
.nx-play.is-playing .i-pause { display: inline-block; }
.nx-player__ctrl .nx-ib .ic { font-size: 15px; }
.nx-player__end .ic { font-size: 15px; color: var(--t3); }
.nx-card__play .ic { font-size: 17px; margin-left: 2px; width: auto; }
.nx-q__go .ic { font-size: 14px; margin-left: 2px; width: auto; }
.nx-row__n .pi .ic { font-size: 13px; }
.nx-file__play .ic { font-size: 12px; margin-left: 2px; width: auto; }
.nx-cover__empty .ic { font-size: 40px; width: auto; color: var(--t4); }
.nx-rh__art .nx-cover__empty .ic { font-size: 56px; }
.nx-rh__artedit .ic { font-size: 20px; }
.nx-card--new .nx-cover .ic { font-size: 30px; width: auto; }
.nx-empty .ic { font-size: 34px; width: auto; color: var(--t4); }
.nx-drop__box .ic { font-size: 34px; color: var(--blue); width: auto; }
.nx-srow__i .ic, .nx-trow__i .ic { font-size: 15px; }
.nx-sec-status .ic { font-size: 26px; width: auto; color: var(--warn); }
.nx-sec-status.is-ok .ic { color: var(--blue); }
.nx-share__lic .ic, .nx-share__aic .ic { font-size: 16px; }
.nx-share__more summary .ic { font-size: 12px; transition: transform .2s var(--ease); }
.nx-share__more[open] summary .ic { transform: rotate(180deg); }
.nx-chip .ic { font-size: 10px; width: auto; }
.nx-planc li .ic { font-size: 12px; color: var(--blue); margin-top: 3px; width: auto; }
.nx-pro__pic .ic { font-size: 18px; }
.nx-ib--open .ic { transition: transform .2s var(--ease); }
.nx-row.is-open .nx-ib--open .ic, .nx-lrow.is-open .nx-ib--open .ic { transform: rotate(180deg); }

/* no glows, no shadows on buttons and covers */
.nx-new__btn, .nx-bigplay, .nx-card__play, .nx-q__go, .nx-play, .nx-btn, .nx-file__play,
.nx-cover, .nx-rh__art, .nx-player__art, .nx-share__art, .nx-pro__pic, .nx-me { box-shadow: none !important; }
.nx-new__btn:hover { transform: none; }
.nx-search { box-shadow: inset 0 0 0 1px var(--line); }
.nx-search:focus-within, .nx-in:focus, .nx-handle__in:focus-within { box-shadow: inset 0 0 0 1px var(--blue-line) !important; }
.nx-in { box-shadow: inset 0 0 0 1px var(--line); }
.nx-in:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.nx-me:hover, .nx-me[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--blue-line) !important; }
.nx-pop, .nx-tray, .modal__panel, .toast { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.nx-group, .nx-fs { border-color: var(--line); }
.nx-danger { border-color: rgba(255, 138, 138, 0.12); }
.nx-sec-status { border-color: rgba(242, 196, 109, 0.12); }
.nx-sec-status.is-ok { border-color: rgba(124, 196, 255, 0.16); }
.nx-planc.is-cur { border-color: rgba(124, 196, 255, 0.22); }
.nx-codes { border-color: rgba(124, 196, 255, 0.18); }
/* the quiet disc for songs with no cover (the inline empty url() would hide it otherwise) */
.nx-q__art[style*="url('')"], .nx-row__art[style*="url('')"], .nx-share__art[style*="url('')"], .nx-player__art:not([style*="url("]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6865' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E") !important;
  background-color: var(--empty) !important; background-position: center !important; background-size: 40% !important; background-repeat: no-repeat !important;
}

/* ==========================================================================
   Menus: smaller, on their own slate colour.
   ========================================================================== */
.nx-pop {
  min-width: 188px; padding: 5px; border-radius: 14px;
  background: var(--menu); border: 1px solid rgba(var(--fg-rgb), 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.nx-pop--right { min-width: 214px; top: 44px; }
.nx-pop button, .nx-pop a { gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 700; }
.nx-pop button:hover, .nx-pop a:hover { background: rgba(var(--fg-rgb), 0.07); }
.nx-pop .ic { font-size: 13px; width: 16px; color: var(--t3); }
.nx-pop hr { margin: 5px 6px; border-top-color: rgba(var(--fg-rgb), 0.06); }
.nx-pop__who { padding: 8px 10px 10px; margin-bottom: 5px; border-bottom-color: rgba(var(--fg-rgb), 0.06); }
.nx-pop__who b { font-size: 14px; }
.nx-pop__who span { font-size: 12px; }
.nx-pop [data-act="sign-out"] { color: var(--t2); }

/* ---- appearance picker in settings ---- */
.nx-theme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 6px 0 18px; }
.nx-theme button { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--s2); text-align: left; font-weight: 800; font-size: 13.5px; color: var(--t2); box-shadow: inset 0 0 0 1px var(--line); }
.nx-theme button:hover { color: var(--t1); }
.nx-theme button.is-on { color: var(--t1); box-shadow: inset 0 0 0 2px var(--blue); }
.nx-theme__pv { height: 64px; border-radius: 9px; position: relative; overflow: hidden; }
.nx-theme__pv::before { content: ""; position: absolute; left: 8px; top: 10px; width: 34%; height: 8px; border-radius: 4px; background: currentColor; opacity: .5; }
.nx-theme__pv::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 10px; height: 18px; border-radius: 6px; background: currentColor; opacity: .14; }
.nx-theme__pv--dark { background: #07090a; color: #f4f6f5; }
.nx-theme__pv--light { background: #f5f7f8; color: #0d1417; box-shadow: inset 0 0 0 1px rgba(13, 20, 23, .08); }
.nx-theme__pv--auto { background: linear-gradient(115deg, #07090a 0 50%, #f5f7f8 50% 100%); color: #7cc4ff; }

/* ==========================================================================
   Day: the same calm, in daylight. Chosen in Settings › Account.
   ========================================================================== */
:root:root[data-theme="light"] {
  color-scheme: light;
  --fg-rgb: 13, 20, 23;
  --bg-rgb: 245, 247, 248;
  --on-t1: #ffffff;
  --empty: #e9edf0;
  --menu: #ffffff;
  --bg: #f5f7f8;
  --side: #eef1f3;
  --s1: #ffffff;
  --s2: #f0f3f5;
  --s3: #e6eaed;
  --t1: #0d1417;
  --t2: #3c4a50;
  --t3: #67747a;
  --t4: #9aa5a9;
  --blue: #1f7ae0;
  --blue-2: #186bc6;
  --blue-ink: #ffffff;
  --blue-soft: rgba(31, 122, 224, 0.1);
  --blue-line: rgba(31, 122, 224, 0.32);
  --good: #1f9d63;
  --warn: #b7791f;
  --bad: #d64545;
  --line: rgba(13, 20, 23, 0.06);
  --line-2: rgba(13, 20, 23, 0.1);
  --border: rgba(13, 20, 23, 0.06);
  --border-subtle: rgba(13, 20, 23, 0.045);
  --border-strong: rgba(13, 20, 23, 0.1);
  --surface-panel: #ffffff; --surface-1: #ffffff; --surface-2: #f0f3f5; --surface-3: #e6eaed;
  --text-primary: #0d1417; --text-secondary: #3c4a50; --text-tertiary: #67747a; --text-quaternary: #9aa5a9;
  --accent: #1f7ae0; --accent-fg: #ffffff; --accent-soft: rgba(31, 122, 224, 0.1);
}
:root[data-theme="light"] .nx-new__btn { background: var(--t1); color: #fff; }
:root[data-theme="light"] .nx-new__btn:hover { background: #1d2a30; }
:root[data-theme="light"] .nx-brand img, :root[data-theme="light"] .nx-load__mark { filter: invert(1); }
:root[data-theme="light"] .nx-rh__bg { opacity: .22; }
:root[data-theme="light"] .nx-rh::after { background: linear-gradient(180deg, rgba(245, 247, 248, .1), var(--bg)); }
:root[data-theme="light"] .nx-cover, :root[data-theme="light"] .nx-rh__art { box-shadow: 0 0 0 1px rgba(13, 20, 23, .06) !important; }
:root[data-theme="light"] .toast { background: #0d1417; color: #fff; }
:root[data-theme="light"] .toast--error { background: #fdecec; color: #8a1f1f; box-shadow: inset 0 0 0 1px rgba(214, 69, 69, .25), 0 14px 40px rgba(0, 0, 0, .12); }
:root[data-theme="light"] .toast__action { color: #9ad2ff; }
:root[data-theme="light"] .nx-pop, :root[data-theme="light"] .nx-tray, :root[data-theme="light"] .modal__panel { box-shadow: 0 14px 40px rgba(13, 20, 23, .14); }
:root[data-theme="light"] .modal__scrim { background: rgba(13, 20, 23, .35); }
:root[data-theme="light"] .nx-drop { background: rgba(245, 247, 248, .8); }
:root[data-theme="light"] .switch__track { background: rgba(13, 20, 23, .16); }
:root[data-theme="light"] .nx-range span { background: var(--t1); }
:root[data-theme="light"] .nx-share__sel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1417' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="light"] .nx-codes__grid code { background: rgba(255, 255, 255, .7); }
:root[data-theme="light"] .nx-card__play, :root[data-theme="light"] .nx-q__go, :root[data-theme="light"] .nx-bigplay { color: #fff; }
:root[data-theme="light"] .nx-play { background: var(--t1); color: #fff; }

/* theme switch inside the account menu */
.nx-pop__theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 10px; font-size: 13.5px; font-weight: 700; }
.nx-pop__theme > span { display: inline-flex; align-items: center; gap: 10px; }
.nx-mini-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(var(--fg-rgb), 0.06); }
.nx-pop .nx-mini-seg button { width: auto; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 800; color: var(--t3); }
.nx-pop .nx-mini-seg button:hover { background: transparent; color: var(--t1); }
.nx-pop .nx-mini-seg button.is-on { background: var(--s3); color: var(--t1); }
:root[data-theme="light"] .nx-pop .nx-mini-seg button.is-on { background: #fff; box-shadow: 0 1px 3px rgba(13, 20, 23, .12); }

/* nothing playing yet: no player bar at all */
.nx-player.is-empty { display: none !important; }

/* ==========================================================================
   Now playing: opened from the song in the player bar.
   ========================================================================== */
.nx-player__now { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 6px 10px 6px 6px; margin-left: -6px; border-radius: 12px; text-align: left; color: inherit; transition: background .15s; }
.nx-player__now:hover { background: rgba(var(--fg-rgb), 0.05); }
.nx-player__now .nx-player__meta { display: grid; min-width: 0; }
.nx-player__title, .nx-player__sub { display: block; }
.nx-player__more { font-size: 11px; color: var(--t4); opacity: 0; transition: opacity .15s, transform .2s var(--ease); }
.nx-player__now:hover .nx-player__more, .nx-player__now[aria-expanded="true"] .nx-player__more { opacity: 1; }
.nx-player__now[aria-expanded="true"] .nx-player__more { transform: rotate(180deg); }
.nx-player__now[aria-expanded="true"] { background: rgba(var(--fg-rgb), 0.06); }

.nx-now {
  position: fixed; top: 0; right: 0; bottom: 84px; z-index: 40; width: 360px;
  overflow-y: auto; padding: 16px 20px 24px;
  background: var(--side); border-left: 1px solid var(--line);
  animation: nx-now-in .25s var(--ease);
  scrollbar-width: thin; scrollbar-color: rgba(var(--fg-rgb), .14) transparent;
}
@keyframes nx-now-in { from { opacity: 0; transform: translateX(16px); } }
body.has-now .nx-main { margin-right: 360px; }
.nx-now__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 800; font-size: 14px; color: var(--t2); }
.nx-now__art { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--empty); position: relative; }
.nx-now__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-now__art .nx-cover__empty .ic { font-size: 56px; }
.nx-now__t { margin-top: 16px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.nx-now__s { margin-top: 4px; color: var(--t3); font-weight: 700; font-size: 14px; }
.nx-now__s a { color: var(--t2); }
.nx-now__s a:hover { color: var(--t1); text-decoration: underline; }
.nx-now__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.nx-now__box { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.nx-now__box h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.nx-now__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.nx-now__facts div { min-width: 0; }
.nx-now__facts dt { font-size: 11.5px; font-weight: 800; color: var(--t4); text-transform: uppercase; letter-spacing: .05em; }
.nx-now__facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; color: var(--t1); overflow-wrap: anywhere; }
.nx-now__note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--t2); font-weight: 600; }
.nx-now__vers { display: grid; gap: 2px; }
.nx-now__v { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-align: left; color: var(--t2); }
.nx-now__v:hover { background: rgba(var(--fg-rgb), 0.05); color: var(--t1); }
.nx-now__v.is-on { color: var(--blue); background: var(--blue-soft); }
.nx-now__vp { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--fg-rgb), 0.07); }
.nx-now__vp .ic { font-size: 10px; margin-left: 2px; width: auto; }
.nx-now__v.is-on .nx-now__vp { background: transparent; }
.nx-now__v .eq { display: inline-flex; }
.nx-now__vl { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.nx-now__vw { font-size: 12px; color: var(--t3); font-weight: 600; white-space: nowrap; }

@media (max-width: 1100px) { body.has-now .nx-main { margin-right: 0; } .nx-now { box-shadow: -20px 0 50px rgba(0, 0, 0, .35); } }
@media (max-width: 860px) {
  .nx-player__now { padding: 0; margin: 0; }
  .nx-player__now:hover, .nx-player__now[aria-expanded="true"] { background: transparent; }
  .nx-player__more { display: none; }
  .nx-now { left: 0; width: auto; bottom: 0; top: 0; z-index: 650; border-left: 0; padding: calc(12px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); animation: nx-now-up .28s var(--ease); }
  @keyframes nx-now-up { from { opacity: 0; transform: translateY(24px); } }
  .nx-now__art { max-width: 320px; margin: 0 auto; }
}

/* ==========================================================================
   Seek and volume: press, drag, hover, scroll. Thin at rest, a knob on hover.
   ========================================================================== */
.nx-range { height: 4px; border-radius: 4px; background: rgba(var(--fg-rgb), 0.12); touch-action: none; outline: none; transition: height .12s var(--ease); }
.nx-range::before { inset: -9px 0; }
.nx-range:hover, .nx-range.is-dragging, .nx-range:focus-visible { height: 6px; }
.nx-range > span { border-radius: 4px; background: var(--t1); transition: background .12s; }
.nx-range:hover > span, .nx-range.is-dragging > span, .nx-range:focus-visible > span { background: var(--blue); }
.nx-range > span::after { width: 13px; height: 13px; margin-top: -6.5px; right: -6.5px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transform: scale(.6); transition: opacity .12s, transform .12s var(--ease); }
.nx-range:hover > span::after, .nx-range.is-dragging > span::after, .nx-range:focus-visible > span::after { opacity: 1; transform: scale(1); }
.nx-range:focus-visible { box-shadow: 0 0 0 2px var(--blue-line); }

/* the little label above a bar */
.nx-range__tip {
  position: absolute; bottom: calc(100% + 12px); left: 0; z-index: 2;
  transform: translateX(-50%) translateY(4px); padding: 3px 7px; border-radius: 7px;
  background: var(--menu); color: var(--t1); border: 1px solid rgba(var(--fg-rgb), .07);
  font-style: normal; font-size: 11.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s var(--ease);
}
.nx-range__tip.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* volume */
.nx-player__end { gap: 4px; }
.nx-vol { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 2px; border-radius: 999px; }
.nx-vol__btn { width: 34px; height: 34px; color: var(--t2); }
.nx-vol__btn:hover { color: var(--t1); }
.nx-vol__btn .ic { font-size: 15px; width: 18px; }
.nx-range--vol { width: 104px; flex: none; }
.nx-vol.is-muted .nx-vol__btn { color: var(--t3); }
.nx-vol.is-muted .nx-range--vol > span { background: transparent; }

:root[data-theme="light"] .nx-range > span::after { box-shadow: 0 1px 4px rgba(13, 20, 23, .3); }

/* ==========================================================================
   A notch smaller everywhere: calmer, more room for the music.
   ========================================================================== */
body { font-size: 14px; }

/* frame */
.nx { grid-template-columns: 224px minmax(0, 1fr); }
.nx-side { padding: 16px 10px 12px; gap: 4px; }
.nx-brand { font-size: 15px; padding: 2px 10px 12px; gap: 9px; }
.nx-brand img { width: 22px; height: 22px; }
.nx-new { padding: 0 4px 8px; }
.nx-new__btn { height: 40px; padding: 0 18px 0 14px; border-radius: 14px; font-size: 14px; gap: 8px; }
.nx-nav a, .nx-side__link { height: 38px; padding: 0 12px; gap: 12px; font-size: 14px; border-radius: 10px; }
.nx-nav .ic, .nx-side__link .ic { font-size: 15px; }
.nx-nav__gap { height: 10px; }
.nx-store { padding: 8px 12px 10px; }
.nx-store__txt { font-size: 12px; margin-top: 7px; }
.nx-top { padding: 12px 28px; }
.nx-search { height: 40px; max-width: 480px; padding: 0 14px; font-size: 14px; }
.nx-me { width: 32px; height: 32px; }
.nx-pop--right { top: 40px; }
.nx-view { padding: 6px 28px 40px; }

/* type */
.nx-h1 { margin: 14px 0 4px; font-size: clamp(24px, 2.6vw, 32px); }
.nx-h2 { font-size: 17px; }
.nx-sub { font-size: 13.5px; }
.nx-sec { margin-top: 30px; }
.nx-sec__head { margin-bottom: 12px; }

/* buttons */
.nx-btn { height: 36px; padding: 0 15px; font-size: 13px; gap: 7px; }
.nx-btn .ic { font-size: 12.5px; }
.nx-ib { width: 32px; height: 32px; }
.nx-ib .ic { font-size: 13.5px; }
.nx-pill { height: 22px; font-size: 11.5px; padding: 0 9px; }
.nx-chip { height: 20px; font-size: 11px; padding: 0 7px; }

/* covers and tiles */
.nx-grid { grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)); gap: 20px 16px; }
.nx-card { padding: 10px; margin: -10px; border-radius: 16px; }
.nx-cover { border-radius: 10px; }
.nx-card__t { margin-top: 10px; font-size: 14px; }
.nx-card__s { font-size: 12.5px; }
.nx-card__play { width: 40px; height: 40px; right: 8px; bottom: 8px; }
.nx-card__play .ic { font-size: 14px; }
.nx-quick { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.nx-q { height: 56px; gap: 12px; border-radius: 10px; }
.nx-q__art { width: 56px; height: 56px; }
.nx-q__t { font-size: 14px; }
.nx-q__s { font-size: 12px; }
.nx-q__go { width: 32px; height: 32px; }
.nx-q__go .ic { font-size: 12px; }

/* release page */
.nx-rh { margin: -6px -28px 0; padding: 32px 28px 22px; gap: 24px; }
.nx-rh__art { width: 188px; height: 188px; border-radius: 12px; }
.nx-rh__title { font-size: clamp(28px, 4.2vw, 52px); margin: 6px 0 8px; }
.nx-rh__kind { font-size: 12.5px; }
.nx-rh__meta { font-size: 13px; }
.nx-bar { padding: 14px 0 6px; gap: 10px; }
.nx-bigplay { width: 48px; height: 48px; }
.nx-bigplay .ic { font-size: 18px; }
.nx-seg button { height: 30px; padding: 0 14px; font-size: 13px; }

/* song lists and files */
.nx-lh { height: 34px; font-size: 11px; }
.nx-lh, .nx-row { grid-template-columns: 36px minmax(0, 1fr) 140px 100px 56px 36px; gap: 10px; padding: 0 12px; }
.nx-list--songs .nx-lh, .nx-list--songs .nx-row { grid-template-columns: 36px minmax(0, 1.4fr) minmax(0, 1fr) 100px 56px 36px; }
.nx-row { height: 52px; }
.nx-row__art { width: 36px; height: 36px; border-radius: 5px; }
.nx-row__t { font-size: 14px; }
.nx-row__s, .nx-row__c, .nx-row__d { font-size: 12.5px; }
.nx-files { padding: 4px 12px 14px 58px; }
.nx-files__head { font-size: 12.5px; padding: 6px 0 8px; }
.nx-files__head .nx-btn { height: 30px; font-size: 12.5px; padding: 0 12px; }
.nx-file { min-height: 46px; padding: 5px 9px; gap: 10px; grid-template-columns: 30px minmax(0, 1fr) auto auto; }
.nx-file__play { width: 30px; height: 30px; }
.nx-file__t { font-size: 13.5px; }
.nx-file__s, .nx-file__when { font-size: 12px; }
.nx-file__acts .nx-btn { height: 28px; font-size: 12px; padding: 0 11px; }

/* forms and settings */
.nx-in { height: 40px; font-size: 13.5px; padding: 0 12px; border-radius: 10px; }
.nx-f > span { font-size: 12px; }
.nx-fs { padding: 18px; gap: 12px 14px; border-radius: 16px; }
.nx-fs__t { font-size: 15px; }
.nx-set { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; margin-top: 20px; }
.nx-set__nav a { height: 38px; font-size: 13.5px; padding: 0 12px; gap: 10px; }
.nx-set__body { gap: 18px; max-width: 720px; }
.nx-group { padding: 4px 18px; border-radius: 16px; }
.nx-group__head { padding: 14px 0 4px; }
.nx-group__head h2 { font-size: 15px; }
.nx-group__head p { font-size: 12.5px; }
.nx-srow { min-height: 60px; gap: 12px; padding: 10px 0; }
.nx-srow__i { width: 32px; height: 32px; border-radius: 9px; }
.nx-srow__i .ic { font-size: 13.5px; }
.nx-srow__t { font-size: 14px; }
.nx-srow__d { font-size: 12.5px; }
.nx-srow--sub { padding-left: 44px; }
.nx-pro__pic { width: 72px; height: 72px; }
.nx-pro__name { font-size: 19px; }
.nx-plan-now__name { font-size: 24px; }
.nx-planc { padding: 16px 14px; }
.nx-planc__price { font-size: 21px; }
.nx-theme__pv { height: 54px; }

/* player */
.nx-player { height: 74px; padding: 0 16px; gap: 16px; }
.nx-player__art { width: 46px; height: 46px; border-radius: 7px; }
.nx-player__title { font-size: 13.5px; }
.nx-player__sub { font-size: 12px; }
.nx-player__ctrl { gap: 12px; }
.nx-play { width: 34px; height: 34px; }
.nx-play .ic { font-size: 13px; }
.nx-player__ctrl .nx-ib .ic { font-size: 13.5px; }
.nx-player__bar { font-size: 11.5px; max-width: 520px; }
.nx-player__mid { gap: 4px; }
.nx-range--vol { width: 92px; }
.nx-vol__btn { width: 30px; height: 30px; }
.nx-vol__btn .ic { font-size: 13.5px; }
.nx-now { bottom: 74px; width: 330px; padding: 14px 18px 22px; }
body.has-now .nx-main { margin-right: 330px; }
.nx-now__t { font-size: 20px; }

/* panels and popups */
.nx-share .nx-share__panel { width: min(480px, 100%); }
.nx-share__t { font-size: 16.5px; }
.nx-share__art { width: 44px; height: 44px; }
.nx-share__link .nx-btn { height: 34px; }
.nx-share__link input { font-size: 13.5px; }
.modal__panel { padding: 22px; }
.modal__title { font-size: 17px; }
.modal__sub { font-size: 13.5px; }
.modal .btn { height: 36px; font-size: 13px; padding: 0 15px; }
.toast { font-size: 13px; padding: 10px 16px; border-radius: 12px; }
.toast-host { bottom: 92px; }
.nx-tray { bottom: 90px; width: 340px; }
.nx-empty { padding: 56px 20px; gap: 8px; }
.nx-empty b { font-size: 16px; }

@media (max-width: 1100px) { body.has-now .nx-main { margin-right: 0; } }
@media (max-width: 860px) {
  .nx { grid-template-columns: minmax(0, 1fr); }
  .nx-top { padding: 10px 16px; }
  .nx-view { padding: 4px 16px 28px; }
  .nx-rh { margin: -4px -16px 0; padding: 22px 16px 16px; }
  .nx-rh__art { width: min(220px, 58vw); height: min(220px, 58vw); }
  .nx-lh, .nx-row, .nx-list--songs .nx-row { grid-template-columns: 26px minmax(0, 1fr) 36px; padding: 0 6px; }
  .nx-files { padding: 4px 8px 12px; }
  .nx-file { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .nx-player { height: 60px; padding: 0 8px 0 6px; }
  .nx-player__art { width: 44px; height: 44px; }
  .nx-tabs .ic { font-size: 18px; }
  .nx-set { grid-template-columns: minmax(0, 1fr); }
  .nx-srow--sub { padding-left: 0; }
  .nx-now { bottom: 0; width: auto; }
  .nx-tray { width: auto; bottom: 140px; }
  .toast-host { bottom: 140px; }
}

@media (max-width: 860px) {
  .nx-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nx-q { height: 52px; gap: 10px; }
  .nx-q__art { width: 52px; height: 52px; }
  .nx-q__t { font-size: 13.5px; }
  .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .nx-card__play { width: 38px; height: 38px; }
  .nx-h1 { font-size: 26px; }
}

/* ==========================================================================
   Panels: a dark backdrop, the library and the main view as two rounded
   panels with a small gap, search on top. Smaller corners everywhere.
   ========================================================================== */
:root, :root[data-theme="dark"] {
  --shell: #000000;
  --bg: #0e1113;
  --side: #0e1113;
  --panel-2: #1a1f23;
  --r-panel: 10px;
  --r-art: 6px;
  --r-tile: 6px;
}
:root:root[data-theme="light"] {
  --shell: #e2e7ea;
  --bg: #f8fafb;
  --side: #f8fafb;
  --panel-2: #ffffff;
}
html, body { background: var(--shell); }

.nx {
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top" "side main" "player player";
  column-gap: 8px;
  padding: 0 8px;
  background: var(--shell);
}
.nx.is-mini { grid-template-columns: 72px minmax(0, 1fr); }

/* ---- top bar ---- */
.nx-top {
  grid-area: top; position: static; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 8px 4px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nx-top .nx-brand { padding: 0 8px; justify-self: start; font-size: 15px; }
.nx-top__mid { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nx-home { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--t3); transition: color .15s, transform .15s; }
.nx-home:hover { color: var(--t1); transform: scale(1.04); }
.nx-home.is-on { color: var(--t1); }
.nx-home .ic { font-size: 18px; }
.nx-top .nx-search { flex: 1; max-width: none; height: 44px; background: var(--panel-2); box-shadow: none; }
.nx-top .nx-search:hover { box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), .1); }
.nx-top .nx-search:focus-within { box-shadow: inset 0 0 0 2px var(--t1) !important; }
.nx-top__end { justify-self: end; display: flex; align-items: center; gap: 8px; padding-right: 4px; }
.nx-top .nx-me { width: 40px; height: 40px; box-shadow: 0 0 0 6px var(--panel-2) !important; margin-right: 6px; }

/* ---- the two panels ---- */
.nx-side, .nx-main { border-radius: var(--r-panel); background: var(--bg); border: 0; }
.nx-side { grid-area: side; padding: 8px; gap: 2px; overflow: hidden; min-height: 0; }
.nx-main { grid-area: main; background: linear-gradient(180deg, rgba(124, 196, 255, .07), transparent 320px), var(--bg); }
:root[data-theme="light"] .nx-main { background: linear-gradient(180deg, rgba(31, 122, 224, .06), transparent 320px), var(--bg); }
.nx-view { padding: 10px 24px 36px; }

/* ---- library head ---- */
.nx-side__head { display: flex; align-items: center; gap: 6px; padding: 4px 4px 8px; }
.nx-side__toggle { color: var(--t3); }
.nx-side__toggle:hover { color: var(--t1); }
.nx-side__title { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; color: var(--t2); white-space: nowrap; overflow: hidden; }
.nx-side__head .nx-new { padding: 0; position: relative; }
.nx-side__head .nx-new__btn { height: 32px; padding: 0 14px 0 11px; border-radius: 999px; font-size: 13px; gap: 6px; background: var(--panel-2); color: var(--t1); }
.nx-side__head .nx-new__btn:hover { background: rgba(var(--fg-rgb), .14); }
.nx-side__head .nx-new__btn .ic { font-size: 12px; }
.nx-side__head .nx-pop { left: auto; right: 0; top: 38px; }
:root[data-theme="light"] .nx-side__head .nx-new__btn { background: #fff; color: var(--t1); box-shadow: inset 0 0 0 1px var(--line-2); }

.nx-side .nx-nav { padding: 0 0 6px; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nx-side .nx-nav a { height: 36px; border-radius: 6px; font-size: 13.5px; }
.nx-side .nx-nav__gap { display: none; }

/* ---- library list ---- */
.nx-lib { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: rgba(var(--fg-rgb), .14) transparent; }
.nx-lib__item { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 6px; color: inherit; transition: background .12s; }
.nx-lib__item:hover { background: rgba(var(--fg-rgb), .05); }
.nx-lib__item.is-on { background: rgba(var(--fg-rgb), .08); }
.nx-lib__art { width: 46px; height: 46px; flex: none; border-radius: 4px; background: var(--empty) center / cover no-repeat; display: grid; place-items: center; color: var(--t4); }
.nx-lib__art .ic { font-size: 16px; width: auto; }
.nx-lib__art--ideas { background: linear-gradient(135deg, rgba(124, 196, 255, .35), rgba(124, 196, 255, .08)); color: var(--t1); }
.nx-lib__txt { display: grid; min-width: 0; }
.nx-lib__t { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-lib__t.is-playing { color: var(--blue); }
.nx-lib__s { font-size: 12.5px; color: var(--t3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-side__foot { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.nx-side__foot .nx-side__link { height: 36px; font-size: 13.5px; border-radius: 6px; }

/* ---- folded library: covers only ---- */
.nx.is-mini .nx-side { padding: 8px 6px; }
.nx.is-mini .nx-side__head { flex-direction: column; gap: 8px; padding: 4px 0 8px; }
.nx.is-mini .nx-side__title, .nx.is-mini .nx-lib__txt, .nx.is-mini .nx-side .nx-nav span, .nx.is-mini .nx-side__link span,
.nx.is-mini .nx-store, .nx.is-mini .nx-new__btn span { display: none; }
.nx.is-mini .nx-side__head .nx-new__btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
.nx.is-mini .nx-side__head .nx-pop { left: 0; right: auto; }
.nx.is-mini .nx-side .nx-nav a, .nx.is-mini .nx-side__link { justify-content: center; padding: 0; }
.nx.is-mini .nx-lib__item { justify-content: center; padding: 5px 0; }
.nx.is-mini .nx-lib__art { width: 48px; height: 48px; }

/* ---- smaller corners, everywhere ---- */
.nx-cover, .nx-rh__art, .nx-now__art, .nx-row__art, .nx-share__art, .nx-ap__art, .nx-player__art, .nx-q__art { border-radius: var(--r-art); }
.nx-q { border-radius: var(--r-tile); }
.nx-q__art { border-radius: var(--r-tile) 0 0 var(--r-tile); }
.nx-card { border-radius: 8px; }
.nx-card__play { box-shadow: 0 8px 18px rgba(0, 0, 0, .35) !important; }
.nx-row, .nx-file, .nx-lrow, .nx-trow, .nx-now__v { border-radius: 6px; }
.nx-row.is-open { border-radius: 6px 6px 0 0; }
.nx-files { border-radius: 0 0 8px 8px; }
.nx-group, .nx-fs, .nx-now__box, .nx-planc, .nx-tier, .nx-sec-status, .nx-codes, .nx-totp, .nx-danger { border-radius: 10px; }
.nx-in, .nx-handle__in { border-radius: 6px; }
.nx-pop { border-radius: 8px; padding: 4px; }
.nx-pop button, .nx-pop a { border-radius: 4px; }
.nx-tray, .modal__panel, .nx-share .nx-share__panel { border-radius: 12px; }
.nx-share__link { border-radius: 8px; }
.toast { border-radius: 8px; }
.nx-empty { border-radius: 10px; }
.nx-set__nav a { border-radius: 6px; }
.nx-seg { border-radius: 999px; }

/* ---- player sits on the backdrop ---- */
.nx-player { background: transparent; border-top: 0; height: 72px; padding: 0 8px; }

/* ---- now playing is a third panel ---- */
.nx-now {
  top: 60px; right: 8px; bottom: 72px; width: 320px;
  border-radius: var(--r-panel); border: 0; background: var(--bg);
}
body.has-now .nx-main { margin-right: 328px; }
.nx-settings-sticky { top: 16px; }
.nx-set__nav { top: 16px; }

/* ---- phones: one full-bleed view, no panels ---- */
@media (max-width: 860px) {
  .nx { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "top" "main" "player" "tabs"; padding: 0; column-gap: 0; }
  .nx-top { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; background: var(--bg); }
  .nx-top .nx-brand { display: none; }
  .nx-home { display: none; }
  .nx-top .nx-search { height: 40px; }
  .nx-top .nx-me { width: 34px; height: 34px; box-shadow: none !important; margin-right: 0; }
  .nx-main { border-radius: 0; }
  .nx-view { padding: 4px 16px 28px; }
  .nx-player { margin: 0 8px 6px; background: var(--s2); border-radius: 10px; height: 60px; }
  .nx-tabs { background: var(--bg); }
  .nx-now { top: 0; right: 0; bottom: 0; left: 0; width: auto; border-radius: 0; }
  body.has-now .nx-main { margin-right: 0; }
}
@media (max-width: 1100px) and (min-width: 861px) { body.has-now .nx-main { margin-right: 0; } }

/* nothing playing: keep the same gap under the panels */
.nx:has(.nx-player.is-empty) { padding-bottom: 8px; }
.nx:has(.nx-player.is-empty) .nx-now { bottom: 8px; }
@media (max-width: 860px) { .nx:has(.nx-player.is-empty) { padding-bottom: 0; } }

/* ==========================================================================
   Library panel: resizable, foldable, three views.
   ========================================================================== */
.nx { grid-template-columns: var(--side-w, 300px) minmax(0, 1fr); }
.nx.is-mini { grid-template-columns: 72px minmax(0, 1fr); }
.nx.is-resizing { cursor: col-resize; user-select: none; }
.nx.is-resizing * { cursor: col-resize !important; }
.nx-side { position: relative; }

/* the drag edge: invisible until you are near it */
.nx-resize { position: absolute; top: 0; bottom: 0; right: 0; width: 8px; z-index: 5; cursor: col-resize; outline: none; }
.nx-resize::after { content: ""; position: absolute; top: 12px; bottom: 12px; right: 2px; width: 2px; border-radius: 2px; background: transparent; transition: background .15s; }
.nx-resize:hover::after, .nx-resize:focus-visible::after, .nx.is-resizing .nx-resize::after { background: rgba(var(--fg-rgb), .28); }

/* the title folds the panel too */
.nx-side__title { flex: 1; min-width: 0; text-align: left; padding: 6px 4px; border-radius: 6px; font-weight: 800; font-size: 15px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-side__title:hover { color: var(--t1); }

/* view picker */
.nx-libview { position: relative; }
.nx-pop--libview { left: auto; right: 0; top: 36px; min-width: 160px; }
.nx-pop__label { padding: 6px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--t4); }
.nx-pop--libview button.is-on { color: var(--blue); }
.nx-pop--libview button.is-on .ic { color: var(--blue); }

/* compact: one line, no covers */
.nx-lib.is-compact .nx-lib__item { padding: 6px 8px; gap: 0; }
.nx-lib.is-compact .nx-lib__art { display: none; }
.nx-lib.is-compact .nx-lib__txt { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.nx-lib.is-compact .nx-lib__t { font-size: 13.5px; flex: 0 1 auto; }
.nx-lib.is-compact .nx-lib__s { font-size: 12px; flex: 0 0 auto; }
.nx-lib.is-compact .nx-lib__s::before { content: "· "; }

/* grid: covers in columns */
.nx-lib.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; align-content: start; }
.nx-lib.is-grid .nx-lib__item { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; }
.nx-lib.is-grid .nx-lib__art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; }
.nx-lib.is-grid .nx-lib__art .ic { font-size: 22px; }
.nx-lib.is-grid .nx-lib__t { font-size: 12.5px; }
.nx-lib.is-grid .nx-lib__s { display: none; }

/* folded: covers only, whatever the view */
.nx.is-mini .nx-libview { display: none; }
.nx.is-mini .nx-lib.is-grid { display: block; }
.nx.is-mini .nx-lib.is-compact .nx-lib__art, .nx.is-mini .nx-lib .nx-lib__art { display: grid; width: 48px; height: 48px; aspect-ratio: auto; }
.nx.is-mini .nx-lib .nx-lib__item { flex-direction: row; justify-content: center; padding: 5px 0; }
.nx.is-mini .nx-lib .nx-lib__txt { display: none; }
.nx.is-mini .nx-resize { right: -2px; }

@media (max-width: 860px) { .nx-resize { display: none; } }

.switch input:disabled + .switch__track { opacity: .35; cursor: not-allowed; }
.switch:has(input:disabled) { cursor: not-allowed; }

/* ==========================================================================
   Demos (a label's inbox) and Rooms on a release.
   ========================================================================== */
.nx-nav__out { position: relative; }
.nx-nav__ext { margin-left: auto; font-size: 10px !important; color: var(--t4); }
.nx.is-mini .nx-nav__ext { display: none; }

.nx-demo-link { margin-top: 18px; }
.nx-demo-link .nx-srow--sub { justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; }
.nx-demo-cap { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--t3); }
.nx-demo-cap .nx-in--sm { min-width: 80px; height: 34px; }

.nx-demos { display: grid; gap: 2px; }
.nx-demo { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px; }
.nx-demo:hover, .nx-demo.is-open { background: rgba(var(--fg-rgb), .05); }
.nx-demo.is-open { border-radius: 8px 8px 0 0; }
.nx-demo__play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--fg-rgb), .08); color: var(--t1); }
.nx-demo__play .ic { font-size: 13px; margin-left: 2px; width: auto; }
.nx-demo__play .eq { display: none; }
.nx-demo.is-current .nx-demo__play { background: var(--blue); color: var(--blue-ink); }
.nx-demo.is-current:not(.is-paused) .nx-demo__play .ic { display: none; }
.nx-demo.is-current:not(.is-paused) .nx-demo__play .eq { display: inline-flex; }
.nx-demo.is-current .nx-demo__play .eq i { background: var(--blue-ink); }
.nx-demo__main { min-width: 0; }
.nx-demo__t { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; overflow: hidden; white-space: nowrap; }
.nx-demo__by { color: var(--t3); font-weight: 700; font-size: 13px; }
.nx-demo__s { font-size: 12.5px; color: var(--t3); font-weight: 600; margin-top: 2px; }
.nx-demo__msg { margin-top: 4px; font-size: 13px; color: var(--t2); font-weight: 600; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-demo.is-new .nx-demo__t { color: var(--t1); }
.nx-demo__acts { display: flex; align-items: center; gap: 6px; }
.nx-demo.is-open .nx-demo__acts .nx-ib .ic { transform: rotate(180deg); }
.nx-stars { display: inline-flex; gap: 1px; }
.nx-star { width: 22px; height: 26px; font-size: 16px; line-height: 1; color: rgba(var(--fg-rgb), .18); transition: color .12s, transform .12s; }
.nx-star:hover { transform: scale(1.15); color: var(--warn); }
.nx-star.is-on { color: var(--warn); }
.nx-stars:hover .nx-star.is-on { color: var(--warn); }

.nx-demo__panel { display: grid; gap: 10px; margin: 0 0 8px; padding: 6px 16px 16px 66px; border-radius: 0 0 8px 8px; background: rgba(var(--fg-rgb), .05); }
.nx-demo__who { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--t3); font-weight: 700; }
.nx-demo__who a { color: var(--blue); }
.nx-demo__quick { display: flex; gap: 6px; flex-wrap: wrap; }
.nx-demo__foot { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-demo__sent { padding: 12px 14px; border-radius: 8px; background: var(--blue-soft); }
.nx-demo__sent b { font-size: 12.5px; color: var(--blue); }
.nx-demo__sent p { margin: 4px 0 0; color: var(--t2); font-size: 13px; font-weight: 600; }

.nx-roompick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.nx-roomchip { height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--t2); background: rgba(var(--fg-rgb), .06); box-shadow: inset 0 0 0 1px var(--line); transition: background .12s, color .12s; }
.nx-roomchip:hover { color: var(--t1); }
.nx-roomchip.is-on { background: var(--blue); color: var(--blue-ink); box-shadow: none; }
.nx-roomchip:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 860px) {
  .nx-demo { grid-template-columns: 40px minmax(0, 1fr); }
  .nx-demo .nx-stars, .nx-demo__acts { grid-column: 2; }
  .nx-demo__panel { padding: 6px 12px 14px; }
}

/* phones: one column, whatever width the library had on a big screen */
@media (max-width: 860px) {
  .nx, .nx.is-mini { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 860px) {
  .nx-bar .nx-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nx-bar .nx-seg::-webkit-scrollbar { display: none; }
  .nx-seg button { white-space: nowrap; flex: none; }
}

/* Rooms: confirm rights before going public */
.nx-rights { max-width: 520px; }
.nx-rights__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nx-rights__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.nx-rights__list i { color: var(--blue); font-size: 12px; margin-top: 4px; }
.nx-rights__list b { display: block; font-weight: 800; font-size: 13.5px; color: var(--t1); }
.nx-rights__list span { display: block; font-size: 13px; color: var(--t3); line-height: 1.45; }
.nx-rights__marks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.nx-rights__ok { margin-top: 14px; align-items: flex-start; line-height: 1.45; }
.nx-rights__ok a { color: var(--blue); }
.nx-rights__done { grid-column: 1 / -1; font-size: 12.5px; color: var(--t3); margin-top: 8px; }

/* ================= Colour banners from the cover (no blur, no glow) ================= */
.nx-rh__bg {
  inset: 0 !important; filter: none !important; transform: none !important; opacity: 1 !important;
  background: linear-gradient(180deg, rgb(var(--art-a, 34 46 56)) 0%, rgb(var(--art-b, 20 27 33)) 78%) !important;
  transition: background .5s ease;
}
.nx-rh::after { background: linear-gradient(180deg, transparent 35%, var(--bg) 100%) !important; }
:root[data-theme="light"] .nx-rh__bg {
  background: linear-gradient(180deg, rgb(var(--art-al, 222 232 240)) 0%, rgb(var(--art-bl, 238 243 246)) 78%) !important;
}
:root[data-theme="light"] .nx-rh::after { background: linear-gradient(180deg, transparent 35%, var(--bg) 100%) !important; }

.nx-now { isolation: isolate; overflow-x: hidden; }
.nx-now__tint {
  position: absolute; left: 0; right: 0; top: 0; height: 340px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--art-a, 34 46 56)) 0%, rgb(var(--art-b, 20 27 33) / .6) 55%, transparent 100%);
  border-radius: inherit; transition: background .5s ease;
}
:root[data-theme="light"] .nx-now__tint { background: linear-gradient(180deg, rgb(var(--art-al, 222 232 240)) 0%, rgb(var(--art-bl, 238 243 246) / .6) 55%, transparent 100%); }
.nx-now > :not(.nx-now__tint) { position: relative; z-index: 1; }

/* ================= No glows ================= */
.nx-main, :root[data-theme="light"] .nx-main { background: var(--bg) !important; }
.nx-bigplay, .nx-card__play, .nx-play, .nx-player .nx-pp { box-shadow: none !important; }
.nx-search:focus-within, .nx-in:focus, .nx-handle__in:focus-within, .modal .input:focus, .modal .textarea:focus { box-shadow: inset 0 0 0 1px var(--blue-line) !important; }

/* ================= Menus: small, dark, quiet ================= */
:root { --menu: #111416; --menu-line: rgba(255, 255, 255, .06); --menu-hover: rgba(255, 255, 255, .07); }
:root[data-theme="light"] { --menu: #ffffff; --menu-line: rgba(13, 20, 23, .09); --menu-hover: rgba(13, 20, 23, .05); }
.nx-pop, .ls-menu, .ls-menu__sub {
  background: var(--menu) !important; border: 1px solid var(--menu-line) !important; border-radius: 6px !important;
  padding: 3px !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .45) !important;
}
:root[data-theme="light"] .nx-pop, :root[data-theme="light"] .ls-menu, :root[data-theme="light"] .ls-menu__sub { box-shadow: 0 8px 24px rgba(13, 20, 23, .12) !important; }
.ls-menu { min-width: 168px !important; max-width: 220px !important; }
.ls-menu__sub { min-width: 160px !important; }
.nx-pop button, .nx-pop a, .ls-menu button {
  gap: 9px !important; padding: 6px 8px !important; border-radius: 4px !important;
  font-size: 12.5px !important; font-weight: 600 !important; line-height: 1.2; color: var(--t2);
}
.nx-pop button:hover, .nx-pop a:hover, .ls-menu button:hover, .ls-menu__row.is-open > button { background: var(--menu-hover) !important; color: var(--t1); }
.nx-pop .ic, .ls-menu button .ic { font-size: 11.5px !important; width: 14px !important; text-align: center; color: var(--t3); }
.ls-menu button .fa-chevron-right { font-size: 9px !important; width: auto !important; }
.nx-pop hr, .ls-menu hr { margin: 3px 4px !important; border: 0 !important; border-top: 1px solid var(--menu-line) !important; }

/* ================= Smooth banners: one eased fade + a faint grain (no banding) ================= */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nx-rh__bg {
  --c1: rgb(var(--art-a, 34 46 56)); --c2: rgb(var(--art-b, 20 27 33));
  background: linear-gradient(in oklab 180deg,
    var(--c1) 0%,
    color-mix(in oklab, var(--c1) 70%, var(--c2)) 22%,
    color-mix(in oklab, var(--c2) 85%, var(--bg)) 44%,
    color-mix(in oklab, var(--c2) 55%, var(--bg)) 64%,
    color-mix(in oklab, var(--c2) 25%, var(--bg)) 82%,
    var(--bg) 100%) !important;
}
:root[data-theme="light"] .nx-rh__bg { --c1: rgb(var(--art-al, 222 232 240)); --c2: rgb(var(--art-bl, 238 243 246)); }
.nx-rh__bg::after, .nx-now__tint::after {
  content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none;
}
.nx-rh::after { content: none !important; }

.nx-now__tint {
  --c1: rgb(var(--art-a, 34 46 56)); --c2: rgb(var(--art-b, 20 27 33));
  background: linear-gradient(in oklab 180deg,
    var(--c1) 0%,
    color-mix(in oklab, var(--c2) 80%, var(--bg)) 40%,
    color-mix(in oklab, var(--c2) 35%, var(--bg)) 70%,
    var(--bg) 100%) !important;
}
:root[data-theme="light"] .nx-now__tint { --c1: rgb(var(--art-al, 222 232 240)); --c2: rgb(var(--art-bl, 238 243 246)); }

/* ================= Quieter hovers: a hint, not a block ================= */
:root { --hover: rgba(var(--fg-rgb), .025); --hover-2: rgba(var(--fg-rgb), .045); }
.nx-nav a:hover, .nx-side__link:hover, .nx-card:hover, .nx-row:hover, .nx-file:hover, a.nx-store:hover,
.nx-set__nav a:hover, .nx-lrow:hover, .nx-lrow.is-open, .nx-trow:hover, .nx-player__now:hover, .nx-now__v:hover,
.nx-lib__item:hover, .nx-demo:hover, .nx-demo.is-open, .nx-share__sel:hover, .nx-q:hover,
.ls-track:hover, .ls-artist:hover { background: var(--hover) !important; }
.nx-ib:hover, .modal .modal__close:hover, .nx-btn--ghost:hover { background: var(--hover-2) !important; }
.nx-btn:not(.nx-btn--blue):not(.nx-btn--danger):hover, .ls-chip:hover, .nx-side__head .nx-new__btn:hover { background: rgba(var(--fg-rgb), .09) !important; }
.nx-tier:hover { background: rgba(124, 196, 255, .025) !important; }
:root { --menu-hover: rgba(255, 255, 255, .045); }
:root[data-theme="light"] { --menu-hover: rgba(13, 20, 23, .035); }
.nx-lib__item.is-on, .nx-lib__item[aria-current="page"] { background: rgba(var(--fg-rgb), .05); }

/* ================= Modals: darker, borders barely there ================= */
.modal__scrim { background: rgba(0, 0, 0, .72) !important; }
.modal__panel { background: #0d1012 !important; border: 1px solid rgba(255, 255, 255, .04) !important; box-shadow: 0 24px 70px rgba(0, 0, 0, .6) !important; }
:root[data-theme="light"] .modal__scrim { background: rgba(13, 20, 23, .38) !important; }
:root[data-theme="light"] .modal__panel { background: #ffffff !important; border-color: rgba(13, 20, 23, .06) !important; box-shadow: 0 18px 50px rgba(13, 20, 23, .16) !important; }
.modal .input, .modal .textarea { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
:root[data-theme="light"] .modal .input, :root[data-theme="light"] .modal .textarea { background: rgba(13, 20, 23, .03); box-shadow: inset 0 0 0 1px rgba(13, 20, 23, .08); }

/* ================= Inputs: no outline or ring when clicked ================= */
input:focus, input:focus-visible, textarea:focus, textarea:focus-visible, select:focus, select:focus-visible { outline: none !important; }
.nx-search:focus-within { box-shadow: inset 0 0 0 1px var(--line) !important; }
.nx-top .nx-search:focus-within { box-shadow: none !important; background: rgba(var(--fg-rgb), .09); }
.nx-in:focus, .nx-handle__in:focus-within { box-shadow: inset 0 0 0 1px var(--line) !important; }
.modal .input:focus, .modal .textarea:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05) !important; background: rgba(255, 255, 255, .06); }
:root[data-theme="light"] .modal .input:focus, :root[data-theme="light"] .modal .textarea:focus { box-shadow: inset 0 0 0 1px rgba(13, 20, 23, .08) !important; background: rgba(13, 20, 23, .045); }

/* ================= Round icon buttons: icon dead centre ================= */
.modal .modal__close, .ls-auth__back, .ls-auth__eye { display: grid !important; place-items: center; padding: 0 !important; line-height: 0; }
.modal .modal__close i, .ls-auth__back i, .ls-auth__eye i { display: block; line-height: 1; width: auto; margin: 0; }
.modal .modal__close i::before { display: block; line-height: 1; }

/* Menus: a touch smaller */
.nx-pop button, .nx-pop a, .ls-menu button { font-size: 12px !important; padding: 5px 8px !important; gap: 8px !important; }
.nx-pop .ic, .ls-menu button .ic { font-size: 10.5px !important; width: 13px !important; }
.ls-menu { min-width: 156px !important; }
.ls-menu__sub { min-width: 150px !important; }

.nx-fs[hidden] { display: none !important; }
.nx-soon { max-width: 520px; }
