/* ============================================================
   Saadi Awaaz · v7.5 — modern dark, mobile-first, tablet-aware
   ============================================================ */

:root {
  --bg:           #0a0a0b;
  --bg-soft:      #0e0e10;
  --surface:      #131316;
  --surface-2:    #1a1a1e;
  --surface-3:    #24242a;
  --border:       #2a2a30;
  --border-soft:  #1f1f24;
  --text:         #f5f5f7;
  --text-mute:    #a1a1a8;
  --text-faint:   #6e6e76;
  --accent:       #ffb547;
  --accent-hi:    #ffc870;
  --accent-soft:  rgba(255, 181, 71, .12);
  --accent-faint: rgba(255, 181, 71, .04);
  --yt:           #ff0033;
  --yt-hi:        #ff3358;
  --danger:       #ef4444;

  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --shadow:       0 30px 60px -20px rgba(0, 0, 0, .6);
  --shadow-glow:  0 10px 30px -8px rgba(255, 181, 71, .35);

  --sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --sidebar-w: 240px;
  --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px));
  --topbar-h: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html {
  /* Keep html as the natural scroll root. Don't put overflow restrictions
     here — combining overflow-x: hidden with overscroll-behavior on the
     same element caused a Chrome-on-Android bug where the page wouldn't
     scroll at all (v7.10 issue: stuck at top of homepage, couldn't reach
     items below the second row). */
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Horizontal-overflow guard: any rogue wide content (long unbroken
     strings, etc.) is clipped instead of forcing a horizontal scroll on
     mobile. */
  overflow-x: clip;
  /* Disable Android Chrome's pull-to-refresh. `contain` (not `none`) keeps
     this targeted to the page-level overscroll without affecting
     overflow behavior. Applied to body only — on html it can interact
     with other root properties and break vertical scrolling on some
     Chrome builds. */
  overscroll-behavior-y: contain;
}

body { min-height: 100vh; }
body.has-player { padding-bottom: 96px; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ============================================================ Login gate */

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(800px 600px at 50% 20%, rgba(255, 181, 71, .08), transparent 70%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate__card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.gate__logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
}

.gate__title {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.gate__sub {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0 0 24px;
}

.gate__input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  outline: 0;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  transition: border-color .15s ease;
}
.gate__input:focus { border-color: var(--accent); }
.gate__input::placeholder { color: var(--text-faint); letter-spacing: 0.2em; }

.gate__btn {
  width: 100%;
  background: var(--accent);
  color: #1a1100;
  border: 0;
  border-radius: var(--radius);
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.gate__btn:hover { background: var(--accent-hi); }
.gate__btn:active { transform: scale(.98); }

.gate__error {
  font-size: 12px;
  color: var(--danger);
  margin: 14px 0 0;
}

/* ============================================================ App shell */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ============================================================ Desktop sidebar */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--accent);
}
.sidebar__brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.navlink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  transition: background .12s, color .12s;
  cursor: pointer;
}
.navlink:hover {
  background: var(--surface-2);
  color: var(--text);
}
.navlink.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.navlink svg { flex-shrink: 0; opacity: .85; }
.navlink__short { display: none; }

.sidebar__foot {
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar__updated {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  line-height: 1.4;
  word-break: break-word;
}

.sidebar__logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.sidebar__logout:hover { color: var(--danger); }

/* ============================================================ Mobile top bar (hidden on desktop) */

.topbar { display: none; }
.tabbar { display: none; }

/* ============================================================ Main */

.main {
  padding: 0 clamp(20px, 4vw, 48px) 80px;
  min-width: 0;
}

/* ============================================================ Sticky search */

.stickyhead {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 24px 0 14px;
  margin: 0 calc(-1 * clamp(20px, 4vw, 48px));
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, var(--bg) 70%, rgba(10, 10, 11, .85) 90%, rgba(10, 10, 11, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.search:focus-within {
  border-color: var(--accent);
  background: var(--surface-2);
}

.search__icon {
  flex-shrink: 0;
  color: var(--text-faint);
}
.search:focus-within .search__icon { color: var(--accent); }

.search__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  min-width: 0;
}
.search__input::placeholder { color: var(--text-faint); }
.search__input::-webkit-search-cancel-button { display: none; }

.search__kbd {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
}
.is-touch .search__kbd { display: none; }
.search:focus-within .search__kbd { display: none; }

.search__clear {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  font-size: 22px;
  line-height: 1;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
}
.search__clear:hover { color: var(--text); }

/* ============================================================ Loading */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px;
  color: var(--text-faint);
  font-size: 13px;
}
.loading__spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ Sections */

.section {
  margin-top: 56px;
  scroll-margin-top: 96px;
}
.section:first-of-type { margin-top: 16px; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section__title {
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.section__title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.section__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ============================================================ Grid + cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border: 0;
  padding: 0;
  color: inherit;
  transition: transform .2s cubic-bezier(.2,.7,.2,1);
}
.card:hover { transform: translateY(-3px); }

.card__cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5);
}

