:root {
  --bg: #0b0910;
  --bg-soft: #121017;
  --panel: rgba(20, 17, 25, 0.82);
  --panel-strong: #17131d;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.085);
  --text: #fbf9ff;
  --muted: #aaa4b2;
  --muted-2: #7f7889;
  --accent: #d6ff67;
  --accent-ink: #131807;
  --rose: #d87f8d;
  --violet: #8a5cff;
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 15px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --sidebar: 230px;
  --player: 370px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 0%, rgba(105, 55, 134, 0.13), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(95, 143, 208, 0.045), transparent 27%),
    radial-gradient(circle at 16% 85%, rgba(156, 69, 98, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.015em;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #ccef7d;
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
}

.ambient-a {
  right: 12%;
  top: -180px;
  background: #7e4cff;
  animation: ambientFlowA 22s ease-in-out infinite alternate;
}

.ambient-b {
  left: 8%;
  bottom: -210px;
  background: #ac536b;
  animation: ambientFlowB 26s ease-in-out infinite alternate;
}

.ambient-blue {
  width: 360px;
  height: 360px;
  right: 28%;
  top: 34%;
  background: #5f8fd0;
  opacity: 0.055;
  filter: blur(125px);
  animation: ambientFlowBlue 30s ease-in-out infinite alternate;
}

@keyframes ambientFlowA {
  from { transform: translate3d(-10px, -8px, 0) scale(0.98); }
  to { transform: translate3d(24px, 20px, 0) scale(1.04); }
}

@keyframes ambientFlowB {
  from { transform: translate3d(8px, 12px, 0) scale(1); }
  to { transform: translate3d(-22px, -18px, 0) scale(1.035); }
}

@keyframes ambientFlowBlue {
  from { transform: translate3d(-22px, -12px, 0) scale(0.96); }
  to { transform: translate3d(28px, 24px, 0) scale(1.06); }
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--player);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 22px;
  border-right: 1px solid var(--line);
  background: rgba(10, 8, 14, 0.66);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 36px;
  padding: 4px 8px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  background: linear-gradient(145deg, #e7ff91 0%, #d6ff67 58%, #9ed8ff 100%);
  box-shadow:
    0 8px 28px rgba(210, 255, 103, 0.16),
    0 5px 22px rgba(104, 167, 232, 0.08);
}

.brand-mark span {
  display: block;
  width: 3px;
  border-radius: 8px;
  background: #172006;
}

.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 12px; }

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-group {
  display: grid;
  gap: 7px;
}

.nav-item {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  cursor: pointer;
  transition: 180ms ease;
  text-align: left;
}

