:root {
  --tint-rgb: 14, 22, 44;
  --tint-a: 0.25;
  --radius: 26px;
  --shine: 0.25;
  --ink: #f5f7ff;
  --ink-soft: rgba(245, 247, 255, 0.72);
  --ink-faint: rgba(245, 247, 255, 0.46);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #7fe3ff;
  --glow: 120, 170, 255;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #05060c;
  color: var(--ink);
  font: 14px/1.45 "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  user-select: none;
}

button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; }
h1, h2, h3, p { margin: 0; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; }

/* Liquid glass */
.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(var(--tint-rgb), calc(var(--tint-a) * 0.82)), rgba(var(--tint-rgb), calc(var(--tint-a) * 1.12)));
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.72),
    inset 1px 0 0.5px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(255, 255, 255, 0.16),
    inset 0 14px 26px -18px rgba(255, 255, 255, 0.4),
    inset 0 0 26px rgba(255, 255, 255, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.38);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--shine);
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.48), transparent 68%);
}

.glass::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -45%;
  width: 34%;
  z-index: -1;
  pointer-events: none;
  opacity: calc(var(--shine) * 0.55);
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: sweep 13s ease-in-out infinite;
}

@keyframes sweep {
  0%, 12% { left: -45%; }
  62%, 100% { left: 125%; }
}

/* Frame */
#titlebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-app-region: drag;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}
.brand img { width: 20px; height: 20px; }

.win-buttons { display: flex; height: 100%; -webkit-app-region: no-drag; }
.win-buttons button { width: 46px; display: grid; place-items: center; transition: background 0.15s; }
.win-buttons button:hover { background: rgba(255, 255, 255, 0.14); }
.win-buttons #win-close:hover { background: #d92a3f; }
.win-buttons svg { width: 13px; height: 13px; }

#dock {
  position: fixed;
  top: 52px;
  left: 16px;
  bottom: 118px;
  width: 72px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  overflow-y: auto;
}

.dock-item {
  position: relative;
  flex: none;
  width: 56px;
  padding: 5px 0 4px;
  border-radius: 16px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  transition: background 0.2s, color 0.2s;
}
.dock-item svg { width: 20px; height: 20px; }
.dock-item:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.dock-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 12px rgba(0, 0, 0, 0.2);
}
.dock-spacer { flex: 1; }

#stage {
  position: fixed;
  top: 52px;
  left: 102px;
  right: 16px;
  bottom: 118px;
  z-index: 5;
}