.card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__cover { transform: scale(1.06); }

.card__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(10, 10, 11, .85);
  backdrop-filter: blur(4px);
  color: var(--text);
  border-radius: 999px;
  z-index: 2;
}

.card__badge {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(10, 10, 11, .85);
  backdrop-filter: blur(4px);
  color: var(--accent);
  border-radius: 999px;
  z-index: 2;
}

.card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1100;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: all .2s cubic-bezier(.2,.7,.2,1);
  z-index: 3;
  box-shadow: var(--shadow-glow);
  border: 0;
  cursor: pointer;
}
.card__play svg { width: 20px; height: 20px; margin-left: 1px; }
.card:hover .card__play { opacity: 1; transform: translateY(0) scale(1); }
.card__play:hover { background: var(--accent-hi); transform: scale(1.06) !important; }
.is-touch .card__play { opacity: 1; transform: none; width: 40px; height: 40px; }

.card__meta { padding: 12px 4px 0; }

.card__title {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__artist {
  font-size: 12px;
  color: var(--text-mute);
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card.is-playing .card__title { color: var(--accent); }

.empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-faint);
}

.is-searching .section:not(#searchResults) { opacity: .3; pointer-events: none; }

/* ============================================================ Detail sheet */

.sheet {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 940px;
  width: calc(100% - 32px);
  max-height: 88vh;
  color: var(--text);
}
.sheet::backdrop {
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
}
.sheet[open] { animation: sheetIn .25s cubic-bezier(.2,.7,.2,1); }
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.sheet__inner {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 88vh;
}

.sheet__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(20, 20, 22, .92);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition: all .15s;
}
.sheet__close:hover { background: var(--danger); border-color: var(--danger); }

.sheet__left {
  background: var(--surface-2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.sheet__cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-3);
  flex-shrink: 0;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
}
.sheet__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sheet__leftmeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet__kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2px;
}

.sheet__title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

.sheet__artist {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--text-mute);
}

.sheet__facts {
  display: grid;
  grid-template-columns: 70px 1fr;
  row-gap: 8px;
  column-gap: 12px;
  margin: 0 0 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.sheet__facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 2px;
}
.sheet__facts dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.sheet__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #1a1100;
}
.btn--primary:hover:not(:disabled) { background: var(--accent-hi); }
.btn--primary:disabled { opacity: .4; cursor: not-allowed; }

.btn--yt {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  text-decoration: none;
}
.btn--yt svg { color: var(--yt); transition: color .15s; }
.btn--yt:hover {
  border-color: var(--yt);
  background: rgba(255, 0, 51, .08);
}

.sheet__right {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sheet__tracks h3,
.sheet__downloads h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
}

.tracklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.track {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  transition: background .12s;
}
.track:hover { background: var(--surface-2); }
.track:hover .track__play { color: var(--accent); }

.track__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
.track__title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track__play {
  color: var(--text-mute);
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  transition: color .12s;
}
.track__play svg { width: 14px; height: 14px; }

.track.is-playing { background: var(--accent-soft); }
.track.is-playing .track__title,
.track.is-playing .track__num,
.track.is-playing .track__play { color: var(--accent); }

.sheet__downloads { display: flex; flex-direction: column; }
.dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-top: 6px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: all .15s;
}
.dl-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.dl-row span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ============================================================ Mini player (desktop) */