.nav-item:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-icon {
  width: 22px;
  color: currentColor;
  font-size: 18px;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-note {
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-note strong,
.sidebar-note small {
  display: block;
}

.sidebar-note strong {
  font-size: 12px;
  margin-bottom: 4px;
}

.sidebar-note small {
  color: var(--muted-2);
  line-height: 1.35;
  font-size: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  box-shadow:
    0 0 14px rgba(214, 255, 103, 0.52),
    0 0 22px rgba(95, 143, 208, 0.10);
  flex: 0 0 auto;
}

.main-content {
  min-width: 0;
  padding: 34px 34px 110px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted-2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.topbar h1,
.section-heading h2,
.sheet-heading h2 {
  margin: 0;
  font-weight: 650;
}

.topbar h1 {
  font-size: clamp(26px, 3.3vw, 45px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.search-box {
  width: min(380px, 44%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 13px;
  color: var(--muted);
  transition: border-color 160ms ease, background 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(214, 255, 103, 0.4);
  background: rgba(255, 255, 255, 0.075);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #77717e;
}

.search-box kbd {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px 6px;
  color: var(--muted-2);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.primary-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.primary-tab {
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 170ms ease;
}

.primary-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.045);
}

.primary-tab.sacred.active {
  color: #fff2d7;
  background: linear-gradient(135deg, rgba(164, 111, 57, 0.33), rgba(125, 71, 41, 0.16));
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(74, 40, 68, 0.94), rgba(31, 24, 43, 0.86) 54%, rgba(20, 17, 26, 0.9));
  box-shadow: var(--shadow);
  margin-bottom: 38px;
  isolation: isolate;
}

.hero-card.pirith-theme {
  background:
    radial-gradient(circle at 78% 20%, rgba(218, 164, 74, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(56, 39, 27, 0.97), rgba(26, 22, 20, 0.95) 58%, rgba(18, 16, 15, 0.98));
}

.hero-glow {
  position: absolute;
  inset: -20% auto auto -8%;
  width: 65%;
  height: 140%;
  background: radial-gradient(circle, rgba(217, 116, 144, 0.28), transparent 68%);
  z-index: -1;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(56%, 520px);
  padding: clamp(30px, 5vw, 62px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dcd3df;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.hero-copy h2 {
  margin: 14px 0 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero-copy p {
  max-width: 460px;
  margin: 0;
  color: #c3bac8;
  font-size: 14px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: linear-gradient(118deg, #dfff72 0%, #d6ff67 62%, #a8ddff 100%);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow:
    0 10px 27px rgba(210, 255, 103, 0.12),
    0 8px 24px rgba(111, 171, 233, 0.06);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.1px);
  box-shadow: inset -30px -30px 70px rgba(0,0,0,0.35), 0 40px 90px rgba(0,0,0,0.3);
}

.orb-a {
  width: 180px;
  height: 180px;
  right: 20%;
  top: 9%;
  background: linear-gradient(145deg, #f09a7a, #6e3b88 56%, #1f182c);
}

.orb-b {
  width: 95px;
  height: 95px;
  right: 6%;
  bottom: 8%;
  background: linear-gradient(145deg, #6de4e1, #4a5bd9 55%, #21152f);
}

.orb-c {
  width: 72px;
  height: 72px;
  right: 45%;
  bottom: 8%;
  background: linear-gradient(145deg, #f4d488, #c27261 52%, #3f2230);
}

.hero-disc {
  position: absolute;
  right: 9%;
  top: 50%;
  width: 230px;
  height: 230px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 0 0 28px rgba(255,255,255,0.025),
    inset 0 0 0 29px rgba(255,255,255,0.08),
    inset 0 0 0 62px rgba(0,0,0,0.16),
    0 30px 80px rgba(0,0,0,0.35);
  background:
    radial-gradient(circle at 50% 50%, #141017 0 10%, #403341 11% 14%, #19141d 15% 100%);
  opacity: 0.78;
}

.hero-disc::before,
.hero-disc::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-disc::after {
  inset: 19%;
}

.hero-disc span {
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  left: 35%;
  top: 35%;
  background: radial-gradient(circle, #111 0 12%, #cb8494 13% 48%, #613e66 49% 100%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
}

.result-count {
  color: var(--muted-2);
  font-size: 11px;
}

.genre-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 16px;
}

.genre-chips::-webkit-scrollbar {
  display: none;
}

.genre-chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: 150ms ease;
}

.genre-chip:hover,
.genre-chip.active {
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.085);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.track-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 9px 11px 9px 9px;
  background: rgba(255,255,255,0.028);
  cursor: pointer;
  transition: 170ms ease;
}

.track-card:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.055);
  border-color: var(--line);
}

.track-card.active {
  background: linear-gradient(120deg, rgba(183, 89, 126, 0.15), rgba(255,255,255,0.045));
  border-color: rgba(209, 112, 151, 0.26);
}

.cover-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 14px;
  overflow: hidden;
  background: #17131d;
  flex: 0 0 auto;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 240ms ease;
}

.track-card:hover .cover-wrap img {
  transform: scale(1.04);
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 6, 9, 0.25);
  opacity: 0;
  transition: opacity 150ms ease;
  font-size: 18px;
}

.track-card:hover .card-play,
.track-card.active .card-play {
  opacity: 1;
}

.track-info {
  min-width: 0;
}

.track-info strong,
.track-info small {
  display: block;
}

.track-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
}

.track-info small {
  margin-top: 5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
}

.track-tags {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.track-tags span {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9a92a2;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
}

.track-meta-right {
  text-align: right;
  color: var(--muted-2);
}

.track-meta-right span {
  display: block;
  font-size: 10px;
}

.video-dot {
  width: 6px;
  height: 6px;
  margin: 7px 0 0 auto;
  border-radius: 50%;
  background: #c284ff;
  box-shadow: 0 0 12px rgba(194,132,255,0.5);
}

.load-sentinel {
  height: 64px;
  display: grid;
  place-items: center;
}

.load-sentinel span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.5);
  animation: spin 1s linear infinite;
  opacity: 0;
}

.load-sentinel.loading span {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.player-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  padding: 24px 22px;
  border-left: 1px solid var(--line);
  background: rgba(15, 12, 19, 0.78);
  backdrop-filter: blur(28px);
  overflow-y: auto;
  scrollbar-width: none;
}

.player-panel::-webkit-scrollbar {
  display: none;
}

.player-topline,
.queue-heading,
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.player-topline {
  margin-bottom: 18px;
}

.player-topline strong {
  display: block;
  font-size: 12px;
  color: #d8d3dd;
}

.media-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: #15111a;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 24px 65px rgba(0,0,0,0.38);
}

.media-stage img,
.media-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-stage video {
  display: none;
  background: #000;
}

.media-stage.video-active img {
  display: none;
}

.media-stage.video-active video {
  display: block;
}

.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,12,0.36), transparent 44%);
  pointer-events: none;
}

