/* Asharas — adaptive Apple Music-inspired midnight glass interface */

/* Layout is theme-independent. Keeping these tokens on the shared root makes
   Light and Dark use exactly the same sidebar, player, and control geometry. */
:root {
  --sidebar-w: 16.25rem;
  --player-h: 5.5rem;
  --tabbar-h: 5rem;
  --control-size: 44px;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"],
:root[data-theme="light"].dim {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1d1d1f;
  --text-dim: #737377;
  --accent: #fa2d48;
  --accent-2: #ff5b71;
  --accent-soft: rgba(250, 45, 72, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-hover: rgba(0, 0, 0, 0.055);
  --glass-border: 1px solid rgba(0, 0, 0, 0.08);
  --glass-blur: blur(36px) saturate(180%);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.1);
}

html {
  min-height: 100%;
  background: #fff;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(48rem 30rem at 86% -10%, rgba(255, 197, 211, 0.48), transparent 68%),
    radial-gradient(42rem 28rem at 18% 34%, rgba(188, 218, 255, 0.38), transparent 70%),
    radial-gradient(38rem 26rem at 78% 82%, rgba(215, 198, 255, 0.3), transparent 72%),
    #f4f5f9;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select { font-family: inherit; }

button,
a,
input,
select { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(250, 45, 72, 0.28);
  outline-offset: 2px;
}

#bg-canvas,
.bg-orb,
#welcome,
.mac-topbar { display: none !important; }

[hidden] { display: none !important; }

.glass {
  border: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* Desktop library shell */
.shell {
  display: block;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0 0 calc(var(--player-h) + 2.5rem) var(--sidebar-w);
  gap: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 1.45rem 0.8rem calc(var(--player-h) + 1rem);
  overflow: hidden auto;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 0;
  background: rgba(250, 250, 252, 0.58) !important;
  box-shadow: 12px 0 40px rgba(58, 63, 92, .06), inset -1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(42px) saturate(190%);
  -webkit-backdrop-filter: blur(42px) saturate(190%);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.45rem;
  margin: 0 0.55rem 1rem;
}

.side-app-icon {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: 0 0 auto;
  border-radius: 0.55rem;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(255, 55, 95, 0.24);
}

.side-brand .brand-name {
  color: #1d1d1f;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.nav-btn {
  width: 100%;
  min-height: 2.45rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0.68rem;
  color: #29292b;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 520;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background 180ms ease, transform 360ms var(--ease-spring);
}

.nav-btn svg {
  width: 1.24rem;
  height: 1.24rem;
  flex: 0 0 auto;
  color: var(--accent);
  stroke-width: 1.8;
}

.nav-btn:hover { background: rgba(0, 0, 0, 0.055); }
.nav-btn:active { transform: scale(0.975); }
.nav-btn.active {
  color: #111113;
  background: rgba(0, 0, 0, 0.075);
  font-weight: 610;
}

.side-search {
  min-height: 2.45rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
  background: rgba(118, 118, 128, 0.11);
}

.side-search:hover,
.side-search.active { color: var(--accent); background: rgba(118, 118, 128, 0.16); }

.nav-section-label {
  margin: 1.1rem 0.72rem 0.32rem;
  color: #8a8a8e;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.nav-label-mobile { display: none; }

.sidebar-now-playing {
  width: calc(100% - 0.2rem);
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  margin: auto 0.1rem 0;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.78rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, transform 360ms var(--ease-spring);
}

.sidebar-now-playing:hover { background: #fff; }
.sidebar-now-playing:active { transform: scale(0.98); }
.sidebar-now-playing img { width: 2.8rem; height: 2.8rem; border-radius: 0.48rem; object-fit: cover; box-shadow: 0 5px 14px rgba(0,0,0,.14); }
.sidebar-now-playing span { display: flex; min-width: 0; flex-direction: column; }
.sidebar-now-playing strong,
.sidebar-now-playing small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-now-playing strong { font-size: 0.77rem; }
.sidebar-now-playing small { color: var(--text-dim); font-size: 0.68rem; }

/* Content layer */
.app {
  min-width: 0;
  width: 100%;
  max-width: 100rem;
  padding: 2rem clamp(1.5rem, 4vw, 4.5rem) 4rem;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0 0 var(--player-h) var(--sidebar-w);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.08));
}

.content-header {
  min-height: 5.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.content-eyebrow {
  display: block;
  margin-bottom: 0.18rem;
  color: #8b8b90;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#content-title {
  color: #161617;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.045em;
}

.account-button {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff7184, #e61e3b);
  box-shadow: 0 7px 18px rgba(250,45,72,.22);
  font-size: 0.82rem;
  font-weight: 720;
  cursor: pointer;
  transition: transform 360ms var(--ease-spring), box-shadow 180ms ease;
}

.account-button:hover { transform: scale(1.06); box-shadow: 0 9px 23px rgba(250,45,72,.3); }
.account-button:active { transform: scale(.94); }

.search-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  max-width: 70rem;
  padding: 0.65rem 0 0.8rem;
  background: linear-gradient(rgba(244,245,249,.84) 72%, rgba(244,245,249,0));
}

.search-box {
  --search-glow-x: 50%;
  --search-glow-y: 50%;
  isolation: isolate;
  position: relative;
  min-height: 3.05rem;
  display: grid;
  grid-template-columns: 1.25rem minmax(5rem, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  border: 1px solid rgba(118,118,128,.12);
  border-radius: 0.82rem;
  background: rgba(118, 118, 128, 0.1);
  box-shadow: none;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.search-box::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(15rem circle at var(--search-glow-x) var(--search-glow-y), rgba(255,82,124,.15), rgba(132,86,210,.055) 38%, transparent 70%);
  transition: opacity 260ms ease;
}

.search-box:hover::before { opacity: .58; }
.search-box.is-pointer-lit::before { opacity: 1; }
.search-box > * { position: relative; z-index: 1; }

.search-box:focus-within {
  border-color: rgba(250,45,72,.4);
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 3px rgba(250,45,72,.1), inset 0 1px rgba(255,255,255,.16), inset 0 -1px rgba(255,255,255,.035);
  transform: none;
}

.search-icon { width: 1.18rem; color: #747478; }
.search-box:focus-within .search-icon { color: var(--accent); filter: none; }
.search-box input { color: #1d1d1f; caret-color: var(--accent); }
.search-box input::placeholder,
#search-input::placeholder { color: #8b8b90; opacity: 1; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.search-mode-control { position: relative; display: flex; align-items: center; min-width: 0; }
.search-mode-control::after { content: ""; position: absolute; right: .66rem; width: .42rem; height: .42rem; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; color: #626267; transform: translateY(-.14rem) rotate(45deg); pointer-events: none; }
.search-mode-select {
  width: 7.1rem;
  min-height: 2.3rem;
  padding: .42rem 1.65rem .42rem .72rem;
  border: 1px solid rgba(118,118,128,.12);
  border-radius: .64rem;
  color: #343438;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
  font: inherit;
  font-size: .78rem;
  font-weight: 620;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 160ms ease, transform 320ms var(--ease-spring), border-color 160ms ease;
}
.search-mode-select:hover { background: rgba(255,255,255,.9); }
.search-mode-select:focus-visible { outline: 2px solid rgba(250,45,72,.42); outline-offset: 2px; }

.search-btn,
.pill-btn {
  min-height: 2.3rem;
  padding: 0.48rem 0.9rem;
  border: 0;
  border-radius: 0.64rem;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 640;
  cursor: pointer;
  transition: transform 360ms var(--ease-spring), filter 160ms ease, background 160ms ease;
}

.search-btn:hover,
.pill-btn:hover { filter: brightness(.96); transform: translateY(-1px); box-shadow: none; }
.search-btn:active,
.pill-btn:active { transform: scale(.96); }
.pill-btn.ghost { color: var(--accent); background: rgba(250,45,72,.09); }

.search-filters {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.62rem;
  padding: 0;
}

.filter-pill {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 999px;
  color: #67676b;
  background: rgba(118,118,128,.1);
  font-size: 0.76rem;
  font-weight: 570;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 320ms var(--ease-spring);
}

.filter-pill:hover { color: #1d1d1f; transform: none; }
.filter-pill.active { color: #fff; border: 0; background: var(--accent); }

.reco-dropdown {
  top: calc(100% - 0.25rem);
  padding: 0.45rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0.9rem;
  background: rgba(252,252,253,.92);
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
}

.reco-item { color: #1d1d1f; border-radius: 0.65rem; }
.reco-item:hover { background: rgba(118,118,128,.11); transform: none; }
.reco-item img { border-radius: .45rem; }
.reco-by { color: var(--text-dim); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 2.1rem;
}

.toolbar .pill-btn { color: var(--accent); background: rgba(250,45,72,.09); }
.toolbar .pill-btn svg { width: 1rem; height: 1rem; }
.lang-wrap {
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  gap: .42rem;
  padding: .35rem .7rem;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: .65rem;
  color: #6d6d72;
  background: rgba(118,118,128,.08);
}
.lang-label { font-size: .7rem; }
#lang-select { color: #29292c; background: transparent; }

.section-head {
  margin: 0 0 0.9rem;
  color: #1d1d1f;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.55rem);
  font-weight: 710;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-transform: none;
}

.head-bar { display: none; }
.row-head { margin-top: 2.6rem; align-items: center; }
.link-btn { color: var(--accent); font-size: .82rem; font-weight: 600; }

.mood-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(8rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.8rem;
}

.mood-card {
  position: relative;
  min-height: 5.4rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  border: 0;
  border-radius: 0.8rem;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.38), transparent 34%),
    linear-gradient(145deg, hsl(var(--tint) 68% 63%), hsl(calc(var(--tint) + 30) 64% 45%));
  box-shadow: none;
  font-size: .92rem;
  font-weight: 680;
  text-align: left;
  cursor: pointer;
  transform: none;
  transition: transform 380ms var(--ease-spring), box-shadow 200ms ease, filter 180ms ease;
}

.mood-card::after {
  content: "";
  position: absolute;
  right: -1.1rem;
  top: -1.1rem;
  width: 4.6rem;
  height: 4.6rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}

.mood-card:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 14px 30px hsla(var(--tint),60%,40%,.2); filter: saturate(1.08); }
.mood-card:active { transform: scale(.98); }
.mood-emoji { display: none; }

.trend-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(9.5rem, 14vw, 12rem);
  gap: 1.05rem;
  overflow-x: auto;
  padding: 0.15rem 0 1.1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.16) transparent;
}

.trend-card.glass,
.trend-card {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-snap-align: start;
  transform: none;
  cursor: pointer;
  transition: transform 380ms var(--ease-spring);
}

.trend-card:hover { transform: translateY(-3px); box-shadow: none; }
.trend-cover-box { overflow: hidden; border-radius: 0.72rem; background: #eeeef0; box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.trend-cover { width: 100%; border-radius: 0; transition: transform 500ms var(--ease-spring), filter 180ms ease; }
.trend-card:hover .trend-cover { transform: scale(1.025); }
.trend-name { margin-top: .62rem; color: #202023; font-size: .84rem; font-weight: 590; }
.trend-by { margin-top: .08rem; color: #77777b; font-size: .75rem; }

.card-play {
  width: 2.55rem;
  height: 2.55rem;
  color: #fff;
  background: rgba(250,45,72,.94);
  box-shadow: 0 8px 20px rgba(250,45,72,.28);
}
.card-queue { color: #fff; background: rgba(29,29,31,.7); }

.pl-create,
.pl-row,
.queue-track {
  border: 1px solid rgba(0,0,0,.07);
  background: rgba(248,248,250,.82);
  box-shadow: none;
}

.creator-section {
  isolation: isolate;
  position: relative;
  min-height: 26rem;
  display: grid;
  grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr);
  gap: 0;
  margin: 4.5rem 0 1.25rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 2rem;
  color: #fff;
  background:
    radial-gradient(55rem 30rem at 6% 12%, rgba(250,45,72,.32), transparent 56%),
    radial-gradient(35rem 28rem at 92% 105%, rgba(98,126,255,.24), transparent 60%),
    linear-gradient(145deg, #15161b 0%, #242027 52%, #111216 100%);
  box-shadow: 0 30px 70px rgba(48,33,51,.22), inset 0 1px rgba(255,255,255,.12);
  animation: card-in 700ms var(--ease-spring) both;
  transition: transform 520ms var(--ease-spring), box-shadow 240ms ease;
}
.creator-section::before { content: ""; position: absolute; z-index: -1; inset: 0; height: auto; border-radius: inherit; background: linear-gradient(118deg, rgba(255,255,255,.14), transparent 24%, transparent 72%, rgba(255,255,255,.06)); opacity: 1; pointer-events: none; }
.creator-section::after { content: ""; position: absolute; z-index: -1; width: 21rem; height: 21rem; right: -8rem; top: -11rem; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(255,255,255,.018), 0 0 0 7rem rgba(255,255,255,.012); }
.creator-section:hover { transform: translateY(-4px); box-shadow: 0 38px 86px rgba(48,33,51,.28), inset 0 1px rgba(255,255,255,.14); }
.creator-visual { position: relative; min-height: 26rem; display: grid; align-content: center; justify-items: center; padding: 2.2rem; border-right: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)); }
.creator-orbit { position: relative; width: 12rem; height: 12rem; display: grid; place-items: center; }
.creator-orbit-line { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: inset 0 0 45px rgba(250,45,72,.08); animation: creator-orbit-spin 14s linear infinite; }
.creator-orbit-line::before { content: ""; position: absolute; inset: 1.15rem; border: 1px dashed rgba(255,255,255,.12); border-radius: inherit; }
.creator-avatar { position: relative; width: 7.2rem; height: 7.2rem; display: grid; place-items: center; flex: none; border: 1px solid rgba(255,255,255,.32); border-radius: 2.15rem; color: #fff; background: linear-gradient(145deg,#ff6a7d,#e51e3c 58%,#a40e30); box-shadow: 0 24px 48px rgba(250,45,72,.34), inset 0 1px 1px rgba(255,255,255,.52); transform: rotate(-7deg); }
.creator-avatar::after { content: ""; position: absolute; inset: .42rem; border: 1px solid rgba(255,255,255,.34); border-radius: 1.72rem; }
.creator-avatar span { font-size: 3.15rem; font-weight: 780; letter-spacing: -.08em; transform: translateX(-.1em) rotate(7deg); }
.creator-orbit-dot { position: absolute; width: .72rem; height: .72rem; border: 2px solid #22232a; border-radius: 50%; background: #ff536b; box-shadow: 0 0 20px rgba(255,83,107,.8); }
.creator-orbit-dot.dot-one { top: 1rem; right: 1.75rem; }
.creator-orbit-dot.dot-two { left: .8rem; bottom: 2.2rem; width: .48rem; height: .48rem; background: #91b2ff; box-shadow: 0 0 18px rgba(145,178,255,.8); }
.creator-wave { height: 2.4rem; display: flex; align-items: center; gap: .26rem; margin-top: 1.45rem; }
.creator-wave span { width: .18rem; height: 30%; border-radius: 99px; background: linear-gradient(#fff,#ff7588); opacity: .7; animation: creator-wave 1.6s ease-in-out infinite alternate; }
.creator-wave span:nth-child(2n) { height: 68%; animation-delay: -1.1s; }
.creator-wave span:nth-child(3n) { height: 100%; animation-delay: -.5s; }
.creator-signoff { margin-top: .75rem; color: rgba(255,255,255,.5); font-size: .7rem; font-weight: 560; line-height: 1.55; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.creator-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem,4.5vw,4.5rem); }
.creator-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: .42rem .72rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.68); background: rgba(255,255,255,.06); font-size: .66rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.creator-tag i { width: .46rem; height: .46rem; border-radius: 50%; background: #ff4a65; box-shadow: 0 0 0 .22rem rgba(255,74,101,.12); }
.creator-name { max-width: 15ch; margin: 0; color: #fff; background: none; font-size: clamp(2rem,4vw,3.7rem); font-weight: 720; line-height: .98; letter-spacing: -.055em; }
.creator-name small { display: block; margin-bottom: .72rem; color: rgba(255,255,255,.48); font-size: .8rem; font-weight: 580; letter-spacing: .12em; text-transform: uppercase; }
.creator-bio { max-width: 62ch; margin: 1.35rem 0 0; color: rgba(255,255,255,.66); font-size: .92rem; line-height: 1.66; }
.creator-chips { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin-top: 1.45rem; }
.creator-chip { display: flex; align-items: center; gap: .55rem; min-height: 2.7rem; padding: .62rem .72rem; border: 1px solid rgba(255,255,255,.1); border-radius: .8rem; color: rgba(255,255,255,.72); background: rgba(255,255,255,.055); font-size: .7rem; }
.creator-chip b { color: #ff7084; font: 650 .6rem/1 var(--font-mono); letter-spacing: .06em; }
.creator-socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; }
.creator-social { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.65rem; padding: .62rem .92rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.07); font-size: .74rem; font-weight: 600; text-decoration: none; transition: transform 340ms var(--ease-spring), color 160ms ease, background 160ms ease; }
.creator-social:hover { transform: translateY(-2px); color: #fff; background: rgba(255,255,255,.14); }

.install-section { position: relative; min-height: 18rem; display: grid; grid-template-columns: minmax(14rem,.68fr) minmax(0,1.32fr); align-items: center; gap: clamp(1.5rem,4vw,4rem); margin: 1.25rem 0 2rem; padding: clamp(1.5rem,4vw,3.5rem); overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: 2rem; background: linear-gradient(135deg,rgba(255,255,255,.74),rgba(250,240,247,.54)); box-shadow: 0 24px 64px rgba(88,67,96,.13), inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(32px) saturate(170%); -webkit-backdrop-filter: blur(32px) saturate(170%); }
.install-section::before { content: ""; position: absolute; width: 20rem; height: 20rem; left: -8rem; bottom: -11rem; border-radius: 50%; background: radial-gradient(circle,rgba(250,45,72,.2),transparent 68%); pointer-events: none; }
.install-art { position: relative; min-height: 12rem; display: grid; place-items: center; }
.install-halo { position: absolute; width: 11rem; height: 11rem; border: 1px solid rgba(250,45,72,.16); border-radius: 50%; box-shadow: 0 0 0 1.8rem rgba(250,45,72,.04), 0 0 0 3.6rem rgba(111,135,255,.025); animation: install-breathe 4.2s ease-in-out infinite; }
.install-icon { position: relative; z-index: 1; width: 7.4rem; height: 7.4rem; display: block; border: 1px solid rgba(255,255,255,.82); border-radius: 2rem; object-fit: cover; box-shadow: 0 24px 42px rgba(250,45,72,.3); }
.install-note { position: absolute; color: rgba(250,45,72,.72); font-size: 1.2rem; animation: install-note 4s ease-in-out infinite; }
.install-note.note-one { top: .7rem; right: 1.1rem; }
.install-note.note-two { bottom: 1.2rem; left: .5rem; animation-delay: -2s; }
.install-copy { position: relative; z-index: 1; }
.install-kicker { color: #f12c49; font-size: .7rem; font-weight: 680; letter-spacing: .14em; text-transform: uppercase; }
.install-copy h2 { margin: .45rem 0 .7rem; color: #1d1d1f; font-size: clamp(2rem,4vw,3.3rem); line-height: 1; letter-spacing: -.05em; }
.install-copy > p { max-width: 58ch; color: #66666c; font-size: .9rem; line-height: 1.55; }
.install-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.35rem; }
.install-button { min-width: 10.8rem; min-height: 3.65rem; display: flex; align-items: center; gap: .72rem; padding: .65rem 1rem; border: 1px solid rgba(0,0,0,.09); border-radius: 1rem; color: #fff; background: #1d1d1f; box-shadow: 0 10px 24px rgba(29,29,31,.16); cursor: pointer; transition: transform 380ms var(--ease-spring), box-shadow 180ms ease, background 180ms ease; }
.install-button:hover { transform: translateY(-3px) scale(1.015); background: #000; box-shadow: 0 16px 30px rgba(29,29,31,.23); }
.install-button:active { transform: scale(.97); }
.install-button svg { width: 1.7rem; height: 1.7rem; flex: none; fill: currentColor; }
.install-button .install-primary-icon { fill: none; stroke: currentColor; }
.install-button span { display: flex; flex-direction: column; align-items: flex-start; font-size: .92rem; font-weight: 650; line-height: 1.15; }
.install-button small { color: rgba(255,255,255,.58); font-size: .58rem; font-weight: 560; letter-spacing: .07em; text-transform: uppercase; }
.install-status { margin-top: .75rem; color: #89898f !important; font-size: .7rem !important; }
.install-dialog { width: min(28rem,calc(100vw - 2rem)); padding: 2rem; border: 1px solid rgba(255,255,255,.82); border-radius: 1.6rem; color: #1d1d1f; background: rgba(249,249,252,.88); box-shadow: 0 30px 80px rgba(24,24,28,.24), inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(34px) saturate(180%); -webkit-backdrop-filter: blur(34px) saturate(180%); }
.install-dialog-close { position: absolute; top: .8rem; right: .8rem; width: 2.35rem; height: 2.35rem; border: 0; border-radius: 50%; color: #5f5f65; background: rgba(118,118,128,.12); font-size: 1.35rem; cursor: pointer; }
.install-dialog-icon { width: 3.5rem; height: 3.5rem; display: block; margin-bottom: 1.2rem; border-radius: 1rem; object-fit: cover; box-shadow: 0 12px 26px rgba(250,45,72,.25); }
.install-dialog-kicker { margin: 0 0 .35rem; color: #f12c49; font-size: .68rem; font-weight: 680; letter-spacing: .13em; text-transform: uppercase; }
.install-dialog h2 { margin: 0; font-size: 1.55rem; line-height: 1.08; letter-spacing: -.035em; }
.install-dialog ol { display: grid; gap: .7rem; margin: 1.25rem 0 1.4rem; padding-left: 1.2rem; color: #5f5f65; font-size: .88rem; line-height: 1.5; }
.install-dialog-done { width: 100%; color: #fff; background: #1d1d1f; }

@keyframes creator-orbit-spin { to { transform: rotate(360deg); } }
@keyframes creator-wave { from { transform: scaleY(.45); opacity: .38; } to { transform: scaleY(1); opacity: .88; } }
@keyframes install-breathe { 50% { transform: scale(1.06); opacity: .68; } }
@keyframes install-note { 50% { transform: translateY(-.55rem) rotate(8deg); opacity: .42; } }

/* Lists, library, and queue */
.list-head { margin-bottom: 1rem; }
.list-head > .pill-btn:first-child { padding-left: 0; color: var(--accent); background: transparent; }
#view-list .list-head .section-head,
#view-queue .list-head .section-head { display: none; }
.results { gap: 0; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; padding: .3rem 0 2rem; }
.artist-card { position: relative; min-height: 5.8rem; display: flex; align-items: center; gap: .85rem; padding: .78rem .9rem; border: 1px solid rgba(255,255,255,.72); border-radius: 1rem; color: #1d1d1f; background: rgba(255,255,255,.48); box-shadow: 0 10px 30px rgba(56,60,91,.08), inset 0 1px rgba(255,255,255,.8); text-align: left; cursor: pointer; animation: card-in 520ms var(--ease-spring) both; transition: transform 360ms var(--ease-spring), background 180ms ease, box-shadow 180ms ease; }
.artist-card:hover { transform: translateY(-3px) scale(1.01); background: rgba(255,255,255,.72); box-shadow: 0 16px 34px rgba(56,60,91,.13); }
.artist-card:active { transform: scale(.98); }
.artist-card-art { position: relative; width: 3.55rem; height: 3.55rem; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; background: linear-gradient(145deg, #ff9eac, #fa2d48 58%, #c21838); box-shadow: inset 0 1px rgba(255,255,255,.6), 0 8px 18px rgba(250,45,72,.22); }
.artist-card:nth-child(3n) .artist-card-art { background: linear-gradient(145deg, #c5d8ff, #6d8de8 58%, #4854aa); }
.artist-card:nth-child(3n+1) .artist-card-art { background: linear-gradient(145deg, #ffdca8, #ef8f72 58%, #a7444b); }
.artist-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.5) 46%, transparent 64%); transform: translateX(-110%); animation: artist-shimmer 1.45s ease-in-out infinite; }
.artist-card-art img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 280ms ease, transform 520ms var(--ease-spring); }
.artist-card.has-portrait .artist-card-art::after { display: none; }
.artist-card.has-portrait .artist-card-art img { opacity: 1; transform: scale(1); }
.artist-card:hover .artist-card-art img { transform: scale(1.055); }
@keyframes artist-shimmer { 60%,100% { transform: translateX(110%); } }
.artist-card-copy { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.artist-card-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; font-weight: 650; }
.artist-card-copy small { color: #77777f; font-size: .76rem; }
.artist-card-arrow { margin-left: auto; color: #9a9aa0; font-size: 1.6rem; font-weight: 350; }
.artist-card.is-loading { opacity: .6; pointer-events: none; }
.track {
  min-height: 4.25rem;
  padding: .48rem .55rem;
  gap: .4rem;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.065);
  border-radius: .6rem;
  color: #1d1d1f;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: background 160ms ease;
}
.track:hover { background: rgba(118,118,128,.08); transform: none; box-shadow: none; }
.track::after { display: none; }
.track-cover { width: 3.1rem; height: 3.1rem; border-radius: .42rem; transform: none; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.track:hover .track-cover { transform: none; }
.track-name { color: #1d1d1f; font-size: .88rem; font-weight: 580; }
.track-by { color: #747478; font-size: .76rem; }
.track-duration { color: #8a8a8e; }
.row-btn,
.queue-remove {
  color: #65656a;
  background: transparent;
  border: 0;
}
.row-btn:hover,
.queue-remove:hover { color: var(--accent); background: rgba(250,45,72,.09); }
.row-btn.lit { color: var(--accent); }
.queue-label { color: #86868b; }
.queue-track { margin-bottom: .5rem; border-radius: .75rem; }
.queue-track.active { border-color: rgba(250,45,72,.22); background: rgba(250,45,72,.06); }
.queue-track-name,
.pl-name { color: #1d1d1f; }
.queue-track-by,
.pl-count,
.empty-note { color: #747478; }

.playlists { gap: .65rem; }
.pl-row { border-radius: .82rem; }
.pl-meta { color: #1d1d1f; }
.mobile-library-shortcuts { display: none; }
.pl-create input,
dialog input { color: #1d1d1f; background: rgba(118,118,128,.1); border-color: rgba(0,0,0,.06); }

/* Compact desktop playback bar */
.player {
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  bottom: 0;
  z-index: 70;
  width: auto;
  min-height: var(--player-h);
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(22rem, 1.35fr) minmax(14rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: .65rem 1.15rem calc(.65rem + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-top: 1px solid rgba(0,0,0,.085);
  border-radius: 0;
  color: #1d1d1f;
  background: rgba(250,250,252,.82) !important;
  box-shadow: 0 -8px 30px rgba(0,0,0,.055);
  backdrop-filter: blur(38px) saturate(190%);
  -webkit-backdrop-filter: blur(38px) saturate(190%);
  transform: translateY(calc(100% + 1rem));
  transition: transform 480ms var(--ease-spring), opacity 180ms ease;
}
.player.visible { transform: translateY(0); }

/* Keep the empty player out of the mobile and desktop layout until playback
   sets aria-hidden to false and adds the visible state. */
.player[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.player[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.player-track { min-width: 0; cursor: pointer; }
.cover-wrap { width: 3.45rem; height: 3.45rem; border-radius: .55rem; box-shadow: 0 5px 16px rgba(0,0,0,.14); }
.cover-sheen { display: none; }
.track-title { color: #1d1d1f; font-size: .84rem; font-weight: 610; }
.track-artist { color: #77777b; font-size: .74rem; }
.player-center { gap: .26rem; }
.controls { gap: .65rem; }
.ctrl-btn,
.mini-btn {
  color: #303033;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ctrl-btn:hover,
.mini-btn:hover { color: #000; background: rgba(118,118,128,.1); transform: scale(1.04); box-shadow: none; }
.ctrl-btn:active,
.mini-btn:active { transform: scale(.9); }
.play-btn { color: #fff; background: #1d1d1f; border-radius: 50%; }
.play-btn:hover { color: #fff; background: #000; }
.mini-btn.lit { color: var(--accent); }
#btn-fav.lit svg { fill: currentColor; }
#btn-dim { display: none; }
.time { color: #838388; font-size: .64rem; }
.seek,
.volume,
#np-seek {
  height: 1rem;
  background: linear-gradient(90deg, #5d5d62 var(--fill, 0%), rgba(118,118,128,.22) var(--fill, 0%));
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: center;
}
.seek::-webkit-slider-thumb,
.volume::-webkit-slider-thumb,
#np-seek::-webkit-slider-thumb { width: .74rem; height: .74rem; background: #fff; border: 1px solid rgba(0,0,0,.14); box-shadow: 0 1px 5px rgba(0,0,0,.18); }
.seek::-moz-range-thumb,
.volume::-moz-range-thumb,
#np-seek::-moz-range-thumb { width: .74rem; height: .74rem; background: #fff; border: 1px solid rgba(0,0,0,.14); box-shadow: 0 1px 5px rgba(0,0,0,.18); }
.vol-icon { color: #717176; }

/* Light utility lyrics sheet */
#lyrics-panel {
  position: fixed;
  right: 1rem;
  top: 1rem;
  bottom: calc(var(--player-h) + 1rem);
  z-index: 82;
  width: min(25rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1.15rem;
  color: #1d1d1f;
  background: rgba(250,250,252,.9);
  box-shadow: 0 24px 70px rgba(0,0,0,.14);
  backdrop-filter: blur(44px) saturate(190%);
  -webkit-backdrop-filter: blur(44px) saturate(190%);
  animation: material-in 420ms var(--ease-spring);
}
.lyrics-head { display: flex; align-items: center; justify-content: space-between; }
.lyrics-head .section-head { margin: 0; }
.lyrics-meta { margin: .35rem 0 .8rem; color: #7d7d82; }
.lyrics-body { gap: 1.1rem; padding: 1.4rem .35rem 45%; }
.lyrics-actions { display: none; }
.lyrics-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); }
.lyric-line { color: rgba(29,29,31,.35); font-size: 1.18rem; font-weight: 640; line-height: 1.34; opacity: 1; }
.lyric-line:hover { color: rgba(29,29,31,.68); }
.lyric-line.active { color: #1d1d1f; transform: translateX(.18rem) scale(1.015); text-shadow: none; }

/* Immersive Now Playing and lyrics */
body.np-open { overflow: hidden; }
.np {
  --np-sheet-y: 0px;
  --np-sheet-opacity: 1;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(22rem, 46%) minmax(0, 54%);
  grid-template-rows: 4.25rem minmax(18rem, 1fr) auto auto auto 1.25rem;
  column-gap: clamp(2rem, 5vw, 6rem);
  padding: 0 clamp(2rem, 4.8vw, 5.5rem) 1rem;
  overflow: hidden;
  color: #fff;
  background: #3a3d44;
  opacity: var(--np-sheet-opacity);
  transform: translate3d(0, var(--np-sheet-y), 0);
  will-change: transform, opacity;
}
.np-backdrop { position: absolute; inset: -10%; opacity: .9; filter: blur(92px) saturate(125%) brightness(.6); transform: scale(1.2); }
.np-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,18,22,.35), rgba(24,29,38,.54)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(4,7,12,.46));
}
.np > *:not(.np-backdrop):not(.np-scrim) { position: relative; z-index: 1; }
.np-top {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: .35rem;
}
.np-top > :last-child { justify-self: end; }
.np-eyebrow { display: flex; flex-direction: column; align-items: center; color: rgba(255,255,255,.9); text-transform: none; letter-spacing: 0; }
.np-eyebrow small { color: rgba(255,255,255,.55); font-size: .58rem; font-weight: 620; letter-spacing: .08em; text-transform: uppercase; }
.np-eyebrow strong { font-size: .75rem; font-weight: 650; }
.np-icon-btn {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  cursor: pointer;
  transition: transform 340ms var(--ease-spring), background 160ms ease;
}
.np-icon-btn:hover { background: rgba(255,255,255,.2); }
.np-icon-btn:active { transform: scale(.88); }
.np-icon-btn svg { width: 1.15rem; height: 1.15rem; }
#np-fav.lit { color: #ff7286; }
#np-fav.lit svg { fill: currentColor; }

.np-flow {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  touch-action: pan-y;
  cursor: grab;
}
.np-flow.is-dragging { cursor: grabbing; }
.np-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(29vw, 27rem);
  max-width: 80%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1rem;
  background: #25272c;
  box-shadow: 0 2rem 5rem rgba(0,0,0,.36);
  cursor: pointer;
  will-change: transform, opacity;
}
.np-card:not(.center) { opacity: 0 !important; pointer-events: none; }
.np-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.np-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg,rgba(255,255,255,.16),transparent 35%); pointer-events: none; }

.np-details {
  grid-column: 1;
  grid-row: 3;
  width: min(100%, 33rem);
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-self: center;
  padding-top: .75rem;
}
.np-meta { flex: 1; min-width: 0; margin: 0; padding: 0; text-align: left; }
.np-title { display: block; overflow: hidden; color: #fff; font-size: 1.05rem; font-weight: 690; letter-spacing: -.025em; white-space: nowrap; text-overflow: ellipsis; }
.np-artist { display: block; overflow: hidden; margin-top: .12rem; color: rgba(255,255,255,.63); font-size: .86rem; white-space: nowrap; text-overflow: ellipsis; }
.np-track-actions { display: flex; }

.np-seek-row {
  grid-column: 1;
  grid-row: 4;
  width: min(100%, 33rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  justify-self: center;
  margin-top: .75rem;
  padding: 0;
}
.np-seek-row .seek { grid-column: 1 / -1; grid-row: 1; width: 100%; background: linear-gradient(90deg,#fff var(--fill,0%),rgba(255,255,255,.25) var(--fill,0%)); background-size: 100% 3px; background-repeat: no-repeat; background-position: center; }
.np-seek-row .time { grid-row: 2; color: rgba(255,255,255,.52); text-align: left; }
.np-seek-row .time:last-child { text-align: right; }
.np-volume-row { display: none; }
.np-controls {
  grid-column: 1;
  grid-row: 5;
  width: min(100%, 33rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  justify-self: center;
  padding: .3rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.np-mini,
.np-ctrl,
.np-play { display: grid; place-items: center; border: 0; color: #fff; background: transparent; cursor: pointer; transition: transform 340ms var(--ease-spring), opacity 160ms ease; }
.np-mini { width: 2.7rem; height: 2.7rem; color: rgba(255,255,255,.66); }
.np-mini.lit { color: #ff7286; }
.np-ctrl { width: 3.3rem; height: 3.3rem; }
.np-play { position: relative; width: 4rem; height: 4rem; border-radius: 50%; }
.np-mini svg { width: 1.18rem; height: 1.18rem; }
.np-ctrl svg { width: 1.85rem; height: 1.85rem; }
.np-play svg { position: absolute; width: 2.4rem; height: 2.4rem; }
.np-controls svg,
.np-play svg,
.np-icon-btn svg,
.np-mini svg,
.np-ctrl svg { display: block; max-width: 2.4rem !important; max-height: 2.4rem !important; }
.np-play .icon-pause { opacity: 0; }
.np.playing .np-play .icon-play { opacity: 0; }
.np.playing .np-play .icon-pause { opacity: 1; }
.np-mini:active,
.np-ctrl:active,
.np-play:active { transform: scale(.88); }

.np-view-toggle {
  position: fixed !important;
  right: 1.2rem;
  bottom: 1rem;
  z-index: 230 !important;
  display: flex;
  gap: .12rem;
  padding: .22rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
}
.np-view-toggle button { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border: 0; border-radius: 50%; color: rgba(255,255,255,.62); background: transparent; cursor: pointer; }
.np-view-toggle button:hover,
.np-view-toggle button.active { color: #fff; background: rgba(255,255,255,.18); }
.np-view-toggle svg { width: 1.12rem; height: 1.12rem; }
.np-output-toggle { display: none !important; }

body.np-open #lyrics-panel:not([hidden]) {
  position: fixed;
  inset: 4.25rem clamp(2rem,4.8vw,5.5rem) 2.5rem calc(46% + 2rem);
  z-index: 220;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: material-in 420ms var(--ease-spring);
}
body.np-open #lyrics-panel .lyrics-head { display: none; }
body.np-open #lyrics-panel .lyrics-meta { position: absolute; top: .4rem; left: 0; margin: 0; color: rgba(255,255,255,.28); font-size: 1.1rem; font-weight: 650; }
body.np-open #lyrics-panel .lyrics-body {
  gap: clamp(2.1rem, 5vh, 4.4rem);
  padding: 6.5rem .4rem 46vh 0;
  scrollbar-width: none;
  mask-image: linear-gradient(180deg,transparent,#000 5rem,#000 calc(100% - 4rem),transparent);
  -webkit-mask-image: linear-gradient(180deg,transparent,#000 5rem,#000 calc(100% - 4rem),transparent);
}
body.np-open #lyrics-panel .lyrics-body::-webkit-scrollbar { display: none; }
body.np-open #lyrics-panel .lyric-line { color: rgba(255,255,255,.32); font-size: clamp(2rem,3vw,3.65rem); font-weight: 720; line-height: 1.14; letter-spacing: -.042em; opacity: 1; transition: color 260ms ease, transform 420ms var(--ease-spring); }
body.np-open #lyrics-panel .lyric-line:hover { color: rgba(255,255,255,.62); }
body.np-open #lyrics-panel .lyric-line.active { color: #fff; transform: translateX(.25rem); text-shadow: 0 12px 38px rgba(0,0,0,.22); }
body.np-open .player { opacity: 0; pointer-events: none; }
body.lyrics-visible .shell { transform: none !important; }

/* Modals use a calm standard material rather than glass everywhere. */
dialog.glass {
  max-width: min(31rem, calc(100vw - 2rem));
  padding: 1.25rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1.15rem;
  color: #1d1d1f;
  background: rgba(252,252,253,.94);
  box-shadow: 0 28px 90px rgba(0,0,0,.2);
  backdrop-filter: blur(44px) saturate(190%);
  -webkit-backdrop-filter: blur(44px) saturate(190%);
}
dialog::backdrop { background: rgba(20,20,23,.24); backdrop-filter: blur(8px); }
.lt-subtitle,
.lt-option-desc { color: #747478; }
.lt-option-icon,
.lt-bar-icon { display: none; }
.lt-option { color: #1d1d1f; background: rgba(118,118,128,.07); border-color: rgba(0,0,0,.06); }
.lt-option:hover { background: rgba(118,118,128,.12); }
.lt-session-bar { color: #1d1d1f; background: rgba(255,255,255,.8); }
.lt-bar-btn { color: #515156; background: rgba(118,118,128,.08); }
.lt-bar-code { color: var(--accent); }
.pl-option { color: #1d1d1f; }
.pl-option:hover { background: rgba(118,118,128,.1); }

#toast {
  color: #fff;
  background: rgba(29,29,31,.88);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

@keyframes material-in {
  from { opacity: 0; transform: translateY(.65rem) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 1101px) and (max-width: 1180px) {
  .player { grid-template-columns: minmax(11rem,1fr) minmax(19rem,1.25fr) auto; }
  .player-right #btn-fav,
  .player-right #btn-download,
  .player-right .vol-icon,
  .player-right .volume { display: none; }
}

/* Compact touch layout: five-tab bar and mini-player. Keep this active on
   tablets and touch-first browsers so the desktop rail can never cover the UI. */
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  :root[data-theme="light"] {
    --player-h: 4.1rem;
    --tabbar-h: 5rem;
  }

  body {
    background:
      radial-gradient(28rem 22rem at 85% 2%, rgba(255,198,214,.44), transparent 70%),
      radial-gradient(26rem 24rem at 5% 38%, rgba(191,220,255,.42), transparent 72%),
      linear-gradient(160deg, #f8f9fc 0%, #f1f4fa 52%, #fff7f9 100%);
    background-attachment: fixed;
  }
  /* Reserve both fixed glass surfaces plus a breathing-space gutter so the
     final content row never disappears behind the player or tab bar. */
  .shell { display: block; padding: 0 0 calc(var(--player-h) + var(--tabbar-h) + 3.4rem); }
  .app { width: 100%; max-width: none; padding: calc(.75rem + env(safe-area-inset-top,0px)) 1rem 2rem; }

  .content-header {
    min-height: 4.8rem;
    margin-bottom: .35rem;
    padding-bottom: .75rem;
  }
  .content-eyebrow { display: none; }
  #content-title { font-size: 2.15rem; }
  .account-button { width: 2.15rem; height: 2.15rem; }

  .sidebar {
    position: fixed !important;
    inset: auto 1rem max(.7rem, env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: calc(100% - 2rem);
    max-width: calc(100vw - 2rem);
    height: calc(4.7rem + env(safe-area-inset-bottom,0px));
    display: block;
    padding: .34rem .42rem env(safe-area-inset-bottom,0px);
    overflow: visible;
    transform: translateZ(0);
    will-change: transform;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 1.45rem;
    background: rgba(255,255,255,.5) !important;
    box-shadow: 0 14px 38px rgba(52,58,88,.16), inset 0 1px rgba(255,255,255,.8);
    backdrop-filter: blur(36px) saturate(190%);
    -webkit-backdrop-filter: blur(36px) saturate(190%);
  }
  .side-brand,
  .nav-section-label,
  .sidebar-now-playing,
  #side-recents,
  #side-listening,
  .desktop-library-link,
  [data-nav="favorites"] { display: none !important; }
  .side-nav { height: 100%; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .1rem; }
  .nav-btn {
    min-width: 0;
    min-height: 3.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding: .25rem .1rem;
    border-radius: 1.05rem;
    color: #77777c;
    font-size: .62rem;
    font-weight: 560;
    text-align: center;
    touch-action: manipulation;
  }
  .nav-btn svg { width: 1.5rem; height: 1.5rem; color: currentColor; }
  .nav-btn:hover { background: transparent; }
  .nav-btn.active { color: var(--accent); background: rgba(255,255,255,.62); box-shadow: 0 5px 16px rgba(64,65,92,.1), inset 0 1px rgba(255,255,255,.8); }
  .side-search { order: 5; margin: 0; background: transparent; }
  [data-nav="home"] { order: 1; }
  #side-new { order: 2; }
  [data-nav="queue"] { order: 3; }
  [data-nav="playlists"] { order: 4; }
  .nav-label-desktop { display: none; }
  .nav-label-mobile { display: inline; }

  body.np-open .sidebar {
    visibility: hidden;
    pointer-events: none;
  }

  .app::before { inset: 0 0 var(--tabbar-h) 0; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.04)); }
  .search-wrap { top: 0; margin: 0 -.15rem; padding-top: .5rem; background: linear-gradient(rgba(247,248,252,.7) 70%,rgba(247,248,252,0)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .search-box { min-height: 2.75rem; overflow: hidden; border-color: rgba(255,255,255,.78); border-radius: .9rem; background: rgba(255,255,255,.5); box-shadow: 0 10px 30px rgba(70,79,112,.1), inset 0 1px rgba(255,255,255,.86); }
  .search-box:focus-within { background: rgba(255,255,255,.76); border-color: rgba(250,45,72,.36); box-shadow: 0 0 0 3px rgba(250,45,72,.09), 0 14px 34px rgba(70,79,112,.13); }
  #search-input { height: 2.1rem; min-height: 0; margin: 0; padding: 0; border: 0; font-size: .82rem; line-height: 1.25rem; vertical-align: middle; appearance: none; -webkit-appearance: none; }
  .search-btn { min-height: 2.05rem; padding-inline: .8rem; }
  .search-box { grid-template-columns: 1.1rem minmax(4.5rem,1fr) auto auto; gap: .42rem; padding-left: .68rem; }
  .search-mode-select { width: 5.9rem; min-height: 2.05rem; padding: .38rem 1.35rem .38rem .58rem; font-size: .7rem; }
  .search-mode-control::after { right: .5rem; width: .36rem; height: .36rem; }
  .toolbar { margin: .1rem 0 1.7rem; flex-wrap: wrap; }
  .toolbar .spacer { display: none; }
  .lang-wrap { margin-left: auto; }

  .section-head { font-size: 1.36rem; }
  .artist-grid { grid-template-columns: 1fr; gap: .65rem; }
  .mood-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-bottom: 2.35rem; }
  .mood-card { min-height: 5.2rem; border-radius: .72rem; }
  .trend-row { grid-auto-columns: 9.4rem; gap: .85rem; margin-right: -1rem; padding-right: 1rem; }
  .trend-cover-box { border-radius: .65rem; }
  .trend-name { font-size: .82rem; }
  .row-head { margin-top: 2.15rem; }
  .creator-section { padding: 1.2rem; }

  .track { min-height: 4.15rem; padding: .45rem .2rem; border-radius: 0; }
  .track-cover { width: 3rem; height: 3rem; }
  .track-duration { display: none; }
  .row-btn { width: 2.35rem; height: 2.35rem; }
  .track .row-btn:not(.row-fav) { display: none; }

  .mobile-library-shortcuts {
    display: flex;
    flex-direction: column;
    margin: -.35rem 0 1.15rem;
    border-top: 1px solid rgba(0,0,0,.08);
  }
  .mobile-library-shortcuts button {
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .25rem .1rem;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    color: var(--accent);
    background: transparent;
    font-size: 1rem;
    font-weight: 520;
    text-align: left;
  }
  .mobile-library-shortcuts span { color: #a0a0a5; font-size: 1.5rem; font-weight: 300; }

  .player {
    left: .55rem;
    right: .55rem;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px) + 1.6rem) !important;
    z-index: 88;
    width: auto;
    height: 4.35rem !important;
    min-height: 4.35rem !important;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: .5rem;
    padding: .38rem .5rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .82rem;
    background: rgba(248,248,250,.88) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    overflow: hidden;
  }
  .player:not(.visible) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + var(--tabbar-h) + 3rem));
  }
  .player.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .player .np-volume-row,
  .player .vol-icon,
  .player .volume,
  .player-right > .vol-icon,
  .player-right > .volume { display: none !important; }
  .player-track { gap: .58rem; }
  .player > .player-track { grid-column: 1; grid-row: 1; }
  .cover-wrap { width: 3.2rem; height: 3.2rem; border-radius: .48rem; }
  .track-title { font-size: .8rem; }
  .track-artist { font-size: .69rem; }
  .player-center { display: block; grid-column: 2; grid-row: 1; }
  .player-center .controls { display: flex; flex-wrap: nowrap; align-items: center; }
  .player-center .controls { gap: .12rem; }
  .player-center #btn-shuffle,
  .player-center #btn-prev,
  .player-center #btn-repeat,
  .player-center .seek-row,
  .player > .seek-row,
  .player-right #btn-queue,
  .player-right #btn-fav,
  .player-right #btn-download,
  .player-right #btn-dim,
  .player-right .vol-icon,
  .player-right .volume { display: none; }
  .player-right { display: flex; grid-column: 3; grid-row: 1; align-items: center; }
  .player-right #btn-lyrics { display: grid; width: 2.6rem; height: 2.6rem; color: var(--accent); border-radius: 50%; background: rgba(250,45,72,.1); }
  .player-right #btn-lyrics svg { width: 1.25rem; height: 1.25rem; }
  .player-right #btn-lyrics:active { transform: scale(.88); background: rgba(250,45,72,.18); }
  .player-center .ctrl-btn { width: 2.65rem; height: 2.65rem; }
  .player-center .play-btn { color: #1d1d1f; background: transparent; }
  .player-center .play-btn:hover { color: #000; background: rgba(118,118,128,.1); }

  .np {
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: calc(.7rem + env(safe-area-inset-top,0px)) 1.25rem calc(1rem + env(safe-area-inset-bottom,0px));
    background: #34373d;
  }
  .np-backdrop { inset: -18%; opacity: 1; filter: blur(72px) saturate(125%) brightness(.58); }
  .np-scrim { background: linear-gradient(180deg,rgba(8,10,14,.25),rgba(12,14,19,.12) 42%,rgba(7,9,13,.56)); }
  .np-top { display: grid; flex: 0 0 3.25rem; padding: 0; }
  .np-icon-btn { width: 2.35rem; height: 2.35rem; }
  .np-track-actions #np-fav { width: 2.8rem; height: 2.8rem; color: rgba(255,255,255,.9); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
  .np-track-actions #np-fav svg { width: 1.35rem; height: 1.35rem; }
  .np-track-actions #np-fav.lit { color: #ff5370; background: rgba(255,255,255,.2); }
  .np-flow { width: 100%; min-height: 0; flex: 1 1 auto; }
  .np-card { width: min(74vw,21rem); max-width: 92%; border-radius: .95rem; box-shadow: 0 2rem 4.5rem rgba(0,0,0,.42); }
  .np-card:not(.center) { opacity: .22 !important; pointer-events: auto; }
  .np-details { width: 100%; flex: 0 0 auto; padding-top: .7rem; }
  .np-title { font-size: 1.05rem; }
  .np-artist { font-size: .84rem; }
  .np-seek-row { width: 100%; flex: 0 0 auto; margin-top: .7rem; }
  .np-controls { width: 100%; flex: 0 0 auto; padding: .55rem 0 .35rem; }
  .np-mini { width: 2.4rem; height: 2.4rem; }
  .np-ctrl { width: 3.2rem; height: 3.2rem; }
  .np-play { width: 3.8rem; height: 3.8rem; }
  .np-view-toggle { position: static !important; align-self: center; margin-top: .25rem; }

  #lyrics-panel { left: .65rem; right: .65rem; top: auto; bottom: calc(var(--player-h) + var(--tabbar-h) + 1.1rem); width: auto; height: 48vh; }
  body.np-open #lyrics-panel:not([hidden]) {
    inset: calc(4.35rem + env(safe-area-inset-top,0px)) 1.05rem calc(5.8rem + env(safe-area-inset-bottom,0px));
    z-index: 240;
    width: auto;
    height: auto;
    display: flex;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.np-open.lyrics-visible .np-flow,
  body.np-open.lyrics-visible .np-details,
  body.np-open.lyrics-visible .np-seek-row,
  body.np-open.lyrics-visible .np-controls { opacity: 1; pointer-events: auto; transform: none; transition: opacity 220ms ease, transform 360ms var(--ease-spring); }
  body.np-open.lyrics-visible .np-flow { display: none; }
  body.np-open.lyrics-visible .np-details { padding-top: .35rem; }
  body.np-open.lyrics-visible #lyrics-panel:not([hidden]) { inset: 11.25rem 1.05rem 22.5rem; min-height: 0; overflow: hidden; pointer-events: none; }
  body.np-open.lyrics-visible #lyrics-panel .lyrics-head,
  body.np-open.lyrics-visible #lyrics-panel .lyrics-body { pointer-events: auto; }
  body.np-open.lyrics-visible #lyrics-panel .lyrics-head,
  body.np-open.lyrics-visible #lyrics-panel .lyrics-meta { display: none; }
  body.np-open #lyrics-panel .lyrics-head { display: flex; flex: 0 0 auto; }
  body.np-open #lyrics-panel .lyrics-head .section-head { color: #fff; font-size: 1rem; }
  body.np-open #lyrics-panel #lyrics-close { color: #fff; background: rgba(255,255,255,.12); }
  body.np-open #lyrics-panel .lyrics-meta { position: static; margin: .1rem 0 .35rem; color: rgba(255,255,255,.45); font-size: .72rem; }
  body.np-open #lyrics-panel .lyrics-body { min-height: 0; gap: 1.35rem; padding: 1.15rem .4rem 1.5rem; overflow-y: auto; mask-image: linear-gradient(180deg,transparent,#000 1.6rem,#000 calc(100% - 2rem),transparent); -webkit-mask-image: linear-gradient(180deg,transparent,#000 1.6rem,#000 calc(100% - 2rem),transparent); }
  body.np-open.lyrics-visible #lyrics-panel .lyrics-body { padding-bottom: 4.2rem; }
  body.np-open #lyrics-panel .lyrics-body { overscroll-behavior: contain; }
  body.np-open #lyrics-panel .lyric-line { font-size: clamp(1.35rem,6.5vw,1.85rem); line-height: 1.22; letter-spacing: -.025em; }
  body.np-open #lyrics-panel .lyric-line.active { transform: translateX(.12rem) scale(1.02); }
  .np-volume-row { display: none !important; }
  body.np-open.lyrics-visible .lyrics-actions { position: absolute; left: 0; right: 0; bottom: -4.2rem; display: flex; justify-content: space-between; pointer-events: auto; }
  .lyrics-action { width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: rgba(255,255,255,.82); background: rgba(255,255,255,.12); box-shadow: 0 10px 24px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.12); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); cursor: pointer; transition: transform 340ms var(--ease-spring), background 180ms ease, color 180ms ease; }
  .lyrics-action svg { width: 1.5rem; height: 1.5rem; }
  .lyrics-action:active { transform: scale(.88); }
  .lyrics-action:hover, .lyrics-action[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,.24); }
  body.lyrics-focus-mode .lyric-line:not(.active) { opacity: .16; filter: blur(2px); }
  body.lyrics-focus-mode .lyric-line.active { text-shadow: 0 8px 28px rgba(255,255,255,.18); }

  /* Lyrics mode uses anchored zones so content can never collide with controls. */
  body.np-open.lyrics-visible .np { display: block; }
  body.np-open.lyrics-visible .np-top {
    position: absolute;
    inset: calc(.7rem + env(safe-area-inset-top,0px)) 1.25rem auto;
    height: 3.25rem;
  }
  body.np-open.lyrics-visible .np-eyebrow { visibility: hidden; }
  body.np-open.lyrics-visible .np-flow {
    position: absolute;
    display: block;
    top: calc(4.75rem + env(safe-area-inset-top,0px));
    left: 1.25rem;
    width: 4.8rem;
    height: 4.8rem;
    min-height: 0;
  }
  body.np-open.lyrics-visible .np-card { width: 4.8rem; max-width: none; border-radius: .72rem; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
  body.np-open.lyrics-visible .np-card:not(.center) { display: none; }
  body.np-open.lyrics-visible .np-details {
    position: absolute;
    top: calc(4.75rem + env(safe-area-inset-top,0px));
    left: 6.75rem;
    right: 1.25rem;
    width: calc(100% - 8rem);
    min-width: 0;
    max-width: none;
    height: 4.8rem;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    justify-self: start;
  }
  body.np-open.lyrics-visible .np-meta {
    width: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  body.np-open.lyrics-visible .np-title,
  body.np-open.lyrics-visible .np-artist {
    width: 100%;
    max-width: 100%;
  }
  body.np-open.lyrics-visible #lyrics-panel:not([hidden]) {
    inset: calc(10rem + env(safe-area-inset-top,0px)) 1.25rem calc(24rem + env(safe-area-inset-bottom,0px));
  }
  body.np-open.lyrics-visible .np-seek-row {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: calc(15.9rem + env(safe-area-inset-bottom,0px));
    width: auto;
    margin: 0;
    max-width: none;
    justify-self: auto;
  }
  body.np-open.lyrics-visible .np-controls {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: calc(10.1rem + env(safe-area-inset-bottom,0px));
    width: auto;
    max-width: none;
    align-self: auto;
    justify-self: auto;
  }
  body.np-open.lyrics-visible .np-volume-row {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: calc(6.5rem + env(safe-area-inset-bottom,0px));
    width: auto;
    margin: 0;
  }
  body.np-open.lyrics-visible .np-view-toggle {
    position: absolute !important;
    left: 50%;
    bottom: calc(5rem + env(safe-area-inset-bottom,0px));
    margin: 0;
    width: min(19rem, calc(100vw - 3rem));
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateX(-50%);
  }
  body.np-open.lyrics-visible .np-view-toggle button { width: 3rem; height: 3rem; background: transparent; }
  body.np-open.lyrics-visible .np-view-toggle button.active { background: rgba(255,255,255,.2); box-shadow: inset 0 1px rgba(255,255,255,.12); }
  body.np-open.lyrics-visible .np-output-toggle { display: grid !important; }
  body.np-open.lyrics-visible .lyrics-actions { bottom: -3.4rem; }

  .creator-section {
    min-height: 0;
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
    padding: 0;
    border-radius: 1.55rem;
    text-align: left;
  }
  .creator-visual { min-height: 15.5rem; padding: 1.5rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .creator-orbit { width: 9.5rem; height: 9.5rem; }
  .creator-avatar { width: 5.8rem; height: 5.8rem; border-radius: 1.7rem; }
  .creator-avatar::after { border-radius: 1.3rem; }
  .creator-avatar span { font-size: 2.55rem; }
  .creator-wave { position: absolute; right: 1.4rem; bottom: 1.2rem; margin: 0; }
  .creator-signoff { position: absolute; left: 1.4rem; bottom: 1.25rem; margin: 0; text-align: left; }
  .creator-info { padding: 1.55rem 1.35rem 1.4rem; }
  .creator-tag { align-self: flex-start; }
  .creator-name { max-width: 12ch; font-size: clamp(2rem,10vw,2.8rem); }
  .creator-bio { font-size: .86rem; }
  .creator-chips { grid-template-columns: 1fr; }
  .creator-chip { min-height: 2.5rem; }
  .creator-socials { justify-content: flex-start; }

  .install-section { grid-template-columns: 1fr; gap: .6rem; margin-bottom: 1rem; padding: 1.45rem 1.25rem 1.35rem; border-radius: 1.55rem; }
  .install-art { min-height: 10rem; }
  .install-halo { width: 8.6rem; height: 8.6rem; }
  .install-icon { width: 5.8rem; height: 5.8rem; border-radius: 1.65rem; font-size: 2.25rem; }
  .install-copy { text-align: center; }
  .install-copy > p { margin-inline: auto; }
  .install-actions { display: grid; grid-template-columns: 1fr; }
  .install-button { width: 100%; justify-content: center; }
  .install-status { text-align: center; }
}

@media (max-width: 390px) {
  .app { padding-inline: .8rem; }
  .trend-row { margin-right: -.8rem; }
  .mood-card { min-height: 4.8rem; }
  .np { padding-inline: 1rem; }
  .np-card { width: min(72vw,18rem); }
  .np-controls { gap: .25rem; }
}

@media (pointer: coarse) {
  .nav-btn,
  .row-btn,
  .mini-btn,
  .ctrl-btn,
  .np-icon-btn,
  .np-mini,
  .np-ctrl,
  .np-play,
  .account-button { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .nav-btn,
  .mood-card,
  .trend-card,
  .player,
  .np-card,
  .lyric-line { transition: opacity 160ms ease, color 160ms ease !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .sidebar,
  .player,
  .search-box,
  .reco-dropdown,
  #lyrics-panel,
  dialog.glass,
  .np-view-toggle {
    background: #f4f4f6 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .np { background: #303238 !important; }
  .np-backdrop { display: none; }
  body.np-open #lyrics-panel { background: transparent !important; }
}

@media (prefers-contrast: more) {
  :root[data-theme="light"] { --text: #000; --text-dim: #505055; }
  .sidebar,
  .player,
  .search-box,
  dialog.glass { border-color: rgba(0,0,0,.28); }
}

/* ==========================================================================
   Midnight Glass — a unified dark Apple Music-inspired application surface.
   Applied when the customer selects Dark on any screen size.
   ========================================================================== */
:root[data-theme="dark"],
:root[data-theme="dark"].dim {
  color-scheme: dark;
  --bg: #07070a;
  --text: #f5f5f7;
  --text-dim: #9a9aa3;
  --accent: #ff375f;
  --accent-2: #ff6482;
  --accent-soft: rgba(255,55,95,.18);
  --glass-bg: rgba(31,31,36,.64);
  --glass-hover: rgba(255,255,255,.085);
  --glass-border: 1px solid rgba(255,255,255,.105);
  --glass-blur: blur(38px) saturate(170%);
  --shadow: 0 22px 64px rgba(0,0,0,.42);
}

html {
  color-scheme: dark;
  background: #07070a;
}

body {
  color: var(--text);
  background:
    radial-gradient(55rem 38rem at 92% -12%, rgba(119,35,68,.28), transparent 68%),
    radial-gradient(46rem 34rem at -8% 42%, rgba(30,61,108,.22), transparent 72%),
    radial-gradient(40rem 32rem at 78% 105%, rgba(78,39,104,.19), transparent 72%),
    linear-gradient(145deg, #08080b 0%, #0d0d12 52%, #08090d 100%);
  background-attachment: fixed;
}

::selection { color: #fff; background: rgba(255,55,95,.42); }

.glass {
  border: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow);
}

.sidebar {
  border-right-color: rgba(255,255,255,.085);
  background: rgba(17,17,21,.72) !important;
  box-shadow: 16px 0 48px rgba(0,0,0,.22), inset -1px 0 rgba(255,255,255,.045);
}

.side-brand .brand-name,
.nav-btn,
#content-title,
.section-head,
.trend-name,
.track,
.track-name,
.queue-track-name,
.pl-name,
.pl-meta,
.artist-card,
.queue-track,
.pl-row,
.pl-create { color: var(--text); }

.nav-btn:hover { background: rgba(255,255,255,.065); }
.nav-btn.active {
  color: #fff;
  background: rgba(255,255,255,.105);
  box-shadow: inset 0 1px rgba(255,255,255,.055);
}
.side-search,
.side-search:hover,
.side-search.active { color: var(--accent); background: rgba(255,255,255,.075); }
.nav-section-label,
.content-eyebrow { color: #85858e; }

.sidebar-now-playing {
  color: var(--text);
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.055);
}
.sidebar-now-playing:hover { background: rgba(255,255,255,.1); }

.app::before {
  background:
    radial-gradient(42rem 32rem at 78% 20%, rgba(73,49,92,.12), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.018), transparent 58%);
}
.content-header { border-bottom-color: rgba(255,255,255,.085); }

.search-wrap {
  background: transparent;
}
.search-box {
  border-color: rgba(255,255,255,.095);
  background: rgba(38,38,44,.68);
  box-shadow: inset 0 1px rgba(255,255,255,.075), inset 0 -1px rgba(255,255,255,.025);
}
.search-box:focus-within {
  border-color: rgba(255,55,95,.46);
  background: rgba(43,43,49,.88);
  box-shadow: 0 0 0 3px rgba(255,55,95,.1), inset 0 1px rgba(255,255,255,.09), inset 0 -1px rgba(255,255,255,.025);
}
.search-icon { color: #9898a1; }
.search-box input { color: var(--text); }
.search-box input::placeholder,
#search-input::placeholder { color: #85858e; }
.search-mode-control::after { color: #a1a1aa; }
.search-mode-select {
  color: #e9e9ed;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.search-mode-select:hover { background: rgba(255,255,255,.12); }
.search-mode-select option,
#lang-select option { color: #f5f5f7; background: #202025; }
.filter-pill { color: #aaaab3; background: rgba(255,255,255,.07); }
.filter-pill:hover { color: #fff; background: rgba(255,255,255,.11); }
.filter-pill.active { color: #fff; background: var(--accent); }

.reco-dropdown {
  border-color: rgba(255,255,255,.1);
  color: var(--text);
  background: rgba(28,28,33,.94);
  box-shadow: 0 24px 64px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.05);
}
.reco-item { color: var(--text); }
.reco-item:hover { background: rgba(255,255,255,.08); }

.toolbar .pill-btn,
.pill-btn.ghost { color: var(--accent); background: rgba(255,55,95,.12); }
.lang-wrap {
  color: #aaaab2;
  border-color: rgba(255,255,255,.085);
  background: rgba(255,255,255,.055);
}
#lang-select { color: #ececf0; }

.trend-cover-box {
  background: #1f1f24;
  box-shadow: 0 12px 28px rgba(0,0,0,.34);
}
.trend-by,
.track-by,
.track-duration,
.queue-track-by,
.pl-count,
.empty-note,
.artist-card-copy small { color: var(--text-dim); }
.trend-row { scrollbar-color: rgba(255,255,255,.18) transparent; }

.pl-create,
.pl-row,
.queue-track {
  border-color: rgba(255,255,255,.085);
  background: rgba(255,255,255,.045);
}
.track {
  border-bottom-color: rgba(255,255,255,.075);
  background: transparent;
}
.track:hover { background: rgba(255,255,255,.06); }
.track.active {
  border-color: rgba(255,55,95,.28);
  background: linear-gradient(90deg, rgba(255,55,95,.15), rgba(255,255,255,.025));
}
.row-btn,
.queue-remove { color: #aaaab2; }
.row-btn:hover,
.queue-remove:hover { color: var(--accent); background: rgba(255,55,95,.12); }
.queue-track.active { border-color: rgba(255,55,95,.28); background: rgba(255,55,95,.1); }
.pl-create input,
dialog input { color: var(--text); border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.065); }

.artist-card {
  border-color: rgba(255,255,255,.105);
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: 0 16px 38px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.055);
}
.artist-card:hover {
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: 0 20px 44px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.075);
}
.artist-card-art { border-color: rgba(255,255,255,.18); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 10px 24px rgba(0,0,0,.3); }
.artist-card-arrow { color: #73737c; }

.install-section {
  border-color: rgba(255,255,255,.105);
  color: var(--text);
  background:
    radial-gradient(28rem 18rem at 8% 100%, rgba(255,55,95,.14), transparent 70%),
    linear-gradient(135deg, rgba(37,37,43,.78), rgba(19,19,23,.7));
  box-shadow: 0 28px 72px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.07);
}
.install-copy h2 { color: #f7f7fa; }
.install-copy > p { color: #aaaab3; }
.install-kicker { color: #ff6482; }
.install-halo { border-color: rgba(255,88,120,.22); }
.install-button {
  color: #f7f7fa;
  border-color: rgba(255,255,255,.115);
  background: rgba(255,255,255,.085);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 14px 30px rgba(0,0,0,.25);
}
.install-button:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 18px 36px rgba(0,0,0,.32); }
.install-button small { color: #9999a2; }
.install-status { color: #85858e !important; }

.player {
  color: var(--text);
  border-top-color: rgba(255,255,255,.1);
  background: rgba(17,17,21,.84) !important;
  box-shadow: 0 -14px 42px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035);
}
.track-title { color: #f5f5f7; }
.track-artist { color: #9999a2; }
.ctrl-btn,
.mini-btn { color: #d2d2d8; }
.ctrl-btn:hover,
.mini-btn:hover { color: #fff; background: rgba(255,255,255,.09); }
.play-btn,
.player-center .play-btn {
  color: #0b0b0e;
  background: #f5f5f7;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.play-btn:hover,
.player-center .play-btn:hover { color: #000; background: #fff; }
.time { color: #8e8e97; }
.seek,
.volume,
#np-seek { background: linear-gradient(90deg, #e6e6ea var(--fill,0%), rgba(255,255,255,.18) var(--fill,0%)); background-size: 100% 3px; background-repeat: no-repeat; background-position: center; }
.vol-icon { color: #aaaab3; }

#lyrics-panel {
  color: var(--text);
  border-color: rgba(255,255,255,.1);
  background: rgba(25,25,30,.92);
  box-shadow: 0 28px 78px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.045);
}
.lyrics-meta { color: #8d8d96; }
.lyrics-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); }
.lyric-line { color: rgba(255,255,255,.33); }
.lyric-line:hover { color: rgba(255,255,255,.66); }
.lyric-line.active { color: #fff; text-shadow: 0 10px 32px rgba(255,255,255,.08); }

dialog.glass,
.install-dialog {
  color: var(--text);
  border-color: rgba(255,255,255,.12);
  background: rgba(28,28,33,.94);
  box-shadow: 0 34px 94px rgba(0,0,0,.6), inset 0 1px rgba(255,255,255,.065);
}
dialog::backdrop { background: rgba(0,0,0,.58); }
.install-dialog-close { color: #c5c5cc; background: rgba(255,255,255,.09); }
.install-dialog h2 { color: #f5f5f7; }
.install-dialog ol,
.lt-subtitle,
.lt-option-desc { color: #aaaab3; }
.install-dialog-done { color: #0a0a0c; background: #f5f5f7; }
.lt-option { color: var(--text); border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.055); }
.lt-option:hover { background: rgba(255,255,255,.1); }
.lt-session-bar { color: var(--text); border-color: rgba(255,255,255,.1); background: rgba(31,31,36,.86); }
.lt-bar-btn { color: #c3c3ca; background: rgba(255,255,255,.065); }
.pl-option { color: var(--text); }
.pl-option:hover { background: rgba(255,255,255,.08); }

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  :root[data-theme="dark"] { --player-h: 4.1rem; --tabbar-h: 5rem; }

  body {
    background:
      radial-gradient(30rem 24rem at 92% -4%, rgba(108,35,66,.3), transparent 70%),
      radial-gradient(28rem 26rem at -12% 52%, rgba(25,55,98,.25), transparent 72%),
      linear-gradient(155deg, #08080b 0%, #101016 58%, #08090d 100%);
    background-attachment: fixed;
  }
  .app::before { background: linear-gradient(135deg, rgba(255,255,255,.02), transparent); }
  .search-wrap { background: transparent; }
  .search-box {
    border-color: rgba(255,255,255,.105);
    background: rgba(36,36,42,.7);
    box-shadow: inset 0 1px rgba(255,255,255,.075), inset 0 -1px rgba(255,255,255,.025);
  }
  .search-box:focus-within { background: rgba(43,43,49,.92); }

  .sidebar {
    border-color: rgba(255,255,255,.12);
    background: rgba(24,24,29,.7) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.075);
  }
  .nav-btn { color: #9c9ca5; }
  .nav-btn.active {
    color: var(--accent);
    background: rgba(255,255,255,.1);
    box-shadow: 0 7px 18px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.075);
  }
  .mobile-library-shortcuts { border-top-color: rgba(255,255,255,.08); }
  .mobile-library-shortcuts button { color: var(--accent); border-bottom-color: rgba(255,255,255,.08); }
  .mobile-library-shortcuts span { color: #777780; }

  .player {
    border-color: rgba(255,255,255,.12);
    background: rgba(25,25,30,.8) !important;
    box-shadow: 0 12px 38px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.065);
  }
  .player-right #btn-lyrics { color: var(--accent); background: rgba(255,55,95,.15); }
  .player-right #btn-lyrics:active { background: rgba(255,55,95,.24); }
}

@media (prefers-reduced-transparency: reduce) {
  .sidebar,
  .player,
  .search-box,
  .reco-dropdown,
  #lyrics-panel,
  dialog.glass,
  .install-dialog { background: #1c1c21 !important; }
  .np { background: #282a30 !important; }
}

@media (prefers-contrast: more) {
  :root[data-theme="dark"] { --text: #fff; --text-dim: #c7c7ce; }
  .sidebar,
  .player,
  .search-box,
  dialog.glass { border-color: rgba(255,255,255,.34); }
}

/* ==========================================================================
   Ambient motion — quiet depth that follows the listener, never the content.
   ========================================================================== */
body { isolation: isolate; }

.shell {
  position: relative;
  z-index: 1;
}

.motion-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.motion-cursor-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(24rem, 46vw, 44rem);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,74,112,.13) 0%, rgba(118,62,126,.07) 34%, transparent 70%);
  transform: translate3d(var(--motion-pointer-x, 50vw), var(--motion-pointer-y, 24vh), 0) translate3d(-50%, -50%, 0) scale(.92);
  transition: opacity 420ms ease;
  will-change: opacity, transform;
}

body.motion-pointer-active .motion-cursor-glow {
  opacity: 1;
  transform: translate3d(var(--motion-pointer-x, 50vw), var(--motion-pointer-y, 24vh), 0) translate3d(-50%, -50%, 0) scale(1);
}

.motion-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: .7;
  transform: translate3d(0, var(--motion-orb-shift, 0px), 0);
  will-change: transform;
}

.motion-orb > i {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  animation: motion-orbit 16s ease-in-out infinite alternate;
  will-change: transform;
}

.motion-orb-rose {
  top: -16rem;
  right: -13rem;
  width: min(48rem, 72vw);
  aspect-ratio: 1;
}

.motion-orb-rose > i {
  background: radial-gradient(circle, rgba(128,35,69,.2), rgba(72,27,50,.08) 44%, transparent 72%);
}

.motion-orb-blue {
  left: -18rem;
  top: 48vh;
  width: min(52rem, 80vw);
  aspect-ratio: 1;
  --motion-orb-shift: var(--motion-orb-shift-slow, 0px);
}

.motion-orb-blue > i {
  background: radial-gradient(circle, rgba(33,68,126,.18), rgba(27,48,91,.07) 46%, transparent 73%);
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

.motion-reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 18px, 0) scale(.992);
  transition:
    opacity 620ms ease var(--motion-reveal-delay, 0ms),
    filter 680ms ease var(--motion-reveal-delay, 0ms),
    transform 760ms var(--ease-spring) var(--motion-reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.motion-reveal.motion-visible {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
}

body.motion-scrolled .search-box:not(:focus-within) {
  border-color: rgba(255,255,255,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.075), inset 0 -1px rgba(255,255,255,.025);
}

@media (hover: hover) and (pointer: fine) {
  .motion-tilt {
    --motion-tilt-x: 0deg;
    --motion-tilt-y: 0deg;
    --motion-tilt-scale: 1;
    transform: perspective(900px) rotateX(var(--motion-tilt-x)) rotateY(var(--motion-tilt-y)) scale(var(--motion-tilt-scale));
    transform-style: preserve-3d;
    transition: transform 520ms var(--ease-spring), box-shadow 260ms ease, filter 220ms ease;
    will-change: transform;
  }

  .motion-tilt:hover { --motion-tilt-scale: 1.012; }
}

@keyframes motion-orbit {
  0% { transform: translate3d(-2%, -1%, 0) scale(.94); opacity: .72; }
  55% { transform: translate3d(3%, 2%, 0) scale(1.05); opacity: 1; }
  100% { transform: translate3d(-1%, 4%, 0) scale(.98); opacity: .82; }
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .motion-cursor-glow { display: none; }
  .motion-orb { opacity: .52; }
  .motion-reveal {
    filter: none;
    transform: translate3d(0, 12px, 0);
    transition-duration: 500ms, 500ms, 620ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-field { display: none; }
  .motion-reveal,
  .motion-reveal.motion-visible,
  .motion-tilt {
    opacity: 1;
    filter: none;
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .motion-field { display: none; }
  .search-box::before { display: none; }
}

.motion-static .motion-field { display: none; }

/* Keep the installed Android experience responsive on modest GPUs. The
   colors and depth remain, while costly live blur and decorative loops rest. */
.mobile-performance .motion-field,
.mobile-performance #bg-canvas { display: none !important; }
.mobile-performance .sidebar,
.mobile-performance .player,
.mobile-performance .search-box,
.mobile-performance .pulse-card,
.mobile-performance .creator-section,
.mobile-performance .install-section,
.mobile-performance dialog,
.mobile-performance .np-controls,
.mobile-performance .np-view-toggle {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.mobile-performance .motion-orb > i,
.mobile-performance .creator-orbit-line,
.mobile-performance .creator-wave span,
.mobile-performance .install-halo,
.mobile-performance .install-note,
.mobile-performance .pulse-orbit > i,
.mobile-performance .pulse-wave b { animation: none !important; }
.mobile-performance .trend-row,
.mobile-performance .creator-section,
.mobile-performance .install-section,
.mobile-performance .seo-content {
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
}

/* ==========================================================================
   Asharas Pulse — signature one-tap personal mix
   ========================================================================== */
.pulse-card {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 23rem;
  margin: .25rem 0 2.8rem;
  padding: clamp(1.45rem, 3.2vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2rem;
  background:
    radial-gradient(28rem 24rem at 100% 5%, rgba(95,58,150,.32), transparent 68%),
    radial-gradient(30rem 24rem at 0% 100%, rgba(165,36,76,.28), transparent 70%),
    linear-gradient(135deg, rgba(39,31,46,.88), rgba(19,20,27,.82));
  box-shadow: 0 30px 80px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.09);
  backdrop-filter: blur(38px) saturate(180%);
  -webkit-backdrop-filter: blur(38px) saturate(180%);
}

.pulse-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(115deg, #000, transparent 62%);
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 62%);
}

.pulse-copy { align-self: center; min-width: 0; }
.pulse-kicker { display: flex; align-items: center; gap: .6rem; color: #f5f5f7; font-size: .72rem; font-weight: 680; letter-spacing: .04em; }
.pulse-kicker img { width: 1.75rem; height: 1.75rem; flex: none; border-radius: .48rem; box-shadow: 0 8px 18px rgba(255,55,95,.24); }
.pulse-new { margin-left: .25rem; padding: .28rem .52rem; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; color: #b7b7c1; background: rgba(255,255,255,.065); font-size: .58rem; font-weight: 630; letter-spacing: .08em; text-transform: uppercase; }
.pulse-copy h2 { max-width: 12ch; margin: 1.1rem 0 .75rem; color: #fff; font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 4.1rem); font-weight: 735; line-height: .96; letter-spacing: -.058em; }
.pulse-intro { max-width: 56ch; margin: 0; color: #aeaeb8; font-size: .9rem; line-height: 1.6; }

.pulse-controls { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin-top: 1.35rem; }
.pulse-field { min-width: 0; display: grid; gap: .42rem; padding: .65rem .75rem .72rem; border: 1px solid rgba(255,255,255,.1); border-radius: .9rem; background: rgba(255,255,255,.06); box-shadow: inset 0 1px rgba(255,255,255,.045); }
.pulse-field > span { display: flex; justify-content: space-between; color: #92929d; font-size: .59rem; font-weight: 660; letter-spacing: .095em; text-transform: uppercase; }
.pulse-field select { width: 100%; min-height: 1.65rem; padding: 0 1.2rem 0 0; border: 0; border-radius: 0; color: #f5f5f7; background: transparent; font: 620 .8rem/1.4 var(--font-display); cursor: pointer; outline: none; }
.pulse-field select option { color: #f5f5f7; background: #202025; }
.pulse-field:focus-within { border-color: rgba(255,100,130,.55); box-shadow: 0 0 0 3px rgba(255,55,95,.1), inset 0 1px rgba(255,255,255,.06); }
.pulse-energy { grid-column: 1 / -1; }
.pulse-energy output { color: #ff8ca1; font: inherit; letter-spacing: .06em; }
.pulse-energy input { width: 100%; height: 1rem; margin: 0; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, #ff5878 var(--pulse-energy,50%), rgba(255,255,255,.14) var(--pulse-energy,50%)); background-size: 100% 3px; background-repeat: no-repeat; background-position: center; cursor: pointer; }
.pulse-energy input::-webkit-slider-thumb { width: 1rem; height: 1rem; appearance: none; -webkit-appearance: none; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; background: #ff375f; box-shadow: 0 3px 12px rgba(255,55,95,.42); }
.pulse-energy input::-moz-range-thumb { width: .82rem; height: .82rem; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; background: #ff375f; box-shadow: 0 3px 12px rgba(255,55,95,.42); }

.pulse-actions { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; }
.pulse-generate,
.pulse-share,
.pulse-result-actions button { min-height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; color: #fff; background: rgba(255,255,255,.085); box-shadow: inset 0 1px rgba(255,255,255,.07); font-size: .75rem; font-weight: 660; cursor: pointer; transition: transform 420ms var(--ease-spring), background 180ms ease, box-shadow 180ms ease; }
.pulse-generate { min-width: 9.8rem; padding: .65rem 1.05rem; color: #09090d; border-color: rgba(255,255,255,.82); background: #f5f5f7; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.pulse-generate svg,
.pulse-share svg,
.pulse-result-actions svg { width: 1.05rem; height: 1.05rem; flex: none; fill: currentColor; }
.pulse-share { padding: .65rem .9rem; background: rgba(255,255,255,.07); }
.pulse-share svg { fill: none; }
.pulse-generate:hover,
.pulse-result-actions button:first-child:hover { transform: translateY(-2px) scale(1.02); background: #fff; box-shadow: 0 16px 34px rgba(0,0,0,.32); }
.pulse-share:hover,
.pulse-result-actions button:last-child:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.pulse-generate:active,
.pulse-share:active,
.pulse-result-actions button:active { transform: scale(.96); }
.pulse-generate:disabled { color: #9c9ca5; background: rgba(255,255,255,.12); cursor: wait; box-shadow: none; }
.pulse-status { min-height: 1rem; margin: .65rem 0 0; color: #81818c; font-size: .65rem; }

.pulse-stage { position: relative; align-self: stretch; min-height: 18rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; overflow: hidden; border: 1px solid rgba(255,255,255,.105); border-radius: 1.55rem; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 20px 48px rgba(0,0,0,.18); }
.pulse-orbit { position: relative; width: 9.5rem; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 1.25rem; pointer-events: none; transition: opacity 500ms ease, transform 650ms var(--ease-spring); }
.pulse-orbit > i { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 42% 58% 53% 47% / 49% 42% 58% 51%; animation: pulse-orbit 9s linear infinite; }
.pulse-orbit > i:nth-child(2) { inset: .65rem; border-color: rgba(255,93,124,.3); animation-duration: 7s; animation-direction: reverse; }
.pulse-orbit > i:nth-child(3) { inset: 1.25rem; border-color: rgba(123,114,222,.28); animation-duration: 11s; }
.pulse-orbit > img { width: 4.35rem; height: 4.35rem; z-index: 1; border-radius: 1.15rem; box-shadow: 0 16px 32px rgba(255,55,95,.24); }
.pulse-wave { position: absolute; right: -.25rem; bottom: 1rem; z-index: 2; height: 2.35rem; display: flex; align-items: center; gap: .18rem; padding: .4rem .5rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(21,21,27,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pulse-wave b { width: .16rem; height: 55%; border-radius: 999px; background: #ff6482; animation: pulse-wave 900ms ease-in-out infinite alternate; transform-origin: center; }
.pulse-wave b:nth-child(2) { height: 90%; animation-delay: -540ms; }
.pulse-wave b:nth-child(3) { height: 65%; animation-delay: -260ms; }
.pulse-wave b:nth-child(4) { height: 100%; animation-delay: -720ms; }
.pulse-wave b:nth-child(5) { height: 48%; animation-delay: -140ms; }
.pulse-result-copy { display: grid; gap: .3rem; text-align: center; }
.pulse-result-copy strong { color: #f5f5f7; font-size: .94rem; font-weight: 680; letter-spacing: -.02em; }
.pulse-result-copy span { color: #8f8f99; font-size: .68rem; }
.pulse-covers { min-height: 0; display: flex; align-items: center; justify-content: center; margin: 0 0 1.25rem 1.25rem; pointer-events: none; }
.pulse-covers:empty { display: none; }
.pulse-covers img { width: clamp(4.3rem, 7.5vw, 6.2rem); aspect-ratio: 1; margin-left: -1.25rem; border: 2px solid rgba(245,245,247,.84); border-radius: 1rem; object-fit: cover; box-shadow: 0 16px 32px rgba(0,0,0,.42); animation: pulse-cover-in 620ms var(--ease-spring) both; }
.pulse-covers img:nth-child(2) { animation-delay: 60ms; transform: rotate(2deg); }
.pulse-covers img:nth-child(3) { animation-delay: 120ms; transform: rotate(-2deg); }
.pulse-covers img:nth-child(4) { animation-delay: 180ms; transform: rotate(1deg); }
.pulse-result-actions { position: relative; z-index: 3; display: flex; gap: .5rem; margin-top: .85rem; }
.pulse-result-actions button { min-width: 5.8rem; min-height: 2.55rem; padding: .55rem .8rem; }
.pulse-result-actions button:first-child { color: #0a0a0d; border-color: rgba(255,255,255,.82); background: #f5f5f7; }
.pulse-result-actions button:last-child { color: #e6e6eb; background: rgba(255,255,255,.075); }
.pulse-stage.has-mix .pulse-orbit { position: absolute; opacity: .12; transform: scale(1.75); }
.pulse-card.is-building .pulse-orbit > i { animation-duration: 1.4s; }
.pulse-card.is-building .pulse-wave b { animation-duration: 320ms; }

@keyframes pulse-orbit { to { transform: rotate(360deg); } }
@keyframes pulse-wave { from { transform: scaleY(.45); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
@keyframes pulse-cover-in { from { opacity: 0; translate: 0 1rem; scale: .84; } to { opacity: 1; translate: 0 0; scale: 1; } }

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .pulse-card { grid-template-columns: 1fr; gap: 1.25rem; min-height: 0; margin-top: 0; padding: 1.35rem; border-radius: 1.5rem; }
  .pulse-copy h2 { max-width: 11ch; font-size: clamp(2.15rem, 10vw, 3.15rem); }
  .pulse-intro { font-size: .82rem; }
  .pulse-controls { margin-top: 1.1rem; }
  .pulse-stage { min-height: 15.5rem; border-radius: 1.2rem; }
  .pulse-orbit { width: 8rem; }
  .pulse-orbit > img { width: 3.8rem; height: 3.8rem; }
  .pulse-covers img { width: min(21vw,5.2rem); }
}

@media (max-width: 390px) {
  .pulse-card { padding: 1.1rem; }
  .pulse-controls { grid-template-columns: 1fr; }
  .pulse-energy { grid-column: auto; }
  .pulse-actions { align-items: stretch; }
  .pulse-generate { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-orbit > i,
  .pulse-wave b,
  .pulse-covers img { animation: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .pulse-card { background: #1b1b21; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pulse-stage { background: #232329; }
}

/* ==========================================================================
   Customer theme switcher and persistent view navigation
   ========================================================================== */
.content-heading,
.header-actions {
  display: flex;
  align-items: center;
}
.content-heading { min-width: 0; gap: .65rem; }
.header-actions { gap: .55rem; }

.view-back,
.header-install,
.theme-toggle {
  min-height: 2.35rem;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
  box-shadow: inset 0 1px color-mix(in srgb, var(--text) 8%, transparent);
  cursor: pointer;
  transition: transform 320ms var(--ease-spring), background 160ms ease, border-color 160ms ease;
}
.view-back {
  width: 2.35rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.view-back svg { width: 1.2rem; height: 1.2rem; }
.header-install,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: .42rem .72rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
}
.header-install svg { width: 1.05rem; height: 1.05rem; flex: none; }
.theme-toggle:hover,
.header-install:hover,
.view-back:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.theme-toggle:active,
.header-install:active,
.view-back:active { transform: scale(.94); }
.theme-icon { width: 1rem; height: 1rem; flex: none; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

.app-installed .header-install,
.app-installed .install-actions { display: none !important; }
.install-section.is-installed .install-status { color: #34c759 !important; font-weight: 650; }

/* Restore the original airy Apple material when customers choose Light. */
html[data-theme="light"] {
  color-scheme: light;
  background: #fff;
}
html[data-theme="light"] body {
  color: var(--text);
  background:
    radial-gradient(48rem 30rem at 86% -10%, rgba(255,197,211,.48), transparent 68%),
    radial-gradient(42rem 28rem at 18% 34%, rgba(188,218,255,.38), transparent 70%),
    radial-gradient(38rem 26rem at 78% 82%, rgba(215,198,255,.3), transparent 72%),
    #f4f5f9;
  background-attachment: fixed;
}
html[data-theme="light"] ::selection { color: #1d1d1f; background: rgba(250,45,72,.22); }
html[data-theme="light"] .glass { border: var(--glass-border); background: var(--glass-bg); box-shadow: none; }
html[data-theme="light"] .sidebar {
  border-color: rgba(0,0,0,.075);
  background: rgba(250,250,252,.58) !important;
  box-shadow: 12px 0 40px rgba(58,63,92,.06), inset -1px 0 rgba(255,255,255,.72);
}
html[data-theme="light"] .side-brand .brand-name,
html[data-theme="light"] .nav-btn,
html[data-theme="light"] #content-title,
html[data-theme="light"] .section-head,
html[data-theme="light"] .trend-name,
html[data-theme="light"] .track,
html[data-theme="light"] .track-name,
html[data-theme="light"] .queue-track-name,
html[data-theme="light"] .pl-name,
html[data-theme="light"] .pl-meta,
html[data-theme="light"] .artist-card,
html[data-theme="light"] .queue-track,
html[data-theme="light"] .pl-row,
html[data-theme="light"] .pl-create { color: #1d1d1f; }
html[data-theme="light"] .nav-btn:hover { background: rgba(0,0,0,.055); }
html[data-theme="light"] .nav-btn.active { color: #111113; background: rgba(0,0,0,.075); box-shadow: none; }
html[data-theme="light"] .side-search,
html[data-theme="light"] .side-search:hover,
html[data-theme="light"] .side-search.active { color: var(--accent); background: rgba(118,118,128,.11); }
html[data-theme="light"] .nav-section-label,
html[data-theme="light"] .content-eyebrow { color: #8a8a8e; }
html[data-theme="light"] .sidebar-now-playing { color: #1d1d1f; border: 0; background: rgba(255,255,255,.66); }
html[data-theme="light"] .sidebar-now-playing:hover { background: #fff; }
html[data-theme="light"] .app::before { background: linear-gradient(135deg,rgba(255,255,255,.34),rgba(255,255,255,.08)); }
html[data-theme="light"] .content-header { border-bottom-color: rgba(0,0,0,.1); }

html[data-theme="light"] .search-wrap { background: linear-gradient(rgba(244,245,249,.84) 72%,rgba(244,245,249,0)); }
html[data-theme="light"] .search-box { border-color: rgba(118,118,128,.12); background: rgba(255,255,255,.5); box-shadow: inset 0 1px rgba(255,255,255,.86); }
html[data-theme="light"] .search-box:focus-within { border-color: rgba(250,45,72,.4); background: rgba(255,255,255,.94); box-shadow: 0 0 0 3px rgba(250,45,72,.1); }
html[data-theme="light"] .search-icon { color: #747478; }
html[data-theme="light"] .search-box input { color: #1d1d1f; }
html[data-theme="light"] .search-box input::placeholder { color: #8b8b90; }
html[data-theme="light"] .search-mode-control::after { color: #626267; }
html[data-theme="light"] .search-mode-select { color: #343438; border-color: rgba(118,118,128,.12); background: rgba(255,255,255,.62); box-shadow: inset 0 1px rgba(255,255,255,.8); }
html[data-theme="light"] .search-mode-select:hover { background: rgba(255,255,255,.9); }
html[data-theme="light"] .search-mode-select option,
html[data-theme="light"] #lang-select option { color: #1d1d1f; background: #fff; }
html[data-theme="light"] .reco-dropdown { color: #1d1d1f; border-color: rgba(0,0,0,.08); background: rgba(252,252,253,.94); box-shadow: 0 18px 50px rgba(0,0,0,.14); }
html[data-theme="light"] .reco-item { color: #1d1d1f; }
html[data-theme="light"] .reco-item:hover { background: rgba(118,118,128,.11); }

html[data-theme="light"] .toolbar .pill-btn,
html[data-theme="light"] .pill-btn.ghost { color: var(--accent); background: rgba(250,45,72,.09); }
html[data-theme="light"] .lang-wrap { color: #6d6d72; border-color: rgba(0,0,0,.07); background: rgba(118,118,128,.08); }
html[data-theme="light"] #lang-select { color: #29292c; }
html[data-theme="light"] .trend-cover-box { background: #eeeef0; box-shadow: 0 8px 22px rgba(0,0,0,.1); }
html[data-theme="light"] .trend-by,
html[data-theme="light"] .track-by,
html[data-theme="light"] .track-duration,
html[data-theme="light"] .queue-track-by,
html[data-theme="light"] .pl-count,
html[data-theme="light"] .empty-note,
html[data-theme="light"] .artist-card-copy small { color: #747478; }
html[data-theme="light"] .trend-row { scrollbar-color: rgba(0,0,0,.16) transparent; }
html[data-theme="light"] .pl-create,
html[data-theme="light"] .pl-row,
html[data-theme="light"] .queue-track { border-color: rgba(0,0,0,.07); background: rgba(248,248,250,.82); }
html[data-theme="light"] .track { border-bottom-color: rgba(0,0,0,.07); background: transparent; }
html[data-theme="light"] .track:hover { background: rgba(118,118,128,.08); }
html[data-theme="light"] .track.active { border-color: rgba(250,45,72,.18); background: linear-gradient(90deg,rgba(250,45,72,.1),transparent); }
html[data-theme="light"] .row-btn,
html[data-theme="light"] .queue-remove { color: #66666b; }
html[data-theme="light"] .row-btn:hover,
html[data-theme="light"] .queue-remove:hover { color: var(--accent); background: rgba(250,45,72,.09); }
html[data-theme="light"] .queue-track.active { border-color: rgba(250,45,72,.2); background: rgba(250,45,72,.08); }
html[data-theme="light"] .pl-create input,
html[data-theme="light"] dialog input { color: #1d1d1f; border-color: rgba(0,0,0,.06); background: rgba(118,118,128,.1); }
html[data-theme="light"] .artist-card { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.48); box-shadow: 0 10px 30px rgba(56,60,91,.08),inset 0 1px rgba(255,255,255,.8); }
html[data-theme="light"] .artist-card:hover { background: rgba(255,255,255,.72); box-shadow: 0 16px 34px rgba(56,60,91,.13); }
html[data-theme="light"] .artist-card-art { border-color: rgba(255,255,255,.78); box-shadow: inset 0 1px rgba(255,255,255,.6),0 8px 18px rgba(250,45,72,.22); }

html[data-theme="light"] .install-section { color: #1d1d1f; border-color: rgba(255,255,255,.76); background: linear-gradient(135deg,rgba(255,255,255,.74),rgba(250,240,247,.54)); box-shadow: 0 24px 64px rgba(88,67,96,.13),inset 0 1px rgba(255,255,255,.9); }
html[data-theme="light"] .install-copy h2 { color: #1d1d1f; }
html[data-theme="light"] .install-copy > p { color: #66666c; }
html[data-theme="light"] .install-kicker { color: #f12c49; }
html[data-theme="light"] .install-button { color: #fff; border-color: rgba(0,0,0,.09); background: #1d1d1f; box-shadow: 0 10px 24px rgba(29,29,31,.16); }
html[data-theme="light"] .install-button:hover { background: #000; }
html[data-theme="light"] .install-button small { color: rgba(255,255,255,.58); }

html[data-theme="light"] .player { color: #1d1d1f; border-color: rgba(0,0,0,.085); background: rgba(250,250,252,.88) !important; box-shadow: 0 -8px 30px rgba(0,0,0,.055); }
html[data-theme="light"] .track-title { color: #1d1d1f; }
html[data-theme="light"] .track-artist { color: #77777b; }
html[data-theme="light"] .ctrl-btn,
html[data-theme="light"] .mini-btn { color: #303033; }
html[data-theme="light"] .ctrl-btn:hover,
html[data-theme="light"] .mini-btn:hover { color: #000; background: rgba(118,118,128,.1); }
html[data-theme="light"] .play-btn,
html[data-theme="light"] .player-center .play-btn { color: #fff; background: #1d1d1f; box-shadow: none; }
html[data-theme="light"] .time { color: #838388; }
html[data-theme="light"] .seek,
html[data-theme="light"] .volume { background: linear-gradient(90deg,#5d5d62 var(--fill,0%),rgba(118,118,128,.22) var(--fill,0%)); background-size: 100% 3px; background-repeat: no-repeat; background-position: center; }

html[data-theme="light"] #lyrics-panel { color: #1d1d1f; border-color: rgba(0,0,0,.08); background: rgba(250,250,252,.92); box-shadow: 0 24px 70px rgba(0,0,0,.14); }
html[data-theme="light"] .lyrics-meta { color: #7d7d82; }
html[data-theme="light"] .lyric-line { color: rgba(29,29,31,.35); }
html[data-theme="light"] .lyric-line:hover { color: rgba(29,29,31,.68); }
html[data-theme="light"] .lyric-line.active { color: #1d1d1f; text-shadow: none; }
html[data-theme="light"] dialog.glass,
html[data-theme="light"] .install-dialog { color: #1d1d1f; border-color: rgba(0,0,0,.08); background: rgba(252,252,253,.94); box-shadow: 0 28px 90px rgba(0,0,0,.2); }
html[data-theme="light"] .install-dialog h2 { color: #1d1d1f; }
html[data-theme="light"] .install-dialog ol,
html[data-theme="light"] .lt-subtitle,
html[data-theme="light"] .lt-option-desc { color: #747478; }
html[data-theme="light"] .lt-option { color: #1d1d1f; border-color: rgba(0,0,0,.06); background: rgba(118,118,128,.07); }
html[data-theme="light"] .lt-session-bar { color: #1d1d1f; border-color: rgba(0,0,0,.07); background: rgba(255,255,255,.8); }
html[data-theme="light"] .lt-bar-btn { color: #515156; background: rgba(118,118,128,.08); }

html[data-theme="light"] .pulse-card { border-color: rgba(255,255,255,.78); background: radial-gradient(28rem 24rem at 100% 5%,rgba(204,188,255,.5),transparent 68%),radial-gradient(30rem 24rem at 0 100%,rgba(255,190,211,.42),transparent 70%),linear-gradient(135deg,rgba(255,255,255,.82),rgba(245,246,252,.72)); box-shadow: 0 26px 68px rgba(67,62,94,.14),inset 0 1px rgba(255,255,255,.9); }
html[data-theme="light"] .pulse-card::before { background-image: linear-gradient(rgba(20,20,30,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(20,20,30,.035) 1px,transparent 1px); }
html[data-theme="light"] .pulse-kicker,
html[data-theme="light"] .pulse-copy h2,
html[data-theme="light"] .pulse-result-copy strong { color: #1d1d1f; }
html[data-theme="light"] .pulse-new { color: #66666d; border-color: rgba(0,0,0,.08); background: rgba(255,255,255,.62); }
html[data-theme="light"] .pulse-intro,
html[data-theme="light"] .pulse-result-copy span,
html[data-theme="light"] .pulse-status { color: #68686f; }
html[data-theme="light"] .pulse-field { border-color: rgba(0,0,0,.08); background: rgba(255,255,255,.58); box-shadow: inset 0 1px rgba(255,255,255,.78); }
html[data-theme="light"] .pulse-field > span { color: #6f6f75; }
html[data-theme="light"] .pulse-field select { color: #1d1d1f; }
html[data-theme="light"] .pulse-field select option { color: #1d1d1f; background: #fff; }
html[data-theme="light"] .pulse-stage { border-color: rgba(0,0,0,.07); background: linear-gradient(145deg,rgba(255,255,255,.68),rgba(255,255,255,.32)); box-shadow: inset 0 1px rgba(255,255,255,.86),0 18px 42px rgba(72,70,98,.1); }
html[data-theme="light"] .pulse-wave { border-color: rgba(0,0,0,.08); background: rgba(255,255,255,.78); }
html[data-theme="light"] .pulse-share,
html[data-theme="light"] .pulse-result-actions button:last-child { color: #303036; border-color: rgba(0,0,0,.08); background: rgba(255,255,255,.62); }
html[data-theme="light"] .pulse-generate,
html[data-theme="light"] .pulse-result-actions button:first-child { color: #fff; border-color: #1d1d1f; background: #1d1d1f; }

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .content-heading { gap: .4rem; }
  .header-actions { gap: .35rem; }
  .theme-toggle { min-width: 2.35rem; padding-inline: .62rem; }
  html[data-theme="light"] body { background: radial-gradient(28rem 22rem at 85% 2%,rgba(255,198,214,.44),transparent 70%),radial-gradient(26rem 24rem at 5% 38%,rgba(191,220,255,.42),transparent 72%),linear-gradient(160deg,#f8f9fc 0%,#f1f4fa 52%,#fff7f9 100%); }
  html[data-theme="light"] .app::before { background: linear-gradient(135deg,rgba(255,255,255,.28),rgba(255,255,255,.04)); }
  html[data-theme="light"] .search-wrap { background: linear-gradient(rgba(247,248,252,.7) 70%,rgba(247,248,252,0)); }
  html[data-theme="light"] .sidebar { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.5) !important; box-shadow: 0 14px 38px rgba(52,58,88,.16),inset 0 1px rgba(255,255,255,.8); }
  html[data-theme="light"] .nav-btn { color: #77777c; }
  html[data-theme="light"] .nav-btn.active { color: var(--accent); background: rgba(255,255,255,.62); box-shadow: 0 5px 16px rgba(64,65,92,.1),inset 0 1px rgba(255,255,255,.8); }
  html[data-theme="light"] .mobile-library-shortcuts { border-top-color: rgba(0,0,0,.08); }
  html[data-theme="light"] .mobile-library-shortcuts button { color: var(--accent); border-bottom-color: rgba(0,0,0,.08); }
  html[data-theme="light"] .player { border-color: rgba(0,0,0,.08); background: rgba(248,248,250,.9) !important; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
  html[data-theme="light"] .player-right #btn-lyrics { color: var(--accent); background: rgba(250,45,72,.1); }
}

@media (max-width: 430px) {
  .theme-toggle span,
  .header-install span { display: none; }
  .header-install { min-width: 2.35rem; padding-inline: .62rem; }
}

@media (pointer: coarse) {
  .theme-toggle,
  .header-install,
  .view-back { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-transparency: reduce) {
  html[data-theme="light"] .sidebar,
  html[data-theme="light"] .player,
  html[data-theme="light"] .search-box,
  html[data-theme="light"] .reco-dropdown,
  html[data-theme="light"] #lyrics-panel,
  html[data-theme="light"] dialog.glass,
  html[data-theme="light"] .pulse-card,
  html[data-theme="light"] .pulse-stage { background: #f4f4f6 !important; }
}
