/* ==========================================================================
   Listener pages, in the 2026 look. Loaded after northlink.css.
   The homepage's night and Nunito, the song's own cover colours as a calm fade behind
   everything, one big cover, one blue play button. Every behaviour comes from
   player.js unchanged: this file only restyles what it draws.
   ========================================================================== */

@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;
}

/* One look for everyone: the night. */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  color-scheme: dark;
  --font-sans: 'Nunito', system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #07090a;
  --surface-1: rgba(17, 21, 24, 0.72);
  --surface-2: #171c20;
  --surface-3: #1d2328;
  --text-primary: #f4f6f5;
  --text-secondary: rgba(244, 246, 245, 0.74);
  --text-tertiary: #8d9895;
  --text-quaternary: #5e6865;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #7cc4ff !important;
  --accent-hover: #9ad2ff !important;
  --accent-fg: #04101f !important;
  --accent-soft: rgba(124, 196, 255, 0.14) !important;
  --ambient-1: transparent;
}
.logo-mark--light { display: none !important; }
.logo-mark--dark { display: inline-block !important; }

html, body { background: var(--bg); }
body { font-family: var(--font-sans); color: var(--text-primary); position: relative; isolation: isolate; }

/* the cover's own colours, as a calm fade behind the card. No blur, no glow. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  --c1: rgb(var(--art-a, 30 42 52)); --c2: rgb(var(--art-b, 16 22 28));
  background:
    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 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(in oklab 180deg, var(--c1) 0%, color-mix(in oklab, var(--c1) 60%, var(--c2)) 25%, var(--c2) 50%, color-mix(in oklab, var(--c2) 45%, #07090a) 75%, #07090a 100%);
  transition: background .6s ease;
}
body::after { content: none; }
.nl__bg--glow, .nl__bg--blur { display: none !important; }
.nl__play { box-shadow: none !important; }

/* ---- the card ---- */
.nl { padding: 40px 20px 24px; }
.nl__card {
  max-width: 440px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface-1);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* every song card stacks the same way: big cover, title, player */
.nl__card--player, .nl__card--poster, .nl__card--minimal, .nl__card--card {
  display: block !important;
  max-width: 440px;
  padding: 28px !important;
  text-align: center;
}
.nl__card--player > *, .nl__card--poster > * { grid-area: auto !important; }

.nl__art { border-radius: 18px; margin-bottom: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); background: var(--surface-2); }
.nl__card > .nl__art:not(.nl__art--round), .nl__card--player > img.nl__art, .nl__card--poster > img.nl__art { width: 100% !important; height: auto !important; aspect-ratio: 1; }
.nl__art--round { width: 120px !important; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 50px rgba(0,0,0,.5); }

.nl__meta { text-align: center; margin-bottom: 20px; }
.nl__title { font-family: var(--font-sans); font-size: clamp(24px, 5vw, 30px) !important; font-weight: 800 !important; letter-spacing: -0.03em; line-height: 1.1; color: var(--text-primary); }
.nl__artist { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--text-secondary); }
.nl__count { color: var(--text-tertiary); font-weight: 600; }

.nl__note-box { text-align: left; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 0; font-weight: 600; color: var(--text-secondary); }
.nl__note-box i { color: var(--accent); }