.media-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(10,8,12,0.55);
  border: 1px solid rgba(255,255,255,0.11);
  backdrop-filter: blur(12px);
}


.video-fullscreen {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px;
  padding: 8px 10px;
  color: #f5f2f7;
  background: rgba(10,8,12,0.46);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.02em;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.video-fullscreen:hover {
  background: rgba(20,17,25,0.68);
  border-color: rgba(255,255,255,0.19);
}

.video-fullscreen:active {
  transform: scale(0.97);
}

.video-fullscreen.hidden {
  display: none;
}

#fullscreenIcon {
  font-size: 15px;
  line-height: 1;
}

.media-stage:fullscreen,
.media-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  background: #000;
}

.media-stage:fullscreen video,
.media-stage:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-stage:fullscreen .media-shade,
.media-stage:fullscreen .media-badge,
.media-stage:-webkit-full-screen .media-shade,
.media-stage:-webkit-full-screen .media-badge {
  display: none;
}

.media-stage:fullscreen .video-fullscreen,
.media-stage:-webkit-full-screen .video-fullscreen {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
}

.mode-switch {
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 170px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}

.mode-switch.hidden {
  display: none;
}

.mode-button {
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.mode-button.active {
  color: var(--text);
  background: rgba(255,255,255,0.095);
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 16px;
}

.track-meta-text {
  min-width: 0;
  flex: 1;
}

.track-meta h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meta p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

#favoriteButton {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  font-size: 19px;
}

#favoriteButton.active {
  background: rgba(216, 127, 141, 0.14);
  color: #ff9daf;
}

.progress-wrap {
  margin-top: 6px;
}

.progress-track {
  position: relative;
  height: 14px;
  display: flex;
  align-items: center;
}

.progress-track::before {
  content: "";
  position: absolute;
  inset: auto 0;
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.09);
}

.buffered-progress,
.played-progress {
  position: absolute;
  left: 0;
  height: 3px;
  border-radius: 99px;
  pointer-events: none;
}

.buffered-progress {
  background: rgba(255,255,255,0.18);
  width: 0;
}

.played-progress {
  background: var(--text);
  width: 0;
}

.range-overlay {
  position: absolute;
  width: 100%;
  height: 14px;
  opacity: 0;
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 9px;
}

.main-controls {
  display: grid;
  grid-template-columns: 1fr 44px 62px 44px 1fr;
  align-items: center;
  gap: 10px;
  margin: 19px 0;
}

.control-small {
  width: 34px;
  height: 34px;
  justify-self: center;
  color: var(--muted-2);
}

.control-small.active {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(214,255,103,0.08), rgba(95,143,208,0.055));
}

.control-medium {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
}

.play-button {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: #0e0b11;
  cursor: pointer;
  font-size: 19px;
  box-shadow: 0 10px 34px rgba(255,255,255,0.12);
  transition: transform 150ms ease;
}

.play-button:active {
  transform: scale(0.95);
}

.utility-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.volume-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  padding: 0 4px;
}

.volume-control input,
#volumeRange {
  width: 100%;
  accent-color: #f0edf5;
}

.utility-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  padding: 9px 11px;
  cursor: pointer;
  font-size: 10px;
}

.utility-button.timer-active {
  color: var(--accent);
  border-color: rgba(214,255,103,0.22);
  background: linear-gradient(135deg, rgba(214,255,103,0.055), rgba(95,143,208,0.045));
}

.queue-section {
  margin-top: 20px;
  padding-bottom: 20px;
}

.queue-heading {
  margin-bottom: 11px;
}

.queue-heading strong {
  display: block;
  font-size: 13px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.queue-list {
  display: grid;
  gap: 7px;
}

.queue-item {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px;
  border-radius: 13px;
  cursor: pointer;
  transition: background 150ms ease;
}

.queue-item:hover {
  background: rgba(255,255,255,0.045);
}

.queue-item img {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  object-fit: cover;
}

.queue-item strong,
.queue-item small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item strong {
  font-size: 10px;
}

.queue-item small {
  color: var(--muted-2);
  font-size: 9px;
  margin-top: 3px;
}

.queue-item > span {
  color: var(--muted-2);
  font-size: 9px;
}

.mobile-player {
  display: none;
}

.mobile-close {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4,3,6,0.58);
  backdrop-filter: blur(12px);
}