.player {
  position: fixed;
  bottom: 16px;
  left: calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2);
  transform: translateX(-50%);
  width: min(960px, calc(100vw - var(--sidebar-w) - 32px));
  background: rgba(20, 20, 22, .96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 56px 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  z-index: 50;
  box-shadow: var(--shadow);
  animation: playerIn .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes playerIn {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}

.player__cover-wrap {
  width: 48px; height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
}
.player__cover-wrap img { width: 100%; height: 100%; object-fit: cover; }

.player__expand {
  background: transparent;
  border: 0;
  padding: 0;
  display: contents;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.player__meta { min-width: 0; cursor: pointer; }
.player__title {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__title:hover { color: var(--accent); }
.player__artist {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .12s, color .12s;
}
.iconbtn:hover { background: var(--surface-3); color: var(--accent); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn--play {
  background: var(--accent);
  color: #1a1100;
  width: 44px;
  height: 44px;
}
.iconbtn--play:hover { background: var(--accent-hi); color: #1a1100; }
.iconbtn--play svg { width: 22px; height: 22px; }

.player__scrub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  min-width: 0;
}
.scrub {
  position: relative;
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  min-width: 60px;
}
.scrub__buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, .28);
  border-radius: 999px;
  transition: width .25s linear;
  pointer-events: none;
}
.scrub__fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .1s linear;
}
/* Playhead dot at the leading edge of the fill. Sits half-outside on
   the right so the dot tracks the actual playback position visually
   (like Spotify / Android's media notification scrubber). */
.scrub__fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px var(--bg);
}

.player__close {
  width: 28px;
  height: 28px;
  font-size: 18px;
}

/* ============================================================ Mobile now-playing (full-screen) */

