@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/onest-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/onest-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
:root {
  color-scheme: dark;
  /* Graphite surfaces: the interface stays neutral so cover art carries the color. */
  --bg: #16171a;
  --surface-1: #1b1c20;
  --surface-2: #212226;
  --surface-3: #2a2b30;
  --surface-4: #3a3b41;
  --text-1: #f3f2ee;
  --text-2: #a9aaaf;
  --text-3: #75767c;
  --shade: #050506;
  --line: rgb(255 255 255 / 0.07);
  --accent: var(--text-1);
  --on-accent: #16171a;
  --liked: #ff5c72;
  --danger: #ff7a70;
  --success: #8fd4a8;
  /* Color of the playing cover, set from app.js; neutral slate until something plays. */
  --art: #6d7a8c;
  --font: 'Onest', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --radius-art: 6px;
  --radius-control: 999px;
  --radius-panel: 18px;
  --sidebar: 232px;
  /* Old names kept for existing rules. */
  --text: var(--text-1);
  --muted: var(--text-2);
  --panel: var(--surface-1);
}
@property --art {
  syntax: '<color>';
  inherits: true;
  initial-value: #6d7a8c;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: 'ss01';
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s var(--ease-out),
    opacity 0.18s ease;
}
button:active:not(:disabled) {
  transform: scale(0.96);
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
a,
select {
  outline-offset: 3px;
}
button:focus-visible,
input:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--text-1);
}
time,
.track-duration,
.count,
#result-count {
  font-variant-numeric: tabular-nums;
}
svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.sidebar {
  position: fixed;
  inset: 0 auto 108px 0;
  width: var(--sidebar);
  padding: 28px 16px 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.logo {
  font-size: 32px;
  font-weight: 680;
  letter-spacing: -0.035em;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  margin-bottom: 30px;
}
/* The mark takes the color of whatever is playing. */
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--art) 40%, white), var(--art) 70%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--art) 18%, transparent);
  transition: --art 1.2s ease;
}
.logo-dot,
.nav-caption {
  display: none;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}
.nav-item:hover {
  color: var(--text-1);
}
.nav-item.active {
  background: rgb(255 255 255 / 0.06);
  color: var(--text-1);
}
.nav-item svg {
  width: 20px;
  height: 20px;
}
.count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-2);
  align-items: flex-start;
}
.sidebar-bottom small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 2px;
}
.connection-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  margin-top: 7px;
}
.workspace {
  margin-left: var(--sidebar);
  padding: 0 40px;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar form {
  width: min(480px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--text-3);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.topbar form:focus-within {
  background: var(--surface-1);
  border-color: rgb(255 255 255 / 0.16);
  color: var(--text-2);
}
.topbar form svg {
  width: 19px;
  height: 19px;
}
.topbar input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-1);
  outline: none;
  font-size: 15px;
}
.topbar input::placeholder {
  color: var(--text-3);
}
.topbar kbd {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 6px;
  min-width: 22px;
  padding: 1px 6px;
  text-align: center;
  color: var(--text-3);
  font: inherit;
  font-size: 12px;
}
.profile {
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--text-1);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 0 4px;
}
.profile:hover {
  background: var(--surface-3);
}
main {
  max-width: 1240px;
  margin: auto;
}
/* The one loud surface: a field lit by the color of the current cover. */
.hero {
  display: flex;
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
  background:
    radial-gradient(90% 120% at 88% 10%, color-mix(in srgb, var(--art) 70%, transparent), transparent 62%),
    radial-gradient(70% 90% at 70% 110%, color-mix(in srgb, var(--art) 38%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  transition: --art 1.2s ease;
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(10 10 12 / 0.55), transparent 65%);
}
.hero-copy {
  padding: 44px 48px 40px;
  z-index: 2;
  flex: 1;
}
.hero-note {
  display: none;
}
.hero h1 {
  font-size: clamp(52px, 6.2vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 720;
  margin: 0 0 18px;
}
.hero p {
  font-size: 16px;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.72);
  margin: 0 0 28px;
  max-width: 34ch;
}
.primary {
  background: var(--text-1);
  color: var(--on-accent);
  border-radius: var(--radius-control);
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
}
.primary:hover:not(:disabled) {
  background: #fff;
}
.primary svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke-width: 0;
}
.record-art {
  display: none;
}
.quick-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0 44px;
}
.quick-search > span {
  font-size: 14px;
  color: var(--text-3);
  margin-right: 6px;
}
.quick-search button {
  background: var(--surface-2);
  border-radius: var(--radius-control);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}
.quick-search button:hover {
  background: var(--surface-3);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 18px;
}
.section-heading p {
  display: none;
}
h2 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 680;
}
#result-count {
  color: var(--text-3);
  font-size: 14px;
}
.track-head,
.track-row {
  display: grid;
  grid-template-columns: 32px minmax(140px, 1fr) 120px 52px 96px;
  align-items: center;
  gap: 16px;
}
.track-head {
  font-size: 13px;
  color: var(--text-3);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.track-head svg {
  width: 15px;
  height: 15px;
}
.track-row {
  padding: 8px 12px;
  border-radius: 12px;
  min-height: 64px;
  transition: background-color 0.15s ease;
}
.track-row:hover {
  background: rgb(255 255 255 / 0.04);
}
.track-row.current {
  background: rgb(255 255 255 / 0.065);
}
.row-play {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--text-3);
  font-size: 13px;
}
.track-row:hover .row-play,
.row-play:focus-visible {
  color: var(--text-1);
}
.row-play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke-width: 0;
}
.current .row-play {
  color: var(--text-1);
}
.track-info {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.cover {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-art);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--cover, var(--surface-4)) 100%, white 12%),
    var(--cover, var(--surface-4))
  );
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.cover:before {
  display: none;
}
.cover span {
  position: relative;
  font-size: 17px;
  font-weight: 650;
  color: rgb(255 255 255 / 0.78);
}
.cover.idle {
  background: var(--surface-2);
  color: var(--text-3);
}
.cover svg {
  width: 21px;
  height: 21px;
}
.track-copy {
  min-width: 0;
}
.track-title {
  font-weight: 520;
  font-size: 15px;
  letter-spacing: -0.01em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.track-artist {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.version {
  font-size: 13px;
  color: var(--text-3);
}
.track-duration {
  font-size: 14px;
  color: var(--text-3);
}
.track-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 7px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border-radius: 50%;
}
.icon-button svg {
  width: 20px;
  height: 20px;
}
.icon-button:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.07);
  color: var(--text-1);
}
.icon-button.liked,
.icon-button.liked:hover {
  color: var(--liked);
}
.liked svg {
  fill: currentColor;
}
/* Only the player hearts toggle in place; list rows re-render and would replay it. */
#player-like.liked svg,
#full-like.liked svg {
  animation: like-pop 0.38s var(--ease-spring);
}
@keyframes like-pop {
  0% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}