/* ---- the player ---- */
.nl__player { align-items: center; gap: 14px; margin-bottom: 4px; }
.nl__play { width: 60px; height: 60px; font-size: 18px; box-shadow: 0 12px 30px rgba(124, 196, 255, 0.22); }
.nl__repeat { margin-top: 0; color: var(--text-tertiary); }
.nl__times { font-weight: 700; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.nl__bar { border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.nl__bar-fill { border-radius: 4px; }
.nl__status { font-weight: 600; color: var(--text-tertiary); }

/* ---- versions ---- */
.nl__versions { text-align: left; border-top-color: var(--border); }
.nl__versions-head { font-weight: 800; }
.nl__versions-since { font-weight: 600; }
.nl__version { border-radius: 12px; }
.nl__version-label { font-weight: 800; }
.nl__version-tag { border-radius: 999px; font-weight: 800; background: var(--accent-soft); color: var(--accent); }

/* ---- a release ---- */
.nl__card--wide { max-width: 560px; text-align: left; }
.nl__release-head { align-items: center; gap: 20px; }
.nl__release-head .nl__art--md { width: 132px !important; border-radius: 14px; margin-bottom: 0; }
.nl__release-head .nl__meta { text-align: left; margin-bottom: 0; }
.nl__tracklist { margin-top: 20px; }
.nl__track { border-radius: 12px; }
.nl__track:hover { background: rgba(255, 255, 255, 0.05); }
.nl__track-title { font-weight: 700; }
.nl__track-play { background: rgba(255, 255, 255, 0.08); }
.nl__track.is-playing .nl__track-title, .nl__track.is-current .nl__track-title { color: var(--accent); }
.nl__more { font-weight: 800; border-radius: 999px; }

/* ---- where to listen ---- */
.nl__where { border-top-color: var(--border); }
.nl__where-label { font-weight: 800; color: var(--text-tertiary); }
.nl__where-link { border-radius: 999px; font-weight: 700; background: rgba(255, 255, 255, 0.06); border-color: transparent; }
.nl__where-link:hover { background: rgba(255, 255, 255, 0.1); }
.nl__elsewhere-link { border-radius: 50%; background: rgba(255, 255, 255, 0.07); border-color: transparent; }
.nl__elsewhere-link:hover { background: var(--accent-soft); color: var(--accent); }

/* ---- the artist page ---- */
.nl__card:has(.nl__art--round) { text-align: center; }
.nl__releases { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); text-align: left; }
.nl__rel { display: grid; gap: 2px; align-content: start; color: inherit; text-decoration: none; border-radius: 12px; }
.nl__rel-art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 6px; background: var(--surface-2); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); transition: transform .2s ease; }
a.nl__rel:hover .nl__rel-art { transform: translateY(-2px); }
.nl__rel-t { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl__rel-y { font-size: 12.5px; font-weight: 600; color: var(--text-tertiary); }
.nl__rel-y + .nl__rel-y { margin-top: -1px; }
.nl__with { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--text-tertiary); }
.nl__with a { color: var(--text-secondary); text-decoration: none; }
.nl__with a:hover { text-decoration: underline; }
.nl__rel-h { margin: 28px 0 0; font-size: 13px; font-weight: 700; color: var(--text-tertiary); text-align: left; }
.nl__releases--sub { margin-top: 12px; padding-top: 0; border-top: 0; }

/* ---- the quiet footer ---- */
.nl__foot { padding: 20px 20px 28px; }
.nl__brand { font-size: 13px; font-weight: 600; color: var(--text-tertiary); }
.nl__brand strong { color: var(--text-secondary); font-weight: 800; }

/* the little menu: no theme switch, the page is always night */
.nl__menu-item:has(.fa-circle-half-stroke) { display: none !important; }
.nl__menu-btn { background: rgba(255, 255, 255, 0.06); }

/* gates and messages (passcode, email, link off) */
.nl__card--message .nl__title { font-size: 22px !important; }
.btn { border-radius: 999px; font-weight: 800; }
.btn--primary { background: var(--accent); color: var(--accent-fg); }
input, .input { font-family: var(--font-sans); }

@media (max-width: 560px) {
  .nl { padding: 20px 14px 12px; justify-content: flex-start; }
  .nl__card, .nl__card--player, .nl__card--poster { padding: 20px !important; border-radius: 24px; }
  .nl__release-head { flex-direction: column; align-items: flex-start; }
  .nl__release-head .nl__art--md { width: 100% !important; }
  .nl__releases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* fixes: the title sits clearly under the cover, the artist picture is round */
.nl__card .nl__meta { margin-top: 0 !important; opacity: 1 !important; position: static !important; transform: none !important; }
.nl__card .nl__title { color: var(--text-primary) !important; text-shadow: none !important; }
.nl__card .nl__artist { color: var(--text-secondary) !important; }
.nl__card img.nl__art:not(.nl__art--round):not(.nl__art--md) { margin-bottom: 22px !important; }
.nl__art--round { width: 120px !important; height: 120px !important; border-radius: 50% !important; margin: 0 auto 18px !important; }

/* no glows on buttons and covers, borders barely there */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --border: rgba(255, 255, 255, 0.045);
  --border-subtle: rgba(255, 255, 255, 0.035);
  --border-strong: rgba(255, 255, 255, 0.075);
}
.nl__play, .nl__track-play, .nl__version-play, .nl__menu-btn, .btn { box-shadow: none !important; }
.nl__art, .nl__rel-art, .nl__art--round { box-shadow: none !important; }
.nl__card { border-color: rgba(255, 255, 255, 0.05); box-shadow: none; }
.nl__art--zoom:hover, .nl__art--zoom:focus-visible { box-shadow: none !important; }