.modal-backdrop.hidden {
  display: none;
}

.sleep-sheet {
  width: min(430px, 100%);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px;
  padding: 22px;
  background: #17131d;
  box-shadow: var(--shadow);
}

.sheet-handle {
  display: none;
  width: 42px;
  height: 4px;
  border-radius: 99px;
  margin: 0 auto 18px;
  background: rgba(255,255,255,0.16);
}

.sheet-heading h2 {
  font-size: 23px;
}

.sheet-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sleep-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 17px;
}

.sleep-options button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 13px;
  cursor: pointer;
}

.sleep-options button:hover {
  background: rgba(255,255,255,0.075);
}

.sleep-options .sleep-off {
  grid-column: 1 / -1;
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 13px;
  background: rgba(20,17,25,0.92);
  box-shadow: 0 14px 50px rgba(0,0,0,0.35);
  color: #ddd7e2;
  font-size: 11px;
  transition: 200ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1260px) {
  :root {
    --sidebar: 86px;
    --player: 340px;
  }

  .brand-copy,
  .nav-item span:last-child,
  .sidebar-note div {
    display: none;
  }

  .sidebar {
    align-items: center;
  }

  .nav-item {
    justify-content: center;
    width: 48px;
    padding-inline: 8px;
  }

  .sidebar-note {
    width: 42px;
    justify-content: center;
    padding: 12px;
  }
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .player-panel {
    position: fixed;
    z-index: 40;
    inset: 0 0 0 auto;
    width: min(430px, 100%);
    height: 100dvh;
    transform: translateX(102%);
    transition: transform 260ms cubic-bezier(.2,.8,.2,1);
    box-shadow: -22px 0 80px rgba(0,0,0,0.42);
  }

  body.player-open .player-panel {
    transform: translateX(0);
  }

  .mobile-close {
    display: grid;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
  }

  .mobile-player {
    position: fixed;
    z-index: 35;
    left: 102px;
    right: 16px;
    bottom: 14px;
    min-height: 67px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 8px 8px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.11);
    background: rgba(22,18,27,0.87);
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 70px rgba(0,0,0,0.38);
    overflow: hidden;
  }

  .mobile-player-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
  }

  .mobile-player-main img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
  }

  .mobile-meta {
    min-width: 0;
  }

  .mobile-meta strong,
  .mobile-meta small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-meta strong {
    font-size: 11px;
  }

  .mobile-meta small {
    color: var(--muted-2);
    margin-top: 4px;
    font-size: 9px;
  }

  .mobile-player > .icon-button {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.055);
  }

  .mobile-progress {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 3px;
    height: 2px;
    border-radius: 99px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
  }

  .mobile-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: max(20px, env(safe-area-inset-top)) 16px 110px;
  }

  .topbar {
    display: block;
    margin-bottom: 18px;
  }

  .topbar h1 {
    font-size: 34px;
  }

  .search-box {
    width: 100%;
    margin-top: 18px;
  }

  .primary-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-card {
    min-height: 350px;
    border-radius: 25px;
  }

  .hero-copy {
    width: 100%;
    padding: 27px 24px;
  }

  .hero-copy h2 {
    font-size: 50px;
    max-width: 80%;
  }

  .hero-copy p {
    max-width: 68%;
    font-size: 12px;
  }

  .hero-art {
    width: 60%;
    opacity: 0.75;
  }

  .hero-disc {
    right: -18%;
    top: 61%;
  }

  .orb-a {
    right: -8%;
    top: 30%;
  }

  .orb-b {
    right: 13%;
  }

  .section-heading {
    align-items: center;
  }

  .track-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .track-card {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    border-radius: 16px;
  }

  .cover-wrap {
    width: 64px;
    height: 64px;
    border-radius: 13px;
  }

  .mobile-player {
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .player-panel {
    width: 100%;
    padding:
      max(18px, env(safe-area-inset-top))
      18px
      max(30px, env(safe-area-inset-bottom));
    background: rgba(13,10,16,0.96);
  }

  .media-stage {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .sheet-handle {
    display: block;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .sleep-sheet {
    width: 100%;
    border-radius: 28px 28px 0 0;
    padding: 17px 18px max(24px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 440px) {
  .hero-copy p {
    max-width: 82%;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .button {
    padding: 11px 14px;
    font-size: 12px;
  }

  .track-tags {
    display: none;
  }

  .track-meta-right span {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


@media (max-width: 520px) {
  .video-fullscreen {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 11px;
  }

  .video-fullscreen #fullscreenLabel {
    display: none;
  }
}


/* Green + blue accent balance:
   lime remains the primary identity; blue only cools the trailing edge. */
.button-primary,
.brand-mark {
  background-size: 160% 160%;
}

.button-primary:hover {
  background-position: 18% 50%;
}

.brand-mark {
  background-position: 22% 48%;
}



.sidebar-footer {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 8px 0;
}

.copyright {
  color: #6f6977;
  font-size: 9px;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.learn-more-link {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: #9d96a6;
  cursor: pointer;
  font-size: 9px;
  transition: color 150ms ease, opacity 150ms ease;
}

.learn-more-link:hover {
  color: #f0ecf4;
}

.about-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 5, 9, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
  transition: opacity 180ms ease;
}

.about-backdrop.hidden {
  display: none;
}

.about-card {
  position: relative;
  isolation: isolate;
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px;
  padding: 34px 34px 32px;
  background:
    radial-gradient(circle at 82% 16%, rgba(95, 143, 208, 0.10), transparent 34%),
    radial-gradient(circle at 18% 84%, rgba(172, 83, 107, 0.09), transparent 38%),
    linear-gradient(145deg, rgba(31, 27, 39, 0.84), rgba(18, 15, 24, 0.88));
  box-shadow:
    0 30px 90px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.about-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.045), transparent 26%, transparent 74%, rgba(255,255,255,0.018));
  pointer-events: none;
}

.about-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 50%;
  background: rgba(255,255,255,0.045);
  color: #f7f4f9;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 150ms ease, transform 150ms ease;
}

.about-close:hover {
  background: rgba(255,255,255,0.075);
}

.about-close:active {
  transform: scale(0.95);
}

.about-content {
  position: relative;
  z-index: 3;
  padding: 18px 12px 10px 2px;
}

.about-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #a7a0ae;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-content h2 {
  margin: 0 0 14px;
  max-width: 340px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.about-content p {
  max-width: 360px;
  margin: 0;
  color: #bbb4c1;
  font-size: 13px;
  line-height: 1.68;
}

.about-sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: absolute;
  color: rgba(255,255,255,0.55);
  text-shadow: 0 0 12px rgba(158, 216, 255, 0.16);
  opacity: 0;
  animation: softSparkle 5.8s ease-in-out infinite;
}

.s1 { top: 18%; left: 12%; font-size: 9px; animation-delay: 0s; }
.s2 { top: 22%; right: 18%; font-size: 11px; animation-delay: 1.2s; }
.s3 { bottom: 20%; left: 16%; font-size: 13px; animation-delay: 2.1s; }
.s4 { bottom: 16%; right: 14%; font-size: 8px; animation-delay: 3s; }
.s5 { top: 48%; right: 8%; font-size: 12px; animation-delay: 4s; }

@keyframes softSparkle {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0, 4px, 0) scale(0.8);
  }
  45% {
    opacity: 0.12;
  }
  55% {
    opacity: 0.58;
    transform: translate3d(2px, -3px, 0) scale(1);
  }
  68% {
    opacity: 0.10;
  }
}