.icon-button[aria-pressed='true']:not(.liked) {
  color: var(--text-1);
  position: relative;
}
.icon-button[aria-pressed='true']:not(.liked):after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.saved-icon {
  color: var(--success);
  display: flex;
}
.saved-icon svg {
  width: 15px;
  height: 15px;
}
.download-error {
  color: var(--danger);
}
.saving {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgb(255 255 255 / 0.18);
  border-top-color: var(--text-1);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.secondary {
  display: block;
  margin: 20px auto;
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
}
.secondary:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.22);
}
.content-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
  padding: 32px 0 140px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-dot {
  padding: 0 6px;
}
/* Floating player, lit from the left by the current cover. */
.player {
  position: fixed;
  z-index: 10;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 84px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--art) 30%, transparent), transparent 40%),
    color-mix(in srgb, var(--surface-1) 86%, transparent);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.35);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.3fr) minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px 20px 12px 12px;
  transition: --art 1.2s ease;
}
.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cover.small {
  width: 58px;
  height: 58px;
  border-radius: 10px;
}
.now-info {
  min-width: 0;
  flex: 1;
}
.now-info strong,
.now-info > span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.now-info strong {
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.now-info > span {
  color: var(--text-2);
  font-size: 13px;
  margin-top: 2px;
}
.transport-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
}
.play-button {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: var(--text-1);
  color: var(--on-accent);
  display: grid;
  place-items: center;
}
.play-button:hover:not(:disabled) {
  transform: scale(1.06);
  background: #fff;
}
.play-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke-width: 0;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.timeline time {
  font-size: 12px;
  color: var(--text-3);
  min-width: 32px;
  text-align: center;
}
/* Thin rails; app.js keeps --fill in step with the value. */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  background: transparent;
  cursor: pointer;
  min-width: 0;
  margin: 0;
  --rail: linear-gradient(90deg, var(--text-1) var(--fill, 0%), rgb(255 255 255 / 0.16) var(--fill, 0%));
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: var(--rail);
}
input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--rail);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--text-1);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.4);
  transform: scale(0);
  transition: transform 0.15s var(--ease-out);
}
input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--text-1);
  transform: scale(0);
  transition: transform 0.15s var(--ease-out);
}
input[type='range']:hover::-webkit-slider-thumb,
input[type='range']:focus-visible::-webkit-slider-thumb,
input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1);
}
input[type='range']:hover::-moz-range-thumb,
input[type='range']:focus-visible::-moz-range-thumb {
  transform: scale(1);
}
input[type='range']:disabled {
  cursor: default;
  opacity: 0.5;
}
.timeline input {
  width: 100%;
}
.player-extras {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  color: var(--text-2);
}
.player-extras > span svg {
  width: 19px;
  height: 19px;
}
.player-extras input {
  width: 96px;
}
.player-extras .icon-button {
  margin-right: 8px;
}
#status:not(:empty) {
  padding: 24px;
  margin: 12px 0;
  background: var(--surface-1);
  border-radius: 16px;
  color: var(--text-2);
  line-height: 1.6;
  font-size: 15px;
}
#status button {
  margin-top: 12px;
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#favorite-banner {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 24px 0 32px;
  padding: 0;
}
.favorite-art {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--liked), color-mix(in srgb, var(--liked) 45%, #2a1030));
  border-radius: 14px;
  color: #fff;
  flex-shrink: 0;
}
.favorite-art svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
  stroke-width: 0;
}
#favorite-banner h3 {
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: -0.035em;
  font-weight: 700;
}
#favorite-banner p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}
#favorite-banner .primary {
  margin-left: auto;
  flex-shrink: 0;
}
#toast {
  position: fixed;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--text-1);
  color: var(--on-accent);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.4);
  max-width: 90%;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 500;
  animation: toast-in 0.35s var(--ease-out);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
.queue-panel {
  position: fixed;
  z-index: 15;
  right: 12px;
  bottom: 108px;
  width: 340px;
  max-height: 62vh;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-panel);
  padding: 18px;
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
  animation: panel-in 0.28s var(--ease-out);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.queue-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.queue-panel h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
}
.queue-entry {
  display: block;
  text-align: left;
  padding: 10px 10px;
  width: 100%;
  border-radius: 10px;
  font-size: 14px;
}
.queue-entry:hover {
  background: rgb(255 255 255 / 0.05);
}
.queue-entry small {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13px;
}
.queue-entry.current {
  color: var(--text-1);
  background: rgb(255 255 255 / 0.07);
}
body[data-view='search'] .music-section,
body[data-view='favorites'] .music-section {
  margin-top: 25px;
}
@media (min-width: 1500px) {
  .workspace {
    padding: 0 65px;
  }
  .hero {
    min-height: 385px;
  }
  .hero-copy {
    padding: 39px 45px;
  }
  .hero h1 {
    font-size: 75px;
  }
  .record-art {
    transform: scale(1.12);
    transform-origin: center;
  }
  .record-sleeve {
    left: 50px;
  }
  .vinyl {
    left: 180px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 190px;
  }
  .sidebar {
    padding: 32px 16px;
  }
  .workspace {
    padding: 0 25px;
  }
  .hero h1 {
    font-size: 55px;
  }
  .hero-copy {
    padding: 30px;
  }
  .record-art {
    min-width: 260px;
    transform: scale(0.85);
    transform-origin: left center;
  }
  .hero {
    min-height: 330px;
  }
  .track-head,
  .track-row {
    grid-template-columns: 25px minmax(130px, 1fr) 70px 40px 75px;
    gap: 10px;
  }
  .player {
    gap: 14px;
    padding: 16px;
    grid-template-columns: 1fr 1.1fr 150px;
  }
  .player-extras input {
    width: 65px;
  }
}
@media (max-width: 800px) {
  :root {
    --sidebar: 76px;
  }
  .sidebar {
    padding: 26px 12px;
  }
  .logo {
    font-size: 0;
    justify-content: center;
  }
  .logo-dot,
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .brand-mark {
    font-size: 29px;
  }
  .sidebar nav {
    margin-top: 40px;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 15px 0;
  }
  .nav-item .count {
    display: none;
  }
  .workspace {
    padding: 0 22px;
  }
  .topbar {
    height: 85px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .hero-copy {
    padding: 28px;
  }
  .record-art {
    min-width: 210px;
    transform: scale(0.72);
  }
  .hero {
    min-height: 310px;
  }
  .record-sleeve {
    left: -5px;
  }
  .vinyl {
    left: 110px;
  }
  .art-caption {
    display: none;
  }
  .track-head,
  .track-row {
    grid-template-columns: 23px minmax(140px, 1fr) 40px 65px;
  }
  .version,
  .track-head > span:nth-child(3) {
    display: none;
  }
  .player {
    grid-template-columns: 1fr 1fr;
  }
  .player-extras {
    display: none;
  }
  .content-footer {
    flex-direction: column;
  }
  .quick-search {
    margin-bottom: 27px;
  }
  #favorite-banner {
    gap: 15px;
    flex-wrap: wrap;
  }
  #favorite-banner .primary {
    margin-left: 95px;
  }
}
@media (max-width: 560px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    inset: auto 0 79px;
    width: 100%;
    height: 53px;
    padding: 0 16px;
    background: color-mix(in srgb, var(--surface-1) 96%, transparent);
    z-index: 9;
    border-top: 1px solid var(--line);
  }
  .logo {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    display: flex;
    justify-content: space-around;
  }
  .nav-item {
    font-size: 12px;
    gap: 6px;
    margin: 0;
    padding: 15px 12px;
    width: auto;
    border-radius: 0;
  }
  .nav-item svg {
    width: 16px;
    height: 16px;
  }
  .nav-item.active {
    background: none;
  }
  .workspace {
    margin: 0;
    padding: 0 18px;
  }
  .topbar {
    height: 79px;
    gap: 13px;
  }
  .topbar form {
    padding: 12px;
  }
  .topbar input {
    font-size: 13px;
  }
  .topbar kbd {
    display: none;
  }
  .profile {
    flex-shrink: 0;
    width: 31px;
    height: 31px;
  }
  .hero {
    min-height: 303px;
    border-radius: 14px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-copy {
    padding: 25px 23px;
  }
  .hero-note {
    font-size: 12px;
  }
  .hero p {
    font-size: 12px;
    position: relative;
  }
  .hero .primary {
    font-size: 12px;
    padding: 11px 13px;
  }
  .record-art {
    position: absolute;
    right: -101px;
    top: 25px;
    width: 250px;
    min-width: 0;
    height: 300px;
    transform: scale(0.64);
    transform-origin: right center;
    opacity: 0.6;
  }
  .hero-copy {
    background: linear-gradient(90deg, var(--surface-2) 45%, transparent);
    width: 100%;
  }
  .quick-search {
    gap: 7px;
    margin: 20px 0 28px;
  }
  .quick-search > span {
    width: 100%;
    margin-bottom: 4px;
  }
  .quick-search button {
    font-size: 12px;
    padding: 7px 11px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .track-head {
    display: none;
  }
  .track-row {
    grid-template-columns: 20px minmax(110px, 1fr) 30px 56px;
    padding: 10px 0;
    gap: 6px;
  }
  .track-info {
    gap: 10px;
  }
  .cover {
    width: 41px;
    height: 41px;
  }
  .track-title {
    font-size: 13px;
  }
  .track-artist {
    font-size: 12px;
  }
  .track-duration {
    font-size: 12px;
  }
  .track-actions {
    gap: 0;
  }
  .track-actions .icon-button {
    width: 29px;
  }
  .player {
    height: 79px;
    padding: 12px 15px;
    grid-template-columns: 1fr 80px;
    gap: 8px;
  }
  .cover.small {
    height: 42px;
    width: 42px;
  }
  .now-playing {
    gap: 10px;
  }
  .now-info strong {
    font-size: 12px;
  }
  .now-info > span {
    font-size: 11px;
  }
  .transport-buttons {
    gap: 6px;
  }
  .transport-buttons #shuffle,
  .transport-buttons #previous,
  .transport-buttons #repeat {
    display: none;
  }
  .timeline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
  }
  .timeline time {
    display: none;
  }
  .timeline input {
    margin: 0;
    width: 100%;
    height: 2px;
  }
  .content-footer {
    padding-bottom: 160px;
    font-size: 11px;
  }
  .queue-panel {
    bottom: 145px;
    width: calc(100% - 36px);
  }
  #toast {
    bottom: 150px;
    width: max-content;
    text-align: center;
  }
  #favorite-banner {
    padding: 18px;
    gap: 14px;
  }
  .favorite-art {
    width: 55px;
    height: 55px;
  }
  .favorite-art svg {
    width: 26px;
    height: 26px;
  }
  #favorite-banner h3 {
    font-size: 15px;
  }
  #favorite-banner p {
    font-size: 12px;
  }
  #favorite-banner .primary {
    margin-left: 69px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Playback controls stay visible before hover, including on touch screens. */