.np {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 181, 71, .18), transparent 70%),
    var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--text);
  overflow: hidden;
}
.np.is-open {
  display: flex;
  animation: npUp .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes npUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

.np__chev {
  position: absolute;
  top: 14px;
  left: 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.np__details {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.np__cover-wrap {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 50px auto 28px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.np__cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.np__meta {
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin-bottom: 24px;
}
.np__title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--text);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.np__artist {
  font-size: 15px;
  color: var(--text-mute);
  margin: 0;
}

.np__scrub {
  width: 100%;
  max-width: 420px;
  margin-bottom: 28px;
}
.np__scrub .scrub { height: 5px; }
/* Slightly larger playhead dot on the fullscreen player — touch target. */
.np__scrub .scrub__fill::after {
  width: 14px;
  height: 14px;
  right: -7px;
}
.np__times {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 6px;
}

.np__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
}
.np__btn {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .1s;
}
.np__btn:active { transform: scale(.94); }
.np__btn--play {
  background: var(--accent);
  color: #1a1100;
  width: 68px; height: 68px;
}

.np__yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.np__yt svg { color: var(--yt); }
.np__yt:hover { border-color: var(--yt); background: rgba(255, 0, 51, .08); }

/* ============================================================ TABLET (720–1024px) */

@media (max-width: 1024px) {
  :root { --sidebar-w: 76px; }

  .sidebar {
    padding: 18px 10px;
    gap: 14px;
  }
  .sidebar__brand { padding: 0; justify-content: center; }
  .sidebar__brand-name { display: none; }
  .navlink {
    flex-direction: column;
    gap: 4px;
    padding: 10px 6px;
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
  }
  .navlink__full { display: none; }
  .navlink__short {
    display: block;
    font-size: 10px;
    line-height: 1.2;
  }
  .navlink svg { opacity: 1; }
  .sidebar__updated { display: none; }
  .sidebar__logout {
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
  }
  .sidebar__logout span { font-size: 10px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}

/* ============================================================ SHEET smaller screens — single column */

@media (max-width: 880px) {
  .sheet__inner {
    grid-template-columns: 1fr;
    max-height: 88vh;
  }
  .sheet__left {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border-soft);
  }
  .sheet__cover-wrap {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
  }
  .sheet__leftmeta { flex: 1; min-width: 0; }
  .sheet__facts { grid-template-columns: 80px 1fr; }
  .sheet__title { font-size: 20px; }
}

/* ============================================================ PHONE (< 720px) — bottom tab bar layout */

@media (max-width: 720px) {
  :root { --sidebar-w: 0px; }

  body { padding-bottom: calc(var(--tabbar-h) + 8px); }
  body.has-player { padding-bottom: calc(95px + var(--tabbar-h) + 8px); }

  /* Hide desktop sidebar */
  .sidebar { display: none; }

  /* Show mobile top bar */
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: var(--topbar-h);
    background: rgba(19, 19, 22, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 40;
  }
  .topbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
  }
  .topbar__brand span { color: var(--text); }
  .topbar__logout {
    background: transparent;
    border: 0;
    color: var(--text-mute);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .topbar__logout:hover { color: var(--danger); }

  /* Show bottom tab bar */
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tabbar-h);
    padding: 6px 4px env(safe-area-inset-bottom, 0px);
    background: rgba(19, 19, 22, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-soft);
    z-index: 60;
    box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, .4);
  }
  .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color .12s;
    padding: 4px 2px;
  }
  .tab:hover, .tab:active { color: var(--text); }
  .tab.is-active { color: var(--accent); }
  .tab svg { transition: transform .15s; }
  .tab.is-active svg { transform: scale(1.1); }
  .tab span { line-height: 1; text-align: center; }

  /* Main layout */
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .main { padding: 0 16px 20px; }
  .stickyhead {
    padding: 14px 16px 12px;
    margin: 0 -16px;
    top: var(--topbar-h);
  }
  .search { padding: 11px 14px; }
  .search__input { font-size: 14px; }

  .section { margin-top: 36px; scroll-margin-top: calc(var(--topbar-h) + 72px); }
  .section:first-of-type { margin-top: 6px; }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
  }
  .section__title { font-size: 22px; }
  .section__count { font-size: 10px; opacity: .8; }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .card__title { font-size: 13px; }
  .card__artist { font-size: 11px; }

  /* Sheet full-bleed
     Mobile scroll strategy: put overflow-y: auto on the <dialog> itself,
     not on .sheet__inner. Why: on Android Chrome, when a touch lands on
     a <dialog>, the browser's gesture system looks for the nearest
     scrollable ancestor — and prefers the dialog over its children for
     scroll target selection. If only .sheet__inner has overflow, Chrome
     sees the dialog as non-scrollable, lets the touchmove bubble to
     body, and pull-to-refresh activates instead of scrolling the sheet.
     Putting the scroll on the dialog directly fixes both: real touch-
     scroll works AND pull-to-refresh is suppressed (overscroll-behavior
     contain prevents the bubble). */
  .sheet {
    width: 100%;
    max-width: 100%;
    /* height + max-height are set by the v7.15 rules at the end of this
       file — they vary based on whether the player is visible. */
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* The animation keyframes for the mobile sheet are defined at the
     end of this file (v7.15 block). */
  /* Inner becomes a normal in-flow block — the dialog scrolls, not this. */
  /* Mobile sheet layout v5:
       Top row: cover on the LEFT, info (title/artist/music/lyrics/label/
                released/playtime/buttons) on the RIGHT.
       Below:   track list and downloads span the full width.
     Implemented via a CSS grid on .sheet__inner with .sheet__left occupying
     row 1 column 1 and .sheet__right being split between the row-1 column-2
     (info) and the full-width row 2 (tracks). To do this without rewiring
     the HTML, we keep .sheet__right as the right column and move the tracks
     and downloads out to the bottom via display:contents-like trickery:
     give them their own grid positioning. */
  .sheet__inner {
    border-radius: 20px 20px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: 42% 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 12px;
    min-height: 100%;
    padding: 8px 14px 18px;
  }
  .sheet__left,
  .sheet__right {
    overflow: visible;
    padding: 0;
  }
  .sheet__left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  /* The right side normally holds tracks + downloads. We override here so
     that on mobile, this column gets the leftmeta info instead. The HTML
     structure puts leftmeta inside .sheet__left -- so we move it out via
     `order` and explicit grid placement on its parts. Simplest approach:
     keep leftmeta in .sheet__left but make it visually shift to the right
     column with `grid` only by using contents. Since that's brittle, we
     instead use a flex on .sheet__inner won't work. Pragmatic approach:
     move .sheet__leftmeta into the right column visually by giving it
     position:absolute? Also brittle. Cleanest: use display:contents on
     .sheet__left so its children (.sheet__cover-wrap and .sheet__leftmeta)
     participate directly in the inner grid. Then place them in named
     grid cells. */
  .sheet__left { display: contents; }
  .sheet__cover-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    margin: 0;
    max-width: none;
    align-self: start;
  }
  .sheet__leftmeta {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    gap: 6px;
  }
  /* The .sheet__right contains tracks + downloads -- put it on row 2 across
     both columns so tracks appear directly under cover/info. */
  .sheet__right {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 4px 0 30px;
  }
  /* Tighten typography for the now-narrower right column on mobile */
  .sheet__title { font-size: 18px; line-height: 1.2; margin: 0; }
  .sheet__kicker { font-size: 10px; margin: 0; }
  .sheet__artist { font-size: 13px; margin: 0 0 4px; }
  .sheet__facts {
    grid-template-columns: 64px 1fr;
    row-gap: 4px;
    font-size: 11px;
    margin: 4px 0 6px;
  }
  .sheet__facts dt { font-size: 9px; }
  .sheet__facts dd { font-size: 12px; }
  .sheet__actions {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
  }
  .sheet__actions .btn { padding: 6px 10px; font-size: 12px; }

  /* Close button: pinned to top-right of the sheet via fixed positioning so
     it doesn't scroll away with content. Inside <dialog open>, fixed is
     relative to the viewport, which is what we want for a full-bleed sheet. */
  .sheet__close {
    position: fixed;
    width: 36px;
    height: 36px;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 12px;
    z-index: 6;
  }

  /* Player full-width — two rows on mobile:
       Row 1: [cover + meta] [controls (play / next)]
       Row 2: scrub bar (full width)
     The scrub bar gives a tappable progress indicator + skip control
     directly from the mini-player, mirroring Spotify's mobile mini-player. */
  .player {
    bottom: var(--tabbar-h);
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    padding: 8px 12px;
    /* Fully opaque on mobile — Android WebView doesn't reliably honour
       backdrop-filter, and the old 0.96 alpha let the grid show through. */
    background: #141416;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta    controls"
      "scrub   scrub";
    column-gap: 8px;
    row-gap: 6px;
  }
  .player__expand { grid-area: meta; display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
  .player__controls { grid-area: controls; }
  .player__scrub {
    grid-area: scrub;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-faint);
    padding: 0 2px;
  }
  /* The scrub track gets a touch-friendly hit-area on mobile (extra
     padding-y inside the .scrub element via its own min-height). */
  .player__scrub .scrub { height: 4px; min-height: 4px; }
  @keyframes playerIn { from { transform: translateY(100%); } to { transform: none; } }
  .player__cover-wrap { width: 40px; height: 40px; border-radius: 6px; }
  .player__title { font-size: 13px; }
  .player__artist { font-size: 11px; }
  .player__close { display: none; }
  /* Prev button stays visible on mobile in v7.19 — the 2-row layout
     introduced in v7.17 left room for it. The controls row is
     prev + play + next, tight but tappable. */
  .player__controls { gap: 2px; }
  .player__controls .iconbtn { width: 38px; height: 38px; }
  .player__controls .iconbtn svg { width: 18px; height: 18px; }
  .player__controls .iconbtn--play svg { width: 22px; height: 22px; }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 721px) {
  .topbar { display: none; }
  .tabbar { display: none; }
}