@media (max-width: 1260px) {
  .sidebar-footer {
    align-items: center;
    justify-items: center;
    padding-inline: 0;
  }

  .copyright {
    display: none;
  }

  .learn-more-link {
    justify-self: center;
    width: 42px;
    font-size: 0;
  }

  .learn-more-link::before {
    content: "i";
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: auto;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 50%;
    color: #8d8794;
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .about-backdrop {
    align-items: end;
    padding: 0;
  }

  .about-card {
    width: 100%;
    border-radius: 28px 28px 0 0;
    padding:
      30px
      24px
      max(32px, env(safe-area-inset-bottom));
  }

  .about-content {
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle {
    animation: none !important;
    opacity: 0.16;
  }
}



/* ===== AUTH + ACCOUNT LIBRARY ===== */
.auth-hidden {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 72% 18%, rgba(105, 55, 134, 0.14), transparent 31%),
    radial-gradient(circle at 18% 83%, rgba(156, 69, 98, 0.10), transparent 28%),
    radial-gradient(circle at 53% 53%, rgba(95, 143, 208, 0.045), transparent 34%),
    #0b0910;
}

.login-screen.hidden {
  display: none;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: .13;
}

.login-glow-a {
  width: 440px;
  height: 440px;
  right: -130px;
  top: -130px;
  background: #7e4cff;
  animation: loginGlowA 19s ease-in-out infinite alternate;
}

.login-glow-b {
  width: 420px;
  height: 420px;
  left: -150px;
  bottom: -150px;
  background: #ac536b;
  animation: loginGlowB 23s ease-in-out infinite alternate;
}

@keyframes loginGlowA {
  from { transform: translate3d(-6px,-8px,0) scale(.97); }
  to { transform: translate3d(-34px,28px,0) scale(1.05); }
}

@keyframes loginGlowB {
  from { transform: translate3d(10px,8px,0) scale(1); }
  to { transform: translate3d(40px,-22px,0) scale(1.04); }
}

.login-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-dots span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 15px rgba(196, 224, 255, .22);
  opacity: .08;
  animation: loginTwinkle 5.7s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes loginTwinkle {
  0%, 100% { opacity: .05; transform: translateY(0) scale(.82); }
  50% { opacity: .72; transform: translateY(-4px) scale(1); }
}

.login-card {
  position: relative;
  z-index: 3;
  width: min(390px, 100%);
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 30px;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(32,27,40,.72), rgba(17,14,22,.82));
  box-shadow:
    0 32px 100px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.065);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.login-logo {
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 4px;
  padding: 11px;
  border-radius: 15px;
  margin-bottom: 26px;
  background: linear-gradient(145deg, #e7ff91 0%, #d6ff67 61%, #9ed8ff 100%);
  box-shadow:
    0 12px 35px rgba(210,255,103,.13),
    0 8px 30px rgba(95,143,208,.07);
}

.login-logo span {
  width: 4px;
  border-radius: 8px;
  background: #131807;
}

.login-logo span:nth-child(1) { height: 13px; }
.login-logo span:nth-child(2) { height: 23px; }
.login-logo span:nth-child(3) { height: 17px; }

.login-copy {
  margin-bottom: 25px;
}

.login-copy h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.045em;
}