.row-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
}
.row-play:hover {
  background: rgb(255 255 255 / 0.1);
  color: var(--text-1);
}
.track-row.current .row-play {
  background: var(--text-1);
  color: var(--on-accent);
}
.title-play {
  display: block;
  max-width: 100%;
  padding: 3px 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.title-play:hover {
  color: var(--text-1);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.4);
  text-underline-offset: 3px;
}
.play-button .saving {
  border-color: rgb(22 23 26 / 0.2);
  border-top-color: var(--on-accent);
}
.row-play .saving {
  border-top-color: currentColor;
}
#playback-message {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(620px, calc(100vw - 32px));
  padding: 14px 16px 14px 20px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.4);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.5;
  animation: toast-in 0.3s var(--ease-out);
}
#retry-playback {
  flex-shrink: 0;
  background: var(--text-1);
  color: var(--on-accent);
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  font-weight: 600;
}
@media (max-width: 560px) {
  .track-row {
    grid-template-columns: 32px minmax(100px, 1fr) 30px 56px;
  }
  .row-play {
    width: 29px;
    height: 29px;
  }
  #playback-message {
    bottom: calc(100% + 65px);
    gap: 10px;
    padding: 12px;
    font-size: 12px;
  }
}
/* On mobile, navigation anchors the screen below the player. */
@media (max-width: 560px) {
  .sidebar {
    bottom: 0;
    height: calc(53px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .player {
    bottom: calc(53px + env(safe-area-inset-bottom, 0px));
  }
  #playback-message {
    bottom: calc(100% + 12px);
  }
  #toast {
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  .nav-item {
    font-size: 0;
    gap: 0;
    min-width: 64px;
  }
  .nav-item svg {
    width: 22px;
    height: 22px;
  }
}
/* Popular songs: four swipeable columns, three tracks per column. */
@media (max-width: 560px) {
  body[data-view='home'] #tracks {
    display: grid;
    grid-template-rows: repeat(3, 69px);
    grid-auto-flow: column;
    grid-auto-columns: 90%;
    column-gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-4) transparent;
    padding: 2px 0 12px;
  }
  body[data-view='home'] #tracks:empty {
    display: none;
  }
  body[data-view='home'] .track-row {
    min-width: 0;
    grid-template-columns: 30px minmax(0, 1fr) 56px;
    gap: 8px;
    padding: 10px 4px;
    scroll-snap-align: start;
  }
  body[data-view='home'] .track-duration {
    display: none;
  }
  body[data-view='home'] .track-info {
    gap: 9px;
  }
}
.track-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.version-badge {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
  background: rgb(255 255 255 / 0.07);
  border-radius: 5px;
  padding: 1px 6px;
}
.version-badge.explicit {
  color: var(--text-1);
  background: rgb(255 255 255 / 0.12);
}
.version-badge.clean {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 7%, transparent);
}
.version-badge.quality.low {
  color: var(--text-1);
  background: color-mix(in srgb, #e0a030 22%, transparent);
}
.copies-button {
  font-size: 13px;
  color: var(--text-2);
  padding: 2px 4px;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.25);
  text-underline-offset: 3px;
}
body[data-view='search'] .track-row {
  min-height: 78px;
}
body[data-view='search'] .version {
  visibility: hidden;
}
body[data-view='search'] .track-head > span:nth-child(3) {
  visibility: hidden;
}
.collection-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 20px;
}
.collection-tabs button {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.collection-tabs button.active {
  background: var(--text-1);
  color: var(--on-accent);
}
.collection-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.collection-actions input {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  height: 40px;
  padding: 0 16px;
  flex: 1;
  min-width: 170px;
  outline: none;
}
.collection-actions .secondary {
  margin: 0;
}
.playlist-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 14px;
  background: transparent;
  border-radius: 14px;
  text-align: left;
  min-width: 0;
}
.playlist-card strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.playlist-card:hover {
  background: rgb(255 255 255 / 0.04);
}
dialog[open] {
  animation: panel-in 0.32s var(--ease-out);
}
.collection-tabs button:not(.active):hover {
  background: var(--surface-3);
}
.collection-actions input:focus {
  border-color: rgb(255 255 255 / 0.16);
}
.playlist-card small {
  color: var(--muted);
}
.playlist-card-art {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--surface-3), var(--surface-1));
  color: var(--text-2);
}
.playlist-card-art svg {
  width: 34px;
  height: 34px;
}
#playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.history-date {
  font-size: 13px;
  color: var(--text-3);
}
.track-head,
.track-row {
  grid-template-columns: 30px minmax(140px, 1fr) 110px 50px 145px;
}
dialog {
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 24px;
  background: var(--surface-1);
  color: var(--text);
  padding: 28px;
  width: min(440px, calc(100vw - 32px));
  max-height: 82vh;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.55);
}
dialog::backdrop {
  background: rgb(8 8 10 / 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dialog-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 22px;
}
#playlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#playlist-form label {
  font-size: 13px;
  color: var(--muted);
}
#playlist-name {
  width: 100%;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-1);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}