.page { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.22s; }
.page.active { opacity: 1; visibility: visible; }
.page.active > .panel { animation: page-fade 0.28s ease-out backwards; }
html.quality-high .page.active > .panel { animation: page-in 0.5s cubic-bezier(.2, .85, .2, 1) backwards; }
@keyframes page-fade { from { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
.panel { height: 100%; }
.scroll { overflow-y: auto; padding: 30px 34px 40px; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border: 2px solid transparent; background-clip: padding-box; border-radius: 9px; }

/* Content */
.page-title { font: 600 30px/1.15 "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: -0.01em; }
.page-sub { color: var(--ink-soft); margin: 5px 0 20px; max-width: 700px; }
.section-title { font-size: 16px; font-weight: 600; margin: 26px 0 11px; }

.search {
  width: 100%;
  max-width: 660px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 23px;
  outline: 0;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.22);
  user-select: text;
}
.search::placeholder { color: var(--ink-faint); }
.search:focus { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.16); }

.row-button, .button, .chip {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid var(--line);
  transition: background 0.18s;
}
.row-button:hover, .button:hover, .chip:hover { background: rgba(255, 255, 255, 0.23); }
.button { height: 36px; padding: 0 15px; }
.button.small { height: 30px; padding: 0 12px; font-size: 12.5px; }
.chip { height: 32px; padding: 0 14px; }
.chips, .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.track {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto 34px 34px 50px;
  gap: 10px;
  cursor: pointer;
  align-items: center;
  padding: 7px 10px;
  border-radius: 13px;
  text-align: left;
  transition: background 0.15s;
  content-visibility: auto;
  contain-intrinsic-size: auto 58px;
  animation: row-in 0.5s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 26ms) backwards;
}
@keyframes row-in { from { opacity: 0; transform: translateY(14px); } }
.track:hover { background: rgba(255, 255, 255, 0.11); }
.track:nth-child(n+15) { animation: none; }
.track .add, .track .heart:not(.on) { opacity: 0; transition: opacity 0.15s; }
.track:hover .add, .track:hover .heart, .track:focus-within .add, .track:focus-within .heart { opacity: 1; }
.track .icon-button { width: 32px; height: 32px; }
.track .icon-button svg { width: 18px; height: 18px; }
.heart.on { color: #ff5c8a; }
.plays { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.artist-link { display: block; max-width: 100%; padding: 0; color: var(--ink-soft); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.artist-link:hover { color: #fff; text-decoration: underline; }
.track.playing { background: rgba(255, 255, 255, 0.18); }
.track img, .track .blank { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: rgba(255, 255, 255, 0.12); }
.track-text { min-width: 0; }
.track-text strong, .track-text span, .np-text strong, .np-text span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.track-text strong { font-weight: 600; }
.track-text span { color: var(--ink-soft); font-size: 12px; }
.track time { color: var(--ink-faint); font-size: 12px; text-align: right; }

.badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.badge.lossless { background: rgba(110, 255, 195, 0.25); color: #caffe8; }

.empty { color: var(--ink-soft); padding: 22px 0; }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 15px; }
.album { text-align: left; min-width: 0; padding: 8px; border-radius: 15px; transition: background 0.18s; }
.album:hover { background: rgba(255, 255, 255, 0.13); }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; background: rgba(255, 255, 255, 0.1); }
.album strong, .album span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.album strong { margin-top: 7px; font-size: 13px; }
.album span { color: var(--ink-soft); font-size: 12px; }

/* Player */
#player {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  height: 90px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 19px 0 12px;
  border-radius: 45px;
  transition: opacity 0.3s, transform 0.3s;
}

#np-art { flex: none; width: 66px; height: 66px; padding: 0; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, 0.13); box-shadow: 0 5px 16px rgba(0, 0, 0, 0.32); }
#np-art img { width: 100%; height: 100%; object-fit: cover; }
#np-art img:not([src]) { visibility: hidden; }
.np-text { flex: 0 1 240px; min-width: 90px; }
.np-text strong { font-size: 14.5px; }
.np-text span { color: var(--ink-soft); font-size: 12px; }

.np-center { flex: 1; min-width: 240px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.np-controls { display: flex; align-items: center; gap: 7px; }
.np-time { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.np-time input { flex: 1; }

.icon-button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background 0.15s, transform 0.15s; }
.icon-button:hover { background: rgba(255, 255, 255, 0.16); }
.icon-button:active { transform: scale(0.92); }
.icon-button svg { width: 20px; height: 20px; }
.icon-button.big { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.92); color: #0d1020; }
.icon-button.big:hover { background: #fff; }
.icon-button.active { color: var(--accent); }

#np-viz { flex: none; width: 150px; height: 46px; }
.np-tools { flex: none; display: flex; align-items: center; gap: 5px; }
#np-volume { width: 88px; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 16px; margin: 0; background: transparent; cursor: pointer; --fill: 0%; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff var(--fill), rgba(255, 255, 255, 0.26) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Big cover */
#bigcover {
  position: fixed;
  inset: 40px 0 112px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
  padding: 10px 56px 16px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  perspective: 900px;
  transition: opacity 0.32s, transform 0.42s cubic-bezier(.2, .8, .2, 1), visibility 0.32s;
}
body.big #bigcover { opacity: 1; visibility: visible; transform: none; }
body.big #dock, body.big #stage { opacity: 0; pointer-events: none; }
#dock, #stage { transition: opacity 0.3s; }
body.big.idle #player { opacity: 0; transform: translateY(24px); }

#bigcover-close { position: absolute; top: 3px; left: 16px; z-index: 2; }

.bc-art { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; }
#bc-viz { position: absolute; width: 100%; height: 100%; }
#bc-img {
  position: relative;
  width: min(62%, 54vh);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 30px 76px rgba(0, 0, 0, 0.52), 0 0 110px rgba(var(--glow), 0.5);
  transition: transform 0.22s ease-out, box-shadow 0.6s;
}
#bc-img:not([src]) { visibility: hidden; }

.bc-side { display: flex; flex-direction: column; height: 100%; min-height: 0; padding-top: 18px; }
#bc-title { font: 700 clamp(25px, 3.1vw, 42px)/1.1 "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
#bc-artist { margin: 6px 0 16px; color: var(--ink-soft); font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.bc-lyrics { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px; scroll-behavior: smooth; }
.bc-lyrics p { margin: 0 0 13px; font-size: 20px; font-weight: 600; line-height: 1.32; color: var(--ink-faint); transition: color 0.25s, transform 0.25s; transform-origin: left center; }
.bc-lyrics p.past { color: var(--ink-soft); }
.bc-lyrics p.current { color: #fff; transform: scale(1.04); }
.bc-lyrics.plain p { font-size: 16px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.bc-lyrics .lyric-note { font-size: 15px; font-weight: 500; color: var(--ink-soft); }

/* Settings */
.setting-group { margin-top: 15px; padding: 17px 20px; border-radius: 19px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
.setting-group h3 { font-size: 16px; font-weight: 600; margin-bottom: 9px; }
.setting { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(170px, 1.5fr) 52px; gap: 15px; align-items: center; min-height: 42px; }
.setting label { display: block; }
.setting small { display: block; color: var(--ink-soft); font-size: 11.5px; line-height: 1.25; }
.setting output { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 12px; }
.setting input[type="range"] { width: 100%; }

.toggle { position: relative; width: 42px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.22); transition: background 0.2s; justify-self: start; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); transition: transform 0.24s cubic-bezier(.3, 1.5, .5, 1); }
.toggle[aria-checked="true"] { background: #38c8a1; }
.toggle[aria-checked="true"]::after { transform: translateX(18px); }

.segmented { display: inline-flex; padding: 3px; border-radius: 15px; background: rgba(0, 0, 0, 0.2); justify-self: start; flex-wrap: wrap; }
.segmented button { min-width: 62px; height: 28px; padding: 0 11px; border-radius: 12px; color: var(--ink-soft); font-size: 12.5px; }
.segmented button.on { color: #101428; background: rgba(255, 255, 255, 0.92); text-shadow: none; font-weight: 600; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; margin-bottom: 11px; }
.theme-card { position: relative; height: 92px; overflow: hidden; border-radius: 15px; text-align: left; padding: 9px 12px; display: flex; align-items: flex-end; font-weight: 600; background-size: 220% 220%; animation: drift 9s ease-in-out infinite alternate; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75); }
.theme-card.on { box-shadow: inset 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, 0.38); }
@keyframes drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.theme-aurora { background-image: linear-gradient(120deg, #06152e, #0d8e74, #5430c9, #06152e); }
.theme-ocean { background-image: linear-gradient(120deg, #021128, #06506f, #1ba7b2, #021a35); }
.theme-galaxy { background-image: linear-gradient(120deg, #07041b, #2a2d9e, #ad2d88, #e9b189, #07041b); }
.theme-lava { background-image: linear-gradient(120deg, #120306, #7c0b05, #ff5a06, #ffc145, #240505); }
.theme-neon { background-image: linear-gradient(120deg, #08072a, #5a0d72, #ee1898, #16b8f0, #08072a); }
.theme-album { background-image: linear-gradient(120deg, #43309b, #cb4b8a, #e7a35f, #2a7ea3); }

.source-row { display: flex; align-items: center; gap: 13px; min-height: 39px; }
.source-row strong { min-width: 130px; }
.source-row span { flex: 1; color: var(--ink-soft); font-size: 12.5px; }
.status-note { color: var(--ink-soft); font-size: 12.5px; margin-top: 8px; }

.folder-row { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 12.5px; padding: 3px 0; }
.folder-row span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 118px;
  z-index: 50;
  max-width: 600px;
  padding: 9px 17px;
  border-radius: 18px;
  background: rgba(10, 13, 28, 0.88);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s, transform 0.22s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

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

@media (max-width: 1160px) {
  #np-viz { display: none; }
  #np-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .glass::after, .theme-card { animation: none; }
}


/* Artists */
.artist-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.artist-card { flex: 0 0 136px; min-width: 0; padding: 12px 8px; border-radius: 18px; text-align: center; transition: background 0.2s, transform 0.25s cubic-bezier(.2, .8, .2, 1); animation: row-in 0.5s cubic-bezier(.2, .8, .2, 1) backwards; }
.artist-card:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-4px); }
.artist-card img, .blank.round { display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto 9px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.14); font-size: 36px; font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.artist-card strong, .artist-card span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.artist-card span { color: var(--ink-soft); font-size: 12px; }
.top-artist { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 520px; padding: 14px 18px; border-radius: 20px; text-align: left; background: rgba(255, 255, 255, 0.11); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.2s, transform 0.25s; }
.top-artist:hover { background: rgba(255, 255, 255, 0.19); transform: translateY(-2px); }
.top-artist img, .top-artist .blank.round { flex: none; width: 92px; height: 92px; margin: 0; border-radius: 50%; object-fit: cover; }
.top-artist strong { font-size: 24px; font-weight: 700; }
.top-artist svg { width: 20px; height: 20px; margin-left: 6px; color: var(--accent); vertical-align: -3px; }
.top-artist span { display: block; color: var(--ink-soft); }

.back { position: relative; z-index: 2; margin-bottom: 10px; }
.artist-banner { position: relative; min-height: 270px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, rgba(var(--glow), 0.5), rgba(255, 255, 255, 0.08)); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); animation: page-in 0.55s cubic-bezier(.2, .85, .2, 1) backwards; }
.banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 16, 0.08), rgba(4, 6, 16, 0.8)); }
.banner-content { position: relative; display: flex; align-items: center; gap: 22px; padding: 22px 26px; width: 100%; }
.banner-pic, .banner-content .blank.round { flex: none; width: 148px; height: 148px; margin: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 14px 34px rgba(0, 0, 0, 0.45); }
.banner-text { min-width: 0; }
.banner-text h1 { margin: 0; font: 700 38px/1.1 "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; overflow-wrap: anywhere; }
.banner-text h1 svg { width: 26px; height: 26px; margin-left: 8px; color: var(--accent); vertical-align: -3px; }
.banner-text > p { color: var(--ink-soft); }
.stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 10px; }
.stat strong { display: block; font-size: 20px; }
.stat span { color: var(--ink-soft); font-size: 12px; }
.artist-bio { margin: 14px 4px 0; max-width: 780px; color: var(--ink-soft); white-space: pre-line; user-select: text; }
.button.primary { color: #0d1020; font-weight: 600; text-shadow: none; background: rgba(255, 255, 255, 0.93); }
.button.primary:hover { background: #fff; }
.button.follow.on { background: rgba(255, 255, 255, 0.3); }
.button:disabled { cursor: default; opacity: 0.68; }
.chip.selected { color: #0d1020; text-shadow: none; font-weight: 600; background: rgba(255, 255, 255, 0.92); }
.hidden { display: none !important; }

[hidden] { display: none !important; }

/* Forms */
.field { width: 100%; max-width: 440px; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color-scheme: dark; background: rgba(255, 255, 255, 0.1); user-select: text; }
.field:focus { border-color: rgba(255, 255, 255, 0.6); }
.field::placeholder { color: var(--ink-faint); }
.form-row { margin: 13px 0; }
.form-row > label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-row > small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 12px; }
.form-row label.check, label.check { display: flex; align-items: center; gap: 9px; margin: 8px 0; font-weight: 400; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: #38c8a1; }
.auth .field { display: block; margin-bottom: 9px; }
.notice { padding: 13px 17px; border-radius: 15px; background: rgba(255, 255, 255, 0.1); }
.group-head { display: flex; align-items: center; gap: 8px; }
.group-head h3 { flex: 1; margin: 0; }
.review-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.review-row:hover { background: rgba(255, 255, 255, 0.08); }
.review-row .track-text { flex: 1; }
.status-approved { background: rgba(110, 255, 195, 0.25); color: #caffe8; }
.status-rejected { background: rgba(255, 110, 130, 0.25); color: #ffd3da; }
.status-pending { background: rgba(255, 215, 120, 0.22); color: #ffeec2; }
.memory-reading { font-size: 18px; font-weight: 600; }

.pop-menu { position: fixed; z-index: 60; width: 250px; max-height: 300px; overflow-y: auto; padding: 7px; border-radius: 15px; background: rgba(16, 20, 40, 0.97); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); animation: page-in 0.2s ease-out; }
.pop-menu > button { display: block; width: 100%; padding: 7px 10px; border-radius: 9px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pop-menu > button:hover { background: rgba(255, 255, 255, 0.13); }
.pop-new { display: flex; gap: 6px; padding: 5px 3px 2px; }
.pop-new .field { height: 30px; min-width: 0; padding: 0 9px; font-size: 13px; }

/* Premium */
.premium-hero { text-align: center; padding: 26px 0 10px; }
.premium-hero .page-sub { margin-left: auto; margin-right: auto; }
.premium-star { display: inline-grid; place-items: center; width: 82px; height: 82px; margin-bottom: 12px; border-radius: 50%; color: #ffe6a0; background: radial-gradient(circle at 35% 30%, rgba(255, 244, 200, 0.5), rgba(255, 190, 80, 0.12)); box-shadow: 0 0 58px rgba(255, 200, 90, 0.48); animation: float 4s ease-in-out infinite; }
.premium-star svg { width: 44px; height: 44px; }
@keyframes float { 50% { transform: translateY(-7px) rotate(5deg); } }
.soon { height: 46px; padding: 0 30px; border-radius: 23px; opacity: 1 !important; font-size: 16px; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; margin-top: 26px; }
.perk { padding: 17px; border-radius: 18px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.12); animation: row-in 0.55s cubic-bezier(.2, .8, .2, 1) backwards; }
.perk strong { display: block; margin-bottom: 4px; font-size: 15px; }
.perk span { color: var(--ink-soft); font-size: 12.5px; }
.perk.more { display: grid; place-items: center; }

@media (max-width: 1160px) {
  .plays { display: none; }
  .track { grid-template-columns: 44px minmax(0, 1fr) 0 auto 34px 34px 46px; }
}

html.calm .track, html.calm .page.active > .panel, html.calm .artist-card, html.calm .artist-banner, html.calm .perk, html.calm .premium-star { animation: none; }
html.calm .track:hover, html.calm .artist-card:hover { transform: none; box-shadow: none; }

/* Blur-free glass for low memory: more tint keeps text readable, and the rim light stays. */
html.light-glass .glass { background: linear-gradient(145deg, rgba(var(--tint-rgb), calc(var(--tint-a) * 0.7 + 0.5)), rgba(var(--tint-rgb), calc(var(--tint-a) * 0.7 + 0.62))); }
html.light-glass .glass::after { display: none; }

#dock { scrollbar-width: none; }
#dock::-webkit-scrollbar { display: none; }

/* The moving light sweep needs its own graphics layer on every panel, so it is saved for High. */
html:not(.quality-high) .glass::after { display: none; }

/* Public beta */
.beta-tag { padding: 1px 7px; border-radius: 7px; background: rgba(255, 220, 130, 0.22); color: #ffe6a0; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-shadow: none; }
#update-notice { -webkit-app-region: no-drag; margin-left: 8px; padding: 2px 11px; border-radius: 10px; background: rgba(110, 255, 195, 0.25); color: #caffe8; font-size: 12px; }
textarea.field { display: block; max-width: 100%; height: auto; padding: 9px 13px; resize: vertical; font: inherit; }
.pop-menu textarea.field { font-size: 13px; }
.pop-title { margin: 6px 3px 3px; color: var(--ink-faint); font-size: 11.5px; font-weight: 600; }
.pop-note { margin: 3px; color: var(--ink-faint); font-size: 12px; }
.offline-mark { display: inline-block; margin-right: 5px; color: #9ff5cf; vertical-align: -2px; }
.offline-mark svg { width: 14px; height: 14px; }
.track-text strong > span { display: inline; color: inherit; font-size: inherit; }
.track-text.wrap span { white-space: normal; }
.button.danger { background: #d92a3f; color: #fff; text-shadow: none; }
.button.danger:hover { background: #ee3a50; }
.profile-preview { position: relative; display: flex; align-items: center; gap: 14px; min-height: 118px; padding: 14px; margin-bottom: 8px; overflow: hidden; border-radius: 16px; background: linear-gradient(120deg, rgba(var(--glow), 0.4), rgba(255, 255, 255, 0.07)); }
.profile-preview strong { position: relative; font-size: 22px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.profile-pic, .profile-preview .blank.round { position: relative; flex: none; width: 90px; height: 90px; margin: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 8px 20px rgba(0, 0, 0, 0.4); }
.locked-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink-soft); font-size: 12.5px; }
.locked-row svg { flex: none; width: 15px; height: 15px; color: #ffe6a0; }

/* Connectors */
.steps { margin: 8px 0; padding-left: 22px; color: var(--ink-soft); font-size: 13px; }
.steps li { margin-bottom: 4px; }
.link-chip { margin: 2px 0 8px; font-size: 12.5px; }
.connector-card textarea.field { max-width: 560px; }

.full-song { flex: none; height: 30px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
#bc-full { align-self: flex-start; margin: -6px 0 14px; }
@media (max-width: 1180px) {
  #np-full { display: none; }
}

/* Lyrics light up across each line as it plays. */
.bc-lyrics:not(.plain) p:not(.lyric-note) { cursor: pointer; }
.bc-lyrics p.current {
  color: transparent;
  background: linear-gradient(90deg, #fff var(--sweep, 0%), rgba(255, 255, 255, 0.42) var(--sweep, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(var(--glow), 0.55));
}
html.calm .bc-lyrics p.current { color: #fff; background: none; }

.show-more { display: block; margin: 12px auto 4px; }

#update-box { position: fixed; top: 52px; left: 50%; z-index: 55; width: min(520px, calc(100% - 32px)); padding: 20px 24px; transform: translateX(-50%); background: linear-gradient(145deg, rgba(var(--tint-rgb), 0.92), rgba(var(--tint-rgb), 0.97)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: page-in 0.4s ease-out; }
#update-box h2 { font-size: 19px; margin-bottom: 6px; }
#update-box p { color: var(--ink-soft); }

/* Home */
.home-hero { margin-bottom: 8px; }
.home-hero .page-title { font-size: 34px; }
.genre-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.genre-row::-webkit-scrollbar, .shelf::-webkit-scrollbar { display: none; }
.genre-row .chip { flex: none; }
.search { -webkit-appearance: none; appearance: none; }
.search::-webkit-search-cancel-button { filter: invert(1); }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.quick-tile { display: flex; align-items: center; gap: 11px; min-width: 0; overflow: hidden; border-radius: 12px; font-weight: 600; font-size: 13px; text-align: left; background: rgba(255, 255, 255, 0.11); transition: background 0.15s; }
.quick-tile:hover, .quick-tile.playing { background: rgba(255, 255, 255, 0.2); }
.quick-tile img, .quick-tile .blank { flex: none; width: 52px; height: 52px; object-fit: cover; background: rgba(255, 255, 255, 0.1); }
.quick-tile span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 8px; }
.shelf { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.song-tile { flex: 0 0 164px; min-width: 0; padding: 0; text-align: left; cursor: pointer; scroll-snap-align: start; }
.song-tile > strong, .song-tile > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.song-tile > strong { margin-top: 9px; font-size: 14px; font-weight: 600; }
.song-tile > span { color: var(--ink-soft); font-size: 12.5px; }
.tile-art { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: rgba(255, 255, 255, 0.11); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.tile-art img, .tile-art .blank { width: 100%; height: 100%; object-fit: cover; }
.tile-play { position: absolute; right: 9px; bottom: 9px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #0d1020; background: rgba(255, 255, 255, 0.94); opacity: 0; transform: translateY(5px); transition: opacity 0.16s, transform 0.16s; }
.tile-play svg { width: 22px; height: 22px; }
.song-tile:hover .tile-play, .song-tile:focus-visible .tile-play, .song-tile.playing .tile-play { opacity: 1; transform: none; }
.song-tile.playing > strong { color: var(--accent); }
.invite-tile .tile-art { display: grid; place-items: center; color: var(--ink-soft); background: rgba(255, 255, 255, 0.07); border: 1.5px dashed rgba(255, 255, 255, 0.34); box-shadow: none; }
.invite-tile .tile-art svg { width: 44px; height: 44px; }

/* Connectors and My Music */
.connector-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; text-align: left; font-size: 16px; }
.connector-head strong { flex: 1; font-weight: 600; }
.connector-head svg { flex: none; width: 20px; height: 20px; color: var(--ink-soft); }
.connector-body { margin-top: 10px; }
.typed-songs { margin-top: 8px; }
.big-empty { display: grid; justify-items: center; gap: 14px; padding: 48px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1.5px dashed rgba(255, 255, 255, 0.22); }
.big-empty svg { width: 48px; height: 48px; color: var(--ink-soft); }
.actions > .search { flex: 1 1 240px; max-width: 480px; }
.folders { margin: 8px 0 12px; color: var(--ink-soft); font-size: 12.5px; }
.folders summary { cursor: pointer; padding: 3px 0; }

/* Sheets */
.sheet { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; padding: 20px; }
.sheet-back { position: absolute; inset: 0; background: rgba(4, 6, 16, 0.55); }
.sheet-panel { position: relative; display: flex; flex-direction: column; width: min(520px, 100%); max-height: min(720px, 86vh); padding: 18px 20px 20px; background: linear-gradient(145deg, rgba(var(--tint-rgb), 0.9), rgba(var(--tint-rgb), 0.97)); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); animation: sheet-in 0.26s cubic-bezier(.2, .85, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(26px); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-head h2 { font-size: 19px; font-weight: 600; }
.sheet-body { overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.sheet-body > .field { display: block; margin-bottom: 9px; max-width: 100%; }
.sheet-row { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 50px; padding: 0 8px; border-radius: 13px; text-align: left; font-size: 15px; }
.sheet-row:hover { background: rgba(255, 255, 255, 0.1); }
.sheet-row svg { width: 22px; height: 22px; color: var(--ink-soft); }
.qr-code { display: block; width: 210px; height: 210px; margin: 12px auto; border-radius: 16px; }
.inbox-row { display: block; width: 100%; padding: 10px; border-radius: 12px; text-align: left; }
.inbox-row:hover { background: rgba(255, 255, 255, 0.08); }
.inbox-row strong, .inbox-row span { display: block; }
.inbox-row span { color: var(--ink-soft); font-size: 12.5px; }

/* Notifications button */
#inbox-button { position: relative; -webkit-app-region: no-drag; width: 30px; height: 30px; margin-left: 2px; }
#inbox-button svg { width: 17px; height: 17px; }
#inbox-button.has-new::after { content: attr(data-count); position: absolute; top: -2px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff5c8a; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

/* Comments */
.comment-form { display: grid; gap: 8px; margin: 8px 0 14px; justify-items: start; }
.comment-form .field { max-width: 100%; }
.comment { padding: 9px 2px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.comment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.comment-head span { color: var(--ink-faint); font-size: 11.5px; }
.comment p { user-select: text; overflow-wrap: anywhere; white-space: pre-line; }
.comment-tools { display: flex; gap: 12px; margin-top: 2px; }
.comment-tools button { padding: 0; color: var(--ink-faint); font-size: 11.5px; }
.comment-tools button:hover { color: #fff; }

/* Big cover tools */
.bc-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
.bc-tools .chip { flex: none; }

/* Welcome tour: only movement and fading, which stay smooth on every device. */
#welcome { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: radial-gradient(120% 90% at 50% 34%, rgba(6, 8, 22, 0.16), rgba(3, 4, 12, 0.62)); animation: wt-fade 0.5s ease-out both; touch-action: pan-y; }
body.wt-open #titlebar, body.wt-open #stage, body.wt-open #player, body.wt-open #dock { opacity: 0; pointer-events: none; }
#welcome.closing { pointer-events: none; animation: wt-fade-out 0.6s cubic-bezier(.4, 0, .2, 1) both; }
#welcome.closing .wt-panel { animation: wt-panel-out 0.6s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes wt-fade { from { opacity: 0; } }
@keyframes wt-fade-out { to { opacity: 0; } }
@keyframes wt-panel-out { to { opacity: 0; transform: scale(1.08); } }
.wt-panel { display: flex; flex-direction: column; align-items: center; width: min(480px, 100%); animation: wt-rise 0.8s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes wt-rise { from { opacity: 0; transform: translateY(26px) scale(0.97); } }
.wt-content { position: relative; display: grid; width: 100%; min-height: 410px; overflow: hidden; }
.wt-step { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.wt-step > * { animation: wt-enter 0.72s cubic-bezier(.16, 1, .3, 1) both; }
.wt-step > .wt-title { animation-delay: 0.09s; }
.wt-step > .wt-text { animation-delay: 0.17s; }
@keyframes wt-enter { from { opacity: 0; transform: translateX(46px); } }
.wt-from-left > * { animation-name: wt-enter-back; }
@keyframes wt-enter-back { from { opacity: 0; transform: translateX(-46px); } }
.wt-leave { pointer-events: none; animation: wt-leave 0.32s cubic-bezier(.4, 0, 1, 1) both; }
.wt-leave-back { pointer-events: none; animation: wt-leave-back 0.32s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes wt-leave { to { opacity: 0; transform: translateX(-38px); } }
@keyframes wt-leave-back { to { opacity: 0; transform: translateX(38px); } }
.wt-title { margin-top: 22px; font: 700 34px/1.12 "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: -0.015em; }
.wt-text { margin-top: 10px; max-width: 400px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.48; }
.wt-progress { display: flex; gap: 7px; width: 168px; margin: 18px 0 20px; }
.wt-progress i { position: relative; flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.wt-progress b { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 0.55s cubic-bezier(.16, 1, .3, 1); }
.wt-progress .on b, .wt-progress .done b { transform: scaleX(1); }
.wt-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(300px, 100%); }
.wt-next { width: 100%; height: 50px; border-radius: 25px; font-size: 16px; transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.4s, background 0.18s; }
.wt-next:active { transform: scale(0.97); }
.wt-next.wt-go { box-shadow: 0 0 34px rgba(var(--glow), 0.75); }
.wt-skip { width: 100%; background: none; border-color: transparent; color: var(--ink-soft); transition: opacity 0.3s; }
.wt-skip.wt-gone { opacity: 0; pointer-events: none; }

.wt-scene { position: relative; flex: none; width: 250px; height: 220px; display: grid; place-items: center; }
.wt-scene > * { position: absolute; }

/* Scene 1: the logo's sun, playing music. */
.wt-ring { width: 130px; height: 130px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); animation: wt-ring 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
.wt-ring:nth-child(2) { animation-delay: 1.2s; }
.wt-ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes wt-ring { from { opacity: 0.75; transform: scale(0.85); } to { opacity: 0; transform: scale(1.75); } }
.wt-orb { display: flex; align-items: center; justify-content: center; gap: 7px; width: 136px; height: 136px; border-radius: 50%; background: linear-gradient(145deg, #ffb13e, #f4307e); box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.9), inset 0 -3px 8px rgba(255, 255, 255, 0.28), 0 14px 54px rgba(244, 60, 120, 0.55); animation: wt-float 5s ease-in-out infinite; }
@keyframes wt-float { 50% { transform: translateY(-7px); } }
.wt-bar { width: 10px; height: 62px; border-radius: 5px; background: #fff; transform-origin: center; animation: wt-bar 1.15s ease-in-out infinite alternate; }
.wt-bar:nth-child(1) { animation-delay: -0.9s; }
.wt-bar:nth-child(2) { animation-delay: -0.35s; }
.wt-bar:nth-child(3) { animation-delay: -0.7s; }
.wt-bar:nth-child(4) { animation-delay: -0.15s; }
.wt-bar:nth-child(5) { animation-delay: -0.55s; }
@keyframes wt-bar { from { transform: scaleY(0.28); } to { transform: scaleY(1); } }

/* Scene 2: searching, and songs rising into view. */
.wt-pill { top: 16px; left: 14px; right: 14px; height: 46px; padding: 0 18px; display: flex; align-items: center; gap: 3px; border-radius: 23px; background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.7), 0 10px 26px rgba(0, 0, 0, 0.3); }
.wt-typing { display: block; width: 130px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.85); transform-origin: left; animation: wt-type 4.4s steps(9) infinite; }
.wt-caret { width: 2px; height: 20px; background: #fff; transform-origin: left; animation: wt-caret 4.4s steps(9) infinite; }
@keyframes wt-type { 0% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }
@keyframes wt-caret { 0% { transform: translateX(-130px); } 45%, 100% { transform: none; } }
.wt-tiles { bottom: 14px; left: 14px; right: 14px; display: flex; gap: 11px; }
.wt-tile { position: relative; flex: 1; aspect-ratio: 1; border-radius: 15px; box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.65), 0 12px 26px rgba(0, 0, 0, 0.34); background: linear-gradient(145deg, #5a6cff, #ae2cff); animation: wt-tile 4.4s cubic-bezier(.16, 1, .3, 1) infinite; }
.wt-tile:nth-child(2) { background: linear-gradient(145deg, #12d4b2, #1078e0); animation-delay: 0.1s; }
.wt-tile:nth-child(3) { background: linear-gradient(145deg, #ffb13e, #f4307e); animation-delay: 0.2s; }
.wt-tile b { position: absolute; right: 8px; bottom: 8px; width: 0; height: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
@keyframes wt-tile { 0%, 38% { opacity: 0; transform: translateY(26px) scale(0.92); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

/* Scene 3: glass panels fanning out over each other. */
.wt-card { width: 142px; height: 182px; border-radius: 24px; box-shadow: inset 0 1.5px 0.5px rgba(255, 255, 255, 0.85), inset 0 -1px 2px rgba(255, 255, 255, 0.3), 0 16px 38px rgba(0, 0, 0, 0.36); animation: wt-fan-a 5.2s cubic-bezier(.65, 0, .35, 1) infinite alternate; background: linear-gradient(150deg, rgba(62, 118, 255, 0.82), rgba(120, 40, 220, 0.72)); }
.wt-card:nth-child(2) { background: linear-gradient(150deg, rgba(18, 212, 178, 0.78), rgba(16, 120, 224, 0.68)); animation-name: wt-fan-b; }
.wt-card:nth-child(3) { background: linear-gradient(150deg, rgba(255, 177, 62, 0.76), rgba(244, 48, 126, 0.68)); animation-name: wt-fan-c; }
@keyframes wt-fan-a { from { transform: rotate(-3deg) translateX(-5px); } to { transform: rotate(-15deg) translateX(-50px); } }
@keyframes wt-fan-b { from { transform: rotate(0deg); } to { transform: rotate(0deg) translateY(-8px); } }
@keyframes wt-fan-c { from { transform: rotate(3deg) translateX(5px); } to { transform: rotate(15deg) translateX(50px); } }
.wt-shine { top: 30px; width: 60px; height: 170px; border-radius: 30px; background: rgba(255, 255, 255, 0.2); animation: wt-shine 5.2s ease-in-out infinite; }
@keyframes wt-shine { 0%, 15% { opacity: 0; transform: translateX(-120px) rotate(16deg); } 50% { opacity: 1; } 85%, 100% { opacity: 0; transform: translateX(120px) rotate(16deg); } }

/* Scene 4: a song rising to the first place on Home. */
.wt-phone { display: flex; gap: 9px; padding: 14px; bottom: 4px; width: 226px; border-radius: 22px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.7), 0 14px 32px rgba(0, 0, 0, 0.32); }
.wt-slot { flex: 1; aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, 0.11); }
.wt-slot:first-child { border: 1.5px dashed rgba(255, 255, 255, 0.45); background: none; }
.wt-song { left: 26px; bottom: 18px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #ffb13e, #f4307e); box-shadow: 0 12px 28px rgba(244, 48, 126, 0.5); animation: wt-song 3.8s cubic-bezier(.34, 1.3, .64, 1) infinite; }
.wt-song svg { width: 26px; height: 26px; }
@keyframes wt-song { 0%, 12% { opacity: 0; transform: translate(70px, -116px) scale(1.15); } 30% { opacity: 1; } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.wt-arrow { top: 2px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.15); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.75); animation: wt-float 2.6s ease-in-out infinite; }
.wt-arrow svg { width: 26px; height: 26px; }

/* When the tour ends, the app settles into place piece by piece. */
body.wt-reveal #titlebar, body.wt-reveal #stage, body.wt-reveal #player, body.wt-reveal #dock { animation: wt-reveal 0.95s cubic-bezier(.16, 1, .3, 1) both; }
body.wt-reveal #stage { animation-delay: 0.06s; }
body.wt-reveal #player { animation-delay: 0.14s; }
body.wt-reveal #dock { animation-delay: 0.2s; }
@keyframes wt-reveal { from { opacity: 0; transform: translateY(20px); } }
html.calm #welcome *, html.calm #welcome, html.calm body.wt-reveal * { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  #welcome, #welcome * { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }
}

/* Premium */
.perk .soon-badge { display: inline-block; margin-bottom: 6px; background: rgba(255, 220, 130, 0.22); color: #ffe6a0; }
.perk-text { display: block; color: var(--ink-soft); font-size: 12.5px; }
.locked-row { padding: 0; text-align: left; }

/* Review */
.check-note { display: block; color: #ffe6a0 !important; }
.check-note:empty { display: none; }
.stats-top { margin-top: 14px; }

button.banner-image, video.banner-image { pointer-events: none; }

/* Paying for Premium */
.pay-step > * { animation: wt-enter 0.6s cubic-bezier(.16, 1, .3, 1) both; }
.pay-step > :nth-child(2) { animation-delay: 0.05s; }
.pay-step > :nth-child(3) { animation-delay: 0.1s; }
.pay-step > :nth-child(4) { animation-delay: 0.15s; }
.pay-step > :nth-child(5) { animation-delay: 0.2s; }
.pay-step > :nth-child(6) { animation-delay: 0.25s; }
.pay-step > :nth-child(7) { animation-delay: 0.3s; }
.pay-step > :nth-child(8) { animation-delay: 0.35s; }
.pay-amount { text-align: center; padding: 4px 0 6px; }
.pay-amount strong { display: block; font: 700 42px/1.1 "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; background: linear-gradient(100deg, #ffe6a0, #ff9a5a, #ff5c8a, #ffe6a0); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: pay-shimmer 5s linear infinite; }
@keyframes pay-shimmer { to { background-position: -240% 0; } }
.pay-amount span { color: var(--ink-soft); font-size: 13px; }
.pay-hint { text-align: center; }
.pay-qr { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 12px 40px rgba(var(--glow), 0.45); }
.pay-copy { position: relative; display: block; width: 100%; margin-bottom: 7px; padding: 8px 74px 8px 13px; border-radius: 13px; text-align: left; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); transition: background 0.18s, transform 0.18s cubic-bezier(.34, 1.56, .64, 1); }
.pay-copy:hover { background: rgba(255, 255, 255, 0.15); }
.pay-copy:active { transform: scale(0.985); }
.pay-copy small { display: block; color: var(--ink-faint); font-size: 11px; }
.pay-copy strong { display: block; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: text; }
.pay-copy-state, .pay-copied { position: absolute; top: 50%; right: 13px; color: var(--ink-soft); font-size: 12px; transform: translateY(-50%); transition: opacity 0.2s, transform 0.28s cubic-bezier(.34, 1.56, .64, 1); }
.pay-copied { color: #9ff5cf; font-weight: 600; opacity: 0; transform: translateY(-50%) scale(0.7); }
.pay-copy.copied .pay-copy-state { opacity: 0; }
.pay-copy.copied .pay-copied { opacity: 1; transform: translateY(-50%); }
.pay-warning { margin: 4px 2px 12px; color: #ffe6a0; font-size: 12.5px; }
.pay-done { display: block; width: 100%; height: 48px; border-radius: 24px; font-size: 16px; }
.pay-loading { display: flex; justify-content: center; gap: 8px; padding: 50px 0; }
.pay-loading i { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pay-dot 0.9s ease-in-out infinite alternate; }
.pay-loading i:nth-child(2) { animation-delay: 0.15s; }
.pay-loading i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pay-dot { from { opacity: 0.25; transform: translateY(5px); } }
.pay-waiting { text-align: center; padding-top: 8px; }
.pay-waiting h3 { margin: 16px 0 6px; font-size: 19px; }
.pay-waiting .actions { justify-content: center; }
.pay-orbit { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto; color: #ffe6a0; }
.pay-orbit svg { width: 42px; height: 42px; animation: wt-float 3s ease-in-out infinite; }
.pay-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 230, 160, 0.6); animation: wt-ring 2.7s cubic-bezier(.2, .6, .3, 1) infinite; }
.pay-orbit i:nth-child(2) { animation-delay: 0.9s; }
.pay-orbit i:nth-child(3) { animation-delay: 1.8s; }
.pay-request { flex-wrap: wrap; }

#celebrate { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; overflow: hidden; background: rgba(4, 6, 16, 0.5); animation: wt-fade 0.35s ease-out both, wt-fade-out 0.5s ease-in 3.7s both; }
#celebrate > i { position: absolute; top: -24px; left: var(--x); width: 9px; height: 15px; border-radius: 3px; background: hsl(var(--h), 92%, 68%); animation: celebrate-fall 2.8s cubic-bezier(.25, .6, .4, 1) var(--d) both; }
@keyframes celebrate-fall { to { transform: translateY(110vh) rotate(720deg); } }
.celebrate-card { width: min(380px, calc(100% - 40px)); padding: 28px 24px; text-align: center; background: linear-gradient(145deg, rgba(var(--tint-rgb), 0.9), rgba(var(--tint-rgb), 0.97)); animation: wt-rise 0.8s cubic-bezier(.16, 1, .3, 1) both; }
.celebrate-card .page-sub { margin: 6px auto 0; }
html.calm #celebrate > i { display: none; }
@media (prefers-reduced-motion: reduce) { #celebrate > i { display: none; } }

/* Motion: small, quick and springy. Only movement and fading, so it stays smooth. */
#dock-glider { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 16px; pointer-events: none; background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 12px rgba(0, 0, 0, 0.2); transition: transform 0.42s cubic-bezier(.3, 1.25, .5, 1), width 0.3s, height 0.3s, opacity 0.2s; }
.dock-item { z-index: 1; transition: color 0.25s, transform 0.18s cubic-bezier(.34, 1.56, .64, 1); }
.dock-item.active { background: none; box-shadow: none; }
.dock-item:active { transform: scale(0.93); }

.page.active .scroll > * { animation: settle 0.46s cubic-bezier(.16, 1, .3, 1) backwards; }
.page.active .scroll > :nth-child(2) { animation-delay: 0.04s; }
.page.active .scroll > :nth-child(3) { animation-delay: 0.08s; }
.page.active .scroll > :nth-child(4) { animation-delay: 0.12s; }
.page.active .scroll > :nth-child(n+5) { animation-delay: 0.16s; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } }
.track { animation-duration: 0.42s; animation-name: settle; animation-delay: calc(var(--i, 0) * 18ms); }

.button, .chip, .row-button, .quick-tile, .album, .artist-card, .icon-button, .song-tile { transition: background 0.18s, color 0.18s, transform 0.2s cubic-bezier(.34, 1.56, .64, 1); }
.button:active:not(:disabled), .chip:active, .quick-tile:active, .album:active, .artist-card:active, .song-tile:active { transform: scale(0.965); }

.tile-art { transition: transform 0.32s cubic-bezier(.2, .9, .3, 1), box-shadow 0.32s; }
@media (hover: hover) {
  .song-tile:hover .tile-art { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
  .artist-card:hover { transform: translateY(-3px); }
}

.tile-art img, .track img, .quick-tile img, .artist-card img, .album img, .top-artist img { opacity: 0; transition: opacity 0.38s ease-out; }
.tile-art img.shown, .track img.shown, .quick-tile img.shown, .artist-card img.shown, .album img.shown, .top-artist img.shown { opacity: 1; }

.skeletons { pointer-events: none; }
.skeleton-tile { flex: 0 0 164px; aspect-ratio: 1; border-radius: 16px; background: rgba(255, 255, 255, 0.1); animation: skeleton 1.3s ease-in-out infinite alternate; }
.skeleton-tile:nth-child(2) { animation-delay: 0.12s; }
.skeleton-tile:nth-child(3) { animation-delay: 0.24s; }
.skeleton-tile:nth-child(4) { animation-delay: 0.36s; }
.skeleton-tile:nth-child(5) { animation-delay: 0.48s; }
.skeleton-tile:nth-child(6) { animation-delay: 0.6s; }
@keyframes skeleton { from { opacity: 0.35; } to { opacity: 1; } }

/* Now Playing arrives in pieces, with the cover first. */
#bigcover { transition: opacity 0.28s, transform 0.5s cubic-bezier(.16, 1, .3, 1), visibility 0.28s; }
.bc-art, .bc-side > * { transition: opacity 0.4s ease-out, transform 0.55s cubic-bezier(.16, 1, .3, 1); }
#bigcover .bc-art { opacity: 0; transform: translateY(26px) scale(0.92); }
#bigcover .bc-side > * { opacity: 0; transform: translateY(16px); }
body.big #bigcover .bc-art, body.big #bigcover .bc-side > * { opacity: 1; transform: none; }
body.big .bc-side > :nth-child(1) { transition-delay: 0.06s; }
body.big .bc-side > :nth-child(2) { transition-delay: 0.1s; }
body.big .bc-side > :nth-child(3) { transition-delay: 0.13s; }
body.big .bc-side > :nth-child(4) { transition-delay: 0.16s; }
body.big .bc-side > :nth-child(5) { transition-delay: 0.2s; }

.sheet-back { animation: wt-fade 0.25s ease-out both; }
.sheet-closing { pointer-events: none; }
.sheet-closing .sheet-back { animation: wt-fade-out 0.2s ease-in both; }
.sheet-closing .sheet-panel { animation: sheet-out 0.2s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes sheet-out { to { opacity: 0; transform: translateY(24px); } }
.pop-menu { transform-origin: top right; animation: menu-in 0.2s cubic-bezier(.2, 1.1, .4, 1); }
@keyframes menu-in { from { opacity: 0; transform: scale(0.94) translateY(-4px); } }
#toast { transition: opacity 0.22s, transform 0.34s cubic-bezier(.34, 1.4, .64, 1); }

html.calm .page.active .scroll > *, html.calm .skeleton-tile, html.calm .pop-menu, html.calm .sheet-back, html.calm .sheet-panel { animation: none; }
html.calm #dock-glider, html.calm .tile-art, html.calm #bigcover .bc-art, html.calm #bigcover .bc-side > * { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .page.active .scroll > *, .track, .skeleton-tile, .pop-menu, .sheet-panel { animation: none; }
  #dock-glider, .tile-art, #bigcover .bc-art, #bigcover .bc-side > * { transition: none; }
}

.report-kind { display: inline-block !important; margin-bottom: 3px; }
#sheet .check { margin: 4px 0 8px; }

/* What's new scenes: lots of small movement, all kept inside one tidy picture. */
.wn-screen, .wn-sky, .wn-card { position: relative; overflow: hidden; border-radius: 22px; box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.8), inset 0 -1px 2px rgba(255, 255, 255, 0.25), 0 16px 40px rgba(0, 0, 0, 0.38); }
.wn-screen { display: flex; flex-direction: column; gap: 8px; width: 150px; height: 208px; padding: 16px 12px; background: rgba(255, 255, 255, 0.1); animation: wt-float 5s ease-in-out infinite; }
.wn-line { display: block; flex: none; width: 74%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); transform-origin: left; animation: wn-grow 4.4s cubic-bezier(.16, 1, .3, 1) infinite; }
.wn-line.short { width: 48%; opacity: 0.5; animation-delay: 0.1s; }
@keyframes wn-grow { 0%, 8% { transform: scaleX(0); } 26%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.wn-row { display: flex; flex: none; gap: 6px; margin-top: 2px; }
.wn-row i { flex: 1; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(145deg, #5a6cff, #ae2cff); animation: wn-pop 4.4s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.wn-row i:nth-child(2) { background: linear-gradient(145deg, #12d4b2, #1078e0); animation-delay: 0.08s; }
.wn-row i:nth-child(3) { background: linear-gradient(145deg, #ffb13e, #f4307e); animation-delay: 0.16s; }
.wn-row + .wn-row i { animation-delay: 0.26s; }
.wn-row + .wn-row i:nth-child(2) { animation-delay: 0.34s; }
.wn-row + .wn-row i:nth-child(3) { animation-delay: 0.42s; }
@keyframes wn-pop { 0%, 14% { opacity: 0; transform: scale(0.5); } 30%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(0.9); } }
.wn-menu { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); }
.wn-menu b { position: absolute; top: 2px; left: 2px; width: 30%; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.55); animation: wn-glide 4.4s cubic-bezier(.3, 1.25, .5, 1) infinite; }
@keyframes wn-glide { 0%, 30% { transform: none; } 45%, 62% { transform: translateX(110%); } 77%, 100% { transform: translateX(220%); } }

.wn-sky { width: 236px; height: 190px; }
.wn-stripes { position: absolute; top: -40px; left: -120px; width: 480px; height: 280px; background: repeating-linear-gradient(115deg, #5a3cff 0 28px, #12c4c2 28px 56px, #f4307e 56px 84px, #ffb13e 84px 112px); animation: wn-drift 7s linear infinite; }
@keyframes wn-drift { to { transform: translateX(62px); } }
.wn-lens { position: absolute; top: 34px; left: 30px; width: 112px; height: 122px; overflow: hidden; border-radius: 34px; box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 3px rgba(255, 255, 255, 0.45), inset 0 0 22px rgba(255, 255, 255, 0.35), 0 14px 30px rgba(0, 0, 0, 0.4); animation: wn-lens 5.4s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
.wn-lens .wn-stripes { transform-origin: center; scale: 1.45; opacity: 0.92; }
@keyframes wn-lens { to { transform: translateX(64px); } }

.wn-bubble { top: 18px; left: 12px; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 116px; height: 58px; padding: 0 12px; border-radius: 18px 18px 18px 5px; background: rgba(255, 255, 255, 0.15); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.75), 0 10px 24px rgba(0, 0, 0, 0.3); transform-origin: left bottom; animation: wn-bubble 5s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.wn-bubble.two { top: 92px; left: 28px; background: linear-gradient(145deg, #5a6cff, #ae2cff); animation-delay: 0.45s; }
.wn-bubble i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }
.wn-bubble i:last-child { width: 62%; }
@keyframes wn-bubble { 0%, 6% { opacity: 0; transform: scale(0.4); } 18%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(0.9); } }
.wn-qr { top: 54px; right: 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 104px; height: 104px; padding: 9px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
.wn-qr i { border-radius: 2px; background: #0a0c1c; animation: wn-cell 5s ease-out infinite; animation-delay: calc(0.7s + var(--n) * 35ms); }
@keyframes wn-cell { 0% { transform: scale(0); } 12%, 90% { transform: none; } 100% { transform: scale(0); } }

.wn-disc { left: 22px; top: 22px; width: 118px; height: 118px; border-radius: 50%; background: radial-gradient(circle, #0a0c1c 11%, transparent 12%), repeating-radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 7px), linear-gradient(145deg, #5a6cff, #ae2cff); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.7); animation: wn-spin 4s linear infinite, wn-out 6s ease-in-out infinite alternate; }
.wn-disc.two { left: auto; right: 22px; background: radial-gradient(circle, #0a0c1c 11%, transparent 12%), repeating-radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 7px), linear-gradient(145deg, #ffb13e, #f4307e); animation: wn-spin 4s linear infinite, wn-in 6s ease-in-out infinite alternate; }
@keyframes wn-spin { to { rotate: 360deg; } }
@keyframes wn-out { to { opacity: 0.25; transform: scale(0.84); } }
@keyframes wn-in { from { opacity: 0.25; transform: scale(0.84); } }
.wn-wave { bottom: 18px; display: flex; align-items: center; gap: 5px; height: 42px; }
.wn-wave i { width: 6px; height: 42px; border-radius: 3px; background: #fff; animation: wt-bar 0.9s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -130ms); }

.wn-card { width: 200px; height: 200px; background: rgba(255, 255, 255, 0.1); }
.wn-banner { position: absolute; inset: 0 0 auto; height: 86px; overflow: hidden; background: linear-gradient(120deg, #5a3cff, #12c4c2, #f4307e, #5a3cff); background-size: 300% 100%; animation: wn-banner 6s linear infinite; }
@keyframes wn-banner { to { background-position: -300% 0; } }
.wn-face { position: absolute; top: 52px; left: 66px; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ffb13e, #f4307e); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 10px 22px rgba(0, 0, 0, 0.4); animation: wn-face 3.4s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.wn-face svg { width: 34px; height: 34px; }
@keyframes wn-face { 0%, 100% { transform: none; } 50% { transform: scale(1.09); } }
.wn-ring { position: absolute; top: 40px; left: 54px; width: 92px; height: 92px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.65); animation: wn-spin 9s linear infinite; }
.wn-card .wn-line { position: absolute; left: 44px; top: 142px; width: 112px; }
.wn-card .wn-line.short { top: 160px; left: 62px; width: 76px; }

.wn-words { position: relative; display: block; width: 240px; height: 96px; overflow: hidden; border-radius: 26px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.8), 0 16px 36px rgba(0, 0, 0, 0.36); }
.wn-words i { position: absolute; inset: 0; display: grid; place-items: center; font: 700 38px/1 "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-style: normal; opacity: 0; animation: wn-word 7.5s cubic-bezier(.16, 1, .3, 1) infinite; animation-delay: calc(var(--n) * 1.5s); }
@keyframes wn-word { 0% { opacity: 0; transform: translateY(34px); } 5%, 17% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: translateY(-34px); } }

/* Repeat and shuffle */
#np-repeat, #np-shuffle { position: relative; color: var(--ink-soft); }
#np-repeat.on, #np-shuffle.on { color: var(--accent); }
#np-repeat svg, #np-shuffle svg { width: 18px; height: 18px; }
#np-repeat::after { content: attr(data-mark); position: absolute; right: 1px; bottom: 1px; min-width: 14px; height: 14px; padding: 0 2px; border-radius: 7px; background: var(--accent); color: #0a0c1c; font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; text-shadow: none; }
#np-repeat:not(.on)::after { display: none; }

/* Free music */
.free-note { margin: 2px 0 10px; color: var(--ink-soft); font-size: 12.5px; }
.album-license { display: block; color: var(--ink-faint); font-size: 11px; }
.free-genres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.free-genres::-webkit-scrollbar { display: none; }
.free-genres .chip { flex: none; text-transform: capitalize; }

/* Small logo */
.brand-logo { flex: none; width: 17px; height: 17px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4)); }

/* Word by word lyrics */
.bc-lyrics p.current { color: rgba(255, 255, 255, 0.42); background: none; filter: none; text-shadow: none; }
.bc-lyrics .word { transition: color 0.35s ease, text-shadow 0.6s ease; }
.bc-lyrics p.past .word { color: inherit; }
.bc-lyrics p.current .word.said { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, 0.35); }
.bc-lyrics p.current .word.saying { color: transparent; background: linear-gradient(90deg, #fff calc(var(--sweep, 0%) - 8%), rgba(255, 255, 255, 0.42) calc(var(--sweep, 0%) + 8%)); -webkit-background-clip: text; background-clip: text; }
html.calm .bc-lyrics p.current .word { color: #fff; background: none; }

/* The cover melts into a background made from itself. */
#bc-backdrop { position: fixed; inset: 0; z-index: 15; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.6s ease-out, visibility 0.6s; }
body.big #bc-backdrop { opacity: 1; visibility: visible; }
#bc-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 16, 0.42); }
#bc-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; filter: blur(70px) saturate(1.5); transform: scale(1.25); }
#bc-bg:not([src]) { visibility: hidden; }
#bc-img { border-radius: 8%; box-shadow: none; -webkit-mask-image: radial-gradient(closest-side, #000 74%, rgba(0, 0, 0, 0.55) 90%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, rgba(0, 0, 0, 0.55) 90%, transparent 100%); }
body.big .bc-lyrics.glass { background: rgba(5, 7, 16, 0.18); }

/* Solam AI */
#ai-orb { position: fixed; right: 26px; bottom: 116px; z-index: 32; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; color: #fff; transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1), opacity 0.2s; animation: settle 0.5s cubic-bezier(.16, 1, .3, 1) 0.4s backwards; }
#ai-orb svg { width: 22px; height: 22px; }
#ai-orb:hover { transform: scale(1.07); }
#ai-orb:active { transform: scale(0.93); }
body.big #ai-orb, body.on-assistant #ai-orb, body.wt-open #ai-orb { opacity: 0; pointer-events: none; }
#assistant { display: flex; height: 100%; overflow: hidden; }
.ai-chat { display: flex; flex-direction: column; flex: 1; width: 100%; min-width: 0; min-height: 0; height: 100%; }
.sheet-panel.ai-panel { width: min(620px, 100%); height: min(720px, 86vh); }
.ai-panel .sheet-body { flex: 1; overflow: hidden; }
.ai-messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 8px; -webkit-overflow-scrolling: touch; }
#assistant .ai-messages { padding: 26px max(16px, calc((100% - 720px) / 2)) 10px; }
.ai-hello { margin: auto; max-width: 400px; text-align: center; animation: settle 0.5s cubic-bezier(.16, 1, .3, 1) backwards; }
.ai-hello h2 { margin: 12px 0 4px; font: 600 24px/1.2 "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.ai-hello p { color: var(--ink-soft); }
.ai-hello-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.ai-hello-mark svg { width: 28px; height: 28px; }
.ai-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ai-row { display: flex; gap: 9px; animation: settle 0.34s cubic-bezier(.16, 1, .3, 1) backwards; }
.from-you { justify-content: flex-end; }
.ai-mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; color: var(--ink-soft); }
.ai-mark svg { width: 18px; height: 18px; }
.ai-content { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: min(84%, 560px); }
.ai-bubble { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; user-select: text; }
.from-you .ai-bubble { padding: 8px 14px; border-radius: 18px 18px 5px 18px; background: rgba(255, 255, 255, 0.16); }
.from-ai .ai-bubble { padding-top: 3px; }
.ai-bubble.failed { color: #ffd3da; }
.ai-card { padding: 12px 14px; border-radius: 15px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.ai-card strong { display: block; font-weight: 600; }
.ai-card .actions { margin: 10px 0 0; }
.ai-songs { margin: 7px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 12.5px; }
.ai-state { display: inline-block; margin-top: 7px; color: var(--ink-soft); font-size: 12.5px; }
.ai-state.done { color: #9ff5cf; }
.ai-state.failed { color: #ffd3da; }
.ai-typing { display: flex; align-items: center; gap: 5px; height: 28px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: pay-dot 0.7s ease-in-out infinite alternate; }
.ai-typing i:nth-child(2) { animation-delay: 0.14s; }
.ai-typing i:nth-child(3) { animation-delay: 0.28s; }
.ai-compose { display: flex; align-items: flex-end; gap: 6px; margin: 8px 16px 4px; padding: 6px 6px 6px 16px; border-radius: 24px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.18s; }
.ai-compose:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
#assistant .ai-compose, #assistant .ai-foot { width: min(720px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.ai-input { flex: 1; min-width: 0; max-height: 120px; padding: 7px 0; border: 0; outline: 0; resize: none; color: inherit; background: none; font: inherit; user-select: text; }
.ai-input::placeholder { color: var(--ink-faint); }
.ai-send { flex: none; color: #0d1020; background: rgba(255, 255, 255, 0.92); }
.ai-send:hover { background: #fff; }
.ai-send svg { width: 17px; height: 17px; }
.ai-foot { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 0 22px 12px; color: var(--ink-faint); font-size: 11px; }
.ai-foot button { padding: 0; color: inherit; font-size: inherit; text-decoration: underline; }

/* Home: recent searches and the mix button */
.recent-searches { display: none; margin-top: 10px; flex-wrap: wrap; }
.home-hero:focus-within .recent-searches:not(:empty) { display: flex; }
.ghost-chip { opacity: 0.65; }
.mix-button { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 2px; }
.mix-button svg { width: 18px; height: 18px; }

/* Library: your stats */
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.stat-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.stat-card strong { font: 600 26px/1.15 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; }
.stat-card span { color: var(--ink-soft); font-size: 12.5px; }
.stat-artists { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.stat-artist { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); }
.stat-artist b { width: 18px; color: var(--ink-soft); font-weight: 600; text-align: center; }
.stat-artist span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-artist small { flex: none; color: var(--ink-soft); }

/* Solam AI */
.ai-word { display: inline-block; white-space: pre-wrap; animation: ai-word 0.32s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes ai-word { from { opacity: 0; transform: translateY(5px); filter: blur(3px); } }
.ai-tool { align-self: flex-start; padding: 2px 0; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 12px; cursor: pointer; opacity: 0.75; }
.ai-tool:hover { color: var(--ink); opacity: 1; }
.ai-play { display: block; margin-top: 9px; }
.ai-state { margin-right: 8px; }
@media (prefers-reduced-motion: reduce) { .ai-word { animation: none; } }
/* While results show, the chips stay hidden even with the keyboard open, so the list never jumps under a finger. */
.home-hero.searching .mix-button, .home-hero.searching .genre-row, .home-hero.searching .recent-searches, .home-hero.searching:focus-within .recent-searches:not(:empty) { display: none; }

/* Home: mix and radio */
.mix-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.mix-row .mix-button { margin: 0; }
.home-hero.searching .mix-row { display: none; }
.radio-moods { margin: 12px 0; }
.radio-own { display: flex; gap: 8px; }
.radio-own .field { flex: 1; min-width: 0; }

/* Animated song covers */
#np-art { position: relative; }
#np-art .cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bc-art .cover-video { position: absolute; object-fit: cover; border-radius: 8%; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 74%, rgba(0, 0, 0, 0.55) 90%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, rgba(0, 0, 0, 0.55) 90%, transparent 100%); }
.track video, .quick-tile video, .tile-art video { object-fit: cover; background: rgba(255, 255, 255, 0.12); }
.track video { width: 44px; height: 44px; border-radius: 9px; }
.quick-tile video { flex: none; width: 52px; height: 52px; }
.tile-art video { width: 100%; height: 100%; }

/* TV: what the remote points at is always easy to see from the sofa. */
html.tv :is(button, input, textarea, [tabindex], a):focus { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.18); }
html.tv :is(.song-tile, .quick-tile, .chip, .button, .dock-item, .album, .artist-card):focus { transform: scale(1.06); transition: transform 0.15s ease-out; z-index: 2; }
html.tv .track:focus { background: rgba(255, 255, 255, 0.18); }
html.tv body { font-size: 18px; }
html.tv .page { scroll-padding: 120px 0; }
html.tv #ai-orb { display: none; }