.login-copy > p:last-child {
  margin: 10px 0 0;
  color: #9b94a3;
  font-size: 12px;
}

.login-field {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.login-field > span {
  color: #8c8594;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  outline: none;
  padding: 13px 14px;
  color: #faf8fc;
  background: rgba(255,255,255,.045);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.login-field input:focus {
  border-color: rgba(214,255,103,.24);
  background: rgba(255,255,255,.058);
  box-shadow: 0 0 0 4px rgba(95,143,208,.035);
}

.login-error {
  min-height: 16px;
  margin: 10px 2px 0;
  color: #e6a6b0;
  font-size: 10px;
  line-height: 1.4;
}

.login-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  margin-top: 6px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #131807;
  font-weight: 700;
  background: linear-gradient(118deg, #dfff72 0%, #d6ff67 64%, #a8ddff 100%);
  box-shadow: 0 10px 28px rgba(210,255,103,.11);
  transition: transform 150ms ease, filter 150ms ease;
}

.login-button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.login-button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.mobile-home-footer {
  display: none;
}

.mobile-nav {
  display: none;
}

.track-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 7px;
}

.track-add-button,
.track-remove-button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: #a9a2b0;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.track-add-button:hover,
.track-remove-button:hover {
  color: #fff;
  background: rgba(255,255,255,.075);
}

.track-add-button:active,
.track-remove-button:active {
  transform: scale(.94);
}

.playlist-card {
  position: relative;
  min-height: 155px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  background:
    radial-gradient(circle at 88% 17%, rgba(95,143,208,.075), transparent 31%),
    linear-gradient(140deg, rgba(255,255,255,.048), rgba(255,255,255,.022));
  transition: 170ms ease;
}

.playlist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 88% 17%, rgba(95,143,208,.10), transparent 31%),
    linear-gradient(140deg, rgba(255,255,255,.065), rgba(255,255,255,.028));
}

.playlist-card-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 26px;
  color: #14121a;
  background: linear-gradient(135deg, #d6ff67, #bfeea1 68%, #a8ddff);
}

.playlist-card strong {
  display: block;
  font-size: 15px;
}

.playlist-card small {
  display: block;
  margin-top: 6px;
  color: #7f7889;
  font-size: 10px;
}

.playlist-toolbar {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
}

.playlist-toolbar .button {
  font-size: 11px;
}

.playlist-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5,4,8,.60);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.playlist-backdrop.hidden {
  display: none;
}

.playlist-sheet {
  width: min(440px, 100%);
  max-height: min(680px, 84vh);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at 84% 8%, rgba(95,143,208,.075), transparent 30%),
    linear-gradient(145deg, rgba(31,27,39,.94), rgba(17,14,22,.97));
  box-shadow: 0 30px 90px rgba(0,0,0,.43);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  scrollbar-width: none;
}