#playlist-form .primary {
  justify-content: center;
}
#playlist-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}
#playlist-choices:empty {
  margin: 0;
}
.playlist-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 8px;
  border-radius: 8px;
  text-align: left;
}
.playlist-choice:hover {
  background: #ffffff08;
}
.playlist-choice span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.playlist-choice small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
#playlist-dialog-error {
  color: var(--danger);
  font-size: 13px;
}
body[data-view='history'] .track-row,
body[data-view='playlist'] .track-row {
  min-height: 78px;
}
@media (max-width: 1100px) {
  .track-head,
  .track-row {
    grid-template-columns: 25px minmax(110px, 1fr) 70px 40px 126px;
    gap: 8px;
  }
}
@media (max-width: 800px) {
  .track-head,
  .track-row {
    grid-template-columns: 25px minmax(110px, 1fr) 40px 126px;
  }
}
@media (max-width: 560px) {
  .track-row {
    grid-template-columns: 30px minmax(70px, 1fr) 30px 90px;
    gap: 4px;
  }
  .track-actions {
    gap: 0;
  }
  .track-actions .icon-button {
    width: 27px;
    padding: 4px;
  }
  .track-actions .saved-icon svg {
    width: 12px;
  }
  body[data-view='playlist'] .track-row {
    grid-template-columns: 30px minmax(70px, 1fr) 30px 108px;
  }
  body[data-view='home'] .track-row {
    grid-template-columns: 30px minmax(0, 1fr) 90px;
  }
  #playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .playlist-card {
    padding: 15px;
  }
  .collection-tabs button {
    padding: 9px 12px;
    font-size: 13px;
  }
  .collection-actions {
    gap: 8px;
  }
  .collection-actions input {
    width: 100%;
    flex-basis: 100%;
  }
  .collection-actions .secondary {
    font-size: 12px;
    padding: 10px;
  }
  .history-date {
    font-size: 11px;
  }
}
.source-badge {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.4;
}
.source-badge:not(:last-child) {
  margin-right: 3px;
}
#source-notice {
  margin: 14px 0 20px;
  padding: 12px 16px;
  background: var(--surface-1);
  border: 0;
  border-radius: 14px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
#playback-message {
  flex-wrap: wrap;
}
#playback-error {
  flex: 1;
  min-width: 180px;
}
#find-alternative {
  flex-shrink: 0;
  color: var(--text-1);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#source-switcher {
  margin: 0 0 18px;
}
body[data-view='home'] .track-badges .source-badge {
  display: none;
}
@media (max-width: 560px) {
  #find-alternative {
    font-size: 12px;
  }
  #source-switcher button {
    font-size: 12px;
    padding: 9px 11px;
  }
}
#search-tabs {
  margin-bottom: 20px;
}
#artist-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.artist-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
  border: 0;
  border-radius: 16px;
  text-align: left;
  background: var(--surface-1);
  min-width: 0;
}
.artist-card > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.artist-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.artist-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.artist-card > svg {
  width: 15px;
  color: var(--text-2);
}
.artist-avatar {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text-1);
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
}
#search-advanced {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}
#search-advanced summary {
  cursor: pointer;
  width: max-content;
  padding: 7px 0;
}
#search-advanced #source-switcher {
  margin: 8px 0 0;
}
body[data-view='search'] .track-badges .source-badge {
  display: none;
}
#back-to-results {
  margin: 0 0 18px;
}
@media (max-width: 560px) {
  #artist-results {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .artist-card {
    padding: 12px;
    gap: 12px;
  }
  .artist-avatar {
    height: 45px;
    width: 45px;
    font-size: 19px;
  }
  .artist-card strong {
    font-size: 14px;
  }
}
/* Source artwork keeps its fallback visible until an image loads. */
.cover img,
.artist-avatar img,
.artist-profile-image img,
.full-artwork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.artist-avatar {
  position: relative;
  overflow: hidden;
}
.now-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.now-summary .now-info {
  flex: 1;
}
.artwork-letter {
  position: relative;
  z-index: 1;
  color: #ffffffb0;
  font-weight: 650;
}
.artist-profile {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  padding: 40px;
  margin: 8px 0 40px;
  border-radius: 24px;
  background:
    radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--cover, var(--art)) 55%, transparent), transparent 70%),
    var(--surface-1);
  overflow: hidden;
}
.artist-profile-image {
  width: 200px;
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cover, var(--surface-4));
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.4);
  display: grid;
  place-items: center;
  font-size: 70px;
}
.artist-profile-copy {
  min-width: 0;
}
.artist-profile-copy > p:first-child {
  font-size: 13px;
  color: var(--text-1);
  margin: 0 0 10px;
}
.artist-profile h1 {
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: -1.7px;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.artist-profile-stats,
#artist-profile-stats {
  font-size: 13px;
  color: var(--text-1);
}
.artist-profile-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 23px;
}
.artist-profile-actions .secondary {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.artist-profile-actions .secondary svg {
  width: 16px;
  height: 16px;
}
body.player-expanded {
  overflow: hidden;
}
/* The full player is the cover's room: its color fills the sheet from the top. */
#full-player {
  padding: 0;
  width: min(480px, calc(100vw - 32px));
  height: min(900px, 94dvh);
  max-height: 94dvh;
  overflow-y: auto;
  background:
    radial-gradient(130% 75% at 50% 0%, color-mix(in srgb, var(--art) 62%, transparent), transparent 72%),
    var(--surface-1);
  color: var(--text-1);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 28px;
  overscroll-behavior: contain;
  scrollbar-width: none;
  transition: --art 1.2s ease;
}
#full-player[open] {
  animation: sheet-in 0.5s var(--ease-out);
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
}
#full-player::backdrop {
  background: rgb(8 8 10 / 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.full-player-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}