/* ---------------- Artist pages ---------------------------------------- */

.artist__header {
  margin: 32px 0 24px;
  padding: 0 24px;
}
.artist__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mute);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
  margin-bottom: 18px;
}
.artist__back:hover {
  color: var(--text);
  border-color: var(--text-mute);
  background: var(--surface-2);
}
.artist__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.artist__name {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.artist__count {
  color: var(--text-mute);
  font-size: 13px;
  margin: 0;
}

/* The clickable artist name inside the detail sheet & in-flow text. */
.sheet__artist-link,
.sheet__artist a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color .12s, color .12s;
}
.sheet__artist-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* The player & now-playing artist text become clickable links */
.player__artist,
.np__artist {
  cursor: pointer;
}
.player__artist:hover,
.np__artist:hover {
  color: var(--accent);
}

/* Artists list view */
.artists-filter {
  padding: 0 24px;
  margin-bottom: 18px;
}
.artists-filter__input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .12s, background .12s;
}
.artists-filter__input:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}
.artists-filter__input::placeholder {
  color: var(--text-faint);
}

.artists-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px 16px;
  padding: 0 24px 96px;
}
.artist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  transition: background .12s, color .12s;
  cursor: pointer;
  min-width: 0;
}
.artist-row:hover {
  background: var(--surface-2);
}
.artist-row__name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.artist-row__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-left: 12px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .artist__header { margin: 18px 0 18px; padding: 0 16px; }
  .artist__name { font-size: 28px; }
  .artists-filter { padding: 0 16px; }
  .artists-list { padding: 0 16px 96px; grid-template-columns: 1fr; }
}