.playlist-sheet::-webkit-scrollbar {
  display: none;
}

.playlist-modal-close {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
}

.playlist-choice-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 14px;
}

.playlist-choice {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #f7f4f9;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.playlist-choice:hover {
  background: rgba(255,255,255,.065);
}

.playlist-choice span {
  color: #85808a;
  font-size: 9px;
}

.playlist-create-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 13px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.playlist-create-form label {
  display: grid;
  gap: 6px;
}

.playlist-create-form label > span {
  color: #85808a;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.playlist-create-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  color: #fff;
  background: rgba(255,255,255,.035);
}

.playlist-limit-note {
  margin: 10px 0 0;
  color: #756f7a;
  font-size: 9px;
}

.playlist-create-form.limit-reached {
  display: none;
}

.library-view-hidden {
  display: none !important;
}

@media (max-width: 1020px) {
  .mobile-player {
    bottom: 74px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 34;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(19,16,24,.88);
    box-shadow: 0 18px 60px rgba(0,0,0,.38);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }

  .mobile-nav-item {
    border: 0;
    min-width: 0;
    border-radius: 13px;
    padding: 7px 4px;
    display: grid;
    place-items: center;
    gap: 3px;
    color: #76717c;
    background: transparent;
    cursor: pointer;
  }

  .mobile-nav-item > span {
    font-size: 16px;
    line-height: 1;
  }

  .mobile-nav-item small {
    font-size: 8px;
  }

  .mobile-nav-item.active {
    color: #f7f4f9;
    background: rgba(255,255,255,.065);
  }
}

@media (max-width: 760px) {
  .main-content {
    padding-bottom: 190px;
  }

  .mobile-home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
    padding: 18px 2px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #6f6977;
    font-size: 9px;
  }

  .mobile-home-footer.hidden {
    display: none;
  }

  .mobile-home-footer button {
    border: 0;
    padding: 0;
    color: #938c9a;
    background: transparent;
    font-size: 9px;
    cursor: pointer;
  }

  .playlist-backdrop {
    align-items: end;
    padding: 0;
  }

  .playlist-sheet {
    width: 100%;
    max-height: 82dvh;
    border-radius: 28px 28px 0 0;
    padding:
      17px
      18px
      max(24px, env(safe-area-inset-bottom));
  }

  .login-card {
    padding: 28px 24px;
    border-radius: 26px;
  }

  .login-copy h1 {
    font-size: 33px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-glow,
  .login-dots span {
    animation: none !important;
  }
}



/* ===== AURA EXPERIENCE POLISH / BUGFIX RELEASE ===== */