.full-player-top > span {
  color: rgb(255 255 255 / 0.7);
  font-size: 13px;
  font-weight: 500;
}
.full-player-top .icon-button {
  width: 40px;
  height: 40px;
  color: var(--text-1);
}
.full-player-top svg {
  width: 22px;
  height: 22px;
}
.full-player-content {
  padding: 8px 32px 32px;
}
.full-artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--cover, var(--surface-4));
  box-shadow:
    0 30px 60px color-mix(in srgb, var(--art) 30%, rgb(0 0 0 / 0.55)),
    inset 0 0 0 1px rgb(255 255 255 / 0.06);
  margin-bottom: 30px;
}
.full-artwork .artwork-letter {
  font-size: 110px;
}
.full-track-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.full-track-heading > div {
  min-width: 0;
  flex: 1;
}
.full-track-heading h2 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.full-artist {
  color: rgb(255 255 255 / 0.68);
  font-size: 16px;
  margin-top: 4px;
  padding: 0;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.full-artist:hover {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.full-track-heading .icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.full-track-heading svg {
  width: 24px;
  height: 24px;
}
#full-playback-status {
  font-size: 13px;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.6);
  min-height: 19px;
  margin: 14px 0 6px;
}
.full-seek input {
  width: 100%;
  height: 22px;
}
.full-seek input::-webkit-slider-thumb {
  transform: scale(1);
}
.full-seek input::-moz-range-thumb {
  transform: scale(1);
}
.full-seek > div {
  display: flex;
  justify-content: space-between;
  color: rgb(255 255 255 / 0.55);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.full-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 26px;
}
.full-controls .icon-button {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--text-1);
}
.full-controls .icon-button svg {
  width: 26px;
  height: 26px;
}
.full-controls .play-button {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: var(--text-1);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.3);
}
.full-controls .play-button svg {
  width: 28px;
  height: 28px;
}
.full-bottom-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.full-bottom-actions .secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  height: 36px;
  font-size: 14px;
  padding: 0 16px;
  background: rgb(255 255 255 / 0.08);
  border-color: transparent;
}
.full-bottom-actions svg {
  width: 16px;
  height: 16px;
}
.full-volume {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
  color: rgb(255 255 255 / 0.6);
}
.full-volume input {
  width: 160px;
}
.full-volume svg {
  width: 18px;
  height: 18px;
}
#full-queue {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 75px;
}
#full-queue h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 12px;
}
.full-queue-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
  border-radius: 12px;
}
.full-queue-entry > span {
  flex: 1;
  min-width: 0;
}
.full-queue-entry strong {
  font-size: 15px;
  font-weight: 520;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.full-queue-entry small {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 1px;
}
.full-queue-entry > svg {
  width: 15px;
  height: 15px;
  color: var(--text-3);
  flex-shrink: 0;
}
.full-queue-entry.current strong {
  color: var(--text-1);
}
.full-queue-entry.current {
  background: rgb(255 255 255 / 0.06);
}
.full-queue-entry .cover {
  width: 44px;
  height: 44px;
}
.full-queue-entry:hover {
  background: rgb(255 255 255 / 0.05);
}
@media (max-width: 800px) {
  .artist-profile {
    gap: 24px;
    padding: 24px;
  }
  .artist-profile-image {
    width: 145px;
    height: 145px;
  }
  .artist-profile h1 {
    font-size: 38px;
  }
}
@media (max-width: 560px) {
  .now-summary {
    gap: 10px;
  }
  .artist-profile {
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 23px;
    gap: 20px;
    margin: 0 0 26px;
  }
  .artist-profile-image {
    width: 132px;
    height: 132px;
    font-size: 54px;
  }
  .artist-profile h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .artist-profile-actions {
    margin-top: 18px;
    gap: 9px;
  }
  .artist-profile-copy {
    width: 100%;
  }
  .artist-profile-actions .secondary {
    font-size: 12px;
    padding: 11px 13px;
  }
  .artist-profile-actions .primary {
    font-size: 12px;
    padding: 11px 13px;
  }
  #full-player {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    inset: 0;
    border: 0;
    border-radius: 0;
  }
  .full-player-top {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 17px 7px;
  }
  .full-player-content {
    padding: 12px 27px calc(25px + env(safe-area-inset-bottom, 0px));
  }
  .full-artwork {
    width: min(100%, calc(100dvh - 380px));
    margin: 0 auto 27px;
    border-radius: 13px;
  }
  .full-track-heading h2 {
    font-size: 25px;
  }
  .full-artist {
    font-size: 14px;
  }
  .full-controls {
    gap: 7px;
    margin: 20px 0;
  }
  .full-controls .play-button {
    width: 70px;
    height: 70px;
  }
  .full-controls .icon-button {
    width: 42px;
    height: 44px;
  }
  .full-controls .icon-button svg {
    width: 25px;
    height: 25px;
  }
  .full-volume {
    margin-top: 20px;
  }
  #full-playback-status {
    margin: 13px 0 5px;
  }
  .full-bottom-actions .secondary {
    padding: 9px 13px;
  }
}
@media (max-height: 640px) and (max-width: 560px) {
  .full-artwork {
    width: min(70vw, 210px);
  }
  .full-track-heading h2 {
    font-size: 21px;
  }
  .full-player-content {
    padding-top: 5px;
  }
}

#track-menu {
  width: min(380px, calc(100vw - 28px));
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 22px;
  background: var(--surface-1);
  color: var(--text);
  padding: 12px;
}
#track-menu::backdrop {
  background: color-mix(in srgb, var(--shade) 60%, transparent);
}
#track-menu h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
#track-menu > button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 15px;
}
#track-menu > button:hover {
  background: #ffffff08;
}
#track-menu > button svg {
  width: 20px;
  color: var(--accent);
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #ffffff08;
  padding: 7px 0;
}
.queue-song {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 5px 0;
}
.queue-song > span {
  min-width: 0;
  flex: 1;
}
.queue-song strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.queue-song small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.queue-song .cover {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.queue-item.current strong {
  color: var(--accent);
}
.queue-tools {
  display: flex;
  flex-shrink: 0;
}
.queue-tools .icon-button {
  width: 32px;
  height: 40px;
  padding: 7px;
}
.queue-tools svg {
  width: 17px;
  height: 17px;
}
.queue-panel {
  width: min(440px, calc(100vw - 36px));
}
#full-queue-list .queue-tools .icon-button {
  width: 32px;
  height: 44px;
}
.queue-tools .icon-button:focus-visible {
  outline-offset: -2px;
}
@media (max-width: 560px) {
  #track-menu {
    margin: auto auto 12px;
    border-radius: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .queue-song {
    gap: 7px;
  }
  .queue-song strong {
    font-size: 12px;
  }
  .queue-song small {
    font-size: 11px;
  }
}

#search-correction {
  margin: 14px 0 20px;
  padding: 12px 16px;
  background: var(--surface-1);
  border: 0;
  border-radius: 14px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
#correction-action {
  color: var(--accent);
  text-align: left;
  padding: 4px 0;
  display: block;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile {
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ffffff10;
  flex-shrink: 0;
}
#account-dialog {
  width: min(440px, calc(100vw - 28px));
  max-height: 92dvh;
  overflow: auto;
  padding: 28px;
  border: 1px solid #ffffff16;
  border-radius: 22px;
  background: var(--surface-2);
  color: var(--text);
}
#account-dialog::backdrop {
  background: color-mix(in srgb, var(--shade) 80%, transparent);
  backdrop-filter: blur(8px);
}
#account-dialog .dialog-heading {
  align-items: flex-start;
  gap: 12px;
}
#account-dialog h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 7px 0 0;
}
.account-eyebrow {
  display: none;
}
.account-tabs {
  display: flex;
  gap: 4px;
  margin: 24px 0 18px;
  padding: 4px;
  border-radius: var(--radius-control);
  background: var(--surface-2);
}
.account-tabs button {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.account-tabs button[aria-pressed='true'] {
  background: var(--text-1);
  color: var(--on-accent);
}
#account-description {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 23px;
}
#account-form label {
  display: block;
  font-size: 13px;
  color: var(--text-1);
  margin: 17px 0 8px;
}
#account-form input {
  width: 100%;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-1);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}