/* ---------------- Sheet right-swipe affordance ----------------------- */
/* Subtle hint: a small grabber on the left edge of the mobile sheet. */
@media (max-width: 720px) {
  .sheet::before {
    content: "";
    position: sticky;
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    margin: 8px auto -4px;
    top: 0;
    z-index: 5;
    pointer-events: none;
  }
}

/* ---------------- Mobile tabbar: 5 columns squish --------------------- */
@media (max-width: 720px) {
  .tab {
    font-size: 9.5px;
    padding: 4px 0;
    letter-spacing: 0;
  }
  .tab svg { width: 20px; height: 20px; }
}

/* ---------------- v7.15: non-modal sheet + persistent player --------- */

/* Manual backdrop (replaces native ::backdrop, which doesn't render for
   dialog.show()). Sits BELOW the player so the player remains visible
   while the sheet is open. */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 48;  /* below .player (50) and .np (100) */
  animation: backdropIn .2s ease-out;
}
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

/* The dialog is non-modal now; explicit positioning + z-index decides
   stacking. Anchor it below the mini-player so the player stays visible. */
.sheet {
  position: fixed;
  z-index: 49;  /* above backdrop (48), below mini-player (50) */
  margin: 0;
  /* Center on desktop (overridden in mobile media query below). */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.sheet[open] { animation: sheetIn .25s cubic-bezier(.2,.7,.2,1); }
@keyframes sheetIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.98); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Mobile: sheet rises from the bottom and fills the full available screen
   above the tabbar (and above the mini-player when one is showing). The
   previous v3 styles left a large dark gap above the sheet which pushed the
   album cover halfway down the screen — that's gone now. */
@media (max-width: 720px) {
  .sheet {
    /* Override the desktop centering above. */
    top: 0;
    bottom: 0;
    left: 0;
    transform: none;
    /* Take the full viewport height above the tabbar so the cover sits
       near the top of the screen, not floating in the middle. */
    height: calc(100vh - var(--tabbar-h));
    max-height: calc(100vh - var(--tabbar-h));
    /* Allow the status-bar / notch area to receive the sheet background */
    padding-top: env(safe-area-inset-top, 0px);
  }
  /* When the mini-player is showing, the sheet stops above it so the
     player stays visible. Still anchored to the top — only the bottom
     shrinks up. */
  body.has-player .sheet {
    height: calc(100vh - var(--tabbar-h) - 95px - 8px);
    max-height: calc(100vh - var(--tabbar-h) - 95px - 8px);
  }
  .sheet[open] { animation: sheetUp .3s cubic-bezier(.2,.7,.2,1); }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
}

/* Desktop: shrink the centered dialog a bit when the player is up so it
   doesn't visually overlap the mini-player at the bottom. */
@media (min-width: 721px) {
  body.has-player .sheet {
    max-height: 80vh;
    top: calc(50% - 40px);  /* lift slightly so the player has clear space below */
  }
}

/* Highlight the currently-playing track inside the open album sheet's
   tracklist. JS sets .is-playing on the matching .track. */
.track.is-playing {
  background: rgba(255, 181, 71, 0.12);
  border-color: var(--accent);
}
.track.is-playing .track__num,
.track.is-playing .track__title {
  color: var(--accent);
}

/* Hide the now-playing fullscreen overlay's tap-zone behind the sheet
   visually — we don't actually need to do anything code-wise since z-index
   already gives the np overlay priority (100 > 49). */

/* ---------------- v7.16: pagination, browse, mobile last-updated ----- */

/* "Browse all →" link next to section title — replaces the old
   "X in library · search for more" text. */
.section__browse {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color .12s, border-color .12s, background .12s;
}
.section__browse:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-2);
}

/* Pager controls under paginated home sections. */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px 32px;
}
.pager__btn {
  background: transparent;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 38px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--mono);
  cursor: pointer;
  transition: color .12s, background .12s, border-color .12s;
}
.pager__btn:hover:not([disabled]) {
  color: var(--text);
  border-color: var(--text-mute);
  background: var(--surface-2);
}
.pager__btn.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1100;
}
.pager__btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.pager__btn--nav {
  font-family: var(--sans);
  padding: 8px 14px;
}
.pager__ellipsis {
  color: var(--text-faint);
  padding: 0 4px;
  font-size: 13px;
}