/* Auth boot state: keep login invisible until JS confirms there is no valid session. */
.login-screen {
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.login-screen.auth-visible {
  visibility: visible;
  opacity: 1;
}

.login-screen.hidden {
  display: none;
}

.app-root:not(.auth-hidden) {
  animation: auraAppReveal 180ms ease both;
}

@keyframes auraAppReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Main area becomes the positioning context for the soft desktop music-note detail. */
.main-content {
  position: relative;
}

/* Desktop-only, deliberately faint and non-interactive. */
.desktop-music-notes {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 132px;
  height: 36px;
  transform: translateX(-50%);
  pointer-events: none;
}

.desktop-music-notes span {
  position: absolute;
  bottom: 4px;
  color: rgba(210, 202, 221, 0.18);
  font-size: 12px;
  text-shadow: 0 0 12px rgba(126, 162, 211, 0.08);
  animation: auraNoteFloat 5.8s ease-in-out infinite;
}

.desktop-music-notes span:nth-child(1) { left: 10px; animation-delay: 0s; }
.desktop-music-notes span:nth-child(2) { left: 43px; font-size: 14px; animation-delay: 1.1s; }
.desktop-music-notes span:nth-child(3) { left: 80px; font-size: 11px; animation-delay: 2.3s; }
.desktop-music-notes span:nth-child(4) { left: 112px; animation-delay: 3.5s; }

@keyframes auraNoteFloat {
  0%, 100% {
    opacity: 0.06;
    transform: translate3d(0, 5px, 0) rotate(-4deg);
  }
  45% {
    opacity: 0.27;
  }
  58% {
    opacity: 0.40;
    transform: translate3d(2px, -8px, 0) rotate(3deg);
  }
  74% {
    opacity: 0.09;
  }
}

/* Mobile Aura brand is part of the page itself, with no separate header background. */
.mobile-aura-header {
  display: none;
}

.mobile-aura-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  background: linear-gradient(145deg, #e7ff91 0%, #d6ff67 58%, #9ed8ff 100%);
  box-shadow:
    0 8px 26px rgba(210, 255, 103, 0.12),
    0 6px 20px rgba(95, 143, 208, 0.06);
}

.mobile-aura-mark span {
  width: 3px;
  display: block;
  border-radius: 8px;
  background: #131807;
}

.mobile-aura-mark span:nth-child(1) { height: 9px; }
.mobile-aura-mark span:nth-child(2) { height: 16px; }
.mobile-aura-mark span:nth-child(3) { height: 12px; }

.mobile-aura-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.mobile-aura-copy strong {
  font-size: 15px;
}

.mobile-aura-copy small {
  margin-top: 4px;
  color: #8e8795;
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 1020px) {
  .desktop-music-notes {
    display: none;
  }
}

@media (max-width: 760px) {
  .mobile-aura-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1px 0 24px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .topbar {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-music-notes span,
  .app-root:not(.auth-hidden) {
    animation: none !important;
  }
}


/* ===== AURA TRACK FEATURE BADGES ===== */

.track-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.track-title-row > strong {
  min-width: 0;
  flex: 1 1 auto;
}

.track-badges {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.track-badge {
  height: 19px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 7px;
  color: #9f99a7;
  background: rgba(255,255,255,.028);
  font-size: 7px;
  line-height: 1;
  letter-spacing: .035em;
  white-space: nowrap;
  user-select: none;
}

.track-badge-video {
  color: #aaa5b4;
  border-color: rgba(168, 221, 255, .10);
  background: linear-gradient(120deg, rgba(168,221,255,.038), rgba(255,255,255,.018));
}

.track-badge-animated {
  color: #b7b0bf;
  border-color: rgba(214,255,103,.095);
  background: linear-gradient(120deg, rgba(214,255,103,.032), rgba(138,92,255,.025));
}

.track-badge-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.track-badge-icon .badge-fill {
  fill: currentColor;
  stroke: none;
}

.track-badge-sparkle-icon {
  overflow: visible;
}

.track-badge-sparkle-icon .badge-fill {
  transform-box: fill-box;
  transform-origin: center;
  animation: auraTrackSpark 3.8s ease-in-out infinite;
}

.track-badge-sparkle-icon .badge-spark-small {
  animation-delay: .9s;
}

.track-badge-sparkle-icon .badge-spark-dot {
  animation-delay: 1.7s;
}

@keyframes auraTrackSpark {
  0%, 100% { opacity: .46; transform: scale(.78); }
  44% { opacity: .46; transform: scale(.78); }
  54% { opacity: 1; transform: scale(1.08); }
  66% { opacity: .58; transform: scale(.88); }
}

@media (max-width: 1020px) {
  .track-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }

  .track-title-row > strong {
    min-width: 0;
    flex: 0 1 auto;
  }

  .track-badges {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    gap: 4px;
  }

  .track-badge {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 7px !important;
    color: rgba(255,255,255,.92) !important;
    background: rgba(255,255,255,.035) !important;
    border-color: rgba(255,255,255,.11) !important;
    font-size: 7px !important;
    line-height: 1 !important;
    letter-spacing: .025em !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .track-badge-video {
    background: linear-gradient(120deg, rgba(168,221,255,.045), rgba(255,255,255,.025)) !important;
    border-color: rgba(168,221,255,.13) !important;
  }

  .track-badge-animated {
    background: linear-gradient(120deg, rgba(214,255,103,.045), rgba(138,92,255,.035)) !important;
    border-color: rgba(214,255,103,.12) !important;
  }

  .track-badge-icon {
    width: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    display: block !important;
    flex: 0 0 8px !important;
    color: #fff !important;
    stroke: #fff !important;
    fill: none !important;
  }

  .track-badge-icon .badge-fill {
    fill: #fff !important;
    stroke: none !important;
  }

  .track-badge-label {
    display: inline-block !important;
    color: rgba(255,255,255,.82) !important;
    font-size: 7px !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
  }
}

@media (max-width: 430px) {
  .track-title-row {
    gap: 5px;
  }

  .track-badge {
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    padding-inline: 5px !important;
    gap: 3px !important;
  }

  .track-badge-label {
    font-size: 6.5px !important;
  }

  .track-badge-icon {
    width: 7px !important;
    min-width: 7px !important;
    max-width: 7px !important;
    height: 7px !important;
    min-height: 7px !important;
    max-height: 7px !important;
    flex-basis: 7px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track-badge-sparkle-icon .badge-fill {
    animation: none !important;
    opacity: .72;
  }
}