/* the ⋮ menu: smaller, on its own slate colour */
.nl__menu-btn { width: 38px !important; height: 38px !important; border-radius: 50%; background: rgba(255, 255, 255, 0.06) !important; border: 0 !important; color: var(--text-tertiary); }
.nl__menu-btn:hover { background: rgba(255, 255, 255, 0.1) !important; color: var(--text-primary); }
.nl__menu-list {
  min-width: 190px !important; padding: 5px !important; border-radius: 14px !important;
  background: #1b2128 !important; border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45) !important;
}
.nl__menu-item { gap: 10px !important; padding: 8px 10px !important; border-radius: 9px !important; font-size: 13.5px !important; font-weight: 700 !important; color: var(--text-primary); }
.nl__menu-item:hover { background: rgba(255, 255, 255, 0.07) !important; }
.nl__menu-item i { font-size: 13px; width: 16px; text-align: center; color: var(--text-tertiary); }
.nl__menu-note { font-size: 12px !important; padding: 6px 10px 4px !important; color: var(--text-tertiary); }

/* ---- player row: play, wave and repeat share one centre line ---- */
.nl__player { display: grid !important; grid-template-columns: 48px minmax(0, 1fr) 36px; align-items: start !important; column-gap: 14px; }
.nl__player .nl__play, .nl__play {
  width: 48px !important; height: 48px !important; margin: 0 !important;
  display: grid; place-items: center; padding: 0; font-size: 16px; line-height: 1;
}
.nl__play i, .nl__track-play i, .nl__version-play i { display: block; line-height: 1; }
.nl__play .fa-play { margin-left: 3px; }
.nl__play .fa-pause { margin-left: 0; }
.nl__scrub { padding-top: 0; }
.nl__wave { height: 48px !important; }
.nl__bar { margin-top: 22px; }
.nl__times { margin-top: 4px; font-size: 12px; }
.nl__repeat { width: 36px !important; height: 36px !important; margin: 6px 0 0 !important; display: grid; place-items: center; font-size: 14px; line-height: 1; border-radius: 50%; }
.nl__repeat:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.nl__repeat[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }

/* ---- small play buttons in lists: the same shape, centred ---- */
.nl__track { grid-template-columns: 20px 32px minmax(0, 1fr) auto; align-items: center; }
.nl__track-play { width: 32px !important; height: 32px !important; display: grid; place-items: center; padding: 0; font-size: 11px; line-height: 1; }
.nl__track-play .fa-play { margin-left: 2px; }
.nl__track-num { text-align: center; }
.nl__version-top { align-items: center; }
.nl__version-play { width: 28px !important; height: 28px !important; display: grid; place-items: center; padding: 0; font-size: 10px; line-height: 1; }
.nl__version-play .fa-play { margin-left: 2px; }
.nl__version-top { grid-template-columns: 28px minmax(0, 1fr) auto auto auto; }
.nl__version-repeat { width: 30px; height: 30px; display: grid; place-items: center; font-size: 12px; line-height: 1; border-radius: 50%; }
.nl__version-repeat:hover { background: rgba(255, 255, 255, 0.06); }

/* ---- the ⋮ button and the artist links: icons dead centre ---- */
.nl__menu-btn, .nl__elsewhere-link { display: grid !important; place-items: center; padding: 0 !important; line-height: 1; }
.nl__elsewhere-link { width: 42px; height: 42px; font-size: 16px; }
.nl__where-link { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }

@media (max-width: 560px) {
  .nl__player { grid-template-columns: 52px minmax(0, 1fr) 36px; }
  .nl__player .nl__play, .nl__play { width: 52px !important; height: 52px !important; }
  .nl__wave { height: 52px !important; }
  .nl__repeat { margin-top: 8px !important; }
}

/* breathing room between the name and the player */
.nl__card .nl__meta { margin-bottom: 24px !important; }
.nl__card .nl__note-box + .nl__player, .nl__card .nl__meta + .nl__player { margin-top: 0; }

/* Menu: small, dark, quiet */
.nl__menu-list { background: #111416 !important; border: 1px solid rgba(255,255,255,.06) !important; border-radius: 6px !important; padding: 3px !important; min-width: 168px !important; box-shadow: 0 10px 28px rgba(0,0,0,.45) !important; }
.nl__menu-item { gap: 9px !important; padding: 6px 8px !important; border-radius: 4px !important; font-size: 12.5px !important; font-weight: 600 !important; }
.nl__menu-item i { font-size: 11.5px !important; width: 14px !important; }
.nl__menu-note { font-size: 11px !important; padding: 5px 8px 3px !important; }
.nl__menu-item { font-size: 12px !important; padding: 5px 8px !important; }
.nl__menu-item i { font-size: 10.5px !important; width: 13px !important; }

/* The cookie box follows the page, which is always dark here. Without this it
   took the light theme's white panel with the dark theme's light text. */
:root, :root[data-theme="dark"], :root[data-theme="light"] { --surface-panel: #0d1012; }
.nwc-banner__panel { background: #0d1012; border-color: rgba(255, 255, 255, .04); }