/* Mobile: "updated …" text in the top bar. Hidden on desktop. */
.topbar__updated {
  display: none;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: center;
  margin: 0 8px;
}
@media (max-width: 720px) {
  .topbar__updated { display: inline-block; }
  /* On the narrowest devices, the brand text can crowd the timestamp —
     show enough room for "Punjabi Music" but ellipsize beyond. */
  .topbar__brand span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Browse view sentinel (used by IntersectionObserver). Invisible but
   takes up a tiny bit of space so it can be observed. */
.browse-sentinel {
  height: 1px;
  width: 100%;
}

@media (max-width: 720px) {
  .pager { padding: 18px 12px 28px; gap: 4px; }
  .pager__btn { padding: 7px 10px; min-width: 34px; font-size: 12px; }
  .pager__btn--nav { padding: 7px 12px; }
}

/* ---------------- v7.18: shuffle, sort, library-updated banner ------- */

/* Shuffle button — smaller than the main play/prev/next, with an active
   amber tint when shuffle is on. */
.np__btn--small {
  width: 44px;
  height: 44px;
}
.np__btn--small svg { width: 22px; height: 22px; }
.np__btn--spacer {
  background: transparent;
  border: 0;
  visibility: hidden;
}
.shuffle-toggle {
  color: var(--text-mute);
  transition: color .15s;
}
.shuffle-toggle.is-on {
  color: var(--accent);
}
.shuffle-toggle.is-on::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.np__btn { position: relative; }

/* Sort dropdown on the artist page. */
.artist__sortbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.artist__sortlabel {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.artist__sortsel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 28px 7px 12px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23888' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 14px;
}
.artist__sortsel:hover, .artist__sortsel:focus {
  border-color: var(--accent);
  outline: none;
}

/* Library-updated banner — surfaces new content since last visit. */
.lib-updated-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 24px 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.10), rgba(255, 181, 71, 0.04));
  border: 1px solid rgba(255, 181, 71, 0.25);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  animation: bannerSlideIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.lib-updated-banner__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 181, 71, 0.15);
  color: var(--accent);
  flex-shrink: 0;
}
.lib-updated-banner__text {
  flex: 1;
  min-width: 0;
}
.lib-updated-banner__close {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: color .12s, background .12s;
}
.lib-updated-banner__close:hover {
  color: var(--text);
  background: var(--surface-3);
}
@media (max-width: 720px) {
  .lib-updated-banner { margin: 8px 16px 12px; }
}


/* ----- Punjabi Music: top bar stays as brand only (does NOT swap to now-
   playing). The now-playing info already shows in the mini-player at the
   bottom of the screen and the full-screen player overlay, so duplicating
   it in the top bar next to the logout button just clutters the header. ----- */
.topbar__np {
  display: none !important;
}
/* Keep the brand text visible regardless of whether audio is playing */
body.has-player .topbar__brand span {
  display: inline;
}
body.has-player .topbar__brand {
  flex: 0 1 auto;
}

/* Reduce dead space above the search/header section on home view */
.stickyhead {
  padding-top: 8px;
}

/* Make the cover image inside the full player a clear tap target */
.np__cover-wrap {
  cursor: pointer;
}

/* ----- Hide elements per design decisions: ----- */
/* Browse-section header right-side links (now obsolete since we removed Browse all) */
.section__browse { display: none !important; }

/* Crossfade cycler button on the now-playing screen. Same visual weight as
   the shuffle toggle, but with a tiny "Ns" label overlaid when active so
   the user can see at a glance what the current duration is. */
.crossfade-toggle {
  position: relative;
}
.crossfade-toggle__label {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
  line-height: 1;
  pointer-events: none;
  background: rgba(10, 10, 11, 0.7);
  padding: 1px 3px;
  border-radius: 3px;
}
.crossfade-toggle.is-on { color: var(--accent); }
.crossfade-toggle:not(.is-on) .crossfade-toggle__label { display: none; }

/* ------------------------------------------------------------------ */
/* Disable the Android long-press "Copy / Select / magnifier" callout. */
/* Selection stays enabled on the search box and the debug log, where  */
/* you actually need to type or copy.                                  */
/* ------------------------------------------------------------------ */
html, body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable="true"], .search__input {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