#account-form input:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}
#password-hint {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}
#account-error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
  min-height: 18px;
}
#account-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  height: 46px;
  font-size: 14px;
}
.profile-avatar {
  margin: 24px auto 15px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--art) 45%, white), var(--art) 75%);
  color: var(--text-1);
  font-size: 30px;
  font-weight: 650;
}
#profile-content {
  text-align: center;
}
#profile-name {
  font-size: 22px;
  margin: 0;
}
#profile-login {
  font-size: 13px;
  color: var(--muted);
}
.profile-note {
  color: var(--text-2);
  line-height: 1.7;
  margin: 25px 0;
  font-size: 13px;
}
#account-logout {
  width: 100%;
}
@media (max-width: 560px) {
  #account-dialog {
    padding: 24px;
    border-radius: 19px;
  }
  .topbar .profile {
    font-size: 12px;
    padding: 0 10px;
  }
}

#artist-picker {
  width: min(900px, calc(100vw - 32px));
  height: 90dvh;
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #ffffff12;
  border-radius: 24px;
  background: var(--surface-1);
  color: var(--text);
  overflow: hidden;
}
#artist-picker::backdrop {
  background: color-mix(in srgb, var(--shade) 91%, transparent);
  backdrop-filter: blur(9px);
}
#artist-picker[open] {
  display: flex;
  flex-direction: column;
}
.picker-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 27px 32px 16px;
}
.picker-header h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 9px 0;
}
.picker-intro {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}
.picker-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 0 32px 28px;
}
#picker-search-form {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
#picker-search {
  min-width: 0;
  flex: 1;
  height: 46px;
  background: var(--surface-2);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-control);
  padding: 0 18px;
  color: var(--text-1);
  font-size: 15px;
  outline: none;
}
#picker-search-form .secondary {
  margin: 0;
  font-size: 13px;
}
.picker-filters {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
}
.picker-filters select {
  background: var(--surface-2);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-control);
  height: 38px;
  padding: 0 14px;
  color: var(--text-1);
  max-width: 50%;
  font: inherit;
  font-size: 14px;
}
#picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#picker-selected button {
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius-control);
  height: 32px;
  padding: 0 12px;
  color: var(--text-1);
  font-size: 13px;
}
#picker-selected span {
  padding-left: 5px;
}
#picker-status {
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.5;
}
#picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 20px 0;
}
.pick-artist {
  min-width: 0;
  padding: 0;
  text-align: center;
}
.pick-avatar {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-4), var(--surface-2));
  border: 3px solid transparent;
  overflow: hidden;
  font-size: 35px;
  color: var(--text-1);
  transition:
    border-color 0.2s ease,
    transform 0.25s var(--ease-out);
}
.pick-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pick-artist strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.pick-artist small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
  margin-top: 4px;
}
.pick-check {
  display: none;
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface-2);
  width: 25px;
  height: 25px;
  place-items: center;
  font-size: 15px;
}
.pick-artist.chosen .pick-avatar {
  border-color: var(--accent);
}
.pick-artist.chosen .pick-check {
  display: grid;
}
.picker-footer {
  border-top: 1px solid #ffffff0c;
  padding: 17px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
}
.picker-footer strong {
  font-size: 13px;
}
.picker-footer small {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
}
.picker-footer > div:first-child {
  min-width: 0;
  flex: 1;
}
.picker-footer > div:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.picker-footer .secondary {
  margin: 0;
  font-size: 12px;
  padding: 11px;
}
.picker-footer .primary {
  font-size: 13px;
}
#picker-more {
  display: block;
  margin: 22px auto 0;
}
#edit-artists {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  #picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #artist-picker {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100%;
    border-radius: 0;
    border: 0;
  }
  .picker-header {
    padding: 24px 20px 14px;
  }
  .picker-header h2 {
    font-size: 26px;
    line-height: 1.15;
  }
  .picker-body {
    padding: 0 20px 20px;
  }
  #picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px 15px;
  }
  .pick-artist strong {
    font-size: 12px;
  }
  .pick-artist small {
    font-size: 11px;
  }
  .pick-avatar {
    font-size: 29px;
  }
  .picker-footer {
    padding: 15px 20px max(15px, env(safe-area-inset-bottom));
    flex-wrap: wrap;
  }
  .picker-footer > div:first-child {
    flex-basis: 100%;
  }
  .picker-footer > div:last-child {
    width: 100%;
    justify-content: flex-end;
  }
  .picker-footer .primary {
    flex: 1;
    justify-content: center;
  }
  .picker-footer .secondary {
    padding: 12px 18px;
  }
}

/* "Для вас": a shelf of covers, the way a record store faces its picks outward. */
#recommendations {
  margin: 0 0 56px;
}
.recommendations-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.recommendations-heading p {
  display: none;
}
#recommendations-message {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}
#recommendations-message:empty {
  display: none;
}
/* Sixteen songs: four columns of four that read top to bottom, like the first songs of an artist. Where the page is
   narrower the columns scroll sideways instead of piling up. */
#recommendation-list {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 4px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.recommendation-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: 'art copy actions';
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 70px;
  padding: 7px;
  border-radius: 12px;
  scroll-snap-align: start;
}
.recommendation-card:hover,
.recommendation-card.current {
  background: var(--surface-2);
}
.recommendation-play {
  grid-area: art;
  position: relative;
  padding: 0;
  border-radius: 8px;
}
.recommendation-play:active:not(:disabled) {
  transform: none;
}
#recommendation-list .recommendation-play .cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.recommendation-play .cover span {
  font-size: 20px;
}
.rec-play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}
.recommendation-play:hover .rec-play-icon,
.recommendation-play:focus-visible .rec-play-icon,
.recommendation-card.current .rec-play-icon {
  opacity: 1;
}
.rec-play-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke-width: 0;
}
.recommendation-copy {
  grid-area: copy;
  min-width: 0;
}
.recommendation-copy .track-title {
  width: 100%;
  text-align: left;
  font-size: 14px;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommendation-copy > span {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommendation-copy small {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.35;
  overflow: hidden;
}
.recommendation-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
}
.recommendation-actions .icon-button {
  width: 28px;
  height: 32px;
  padding: 5px;
}
.recommendations-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.recommendations-footer .secondary {
  margin: 0;
}
@media (max-width: 560px) {
  #recommendations {
    margin-bottom: 40px;
  }
  .recommendations-heading h2 {
    font-size: 24px;
  }
  .recommendations-heading .primary {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }
  #recommendation-list {
    grid-auto-columns: 86%;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scroll-padding-inline: 16px;
  }
}
@media (max-width: 1250px) {
  #recommendation-list {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}
@media (max-width: 560px) {
  #recommendation-list {
    grid-auto-columns: 86%;
  }
}

#menu-hide-song,
#menu-hide-artist {
  color: var(--text-1);
}
#menu-hide-song {
  border-top: 1px solid #ffffff0b;
  margin-top: 9px;
}
#menu-error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}
#menu-error:empty {
  display: none;
}
#manage-exclusions {
  width: 100%;
  margin: 0 0 10px;
}
#exclusions-dialog {
  width: min(530px, calc(100vw - 28px));
  max-height: 90dvh;
  padding: 25px;
  border: 1px solid #ffffff15;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text);
  overflow-y: auto;
}
#exclusions-dialog::backdrop {
  background: color-mix(in srgb, var(--shade) 80%, transparent);
  backdrop-filter: blur(8px);
}
#exclusions-dialog h2 {
  margin: 8px 0 0;
  font-size: 26px;
  letter-spacing: -0.6px;
}
.exclusions-description {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 20px 0;
}
#exclusions-status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-1);
}
.exclusion-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.exclusion-entry > div {
  min-width: 0;
  flex: 1;
}
.exclusion-entry small {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  margin-bottom: 7px;
}
.exclusion-entry strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.exclusion-entry span {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  margin-top: 5px;
}
.exclusion-entry .secondary {
  margin: 0;
  font-size: 12px;
  flex-shrink: 0;
  padding: 10px 12px;
}

.vibe-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero #vibe-status {
  font-size: 14px;
  line-height: 1.5;
  max-width: 40ch;
  margin: 18px 0 10px;
  color: rgb(255 255 255 / 0.6);
}
/* Settings sit beside the vibe button as a bare icon on the tinted field. */
.vibe-settings-button {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.8);
}
.vibe-settings-button svg {
  width: 22px;
  height: 22px;
}
.vibe-settings-button:hover:not(:disabled) {
  background: transparent;
  color: var(--text-1);
}
.vibe-controls .primary svg {
  width: 15px;
  height: 15px;
}
.hero h1 {
  font-size: clamp(52px, 6.2vw, 84px);
}
@media (max-width: 560px) {
  .vibe-controls {
    gap: 8px;
  }
  .vibe-controls button:not(.vibe-settings-button) {
    padding: 0 18px;
  }
  .hero #vibe-status {
    max-width: 250px;
  }
}

#vibe-settings-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
  scrollbar-width: none;
}
#vibe-settings-dialog .dialog-heading {
  margin-bottom: 8px;
}
#vibe-character-options,
#vibe-filter-options {
  border: 0;
  padding: 0;
  margin: 16px 0 0;
  min-width: 0;
}
.settings-group {
  margin-top: 28px;
}
.settings-group + .settings-group {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.settings-group h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.01em;
}
#vibe-autoplay-options {
  margin-top: 12px;
}
#vibe-character-options legend,
#vibe-filter-options legend {
  color: var(--text-1);
  font-size: 15px;
  font-weight: 620;
  padding: 0 0 10px;
}
/* Modes: one choice among cards with a ring marker. */
.vibe-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  margin: 0 0 8px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.vibe-mode-option:has(input:checked) {
  border-color: rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.04);
}
.vibe-mode-option > span {
  flex: 1;
}
.vibe-mode-option input {
  appearance: none;
  flex: none;
  order: 2;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.3);
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease;
}
.vibe-mode-option input:before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-1);
  transform: scale(0);
  transition: transform 0.2s var(--ease-spring);
}
.vibe-mode-option input:checked {
  border-color: var(--text-1);
}
.vibe-mode-option input:checked:before {
  transform: scale(1);
}
.vibe-mode-option strong,
.vibe-mode-option small,
.vibe-filter strong,
.vibe-filter small {
  display: block;
}
.vibe-mode-option strong,
.vibe-filter strong {
  font-size: 15px;
  font-weight: 550;
}
.vibe-mode-option small,
.vibe-filter small {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
}
/* Filters: independent on/off rows with a switch. */
.vibe-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.vibe-filter:first-of-type {
  border-top: 0;
}
.vibe-filter > span {
  flex: 1;
}
.vibe-filter input {
  appearance: none;
  flex: none;
  position: relative;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: var(--radius-control);
  background: var(--surface-4);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.vibe-filter input:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-1);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
  transition: transform 0.25s var(--ease-spring);
}
.vibe-filter input:checked {
  background: var(--success);
}
.vibe-filter input:checked:before {
  transform: translateX(18px);
}
.vibe-filter input:disabled,
.vibe-mode-option input:disabled {
  opacity: 0.5;
}
#vibe-settings-status {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  min-height: 20px;
  margin: 22px 0 0;
}
#profile-vibe-settings {
  margin-bottom: 12px;
  width: 100%;
}
@media (max-width: 560px) {
  #vibe-settings-dialog {
    padding: 22px 20px;
  }
}

#chart-toolbar {
  margin: 10px 0 20px;
}
#chart-status {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
#chart-status:empty {
  display: none;
}
.chart-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chart-links .secondary {
  font-size: 12px;
  padding: 9px 12px;
}
.chart-rank {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgb(10 10 12 / 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-1);
  font-size: 11px;
  font-weight: 650;
  min-width: 18px;
  padding: 1px 5px;
  text-align: center;
  border-radius: 5px;
  z-index: 1;
}
.chart-unresolved .track-copy strong {
  font-size: 14px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-unresolved .track-copy small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.chart-unresolved .row-play {
  font-size: 13px;
  opacity: 0.65;
}
#profile-chart-country {
  width: 100%;
  margin-bottom: 12px;
}
#chart-country-dialog {
  width: min(440px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
#chart-country-dialog::backdrop {
  background: color-mix(in srgb, var(--shade) 60%, transparent);
  backdrop-filter: blur(8px);
}
#chart-country-dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
#chart-country-select {
  display: block;
  width: 100%;
  margin: 10px 0 16px;
  height: 46px;
  padding: 0 12px;
  background: var(--surface-2);
  color: inherit;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 12px;
  font-size: 15px;
}
#chart-country-save {
  width: 100%;
}
@media (max-width: 560px) {
  #chart-country-dialog {
    padding: 22px;
  }
  .chart-unresolved .track-copy strong {
    font-size: 13px;
  }
}
#chart-toolbar .collection-tabs {
  margin-bottom: 8px;
  padding-bottom: 8px;
}
.chart-links .secondary {
  margin: 0;
  display: inline-flex;
}
#chart-status {
  margin: 10px 0;
}
.chart-rank {
  z-index: 3;
}

/* Shared states for text fields and choices. */
#account-form input:focus,
#playlist-name:focus,
#picker-search:focus,
#chart-country-select:focus {
  border-color: rgb(255 255 255 / 0.24);
  background: var(--surface-1);
}
.vibe-mode-option:hover {
  background: rgb(255 255 255 / 0.03);
}
#track-menu > button:hover {
  background: rgb(255 255 255 / 0.06);
}
.artist-card:hover {
  background: var(--surface-2);
}
.pick-artist:hover .pick-avatar {
  transform: scale(1.03);
}
#track-menu[open] {
  animation: panel-in 0.26s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  button:active:not(:disabled) {
    transform: none;
  }
}
/* Phone layout: the player floats above the tab bar, the vibe field keeps its scale. */
@media (max-width: 560px) {
  .sidebar {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
  }
  .player {
    left: 8px;
    right: 8px;
    height: 68px;
    padding: 8px 10px 8px 8px;
    border-radius: 16px;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  .cover.small {
    width: 52px;
    height: 52px;
    border-radius: 9px;
  }
  .now-info strong {
    font-size: 15px;
  }
  .now-info > span {
    font-size: 13px;
  }
  .timeline {
    left: 16px;
    right: 16px;
    bottom: 1px;
  }
  .timeline input {
    height: 3px;
    pointer-events: none;
  }
  .timeline input::-webkit-slider-runnable-track {
    height: 2px;
  }
  .timeline input::-moz-range-track {
    height: 2px;
  }
  .hero {
    border-radius: 22px;
  }
  .hero-copy {
    padding: 30px 24px 26px;
  }
  body[data-view='home'] #tracks {
    grid-template-rows: repeat(3, minmax(64px, auto));
  }
  h2 {
    font-size: 24px;
  }
}

#library-refresh {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.05);
  color: var(--text-2);
  font-size: 14px;
}
#library-refresh p {
  margin: 0;
}
.upgrade-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 4px;
}
.upgrade-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}
.upgrade-row div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.upgrade-row strong,
.upgrade-row div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upgrade-row strong {
  color: var(--text-1);
}
.upgrade-row small {
  grid-column: 1 / -1;
  color: var(--danger);
}
.upgrade-quality {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .upgrade-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .upgrade-quality {
    grid-column: 1;
  }
}

/* The first twelve songs of an artist are four columns of three that read top to bottom; where the page is narrower
   the columns scroll sideways instead of piling up, so the first screen stays short. */
.artist-open .section-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.artist-open #section-eyebrow {
  flex-basis: 100%;
}
.artist-open #back-to-results {
  margin: 20px 0;
}
.artist-open #tracks,
.artist-song-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 20px;
}
.artist-open #tracks .track-row,
.artist-song-grid .track-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 70px;
  padding: 7px;
}
.artist-open #tracks .row-play,
.artist-song-grid .row-play,
.artist-open #tracks .version,
.artist-song-grid .version,
.artist-open #tracks .track-duration,
.artist-song-grid .track-duration,
.artist-open #tracks .track-badges,
.artist-song-grid .track-badges {
  display: none;
}
.artist-open .track-info {
  min-width: 0;
  gap: 10px;
}
.artist-open .cover {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.artist-open .track-title {
  font-size: 14px;
}
.artist-open .track-actions {
  gap: 0;
}
.artist-open .track-actions .icon-button {
  width: 28px;
  height: 32px;
}
.artist-open .track-actions .icon-button svg {
  width: 17px;
  height: 17px;
}
#artist-related,
#artist-albums {
  margin-top: 44px;
}
.artist-section-note {
  color: var(--text-2);
  font-size: 14px;
}
.artist-latest {
  margin: 28px 0 40px;
}
.artist-latest-card {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  max-width: 600px;
}
.album-art {
  display: block;
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
}
.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-art > svg {
  width: 40%;
  height: 100%;
  margin: auto;
}
.artist-latest-card .album-art {
  width: 116px;
  flex-shrink: 0;
}
.artist-latest-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.artist-latest-card strong {
  font-size: 24px;
}
.artist-latest-card small,
.artist-latest-card span span {
  color: var(--text-2);
}
.artist-latest-card > svg {
  width: 24px;
  height: 24px;
  margin-left: 16px;
}
.artist-album-list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scroll-snap-type: x proximity;
}
.artist-album-card {
  flex: 0 0 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  scroll-snap-align: start;
}
.artist-album-card .album-art {
  width: 100%;
  margin-bottom: 3px;
}
.artist-album-card strong {
  font-size: 15px;
  line-height: 1.4;
}
.artist-album-card > span:last-child {
  color: var(--text-2);
  font-size: 14px;
}
@media (max-width: 1250px) {
  .artist-open #tracks,
  .artist-song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .artist-open #tracks,
  .artist-song-grid {
    display: flex;
    flex-direction: column;
  }
  .artist-album-card {
    flex-basis: 145px;
  }
  .artist-latest-card .album-art {
    width: 90px;
  }
  .artist-latest-card strong {
    font-size: 20px;
  }
}

.artist-overview #tracks,
#artist-related.preview .artist-song-grid {
  grid-template-columns: none;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.artist-overview #tracks .track-row,
#artist-related.preview .track-row {
  scroll-snap-align: start;
}
.artist-all-songs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
}
.artist-all-songs svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 1250px) {
  .artist-overview #tracks,
  #artist-related.preview .artist-song-grid {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}
@media (max-width: 650px) {
  .artist-overview #tracks,
  #artist-related.preview .artist-song-grid {
    display: grid;
    grid-auto-columns: 86%;
  }
}

/* The Collection page: favorites are the first playlist card, then the listener's own, then a card to make another. */
.favorites-card .playlist-card-art {
  background: linear-gradient(145deg, #7a3b56, #3a2742);
  color: #fff;
}
.favorites-card .playlist-card-art svg {
  fill: currentColor;
  stroke-width: 0;
}
.new-playlist-card .playlist-card-art {
  background: transparent;
  border: 1px dashed var(--line-strong, rgb(255 255 255 / 0.18));
}
.new-playlist-card:hover .playlist-card-art {
  color: var(--text-1);
}
#back-to-collection {
  margin: 0 0 14px;
}
#downloads-summary {
  margin: 4px 0 16px;
  color: var(--text-2);
  font-size: 14px;
}
#collection-artists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px 16px;
  margin: 20px 0;
}
.collection-artist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 16px;
  text-align: center;
  min-width: 0;
}
.collection-artist:hover {
  background: rgb(255 255 255 / 0.04);
}
.collection-artist .artist-avatar {
  width: 112px;
  height: 112px;
  font-size: 40px;
  margin-bottom: 6px;
}
.collection-artist strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.collection-artist small {
  color: var(--text-3);
  font-size: 13px;
}
@media (max-width: 560px) {
  #collection-artists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }
  .collection-artist .artist-avatar {
    width: 92px;
    height: 92px;
  }
}

/* The shared library: a page of its own, so everything else in the main column steps aside. */
.nav-item[hidden] {
  display: none;
}
body[data-view='shared-library'] main > :not(#shared-library):not(.content-footer) {
  display: none !important;
}
.queued-badge {
  color: var(--success);
}
.artist-profile-actions {
  flex-wrap: wrap;
}
.artist-profile-actions .secondary:disabled {
  opacity: 0.65;
  cursor: default;
}
.shared-library {
  padding: 8px 0 32px;
}
.library-header > p:first-child {
  margin: 0 0 4px;
  color: var(--text-2);
  font-size: 13px;
}
.library-header h1 {
  margin: 0 0 8px;
  font-size: 34px;
}
.library-note {
  margin: 8px 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.library-note b {
  color: var(--text-1);
  font-weight: 600;
}
.library-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.library-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-1);
}
.library-stats strong {
  font-size: 22px;
  font-weight: 600;
}
.library-stats span {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
}
.library-meter {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--text-1) var(--share),
    var(--surface-2, rgba(255, 255, 255, 0.12)) var(--share)
  );
}
.library-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}
.library-columns h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}
.library-columns section > h2:first-child {
  margin-top: 0;
}
.library-lead {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.library-lead span {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
}
.library-songs,
.library-orders,
.library-sites {
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.library-songs li,
.library-orders li,
.library-sites li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-1);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.library-songs strong,
.library-orders strong,
.library-sites strong {
  font-weight: 500;
}
.library-songs span,
.library-orders span,
.library-sites span {
  color: var(--text-2);
  font-size: 13px;
}
.library-sites li.paused span,
.library-order-status.missing {
  color: var(--danger, #e8a33d);
}

.artist-coverage {
  margin: 4px 0 0;
  color: var(--success);
  font-size: 13px;
}
