@font-face {
  font-family: 'Unbounded';
  src: url('./fonts/Unbounded-variable.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geologica';
  src: url('./fonts/Geologica-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('./fonts/Manrope-cyrillic-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  src: url('./fonts/Manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('./fonts/Manrope-greek.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: 'Manrope';
  src: url('./fonts/Manrope-vietnamese.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Manrope';
  src: url('./fonts/Manrope-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: 'Manrope';
  src: url('./fonts/Manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #080809;
  --surface: #19191c;
  --raised: #202024;
  --border: #34343a;
  --text: #ffffff;
  --muted: #b9b9c0;
  --accent: #ffe600;
  --on-accent: #0a0a0b;
  --error: #ff8c86;
  --focus: #ffffff;
  --font-display: 'Unbounded';
  --font-title: 'Geologica';
  --font-body: 'Manrope';
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-bottom, 0px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --move: cubic-bezier(0.16, 1, 0.3, 1);
  --app-height: 100vh;
  --sidebar: 216px;
  --gutter: 16px;
}
.subscription-gate {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: var(--app-height, 100dvh);
  max-height: 100%;
  margin: 0;
  padding: max(24px, var(--safe-top)) 28px max(24px, var(--safe-bottom));
  border: 0;
  --subscription-bg: #0b0b0c;
  --subscription-yellow: #ffe52b;
  background: var(--subscription-bg);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
  font-family: var(--font-body);
}
.subscription-gate::backdrop {
  background: #0b0b0c;
}
.subscription-content {
  min-height: 100%;
  width: min(100%, 408px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.subscription-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 12px;
  font-family: var(--font-title);
}
.subscription-wordmark {
  color: var(--text);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.8px;
}
.subscription-brand-detail {
  color: #929292;
  font-size: 14px;
  font-weight: 400;
}
.subscription-art {
  width: calc(100% + 32px);
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  margin-inline: -16px;
  margin-bottom: 16px;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 8%, #000 82%, transparent);
}
.subscription-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.subscription-copy {
  width: 100%;
  min-width: 0;
}
.subscription-gate h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1.1px;
  text-wrap: balance;
}
.subscription-gate .subscription-description {
  margin: 16px 0 0;
  max-width: 28ch;
  color: #adadaf;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}
.subscription-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
}
.subscription-join,
.subscription-check {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 56px;
  padding: 14px 22px;
  border: 0;
  border-radius: 18px;
  font: 600 16px/1.5 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.subscription-join {
  background: var(--subscription-yellow);
  color: #111112;
}
.subscription-link-arrow {
  position: absolute;
  right: 20px;
  font-size: 20px;
  line-height: 1;
}
.subscription-check {
  background: #18181a;
  color: #dedee0;
}
.subscription-join:hover {
  background: #ffed66;
}
.subscription-check:hover {
  background: #222225;
}
.subscription-join:active {
  background: #ecd21b;
}
.subscription-check:active {
  background: #2a2a2e;
}
.subscription-join:focus-visible,
.subscription-check:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.subscription-check:disabled {
  opacity: 0.55;
  cursor: wait;
}
.subscription-gate .subscription-status {
  min-height: 38px;
  margin: 18px auto 0;
  max-width: 34ch;
  color: #a0a0a4;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
}
.subscription-status::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: var(--subscription-yellow);
}
@media (max-width: 360px) {
  .subscription-gate {
    padding-inline: 24px;
  }
  .subscription-gate h1 {
    font-size: 28px;
    letter-spacing: -0.8px;
  }
}
@media (max-height: 620px) {
  .subscription-gate {
    padding-top: max(16px, var(--safe-top));
    padding-bottom: max(16px, var(--safe-bottom));
  }
  .subscription-brand {
    padding-bottom: 4px;
  }
  .subscription-wordmark {
    font-size: 28px;
  }
  .subscription-art {
    height: 148px;
    aspect-ratio: auto;
    margin-bottom: 12px;
  }
  .subscription-gate h1 {
    font-size: 28px;
  }
  .subscription-gate .subscription-description {
    margin-top: 12px;
  }
  .subscription-actions {
    margin-top: 22px;
    gap: 8px;
  }
  .subscription-join,
  .subscription-check {
    min-height: 50px;
    padding-block: 12px;
  }
  .subscription-gate .subscription-status {
    margin-top: 14px;
    min-height: 32px;
  }
}
@media (min-width: 860px) and (min-height: 621px) {
  .subscription-gate {
    padding: 40px 48px;
  }
  .subscription-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    width: min(100%, 1040px);
  }
  .subscription-brand {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .subscription-art {
    width: calc(100% + 64px);
    margin-inline: -32px;
    margin-bottom: 0;
  }
  .subscription-gate h1 {
    font-size: 38px;
  }
  .subscription-copy {
    align-self: center;
  }
  .subscription-actions {
    max-width: 360px;
  }
  .subscription-gate .subscription-status {
    max-width: 360px;
    margin-inline: 0;
  }
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-padding-bottom: 170px;
}
body {
  margin: 0;
  font: 400 14px/1.5 var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-width: 0;
  overflow-wrap: break-word;
  font-synthesis: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  font-family: var(--font-title);
  font-weight: 500;
}
strong,
b {
  font-weight: 600;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
svg.share-icon {
  display: inline-block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h2 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 500;
}
h3 {
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.4;
}
ol,
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -1px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  line-height: 1.3;
  transition:
    transform 140ms var(--ease),
    background-color 120ms var(--ease),
    color 120ms var(--ease);
}
.button {
  padding: 10px 14px;
  font-weight: 500;
  background: var(--raised);
}
.button:has(svg) {
  padding-left: 12px;
}
.icon-button {
  height: 44px;
  min-width: 44px;
  width: 44px;
  padding: 10px;
  color: var(--muted);
}
.button:active:not(:disabled),
.icon-button:active:not(:disabled),
.play-button:active {
  transform: scale(0.97);
}
.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.subtle,
.text-button {
  background: transparent;
  color: var(--muted);
}
.text-button {
  padding: 8px 4px;
  min-width: 44px;
  white-space: normal;
}
.danger {
  color: var(--error);
}
[aria-pressed='true'] {
  color: var(--accent);
}
.icon-button[data-like-id][aria-pressed='true'] svg {
  fill: currentColor;
}
.button.primary[aria-pressed='true'] {
  color: var(--on-accent);
}
.icon-button[data-repeat] svg {
  fill: none;
}
.icon-button[data-repeat='one']:after {
  content: '1';
  font-size: 10px;
  position: absolute;
  margin: 0 0 17px 16px;
  background: var(--raised);
  padding: 0 2px;
}
.app-body {
  min-height: var(--app-height);
  padding-top: var(--safe-top);
}
#main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px var(--gutter) calc(88px + var(--safe-bottom));
  min-height: calc(var(--app-height) - var(--safe-top));
}
body.has-player #main {
  padding-bottom: calc(166px + var(--safe-bottom));
}
.sidebar {
  display: none;
}
.demo-banner {
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  padding: 7px 16px;
  background: #161711;
  border-bottom: 1px solid #ffe60014;
}
.connection {
  position: sticky;
  top: 0;
  z-index: 21;
  padding: 8px 16px;
  background: #393320;
  color: #f5e9bc;
  font-size: 12px;
  text-align: center;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  min-width: 0;
}
.page-heading > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.page-heading > div > div {
  min-width: 0;
}
.page-heading > div > .icon-button {
  margin-left: -12px;
  margin-top: -5px;
}
.page-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.page-heading > .button {
  max-width: 45%;
  white-space: normal;
}
.section {
  margin-top: 32px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  min-width: 0;
}
.section-heading .text-button {
  font-size: 12px;
  white-space: nowrap;
}
.section-heading > .small {
  display: none;
}
.gentle-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  padding: 16px 0;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 40px 16px;
  text-align: center;
}
.empty h3 {
  max-width: 35ch;
}
.empty p {
  color: var(--muted);
  max-width: 38ch;
}
.empty-icon {
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  background: var(--raised);
  border-radius: 16px;
  color: var(--muted);
  margin-bottom: 4px;
}
.artist-links {
  display: flex;
  gap: 0 8px;
  flex-wrap: wrap;
  justify-content: inherit;
  align-items: center;
}
.artist-links .button {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 0;
  min-height: 32px;
  font-weight: 500;
  max-width: 100%;
}
.reason {
  font-size: 12px;
  color: var(--muted);
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 18px;
}
.play-button {
  position: relative;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  transition: background-color 120ms var(--ease);
}
.play-button svg {
  width: 24px;
  height: 24px;
}
.play-button > span {
  display: flex;
}
.flow-status {
  color: var(--muted);
  margin-top: 12px;
}
.flow-status:empty {
  display: none;
}
.cover {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  background: #354c4a;
  isolation: isolate;
  vertical-align: middle;
}
.cover img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  z-index: 2;
}
.track-list {
  width: 100%;
  min-width: 0;
}
.track-row {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 4px;
  border-radius: 12px;
  position: relative;
}
.track-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  padding: 10px 4px;
  text-align: left;
  min-height: 64px;
}
.track-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}
.track-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  display: block;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}
.track-title small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.track-artists {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-duration {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 35px;
  display: none;
}
.row-like {
  display: none;
}
/* The cover stays still; the veil and five voices settle into playback together. */
.track-row { transition: background-color 300ms cubic-bezier(.22,1,.36,1); }
.track-row.current { background-color: #ffe60009; }
.track-row.current .track-title { color: var(--accent); }
.track-artwork { position: relative; display: block; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 7px; overflow: hidden; isolation: isolate; }
.track-artwork > .cover[data-artwork-kind] { width: 100%; height: 100%; }
.track-playing-indicator {
  position: absolute; z-index: 3; inset: 0; display: flex; align-items: center;
  justify-content: center; gap: 3px; opacity: 0; pointer-events: none;
  background: #09090985; transform: translateY(3px) scale(.94);
  transition: opacity 260ms cubic-bezier(.22,1,.36,1), transform 440ms cubic-bezier(.16,1,.3,1);
}
.track-row.current .track-playing-indicator { opacity: 1; transform: translateY(0) scale(1); }
.track-playing-indicator i {
  display: block; width: 3px; height: 22px; border-radius: 2px; background: var(--accent);
  transform: scaleY(.24); transform-origin: center;
  animation: track-voice 1640ms cubic-bezier(.45,0,.25,1) infinite;
  animation-play-state: paused;
  transition: opacity 220ms cubic-bezier(.22,1,.36,1);
}
.track-playing-indicator i:nth-child(2) { animation-duration: 1930ms; animation-delay: -740ms; }
.track-playing-indicator i:nth-child(3) { animation-duration: 1470ms; animation-delay: -310ms; }
.track-playing-indicator i:nth-child(4) { animation-duration: 1810ms; animation-delay: -1090ms; }
.track-playing-indicator i:nth-child(5) { animation-duration: 2110ms; animation-delay: -530ms; }
.track-row.is-playing .track-playing-indicator i { animation-play-state: running; }
.track-row.current:not(.is-playing) .track-playing-indicator i { opacity: .55; }
.track-row.is-buffering .track-playing-indicator i { opacity: .35; }
.track-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #fff;
  background: #08080880;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms cubic-bezier(.22,1,.36,1);
}
.track-play-overlay .ui-icon { width: 24px; height: 24px; }
.track-main:focus-visible .track-play-overlay { opacity: 1; transition: none; }
@media (hover: none), (pointer: coarse) {
  .track-play-overlay { opacity: 1; }
  .track-row.is-playing .track-play-overlay { opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .track-main:hover .track-play-overlay { opacity: 1; }
}
@keyframes track-voice {
  0%,100% { transform: scaleY(.28); }
  18% { transform: scaleY(.72); }
  39% { transform: scaleY(.4); }
  62% { transform: scaleY(1); }
  82% { transform: scaleY(.52); }
}
@media (prefers-reduced-motion: reduce) {
  .track-row, .track-playing-indicator, .track-playing-indicator i { transition: none; }
  .track-row .track-playing-indicator i { animation: none !important; transform: scaleY(.45); }
  .track-row .track-playing-indicator i:nth-child(2n) { transform: scaleY(.8); }
}
.track-row.unavailable .cover {
  opacity: 0.45;
}
.artist-track-section .track-row.hidden-from-flow .cover {
  filter: grayscale(0.82) brightness(0.62);
  opacity: 0.72;
}
.artist-track-section .track-row.hidden-from-flow .track-title,
.artist-track-section .track-row.hidden-from-flow .track-artists,
.artist-track-section .track-row.hidden-from-flow .track-duration {
  color: #727272;
}
.explicit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: 800;
  color: #19191c;
  background: var(--muted);
  border-radius: 3px;
  margin-left: 6px;
}
.track-row .button.subtle {
  font-size: 12px;
  padding: 8px;
}
.reorder {
  display: flex;
}
.reorder .icon-button {
  width: 44px;
}
.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 12px;
  min-width: 0;
}
.artist-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  position: relative;
}
.artist-card .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-width: 112px;
}
.artist-card > .cover[data-artwork-kind] {
  width: 100%;
  height: auto;
  max-width: 112px;
  aspect-ratio: 1;
}
.artist-card > span:not(.cover) {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artist-card[aria-pressed='true'] .cover {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.artist-check {
  position: absolute;
  right: 4px;
  top: 4px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-content: center;
}
.artist-check svg {
  width: 16px;
}
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}
.playlist-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  min-width: 0;
  padding: 0;
}
.playlist-card .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  margin-bottom: 6px;
}
.playlist-card strong {
  font-family: var(--font-title);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.playlist-card > span:last-child {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}
.liked-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(110deg, #272b19, var(--surface) 80%);
  padding: 20px;
  margin-bottom: 16px;
}
.liked-banner-group {
  position: relative;
  margin-bottom: 16px;
}
.liked-banner-group .liked-banner {
  margin: 0;
  padding-right: 80px;
}
.liked-play {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.liked-play:active:not(:disabled) {
  transform: translateY(-50%) scale(0.97);
}
.queue-now-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.queue-now-heading h3 {
  margin: 0;
}
.keyboard-use .button,
.keyboard-use .icon-button,
.keyboard-use .play-button,
.keyboard-use dialog,
.keyboard-use dialog::backdrop {
  transition: none;
}
.liked-banner > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.liked-banner small {
  color: #bec79c;
}
.liked-banner strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.liked-banner span span {
  color: var(--muted);
  font-size: 12px;
}
.liked-banner > svg {
  color: var(--accent);
}
.liked-art {
  width: 64px;
  height: 64px;
  display: grid;
  place-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffe600, #819031);
  color: #22310c;
  transform: rotate(-6deg);
  flex-shrink: 0;
}
.liked-art svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  background: var(--raised);
  border-radius: 16px;
  padding: 0 14px;
  min-height: 48px;
  color: var(--muted);
  flex: 1;
}
.search-field input {
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 8px 0;
  font-size: 16px;
}
.search-field:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: -1px;
}
.search-field input:focus-visible {
  outline: 0;
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-field:has(.icon-button) {
  padding-right: 4px;
}
.main-search {
  margin-bottom: 20px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  min-height: 44px;
  white-space: nowrap;
  border-radius: 24px;
  background: var(--surface);
  font-weight: 500;
  padding: 10px 16px;
}
.chip[aria-pressed='true'] {
  color: var(--accent);
  background: #ffe6001a;
}
.query-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 8px;
}
.query-history li > .button {
  min-width: 0;
  flex: 1;
  justify-content: flex-start;
  text-align: left;
  color: var(--text);
  font-weight: 500;
}
.query-history li > .button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.query-history li > .button > svg {
  color: var(--muted);
}
.best-result {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  padding: 20px;
  width: 100%;
  border-radius: 20px;
  text-align: left;
}
.best-result .cover {
  width: 72px;
  height: 72px;
}
.best-result > span:nth-child(2) {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.best-result strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.best-result small {
  color: var(--muted);
}
.best-result > svg {
  color: var(--accent);
}
.list-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.list-tools select {
  flex-shrink: 1;
  min-width: 0;
}
.list-tools .search-field {
  min-width: min(100%, 210px);
}
.adding-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffe60012;
  border-radius: 14px;
  padding: 6px 12px;
  margin-bottom: 16px;
  gap: 8px;
}
.adding-banner > span {
  min-width: 0;
}
.adding-banner .button {
  color: var(--accent);
  background: transparent;
}
.inline-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--error);
  background: #ff8c860b;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.inline-error > .button {
  color: var(--error);
  background: transparent;
  flex-shrink: 1;
}
.load-more {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.entity-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.artist-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.artist-profile {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 8px 0 36px;
}
.artist-profile > .cover {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #263135;
  outline: 1px solid #ffffff12;
  outline-offset: -1px;
}
.artist-profile-copy {
  min-width: 0;
}
.artist-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.artist-profile h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.artist-profile h1:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.artist-track-count {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}
.artist-listener-stat {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: 100%;
  min-height: 34px;
  margin: 12px 0 0;
  padding: 7px 11px 7px 9px;
  color: var(--text);
  background: linear-gradient(112deg, #ffffff13, #ffffff08);
  border: 1px solid #ffffff14;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.artist-listener-stat > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #d3d3d6;
}
.artist-listener-stat strong {
  font: inherit;
  white-space: nowrap;
}
.artist-listener-stat > span {
  color: #e4e4e7;
}
.artist-listener-stat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}
.artist-listener-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  min-height: 40px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.artist-listener-error .button {
  min-height: 40px;
  padding-inline: 4px;
  color: var(--text);
}
.artist-profile .entity-actions {
  gap: 10px;
  margin-top: 18px;
}
.artist-profile .entity-actions .button {
  min-height: 44px;
}
.artist-track-section {
  min-width: 0;
}
.artist-track-heading {
  margin-bottom: 14px;
}
.artist-track-heading h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.artist-track-section .list-tools {
  margin-bottom: 8px;
}
.entity-heading > div {
  min-width: 0;
  flex: 1 1 180px;
}
.entity-heading h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.artist-heading h2 {
  font-family: var(--font-body);
  font-weight: 700;
}
.entity-heading p {
  margin-top: 10px;
}
.entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.entity-actions .button {
  font-size: 12px;
  min-height: 44px;
}
.hidden-artist-note {
  color: var(--muted);
  margin-top: 12px;
}
.artist-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.artist-line > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.artist-line .button {
  font-size: 12px;
}
.stats-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.stats-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  min-width: 0;
}
.stats-controls select {
  max-width: 100%;
  color: var(--text);
  font-weight: 500;
}
.stats-total {
  padding: 24px 0 32px;
  border-bottom: 1px solid #ffffff0d;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats-total > span {
  color: var(--muted);
  font-size: 12px;
}
.stats-total > strong {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.stats-total p {
  color: var(--muted);
  font-size: 12px;
}
.stats-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  min-width: 0;
}
.rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 18px;
}
.stats-artist {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0;
}
.stats-artist > .cover {
  width: 44px;
  height: 44px;
}
.stats-artist > span:last-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stats-artist strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.stat-meter {
  height: 3px;
  background: #ffffff0b;
  border-radius: 3px;
  display: block;
  max-width: 320px;
  overflow: hidden;
}
.stat-meter i {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--accent);
  transform-origin: left;
  border-radius: 3px;
}
.listen-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  max-width: 100px;
  text-align: right;
  flex-shrink: 0;
}
.unattributed {
  flex: 1;
  color: var(--muted);
}
.data-note {
  color: #e1c994;
  font-size: 12px;
  padding: 12px 0;
}
.stats-explanation {
  border-top: 1px solid #ffffff0d;
  margin-top: 24px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.stats-explanation summary {
  cursor: pointer;
  min-height: 44px;
}
.stats-explanation p {
  max-width: 66ch;
  margin: 12px 0;
}
.settings-block {
  padding: 24px 0;
  border-bottom: 1px solid #ffffff0d;
}
.settings-block:first-of-type {
  padding-top: 0;
}
.settings-block h2 {
  font-family: var(--font-title);
  font-weight: 500;
  margin-bottom: 8px;
}
.settings-block > p {
  margin-bottom: 12px;
}
.settings-block > .button {
  display: flex;
  justify-content: flex-start;
  min-height: 48px;
}
.timezone-field {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.timezone-field input {
  flex: 1;
  min-width: 0;
}
.field-label {
  display: block;
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 600;
}
input:not([type='range'], [type='radio'], [type='checkbox'], [type='search']),
textarea,
select {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--raised);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  max-width: 100%;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
}
select {
  padding-right: 32px;
}
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 32px auto;
}
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  height: calc(64px + var(--safe-bottom));
  padding: 0 8px var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid #ffffff0a;
}
.nav-link {
  font-family: var(--font-title);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 4px;
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-size: 11px;
  min-height: 64px;
  font-weight: 500;
  padding: 8px;
}
.nav-link.active {
  color: var(--accent);
}
.tabbar .nav-link.active:before {
  content: '';
  position: absolute;
  top: 5px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
#mini-player {
  position: fixed;
  z-index: 31;
  left: 8px;
  right: 8px;
  /* Telegram's compact player can coexist with its native audio bar. Keep it
     above the tab bar and reserve a second row for the current track there. */
  bottom: calc(72px + var(--safe-bottom) + var(--native-player-height, 0px));
}
.mini-player {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  position: relative;
  padding: 8px;
  border-radius: 16px;
  background: #242428;
  border: 1px solid #ffffff0b;
  overflow: hidden;
}
.mini-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #ffffff0a;
}
.mini-progress i {
  height: 100%;
  width: 100%;
  display: block;
  background: var(--accent);
  transform-origin: left;
}
.mini-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  padding: 0;
  text-align: left;
  min-height: 44px;
}
.mini-track-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.mini-track-menu { display: none; }
.mini-track .cover { flex: 0 0 auto; }
.mini-track > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mini-track strong {
  font-family: var(--font-title);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.mini-track small {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-player-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.mini-player .play-button {
  background: transparent;
  color: var(--text);
}
.mini-player .mobile-player-controls > .icon-button {
  color: var(--text);
}
.desktop-player-controls,
.desktop-player-extra {
  display: none;
}
.keyboard-open .tabbar,
.keyboard-open #mini-player {
  display: none;
}
.keyboard-open #main {
  padding-bottom: 24px;
}
.seek-control {
  display: grid;
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  width: 100%;
}
.seek-control input {
  min-width: 0;
  width: 100%;
  height: 44px;
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  flex: none;
}
.seek-control > span[data-position] {
  grid-column: 1;
  grid-row: 1;
  min-width: 32px;
}
.seek-control > span[data-duration] {
  grid-column: 3;
  grid-row: 1;
  min-width: 32px;
  text-align: right;
}
.seek-control .seek-track {
  display: block;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff26;
  pointer-events: none;
}
.seek-control .seek-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1000ms cubic-bezier(0.37, 0, 0.63, 1);
}
.seek-control[data-seeking] .seek-track i { transition: none; }
input[type='range'] {
  height: 44px;
  appearance: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: #ffffff26;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: -4px;
}
input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: #ffffff26;
}
input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
}
input[type='range']:disabled {
  opacity: 0.35;
  cursor: default;
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid #ffffff0d;
  padding: 0;
  max-width: 100%;
  max-height: calc(var(--app-height) - var(--safe-top));
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
}
dialog::backdrop {
  background: #000a;
  opacity: 1;
}
.player-empty {
  min-height: min(58vh, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}
.player-empty h3 {
  font: 500 22px/1.3 var(--font-title);
  margin: 0;
}
.player-empty p {
  color: var(--muted);
  margin: 0;
  max-width: 28ch;
}
.empty-player-art {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  background: #ffffff08;
  color: #ffffff70;
}
.empty-player-art .ui-icon {
  width: 36px;
  height: 36px;
}

dialog[open]::backdrop {
  opacity: 1;
}
.sheet-dialog,
.queue-dialog {
  margin: auto auto 0;
  width: 100%;
  border-radius: 24px 24px 0 0;
  max-height: calc(var(--app-height) - var(--safe-top) - 16px);
}
.surface-content {
  padding: 24px var(--gutter) calc(24px + var(--safe-bottom));
}
.surface-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.surface-heading > div {
  min-width: 0;
}
.surface-heading h2 {
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.surface-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.surface-heading > .icon-button {
  margin-top: -6px;
  margin-right: -8px;
}
.sheet-copy {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 45ch;
  line-height: 1.6;
}
.sheet-footnote {
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-action {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  min-height: 48px;
  font-weight: 500;
  width: 100%;
  padding: 12px;
  white-space: normal;
}
.menu-action svg {
  color: var(--muted);
  margin-right: 4px;
}
.menu-action.danger svg {
  color: var(--error);
}
.form-error {
  color: var(--error);
  font-size: 13px;
  margin: 12px 0;
}
.form-error:empty {
  margin: 8px 0;
}
.surface-content form > .primary {
  width: 100%;
  margin-top: 12px;
  min-height: 48px;
}
.surface-content input:not([type='radio'], [type='checkbox'], [type='range']),
.surface-content select {
  width: 100%;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 20px 0 24px;
  min-width: 0;
}
legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0;
}
.mode-choices {
  display: grid;
  gap: 8px;
}
.mode-choices label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 60px;
  cursor: pointer;
}
.mode-choices label:has(:checked) {
  border-color: #ffe60066;
  background: #ffe6000a;
}
.mode-choices label > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mode-choices strong {
  font-size: 14px;
}
.mode-choices small {
  color: var(--muted);
  font-size: 12px;
}
input[type='radio'],
input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.language-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.language-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--raised);
  border-radius: 12px;
  font-size: 13px;
  min-height: 44px;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.playlist-picker > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  min-height: 64px;
}
.playlist-picker > button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.playlist-picker strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-picker small {
  color: var(--muted);
}
.playlist-picker > button > svg {
  color: var(--accent);
}
.queue-section {
  margin: 24px 0;
}
.queue-section h3 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.queue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.queue-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  text-align: left;
  padding: 8px 0;
}
.queue-main > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.queue-main strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-main small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 88px;
  flex-shrink: 0;
}
.queue-controls > .icon-button {
  width: 44px;
  height: 44px;
}
.queue-controls svg {
  width: 18px;
  height: 18px;
}
.queue-row.queue-current strong {
  color: var(--accent);
}
.queue-empty {
  padding: 20px 0;
}
.notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(150px + var(--safe-bottom));
  z-index: 60;
  max-width: 500px;
  margin: auto;
  background: #36363b;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  box-shadow: 0 8px 36px #0005;
}
.notice > .button {
  color: var(--accent);
  flex-shrink: 0;
  min-height: 44px;
}
.notice > span {
  flex: 1;
}
.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 20px;
  width: 100%;
  min-height: max(var(--app-height), 420px);
  overflow-y: auto;
  padding: max(24px, var(--safe-top)) max(24px, var(--gutter)) max(24px, var(--safe-bottom));
  background: var(--bg);
}
.boot > p {
  color: var(--muted);
  width: min(100%, 36ch);
}
.boot > h1 {
  max-width: 100%;
}
@media (max-height: 460px) {
  .boot {
    justify-content: flex-start;
  }
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 13px;
  flex-shrink: 0;
}
.brand-mark .brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.skeleton {
  display: grid;
  gap: 12px;
  padding-top: 24px;
}
.skeleton i {
  height: 52px;
  background: linear-gradient(90deg, var(--surface), var(--raised));
  border-radius: 12px;
  display: block;
}
body:has(dialog[open][aria-modal='true']) {
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled),
  .icon-button:hover:not(:disabled) {
    background-color: #ffffff0b;
    color: var(--text);
  }
  .button.primary:hover {
    background: var(--accent);
    color: var(--on-accent);
  }
  .play-button:hover {
    background: var(--accent);
  }
  .track-row:hover {
    background: #ffffff04;
  }
  .artist-card:hover .cover,
  .playlist-card:hover .cover {
    outline: 1px solid #ffffff40;
  }
  .menu-action:hover {
    background: var(--raised);
  }
  .mini-track:hover strong {
    color: var(--accent);
  }
  .mini-player .play-button:hover {
    background: #ffffff0a;
  }
  .nav-link:hover {
    color: var(--text);
  }
  .nav-link.active:hover {
    color: var(--accent);
  }
}
@media (min-width: 540px) {
  :root {
    --gutter: 24px;
  }
  .track-duration {
    display: block;
  }
  .artist-profile {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 40px;
  }
  .artist-profile > .cover {
    width: 148px;
    height: 148px;
  }
  .row-like {
    display: inline-flex;
  }
  .artist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .playlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sheet-dialog {
    max-width: 520px;
    margin: auto;
    border-radius: 24px;
  }
  .queue-dialog {
    max-width: 520px;
  }
  .surface-content {
    padding: 28px;
  }
  .notice {
    bottom: calc(160px + var(--safe-bottom));
  }
  .player-dialog .surface-content {
    padding: 24px 40px 32px;
  }
  .full-player {
    margin: 0 auto;
  }
  .section-heading > .small {
    display: block;
  }
  .artist-grid:has(.artist-card:nth-child(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  #main {
    max-width: 920px;
  }
  .artist-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .artist-profile {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 28px;
    padding: 12px 0 44px;
  }
  .artist-profile > .cover {
    width: 176px;
    height: 176px;
  }
  .playlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-cover .cover {
    width: 156px;
    height: 156px;
  }
  .entity-heading {
    flex-wrap: nowrap;
  }
  .entity-heading > .cover {
    width: 144px;
    height: 144px;
  }
  .entity-heading > div {
    padding-top: 6px;
  }
  .stats-artist > .cover {
    width: 56px;
    height: 56px;
  }
  .stats-artist strong {
    font-size: 15px;
  }
  .listen-time {
    font-size: 13px;
  }
  .queue-controls {
    max-width: none;
  }
  .artist-grid:has(.artist-card:nth-child(5)) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  :root {
    --gutter: 32px;
  }
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar);
    padding: 32px 16px 20px;
    background: var(--bg);
    border-right: 1px solid #ffffff08;
    z-index: 35;
  }
  .brand {
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    letter-spacing: -0.035em;
    font-weight: 500;
    white-space: nowrap;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .brand-mark svg {
    width: 23px;
    height: 23px;
  }
  .sidebar nav {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .sidebar .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 48px;
    flex: none;
    padding: 12px;
    gap: 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
  }
  .sidebar .nav-link.active {
    background: #ffe60010;
  }
  .sidebar .side-playlists {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
  }
  .side-playlists .eyebrow {
    font-size: 11px;
  }
  .side-playlists .button {
    font-size: 12px;
    justify-content: flex-start;
    padding: 8px 0;
    text-align: left;
    max-width: 100%;
    min-width: 0;
  }
  .side-playlists .button > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .side-playlists .button svg {
    width: 18px;
    height: 18px;
  }
  .profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 28px;
    min-width: 0;
  }
  .profile > .cover {
    width: 30px;
    height: 30px;
  }
  .profile .cover-art {
    font-size: 11px;
  }
  .profile > span:nth-child(2) {
    font-size: 11px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile .icon-button {
    width: 36px;
    min-width: 36px;
  }
  .profile .icon-button svg {
    width: 18px;
    height: 18px;
  }
  .app-body {
    margin-left: var(--sidebar);
  }
  #main {
    max-width: 1240px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  body.has-player #main {
    padding-bottom: 132px;
  }
  .page-heading {
    margin-bottom: 32px;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .tabbar {
    display: none;
  }
  .demo-banner {
    font-size: 11px;
  }
  .section {
    margin-top: 36px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .artist-grid,
  .artist-grid:has(.artist-card:nth-child(5)) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
  }
  .artist-card > span:not(.cover) {
    font-size: 13px;
  }
  .playlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .track-main {
    padding-left: 8px;
  }
  .liked-banner {
    max-width: 760px;
    min-height: 120px;
    padding: 24px;
  }
  .liked-art {
    width: 72px;
    height: 72px;
    margin-right: 8px;
  }
  .liked-banner strong {
    font-size: 24px;
  }
  .track-list.compact {
    max-width: 100%;
  }
  .entity-heading h2 {
    font-size: 36px;
  }
  .entity-actions .button {
    font-size: 14px;
  }
  .list-tools .search-field {
    max-width: 460px;
  }
  #mini-player {
    left: calc(var(--sidebar) + 12px);
    right: 12px;
    bottom: 12px;
  }
  .mini-player {
    height: 96px;
    border-radius: 12px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(300px, 1.5fr) minmax(112px, .7fr);
    grid-template-areas: 'track controls extra';
    gap: 12px;
  }
  .mini-track-group {
    grid-area: track;
    min-height: 64px;
    padding: 4px 6px;
    border-radius: 9px;
    background: #29292b;
  }
  .mini-track { flex: 1; }
  .mini-track-menu {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 36px;
    color: #a5a5a8;
  }
  .mini-track-menu:hover { color: #fff; }
  .mini-track .cover {
    width: 56px;
    height: 56px;
    border-radius: 6px;
  }
  .mini-track strong {
    font-size: 13px;
  }
  .mini-track small {
    font-size: 11px;
  }
  .mini-progress,
  .mobile-player-controls {
    display: none;
  }
  .desktop-player-controls {
    display: grid;
    grid-area: controls;
    grid-template-rows: 44px 22px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
  }
  .playback-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 44px;
  }
  .playback-row .play-button {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
  }
  .playback-row .icon-button {
    height: 36px;
    width: 36px;
    min-width: 36px;
  }
  .playback-row svg {
    height: 19px;
    width: 19px;
  }
  .playback-row .icon-button { color: #a7a7aa; }
  .playback-row .icon-button:hover { color: #fff; }
  .playback-row [data-action='shuffle'][aria-pressed='true'],
  .playback-row [data-action='repeat'][aria-pressed='true'] { color: var(--accent); }
  .playback-row .player-mini-like[aria-pressed='true'] { color: #ff6479; }
  .desktop-player-extra {
    grid-area: extra;
  }
  .desktop-player-extra > .icon-button,
  .desktop-player-extra .volume-popover > .icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    color: #a7a7aa;
  }
  .desktop-player-extra > .icon-button:hover,
  .desktop-player-extra .volume-popover > .icon-button:hover { color: #fff; }
  .desktop-player-controls .seek-control {
    min-height: 22px;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 8px;
    font-size: 10px;
  }
  .desktop-player-controls input[type='range'] {
    height: 22px;
  }
  .desktop-player-extra {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }
  .volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    max-width: 140px;
  }
  .volume-control svg {
    height: 18px;
    width: 18px;
  }
  .volume-control input {
    width: 90px;
    min-width: 0;
  }
  .sheet-dialog {
    max-width: 520px;
  }
  .queue-dialog {
    position: fixed;
    left: auto;
    right: 16px;
    top: 16px;
    bottom: 104px;
    margin: 0;
    border-radius: 24px;
    width: 400px;
    max-width: 400px;
    max-height: calc(var(--app-height) - 120px);
    height: auto;
  }
  .queue-dialog .surface-content {
    padding: 24px 16px;
  }
  .queue-dialog .queue-controls {
    max-width: 88px;
  }
  .notice {
    left: calc(var(--sidebar) + 32px);
    right: 32px;
    bottom: 110px;
    margin: 0 auto;
  }
  .stats-list {
    max-width: 800px;
  }
  .stats-total > strong {
    font-size: 52px;
  }
  .stats-total {
    padding-top: 12px;
  }
  .settings-block {
    max-width: 650px;
  }
  .timezone-field input {
    max-width: 360px;
  }
  .artist-heading > .cover {
    width: 160px;
    height: 160px;
  }
}
@media (max-width: 359px) {
  :root {
    --gutter: 12px;
  }
  .artist-grid {
    gap: 16px 10px;
  }
  .full-play {
    width: 64px;
    height: 64px;
  }
  .mini-player {
    gap: 0;
  }
  .mini-track {
    gap: 8px;
  }
  .mini-track strong {
    font-size: 12px;
  }
  .mobile-player-controls {
    gap: 0;
  }
  .mini-track .cover {
    width: 40px;
    height: 40px;
  }
  .surface-content {
    padding-inline: 12px;
  }
  .queue-controls {
    max-width: 88px;
  }
  .listen-time {
    max-width: 85px;
    font-size: 11px;
  }
  .stats-list li {
    gap: 8px;
  }
  .stats-artist {
    gap: 8px;
  }
  .stats-artist > .cover {
    width: 36px;
    height: 36px;
  }
  .stats-total > strong {
    font-size: 34px;
  }
  .liked-banner {
    padding: 16px;
    gap: 16px;
  }
  .liked-banner strong {
    font-size: 18px;
  }
  .liked-art {
    width: 52px;
    height: 52px;
  }
  .track-main {
    gap: 8px;
  }
  .reorder {
    max-width: 44px;
    flex-direction: column;
  }
  .reorder .icon-button {
    height: 44px;
  }
  .entity-heading h2 {
    font-size: 26px;
  }
  .artist-profile {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }
  .artist-profile > .cover {
    width: 84px;
    height: 84px;
  }
  .artist-profile .entity-actions {
    gap: 6px;
  }
  .artist-profile .entity-actions .button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 11px;
  }
}
/* Telegram Desktop/iOS may display its own audio transport above the Mini App.
   The available Telegram viewport inset is the visible height of that bar. */
:root[data-native-player='visible'] {
  --native-player-height: clamp(56px, var(--tg-top, 0px), 112px);
}
@media (max-width: 1023px) {
  body.has-player #main {
    padding-bottom: calc(166px + var(--safe-bottom) + var(--native-player-height, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .button:active,
  .icon-button:active,
  .play-button:active {
    transform: none !important;
  }
}
@media (forced-colors: active) {
  .primary,
  .play-button {
    border: 2px solid ButtonText;
  }
  .cover {
    border: 1px solid CanvasText;
  }
  .stat-meter i {
    background: Highlight;
  }
  .nav-link.active {
    outline: 2px solid Highlight;
  }
  .liked-art {
    border: 1px solid CanvasText;
  }
}

/* UI v3: brand light stays independent of network and cover state. */
:root {
  --gutter: 24px;
  --red-light: #ff2b12;
  --orange-light: #ff7a00;
}
.app-body {
  position: relative;
  z-index: 1;
}
.scene-background {
  display: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: var(--bg);
}
.flow-page .scene-background {
  display: block;
}
[data-scene-wash] {
  position: absolute;
  inset: 0;
}
[data-ambient] {
  position: absolute;
  inset: -12%;
  background: radial-gradient(
    ellipse at 70% 35%,
    var(--red-light) 0%,
    #ff2b12ed 18%,
    #ff2b1200 59%
  );
}
[data-ambient] + [data-ambient] {
  background: radial-gradient(
    ellipse at 75% 66%,
    var(--orange-light) 0%,
    #ff7a00d9 18%,
    #ff7a0000 53%
  );
}
.flow-page #main {
  padding: 0 var(--gutter) calc(64px + var(--safe-bottom));
  min-height: calc(var(--app-height) - var(--safe-top));
}
.music-scene {
  min-height: calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 64px);
  display: grid;
  place-items: center;
}
.scene-group {
  width: 100%;
  max-width: 620px;
  padding: 24px 0;
}
.scene-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.scene-heading h1 {
  font-size: clamp(40px, 12vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 0;
  text-shadow: 0 2px 24px #08080933;
}
.scene-heading .icon-button {
  color: white;
  background: #08080918;
  border-radius: 50%;
}
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 20px 0 0;
  width: 100%;
}
.hero-controls > .icon-button {
  width: 48px;
  height: 48px;
  color: #fff;
}
.hero-controls > .icon-button svg {
  width: 26px;
  height: 26px;
}
.hero-art-slot {
  width: min(
    100%,
    clamp(176px, calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 526px), 300px)
  );
  aspect-ratio: 1;
  margin: 0 auto;
}
.play-button.hero-play {
  width: 100px;
  height: 100px;
  margin: 0;
  box-shadow: 0 12px 48px #08080922;
}
.play-button.hero-play svg {
  width: 40px;
  height: 40px;
}
.play-button:disabled {
  opacity: 1;
}
.play-button.is-loading {
  background: var(--accent);
}
.play-button.is-loading [data-play-icon] {
  opacity: 0;
}
.play-button.is-loading:after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid #0a0a0b35;
  border-top-color: var(--on-accent);
  pointer-events: none;
  animation: loading-turn 1300ms cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite;
}
@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}
.current-track-slot {
  min-height: 64px;
  margin-top: 16px;
}
.current-track {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
  padding: 6px 6px 6px 16px;
  min-height: 64px;
  border-radius: 16px;
  background: #08080940;
}
.current-track-main {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  gap: 12px;
  text-align: left;
  padding: 0;
  min-height: 52px;
}
.hero-cover {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 20px 48px #08080940;
}
.hero-cover .cover {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.scene-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.scene-meta strong {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-meta small {
  font-size: 12px;
  color: #ffffffc9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.current-track > .icon-button {
  color: white;
}
.scene-feedback {
  min-height: 26px;
  margin: 12px auto 0;
  max-width: 360px;
  text-align: center;
}
.scene-status,
.flow-status {
  font-size: 12px;
  line-height: 1.5;
  color: #ffffffe0;
  margin: 0;
}
.flow-status:empty {
  display: none;
}
.playback-retry {
  margin: 8px auto 0;
  color: var(--text);
}
.search-updating {
  color: var(--muted);
  min-height: 20px;
  font-size: 12px;
  margin-top: 16px;
}
.tabbar {
  background: var(--bg);
}
.player-dialog {
  margin: 0;
  width: 100%;
  height: var(--app-height);
  max-height: var(--app-height);
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 100% 0, #ff2b1230, transparent 55%), var(--bg);
}
.player-dialog .surface-content {
  padding: calc(12px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 28px;
}
.player-heading h2 {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.player-heading > div {
  width: 44px;
  flex-shrink: 0;
}
.player-heading .icon-button {
  color: var(--text);
}
.full-player {
  width: 100%;
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.full-cover-button {
  padding: 0;
  align-self: center;
  width: clamp(
    220px,
    calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 460px),
    342px
  );
  max-width: 100%;
  min-width: 0;
  margin: 0 0 28px;
  border-radius: 14px;
}
.full-cover-button .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
}
.full-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.full-title > div {
  min-width: 0;
  flex: 1;
}
.full-title h3 {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 600;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.full-title h3 small {
  font-size: 14px;
  color: var(--muted);
}
.full-title > .icon-button {
  margin-right: -8px;
  color: var(--text);
}
.full-title .artist-links {
  margin-top: 4px;
}
.full-title .artist-links .button {
  font-size: 16px;
  font-weight: 500;
  min-height: 32px;
  padding: 0;
}
.player-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 11px;
  margin: 8px 0 0;
}
.full-player .seek-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.full-player .seek-control input {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
}
.full-player .seek-control [data-duration] {
  text-align: right;
}
.full-player .seek-control > span {
  font-size: 11px;
}
.full-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 24px 0 16px;
}
.full-controls > .icon-button {
  color: var(--text);
}
.full-controls > .icon-button[aria-pressed='true'] {
  color: var(--accent);
}
.full-controls > .icon-button[data-action='previous'] svg,
.full-controls > .icon-button[data-action='next'] svg {
  width: 28px;
  height: 28px;
}
.full-play {
  width: 80px;
  height: 80px;
}
.play-button.full-play {
  color: #fff;
  background: #ffffff18;
  border: 1px solid #ffffff40;
}
.full-play svg {
  width: 34px;
  height: 34px;
}
.full-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.full-secondary > .button {
  font-size: 12px;
  padding: 8px;
}
.full-secondary > .icon-button {
  color: var(--muted);
}
.track-menu-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.track-menu-heading > .cover[data-artwork-kind] {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}
.track-menu-heading > div {
  flex: 1;
  min-width: 0;
}
.track-menu-heading h2 {
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.track-menu-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.track-menu-heading small {
  color: var(--muted);
  font-size: 12px;
}
.track-menu-heading > .icon-button {
  flex: 0 0 44px;
  margin-top: -6px;
  margin-right: -8px;
}
.menu-action {
  min-height: 56px;
}
.motion-cover {
  position: fixed;
  margin: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}
@media (min-width: 768px) {
  .flow-page #main {
    padding-left: 48px;
    padding-right: 48px;
  }
  .scene-heading {
    gap: 32px;
    margin-bottom: 28px;
  }
  .scene-heading h1 {
    font-size: clamp(52px, 6vw, 64px);
  }
  .scene-group {
    max-width: 580px;
  }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .scene-background {
    left: var(--sidebar);
  }
  .music-scene {
    min-height: calc(var(--app-height) - 40px);
  }
  .flow-page #main {
    padding-top: 0;
    padding-bottom: 0;
  }
  .scene-heading {
    justify-content: center;
    position: relative;
  }
  .scene-heading > .icon-button {
    position: absolute;
    right: 0;
    top: 0;
  }
  .player-dialog {
    width: 480px;
    height: min(920px, var(--app-height));
    max-height: var(--app-height);
    margin: auto;
    border-radius: 24px;
    border: 1px solid #ffffff16;
  }
  .player-dialog .surface-content {
    padding-top: 16px;
  }
}
@media (max-width: 359px) {
  :root {
    --gutter: 20px;
  }
  .scene-heading h1 {
    font-size: 40px;
  }
  .scene-heading {
    gap: 8px;
  }
  .full-title h3 {
    font-size: 26px;
  }
}
@media (max-height: 740px) and (max-width: 1023px) {
  .scene-group {
    padding-top: 24px;
  }
  .scene-heading {
    margin-bottom: 16px;
  }
  .current-track-slot {
    margin-top: 12px;
  }
  .player-heading {
    margin-bottom: 16px;
  }
  .full-cover-button {
    margin-bottom: 20px;
  }
  .full-controls {
    margin-top: 16px;
  }
}
@media (max-height: 620px) and (max-width: 1023px) {
  .player-dialog .surface-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .full-play {
    width: 76px;
    height: 76px;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-ambient] {
    transform: none !important;
  }
  .play-button.is-loading:after {
    animation: none;
    border-style: dotted;
  }
}

/* Keep loading feedback inside the two-object motion budget. */
body:has(.motion-ghost) .play-button.is-loading::after,
body:has(dialog[open]) #main .play-button.is-loading::after {
  animation-play-state: paused;
}

/* A clear sequence: performer, sleeve, title, progress, playback. */
.music-scene .scene-group {
  max-width: 850px;
  padding: 20px 0;
}
.music-scene .scene-heading {
  display: grid;
  justify-content: center;
  gap: 10px;
  margin: 0;
  text-align: center;
}
.scene-context {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.025em;
}
.music-scene .scene-heading .scene-artist {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.artist-profile-link {
  appearance: none;
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  vertical-align: baseline;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.artist-profile-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.wave-heading h1 .artist-profile-link {
  pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
  .artist-profile-link:hover {
    color: var(--accent);
  }
}
.scene-orbit {
  display: none;
}
.music-scene .hero-art-slot {
  width: clamp(144px, calc(var(--app-height) - 440px), 280px);
  height: auto;
  aspect-ratio: 1;
  margin: 24px auto 20px;
  position: relative;
}
.music-scene .hero-cover {
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 12px;
}
.music-scene .hero-cover:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}
.music-scene .hero-cover .cover {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.song-composition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.song-composition > .icon-button,
.volume-popover > button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex: 0 0 48px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: #08080940;
  color: #fff;
}
.song-capsule {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  padding: 16px 18px;
  border: 1px solid #ffffff30;
  border-radius: 36px;
  background: #08080940;
  isolation: isolate;
  overflow: hidden;
}
.song-title {
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  pointer-events: none;
}
.hero-song-title {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  margin: 0 auto 16px;
}
.song-progress {
  position: absolute;
  inset: 0;
  background: #ffffff24;
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
  pointer-events: none;
  transition: transform 1000ms cubic-bezier(0.37, 0, 0.63, 1);
}
.song-capsule[data-seeking] .song-progress { transition: none; }
@media (prefers-reduced-motion: reduce) { .song-progress { transition: none; } }
.song-capsule input[name='seek'] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.001;
  cursor: ew-resize;
  touch-action: pan-y;
}
.song-capsule input:disabled {
  cursor: default;
}
.song-capsule:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.song-times {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #fff;
  pointer-events: none;
}
.song-capsule-label,
.song-capsule .song-times {
  grid-area: 1 / 1;
}
.song-capsule-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}
.song-capsule .song-times {
  opacity: 0;
}
.full-player > .song-capsule {
  width: 100%;
  margin: 12px 0;
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .song-capsule:is(:hover, :focus-within) .song-capsule-label {
    opacity: 0;
  }
  .song-capsule:is(:hover, :focus-within) .song-times {
    opacity: 1;
  }
}
.music-scene .hero-controls {
  gap: 24px;
  margin-top: 20px;
}
.music-scene.has-track .hero-play {
  width: 76px;
  height: 76px;
  border: 1px solid #ffffff52;
  background: #ffffff24;
  color: #fff;
  box-shadow: none;
}
.music-scene .hero-controls > .icon-button {
  border: 1px solid #ffffff24;
  border-radius: 50%;
  background: #08080928;
}
.music-scene .scene-feedback {
  max-width: 44ch;
}
.coverage-note {
  font-size: 14px;
}
.awaiting-track .hero-art-slot {
  display: none;
}
.awaiting-track .scene-heading h1 {
  font-size: 52px;
}
[data-like-id] svg {
  transition:
    fill 260ms var(--ease),
    color 260ms var(--ease);
  fill: transparent;
}
.icon-button[data-like-id][aria-pressed='true'],
.current-track [data-like-id][aria-pressed='true'] {
  color: #ff3b4f;
}
[data-like-id][aria-pressed='true'] svg {
  fill: #ff3b4f;
}
[data-like-id] .ui-icon {
  position: relative;
  transform-origin: 50% 54%;
  backface-visibility: hidden;
}
.scene-like { position: relative; }
.play-button > [data-play-icon] {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.broken-heart .heart-left,
.broken-heart .heart-right {
  transform-origin: center;
  transition:
    transform 220ms var(--ease),
    opacity 220ms var(--ease);
}
.broken-heart:active .heart-left {
  transform: translate(-1px, 1px) rotate(-9deg);
  opacity: 0.65;
}
.broken-heart:active .heart-right {
  transform: translate(1px, 1px) rotate(9deg);
  opacity: 0.65;
}
.volume-popover {
  display: none;
  position: relative;
  flex: 0 0 48px;
}
.volume-panel {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 48px;
  height: 172px;
  padding: 16px 12px 20px;
  border-radius: 24px 24px 0 0;
  background: #27252c;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.94);
  transform-origin: bottom center;
  transition:
    opacity 160ms var(--ease),
    transform 160ms var(--ease),
    visibility 0s 180ms;
}
.volume-panel input {
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 20px;
  height: 132px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--text);
}
.volume-panel input::-webkit-slider-runnable-track {
  width: 5px;
  border-radius: 10px;
  background: #ffffff30;
}
.volume-panel input::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
}
.volume-panel input::-moz-range-track {
  width: 5px;
  border-radius: 10px;
  background: #ffffff30;
}
.volume-panel input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  background: #fff;
}
.volume-popover:not([data-dismissed]):is(:hover, :focus-within) .volume-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.notice {
  bottom: calc(80px + var(--safe-bottom));
  background: #242329;
  border-color: #ffffff20;
  border-radius: 18px;
  padding: 10px 12px 10px 16px;
  gap: 8px;
}
body.has-player .notice {
  bottom: calc(154px + var(--safe-bottom));
}
.notice .icon-button {
  flex: 0 0 44px;
}
.artist-ranking {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  margin: 0;
  list-style: none;
  scroll-snap-type: x proximity;
}
.artist-ranking > li {
  flex: 0 0 128px;
  text-align: center;
  min-width: 0;
  scroll-snap-align: start;
}
.artist-ranking button {
  display: grid;
  justify-items: center;
  width: 100%;
  gap: 10px;
  padding: 0;
}
.artist-ranking .cover[data-artwork-kind] {
  width: 120px;
  height: 120px;
}
.ranking-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ranking-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.ranking-place svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.artist-ranking .listen-time {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
@media (min-width: 768px) {
  .music-scene .scene-heading .scene-artist {
    font-size: 76px;
  }
  .scene-context {
    font-size: 16px;
  }
  .song-title {
    font-size: 24px;
  }
  .song-times {
    font-size: 20px;
  }
  .artist-ranking > li {
    flex-basis: 164px;
  }
  .artist-ranking .cover[data-artwork-kind] {
    width: 156px;
    height: 156px;
  }
}
@media (min-width: 1024px) and (max-height: 700px) and (hover: hover) and (pointer: fine) {
  .music-scene .scene-group {
    padding-block: 12px;
  }
  .music-scene .scene-heading .scene-artist {
    font-size: clamp(36px, 8vh, 56px);
  }
  .music-scene .hero-art-slot {
    width: clamp(120px, calc(var(--app-height) - 460px), 200px);
    margin-block: 16px;
  }
  .music-scene .hero-controls {
    margin-top: 16px;
  }
  .music-scene.has-track .hero-play {
    width: 64px;
    height: 64px;
  }
  .music-scene .scene-feedback {
    margin-top: 8px;
  }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .volume-popover {
    display: block;
  }
  .notice,
  body.has-player .notice {
    left: calc(var(--sidebar) + 24px);
    bottom: 24px;
  }
  body.has-player .notice {
    bottom: 112px;
  }
}
@media (max-width: 359px) {
  .music-scene .scene-heading .scene-artist {
    font-size: 36px;
    letter-spacing: -0.04em;
  }
  .scene-context {
    font-size: 12px;
  }
  .music-scene .scene-group {
    padding: 8px 0;
  }
  .music-scene .scene-heading {
    gap: 6px;
  }
  .song-composition {
    gap: 4px;
    flex-wrap: wrap;
  }
  .song-capsule {
    order: -1;
    flex-basis: 100%;
    min-height: 56px;
    padding-block: 14px;
  }
  .song-title {
    font-size: 18px;
  }
  .hero-song-title {
    margin-bottom: 10px;
  }
  .song-times {
    font-size: 18px;
  }
  .song-composition > .icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-basis: 44px;
  }
  .music-scene .hero-art-slot {
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
  }
  .music-scene .hero-controls {
    margin-top: 12px;
  }
  .music-scene.has-track .hero-play {
    width: 64px;
    height: 64px;
  }
  .music-scene .scene-feedback {
    margin-top: 8px;
  }
}
/* Width and primary input select layout; keyboard height never selects a sidebar. */
@media (min-width: 640px) and (max-height: 620px) and (pointer: coarse) {
  .music-scene .scene-group {
    max-width: 800px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 24px;
    align-items: center;
    padding-block: 8px;
  }
  .music-scene .scene-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .music-scene .scene-heading .scene-artist {
    font-size: 32px;
  }
  .music-scene .scene-context {
    display: none;
  }
  .music-scene .hero-art-slot {
    grid-column: 1;
    grid-row: 2 / 5;
    width: 112px;
    height: 112px;
    margin: 0 auto;
  }
  .music-scene .hero-song-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 20px;
  }
  .music-scene .song-composition {
    grid-column: 2;
    grid-row: 2;
  }
  .music-scene .hero-controls {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    gap: 16px;
  }
  .music-scene.has-track .hero-play {
    width: 64px;
    height: 64px;
  }
  .music-scene .scene-feedback {
    grid-column: 2;
    grid-row: 4;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-like-id] svg,
  .broken-heart path,
  .volume-panel {
    transition: none;
  }
}

/* Soft PNG masks share a fixed optical grid and inherit the control's color. */
.ui-icon,
.playback-symbol {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
  vertical-align: middle;
}
.playback-symbol {
  --icon: url('./icons/play.png');
}
.is-playing .playback-symbol {
  --icon: url('./icons/pause.png');
}
.song-composition > [data-like-id][aria-pressed='true'] {
  color: #ff3b4f;
}
.play-button:active {
  transform: none;
}
[data-like-id][aria-pressed='true'] .ui-icon[data-icon='heart'],
.liked-art .ui-icon {
  --icon: url('./icons/heart-filled.png') !important;
}
.brand-mark .brand-logo {
  width: 30px;
  height: 30px;
}
.song-composition .ui-icon {
  width: 23px;
  height: 23px;
}
.hero-controls > .icon-button .ui-icon {
  width: 25px;
  height: 25px;
}
.hero-play .playback-symbol {
  width: 32px;
  height: 32px;
}
.full-play .playback-symbol {
  width: 36px;
  height: 36px;
}
.ranking-place .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Collection: quiet library canvas, compact tracks and portrait-led artists. */
.collection-page {
  --collection-muted: #929292;
  color: #e8e8e8;
  background: #111;
  min-height: 100%;
  padding: 0 0 32px;
}
.collection-page .page-heading > div {
  flex-direction: column;
  gap: 0;
}
.collection-page .page-heading {
  margin-bottom: 36px;
}
@media (max-width: 600px) {
  .collection-page .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .collection-page .page-heading > .button {
    max-width: 100%;
    white-space: nowrap;
  }
}
.collection-page h1 {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.collection-page .page-heading p {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--collection-muted);
}
.collection-page .page-heading em {
  color: var(--collection-aura);
  font-style: normal;
}
.collection-page .liked-banner-group {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 16px;
  margin-bottom: 16px;
}
.collection-page .liked-banner-group .liked-banner {
  width: auto;
  max-width: none;
  min-height: 58px;
  padding: 0;
  gap: 12px;
  background: none;
  border-radius: 6px;
}
.collection-page .liked-banner > span:nth-child(2) {
  gap: 0;
  flex: initial;
}
.collection-page .liked-banner strong {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.collection-page .liked-banner span span {
  color: var(--collection-muted);
  font-size: 14px;
  font-weight: 400;
}
.collection-page .liked-banner > .ui-icon {
  width: 20px;
  height: 20px;
  color: var(--collection-muted);
}
.collection-page .liked-art {
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 6px;
  transform: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 14%, #ee4030, transparent 57%),
    linear-gradient(145deg, #b31b16, #4c080d);
}
.collection-page .liked-art .ui-icon {
  width: 53px;
  height: 53px;
  background: radial-gradient(
    ellipse at 70% 25%,
    #ffd8c0 3%,
    #ffb89b 28%,
    #ff6549 51%,
    #d3241e 73%,
    #8d1115 93%
  );
  transform: rotate(-17deg) translate(2px, 2px);
}
.collection-page .liked-play {
  position: static;
  transform: none;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  background: transparent;
  color: var(--collection-muted);
}
.collection-page .liked-play:active:not(:disabled) {
  transform: scale(0.96);
}
.collection-page .collection-tracks {
  container-type: inline-size;
}
.collection-page .collection-tracks .track-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.collection-page .collection-tracks .track-row {
  min-height: 64px;
  border-radius: 6px;
  gap: 12px;
}
.collection-page .collection-tracks .track-main {
  min-height: 64px;
  padding: 10px 4px;
  gap: 14px;
}
.collection-page .collection-tracks .cover[data-artwork-kind] {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}
.collection-page .track-copy {
  gap: 3px;
}
.collection-page .track-title,
.collection-page .track-artists {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
.collection-page .track-title,
.collection-page .track-artists {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.collection-page .track-artists {
  color: #a3a3a3;
  font-weight: 400;
  font-size: 13px;
}
.collection-page .collection-tracks .row-like {
  display: inline-flex;
  order: 2;
  flex: 0 0 40px;
  width: 40px;
  height: 48px;
  color: var(--collection-muted);
}
.collection-page .collection-tracks .row-like .ui-icon {
  width: 20px;
  height: 20px;
}
.collection-page .collection-tracks .track-duration {
  order: 3;
  min-width: 44px;
  color: var(--collection-muted);
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}
.collection-page .collection-tracks [data-action='track-menu'] {
  order: 4;
  width: 40px;
  flex: 0 0 40px;
}
.collection-page .section {
  margin-top: 56px;
}
.collection-page .section-heading {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.collection-page .section-heading h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.collection-page .section-heading .text-button {
  color: var(--collection-muted);
}
.collection-page .collection-artist-stage {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.collection-page .collection-artists .artist-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 8px 14px;
  scroll-padding-inline: 8px;
  scroll-snap-type: x proximity;
}
.collection-page .collection-artists .artist-card {
  flex: 0 0 132px;
  gap: 0;
  scroll-snap-align: start;
  transition: opacity 180ms cubic-bezier(.22, 1, .36, 1);
}
.collection-page .collection-artists .collection-artist-surface > .cover[data-artwork-kind] {
  width: 132px;
  height: 132px;
  max-width: none;
  margin-bottom: 10px;
  border-radius: 50%;
}
.collection-page .collection-artists .ranking-place,
.collection-page .collection-artists .ranking-name,
.collection-page .collection-artists .listen-time {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  text-align: center;
}
.collection-page .collection-artists .ranking-place {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  overflow: visible;
}
.collection-page .collection-artists .ranking-place .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.collection-page .collection-artists .collection-listener-crown {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #fff4d477;
  border-radius: 50%;
  color: #754d17;
  background: linear-gradient(145deg, #fff0bd, #e5c679);
  box-shadow: 0 4px 12px #0006, inset 0 1px 1px #fff9;
}
.collection-page .collection-artists .collection-listener-crown .ui-icon {
  width: 16px;
  height: 16px;
}
.collection-page .collection-artists .artist-photo-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 24px;
  margin: 0 8px;
  color: var(--collection-muted);
  font-size: 13px;
  line-height: 20px;
}
.collection-page .collection-artists .artist-photo-status .text-button {
  min-height: 32px;
  padding: 4px 6px;
  color: #d8c28a;
}
.collection-page .collection-artists .artist-card:active {
  transform: none;
}
.collection-page .collection-artists .ranking-name {
  font-weight: 600;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
.collection-page .collection-artists .listen-time {
  color: var(--collection-muted);
  font-size: 13px;
}
@media (hover: hover) and (pointer: fine) {
  .collection-page .collection-artists .artist-card:hover {
    transform: none;
  }
}
body.keyboard-use .collection-page .collection-artists .artist-card {
  transition: none;
  transform: none;
}
.collection-page .collection-playlists .playlist-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 188px));
}
.collection-page .collection-playlists .playlist-card .cover {
  border-radius: 8px;
}
@container (min-width: 760px) {
  .collection-page .collection-tracks .track-list {
    display: grid;
    grid-template-rows: repeat(4, minmax(64px, auto));
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: clamp(28px, 4cqi, 64px);
  }
}
@media (hover: hover) and (pointer: fine) {
  .collection-page .collection-tracks .track-duration {
    display: block;
  }
  .collection-page .collection-tracks [data-action='track-menu'] {
    position: absolute;
    right: 0;
    opacity: 0;
    pointer-events: none;
  }
  .collection-page
    .collection-tracks
    .track-row:is(:hover, :focus-within)
    [data-action='track-menu'] {
    opacity: 1;
    pointer-events: auto;
  }
  .collection-page .collection-tracks .track-row:is(:hover, :focus-within) .track-duration {
    visibility: hidden;
  }
}
@media (min-width: 1024px) {
  .collection-page .collection-artists .artist-grid {
    gap: 16px;
  }
  .collection-page .collection-artists .artist-card {
    flex-basis: clamp(156px, 15vw, 206px);
  }
  .collection-page .collection-artists .collection-artist-surface > .cover[data-artwork-kind] {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}
@media (max-width: 539px) {
  .collection-page .page-heading {
    margin-bottom: 36px;
  }
  .collection-page h1 {
    font-size: 30px;
  }
  .collection-page .liked-banner strong {
    font-size: 22px;
  }
  .collection-page .section-heading h2 {
    font-size: 22px;
  }
  .collection-page .collection-tracks .track-duration {
    display: none;
  }
  .collection-page .section {
    margin-top: 40px;
  }
}
#main:has(> .collection-page) {
  background: #111;
}
.collection-page .liked-banner strong .ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  vertical-align: middle;
  color: var(--collection-muted);
}
.collection-page .collection-artists .artist-card {
  padding: 0;
  background: none;
  min-width: 0;
  font-family: var(--font-body);
}
.collection-page .collection-artists .collection-artist-surface { font-family: var(--font-body); }
.collection-artist-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  text-align: center;
}
.collection-artist-surface::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #08080860;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(.22,1,.36,1);
}
.collection-artist-actions {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 1;
  padding: 6px;
  pointer-events: none;
}
.collection-artist-actions .icon-button {
  pointer-events: auto;
  color: #fff;
  background: #181818e6;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  transition: opacity 140ms cubic-bezier(.22,1,.36,1), background-color 140ms cubic-bezier(.22,1,.36,1);
}
.collection-artist-actions .collection-artist-play { color: #161616; background: #fff; }
.collection-artist-actions .collection-artist-play:disabled { opacity: .4; }
.collection-page .collection-artists .artist-card:focus-within .collection-artist-surface::after { opacity: 1; transition: none; }
@media (hover: hover) and (pointer: fine) {
  .collection-artist-actions .icon-button { opacity: 0; pointer-events: none; }
  .collection-page .collection-artists .artist-card:is(:hover, :focus-within) .collection-artist-surface::after { opacity: 1; }
  .collection-page .collection-artists .artist-card:is(:hover, :focus-within) .collection-artist-actions .icon-button { opacity: 1; pointer-events: auto; transition-duration: 180ms; transition-delay: 40ms; }
}
@media (prefers-reduced-motion: reduce) {
  .track-play-overlay, .collection-artist-surface::after, .collection-artist-actions .icon-button { transition: none !important; }
}
body.keyboard-use .collection-artist-actions .icon-button { transition: none !important; }
.collection-page .collection-artists .collection-artist-surface > .cover {
  flex-shrink: 0;
}
.collection-page .liked-play,
.collection-page .collection-tracks .row-like,
.collection-page .collection-tracks [data-action='track-menu'] {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-basis: 44px;
}
@media (max-width: 539px), (hover: none), (pointer: coarse) {
  .collection-page .collection-tracks [data-action='track-menu'] {
    position: static;
    opacity: 1;
    pointer-events: auto;
    color: var(--collection-muted);
  }
  .collection-page .collection-tracks .row-like,
  .collection-page .collection-tracks [data-action='track-menu'] {
    flex: 0 0 44px;
    width: 44px;
    height: 48px;
    min-width: 44px;
  }
}
.collection-page .liked-play {
  opacity: 1;
}
@media (min-width: 540px) and (hover: hover) and (pointer: fine) {
  .collection-page .liked-play {
    opacity: 0;
  }
  .collection-page .liked-banner-group:is(:hover, :focus-within) .liked-play {
    opacity: 1;
  }
}
/* The expanded desktop player uses the available screen instead of a phone sheet. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .player-dialog {
    width: 100vw;
    max-width: 100vw;
    height: var(--app-height);
    max-height: var(--app-height);
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #242322;
  }
  .player-dialog .surface-content {
    min-height: var(--app-height);
    padding: 28px 40px;
    justify-content: center;
  }
  .desktop-player-heading { position: absolute; inset: 24px 32px auto; margin: 0; justify-content: center; }
  .desktop-player-heading > .icon-button { position: absolute; right: 0; top: 0; border-radius: 50%; background: #ffffff0d; }
  .desktop-player-heading h2 { max-width: calc(100% - 120px); }
  .desktop-full-player { width: min(480px, 100%); max-width: 480px; margin: auto; align-items: center; }
  .desktop-cover-stage { position: relative; width: clamp(260px, calc(var(--app-height) - 300px), 400px); aspect-ratio: 1; flex-shrink: 0; }
  .desktop-cover-stage .full-cover-button { display: block; width: 100%; height: 100%; margin: 0; border-radius: 8px; }
  .desktop-cover-stage .full-cover-button .cover { width: 100%; height: 100%; border-radius: 8px; }
  .desktop-cover-stage > .icon-button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: #161617cc; color: #fff; }
  .desktop-cover-stage .cover-queue { top: 12px; right: 12px; }
  .desktop-cover-stage .cover-menu { bottom: 12px; left: 12px; }
  .desktop-cover-stage .cover-like { bottom: 12px; right: 12px; }
  .desktop-cover-stage .cover-like[aria-pressed='true'] { color: #ff5269; }
  .desktop-cover-controls { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
  .desktop-cover-controls > button { pointer-events: auto; border: 0; border-radius: 50%; background: #161617cc; color: #fff; }
  .desktop-cover-controls > .icon-button { width: 44px; height: 44px; }
  .desktop-cover-controls > .full-play { width: 64px; height: 64px; background: var(--accent); color: #111; }
  .desktop-cover-controls > [data-action='repeat'] { position: absolute; right: 12px; width: 40px; height: 40px; }
  .desktop-cover-controls > [aria-pressed='true'] { color: var(--accent); }
  .desktop-full-player .full-title { width: 100%; justify-content: center; margin: 20px 0 8px; text-align: center; }
  .desktop-full-player .full-title h3 { font-family: var(--font-body); font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
  .desktop-full-player .full-title .artist-links { justify-content: center; color: #c3c1c0; font-size: 16px; }
  .desktop-full-progress { display: flex; width: 100%; align-items: center; gap: 12px; }
  .desktop-full-progress .song-capsule { min-height: 48px; padding-block: 12px; }
  .desktop-full-player .player-status { text-align: center; }
}
/* A narrow vertical volume rail with a compositor-driven fill. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .desktop-cover-stage > .icon-button,
  .desktop-cover-stage > .desktop-cover-controls {
    opacity: 0;
    transition: opacity 140ms cubic-bezier(.22,1,.36,1);
  }
  .desktop-cover-stage:not(:hover):not(:focus-within) > .icon-button,
  .desktop-cover-stage:not(:hover):not(:focus-within) > .desktop-cover-controls > button {
    pointer-events: none;
  }
  .desktop-cover-stage:hover > .icon-button,
  .desktop-cover-stage:hover > .desktop-cover-controls,
  .desktop-cover-stage:focus-within > .icon-button,
  .desktop-cover-stage:focus-within > .desktop-cover-controls {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .desktop-cover-stage > .icon-button,
  .desktop-cover-stage > .desktop-cover-controls { transition: none; }
}
.volume-panel { width: 44px; height: 166px; padding: 12px; border-radius: 22px 22px 0 0; }
.volume-rail { position: absolute; top: 14px; bottom: 18px; left: calc(50% - 2px); width: 4px; overflow: hidden; border-radius: 4px; background: #ffffff26; pointer-events: none; }
.volume-fill { position: absolute; inset: 0; background: #fff; transform-origin: center bottom; }
.volume-panel input { position: relative; display: block; width: 20px; height: 136px; background: transparent; }
.volume-panel input::-webkit-slider-runnable-track { width: 4px; background: transparent; }
.volume-panel input::-moz-range-track { width: 4px; background: transparent; }
.volume-panel input::-webkit-slider-thumb { width: 12px; height: 12px; }
.volume-panel input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .volume-fill { transition: none; } }
.mobile-wave .wave-context { max-width: calc(100% - 32px); margin: 0 auto; font-size: 12px; }
.scene-context.source-context,
.mobile-wave .wave-context.source-context {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 3px 12px 3px 4px;
  border: 1px solid #ffffff20;
  border-radius: 999px;
  background: #ffffff08;
  transition: background-color 200ms cubic-bezier(.22,1,.36,1), border-color 200ms cubic-bezier(.22,1,.36,1);
}
.source-context-close.icon-button {
  position: relative;
  overflow: visible;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: #ffffff0d;
  color: inherit;
  transition: transform 180ms cubic-bezier(.22,1,.36,1), background-color 180ms cubic-bezier(.22,1,.36,1), color 180ms cubic-bezier(.22,1,.36,1);
}
.source-context-close::after {
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  content: '';
  opacity: 0;
  pointer-events: none;
  transform: scale(.72);
}
.source-context.is-switching-flow {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.source-context.is-switching-flow .source-context-close {
  background: var(--accent);
  color: #111;
  transform: scale(1.04);
}
.source-context.is-switching-flow .source-context-close::after {
  animation: source-flow-pulse 1050ms cubic-bezier(.22,1,.36,1) infinite;
}
.source-context.is-personal-source {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
@keyframes source-flow-pulse {
  0% { opacity: .72; transform: scale(.78); }
  72%, 100% { opacity: 0; transform: scale(1.55); }
}
.source-context-close .ui-icon { width: 16px; height: 16px; }
.source-context [data-context-label] { min-width: 0; overflow-wrap: anywhere; }
.source-context:has(.source-context-close[hidden]) { padding-inline: 12px; }
.mobile-wave:not([data-wave-state='playing']) .wave-heading .wave-context { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .scene-context.source-context,
  .mobile-wave .wave-context.source-context,
  .source-context-close.icon-button { transition: none; }
  .source-context.is-switching-flow .source-context-close::after {
    animation: none;
    opacity: .7;
    transform: scale(1);
  }
}

/* Keep the volume flyout outside the compact player surface. */
.mini-player { overflow: visible; }
.mini-progress { overflow: hidden; border-radius: 16px 16px 0 0; }
.volume-panel { z-index: 3; transition: opacity 180ms cubic-bezier(.22,1,.36,1), transform 220ms cubic-bezier(.22,1,.36,1), visibility 0s 220ms; }
.seek-control input::-webkit-slider-runnable-track {
  background: transparent;
}
.seek-control input::-moz-range-track,
.seek-control input::-moz-range-progress { height: 4px; border-radius: 4px; background: transparent; }
@media (prefers-reduced-motion: reduce) { .volume-panel, .seek-control .seek-track i { transition: none; } }

/* Artist pages follow the portrait, with a quiet fade into the library. */
.artist-canvas {
  position: relative;
  isolation: isolate;
  background: #111;
}
.artist-canvas::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 auto;
  height: 430px; pointer-events: none;
  background:
    radial-gradient(ellipse 44% 230px at 11% 45%, color-mix(in srgb, var(--artist-tint, #242424) 56%, transparent), transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--artist-tint, #242424) 62%, #111) 0%, color-mix(in srgb, var(--artist-tint, #242424) 28%, #111) 54%, #111 100%);
}
.artist-canvas .artist-page-heading { margin-bottom: 32px; }
.artist-canvas .artist-profile { grid-template-columns: 204px minmax(0,1fr); gap: 28px; padding: 0 0 36px; }
.artist-canvas .artist-profile > .cover[data-artwork-kind] { width: 204px; height: 204px; border-radius: 50%; overflow: hidden; }
.artist-canvas .artist-profile h1 { font-size: clamp(32px, 4.1vw, 50px); line-height: 1.08; letter-spacing: -.045em; margin: 4px 0 0; }
.artist-canvas .artist-kicker { color: #ffffff80; font-size: 13px; }
.artist-canvas .artist-listener-stat { margin-top: 12px; min-height: 28px; padding: 5px 9px; border: 0; background: #ffffff0b; font-size: 13px; }
.artist-canvas .entity-actions { margin-top: 30px; gap: 12px; }
.artist-canvas .entity-actions .button { min-height: 42px; border-radius: 24px; padding: 10px 20px; }
.artist-canvas .artist-track-heading h2 { font-size: 25px; letter-spacing: -.035em; }
.artist-canvas .track-row { min-height: 58px; }
.artist-canvas .track-main .cover { width: 42px; height: 42px; border-radius: 5px; }
.artist-canvas .artist-track-section { padding-top: 0; }
.artist-canvas .artist-photo-credit { font-size: 11px; margin-top: 8px; }
.artist-canvas .artist-profile > .cover img { animation: artist-photo-arrive 280ms cubic-bezier(.22,1,.36,1) both; }
@keyframes artist-photo-arrive { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 640px) {
  .artist-canvas .artist-page-heading { margin-bottom: 24px; }
  .artist-canvas .artist-profile { grid-template-columns: 112px minmax(0,1fr); gap: 18px; padding-bottom: 28px; align-items: start; }
  .artist-canvas .artist-profile > .cover[data-artwork-kind] { width: 112px; height: 112px; }
  .artist-canvas .artist-profile h1 { font-size: clamp(28px, 7vw, 38px); overflow-wrap: anywhere; }
  .artist-canvas .entity-actions { margin-top: 20px; flex-wrap: wrap; gap: 8px; }
  .artist-canvas .entity-actions .button { padding: 10px 14px; }
  .artist-canvas .artist-listener-stat { font-size: 12px; }
}
@media (max-width: 380px) {
  .artist-canvas .artist-profile { grid-template-columns: 88px minmax(0,1fr); gap: 14px; }
  .artist-canvas .artist-profile > .cover[data-artwork-kind] { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) { .artist-canvas .artist-profile > .cover img { animation: none; } }

.artist-canvas .artist-photo-credit { display: inline-block; margin-left: 8px; vertical-align: middle; }
.artist-canvas .artist-photo-credit summary { min-height: 24px; }

@media (max-width: 640px) {
  .artist-canvas .artist-profile-copy { display: contents; }
  .artist-canvas .artist-profile { grid-template-rows: auto auto auto; column-gap: 18px; row-gap: 6px; }
  .artist-canvas .artist-profile > .cover[data-artwork-kind] { grid-column: 1; grid-row: 1 / 5; }
  .artist-canvas .artist-kicker, .artist-canvas .artist-profile h1,
  .artist-canvas .artist-listener-stat, .artist-canvas .artist-photo-credit { grid-column: 2; margin: 0; }
  .artist-canvas .artist-profile h1 { align-self: start; }
  .artist-canvas .artist-photo-credit { justify-self: start; }
  .artist-canvas .entity-actions { grid-column: 1 / -1; margin-top: 18px; }
  .artist-canvas .hidden-artist-note { grid-column: 1 / -1; }
}

summary.artist-track-heading { cursor: pointer; font-weight: 700; font-size: 1.25rem; padding-block: 12px; }
summary.artist-track-heading:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Telegram owns the visible height; landscape insets protect both thumb rails. */
:root {
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-left, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-right, 0px));
}
@supports (height: 100dvh) {
  :root { --app-height: 100dvh; }
}
html { -webkit-text-size-adjust: 100%; }
#main {
  padding-left: max(var(--gutter), var(--safe-left));
  padding-right: max(var(--gutter), var(--safe-right));
}
.tabbar {
  padding-left: max(8px, var(--safe-left));
  padding-right: max(8px, var(--safe-right));
}
#mini-player { left: max(8px, var(--safe-left)); right: max(8px, var(--safe-right)); }
@media (min-width: 1024px) {
  #mini-player {
    left: calc(var(--sidebar) + max(12px, var(--safe-left)));
    right: max(12px, var(--safe-right));
  }
}
.surface-content {
  padding-left: max(var(--gutter), var(--safe-left));
  padding-right: max(var(--gutter), var(--safe-right));
}
.dialog-fallback-backdrop { position: fixed; inset: 0; z-index: 90; background: #000a; }
dialog:not([open]) { display: none; }
dialog.dialog-fallback { position: fixed; z-index: 100; }
dialog.dialog-fallback:not([open]) { display: none; }
dialog.dialog-fallback[open] { display: block; }
.dialog-fallback.sheet-dialog, .dialog-fallback.queue-dialog { inset: auto 0 0; }
.dialog-fallback.player-dialog { inset: 0; }
.subscription-gate.dialog-fallback { inset: 0; z-index: 1001; }
.taste-session-control { margin-top: 8px; text-align: center; }
@media (max-width: 1023px), (pointer: coarse) {
  input:not([type='radio'], [type='checkbox'], [type='range']), select, textarea { font-size: 16px; }
  .button, .icon-button { min-height: 48px; }
  .icon-button { width: 48px; min-width: 48px; height: 48px; }
  .track-row, .track-main { min-height: 68px; }
  .mode-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-choices label { gap: 8px; padding: 12px 10px; min-width: 0; }
  .mode-choices strong { font-size: 14px; }
  .queue-controls { max-width: 96px; }
  .queue-controls > .icon-button { width: 48px; height: 48px; }
  .player-dialog .surface-content {
    padding-left: max(20px, var(--safe-left));
    padding-right: max(20px, var(--safe-right));
  }
  .full-cover-button {
    width: clamp(124px, calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 400px), 342px);
    margin-bottom: 20px;
  }
  .full-title h3 { font-size: 24px; }
  .surface-heading { gap: 8px; }
  .page-heading { gap: 12px; }
  .artist-profile .entity-actions { display: flex; flex-wrap: wrap; }
  .artist-profile .entity-actions .button { min-width: 0; white-space: normal; }
}
@media (max-width: 359px) {
  :root { --gutter: 12px; }
  .page-heading h1 { font-size: 24px; }
  .mode-choices { grid-template-columns: 1fr; }
  .mini-track { gap: 8px; }
  .mini-player { gap: 0; }
}
@media (max-height: 560px) and (pointer: coarse) {
  #main { padding-top: 12px; }
  .player-dialog .surface-content { padding-top: calc(4px + var(--safe-top)); }
  .player-heading { margin-bottom: 8px; }
  .full-cover-button { width: 112px; margin-bottom: 12px; }
  .full-controls { margin-top: 12px; }
  .full-title h3 { font-size: 20px; }
}

@media (min-width: 560px) and (max-height: 560px) and (pointer: coarse) {
  .player-dialog .full-player:not(.player-empty) {
    display: grid;
    grid-template-columns: minmax(112px, .65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 8px 28px;
    max-width: 820px;
    margin-block: auto;
  }
  .player-dialog .full-cover-button { grid-column: 1; grid-row: 1 / 4; width: min(100%, 184px); margin: 0; justify-self: center; }
  .player-dialog .full-title { grid-column: 2; grid-row: 1; }
  .player-dialog .song-capsule { grid-column: 2; grid-row: 2; min-height: 48px; margin: 0; }
  .player-dialog .full-controls { grid-column: 2; grid-row: 3; margin: 0; }
  .player-dialog .full-play { width: 64px; height: 64px; }
  .player-dialog .taste-session-control { grid-column: 2; grid-row: 4; margin: 0; }
  .player-dialog .taste-session-control .button { min-height: 44px; font-size: 12px; }
  .player-dialog .full-secondary { grid-column: 1; grid-row: 4; gap: 4px; }
  .player-dialog .player-status:not([hidden]) { grid-column: 1 / -1; }
}

/* Mobile record: sleeve-led hierarchy, with a quiet transport below it. */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .player-dialog {
    --text: #fff;
    --muted: #ffffffb8;
    --accent: #edff38;
    color: var(--text);
    background: linear-gradient(180deg, var(--player-tone, #252527), var(--player-depth, #161618));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  .player-dialog .surface-content {
    padding: calc(8px + var(--safe-top)) max(22px, var(--safe-right)) calc(18px + var(--safe-bottom)) max(22px, var(--safe-left));
    min-height: 100%;
  }
  .player-dialog .player-heading { gap: 8px; margin: 0 0 12px; touch-action: none; }
  .player-dialog .player-heading h2 { color: #ffffffe0; font-size: 12px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .player-dialog .player-heading .icon-button { color: #ffffffb8; }
  .mobile-full-player { margin: 0 auto; max-width: 440px; width: 100%; flex: 0 0 auto; justify-content: flex-start; }
  .mobile-full-player .full-cover-button {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    margin: 0 0 24px;
    border-radius: 9px;
    background: none;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .mobile-full-player .full-cover-button .cover {
    width: 100%; height: 100%; border-radius: 9px;
    transform: scale(.826);
    transition: transform 540ms cubic-bezier(.3,.05,.2,1.12);
  }
  .player-dialog[data-playing='true'] .mobile-full-player .full-cover-button .cover { transform: scale(1); }
  .mobile-full-player .full-title { gap: 8px; align-items: center; min-height: 64px; }
  .mobile-full-player .full-title h3 { font-family: 'Manrope', sans-serif; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; }
  .mobile-full-player .explicit { font-size: 9px; vertical-align: middle; margin-left: 5px; color: #ffffffb8; background: #ffffff24; }
  .player-version { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .mobile-full-player .artist-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; margin-top: 0; min-height: 44px; color: var(--muted); }
  .mobile-full-player .artist-links::-webkit-scrollbar { display: none; }
  .mobile-full-player .artist-profile-link { flex: 0 0 auto; min-height: 44px; padding: 0; color: var(--muted); font: 500 13px/1.5 'Manrope', sans-serif; max-width: none; }
  .mobile-full-player .artist-links > span { flex-shrink: 0; white-space: pre; }
  .mobile-full-player .full-title > .player-title-actions { display: flex; flex: 0 0 auto; gap: 0; align-self: flex-start; }
  .player-title-actions .icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; color: #ffffffb8; }
  .mobile-full-player > .song-capsule {
    order: 0;
    flex: 0 0 48px; min-height: 48px; width: 100%; margin: 4px 0 0; padding: 0;
    border: 0; border-radius: 0; background: none; overflow: visible; isolation: auto;
  }
  .mobile-full-player .song-capsule::before { content: ''; position: absolute; top: 13px; left: 0; right: 0; height: 2px; border-radius: 2px; background: #ffffff38; pointer-events: none; }
  .mobile-full-player .song-progress { inset: 13px 0 auto; height: 2px; z-index: 0; border-radius: 2px; background: #ffffffe8; }
  .mobile-full-player .song-capsule input[name='seek'] { z-index: 1; height: 44px; top: -8px; touch-action: none; opacity: 1; background: transparent; border: 0; padding: 0; }
  .mobile-full-player .song-capsule input[name='seek']::-webkit-slider-runnable-track { height: 2px; background: transparent; }
  .mobile-full-player .song-capsule input[name='seek']::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 5px; height: 5px; margin-top: -1.5px; border: 0; border-radius: 50%; background: #fff; }
  .mobile-full-player .song-capsule input[name='seek']::-moz-range-track { height: 2px; background: transparent; }
  .mobile-full-player .song-capsule input[name='seek']::-moz-range-thumb { width: 5px; height: 5px; border: 0; border-radius: 50%; background: #fff; }
  .mobile-full-player .song-capsule input[name='seek']:disabled { opacity: .45; }
  .mobile-full-player .song-capsule-label, .mobile-full-player .time-divider { display: none; }
  .mobile-full-player .song-capsule .song-times { opacity: 1; display: flex; justify-content: space-between; align-self: start; padding-top: 27px; font: 500 10px/1.4 'Manrope', sans-serif; letter-spacing: 0; color: #ffffffb8; }
  .mobile-full-player .song-capsule:focus-within { outline-offset: 0; border-radius: 4px; }
  .mobile-full-player .full-controls { flex: 0 0 auto; gap: 6px; margin: 12px 0 20px; }
  .mobile-full-player .full-controls > .icon-button { width: 44px; height: 52px; min-width: 44px; min-height: 44px; color: #ffffffe0; }
  .mobile-full-player .full-controls > .icon-button[aria-pressed='true'] { color: #edff38; }
  .mobile-full-player .full-controls [data-action='previous'] .ui-icon, .mobile-full-player .full-controls [data-action='next'] .ui-icon { width: 28px; height: 28px; }
  .mobile-full-player .play-button.full-play { width: 68px; height: 68px; min-width: 68px; min-height: 68px; color: #151600; background: #edff38; border: 0; box-shadow: none; }
  .mobile-full-player .full-play .playback-symbol { width: 31px; height: 31px; }
  .mobile-full-player .full-secondary { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; }
  .mobile-full-player .full-secondary > .icon-button { flex: 1; width: auto; min-height: 44px; height: 44px; color: #ffffffc0; background: #ffffff0d; border-radius: 28px; }
  .mobile-full-player .full-secondary > .icon-button[aria-pressed='true'] { color: #edff38; background: #ffffff16; }
  .mobile-full-player .player-status { order: 5; margin-top: 10px; }
  .mobile-full-player .playback-retry { min-width: 0; }
  .mobile-full-player .track-flow-button { margin-top: 22px; min-height: 54px; width: 100%; border: 0; border-radius: 12px; background: linear-gradient(125deg, #ffffff06, #ffffff20 48%, #ffffff05); color: #fff; display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; }
  .track-flow-button small { font-size: 10px; font-weight: 500; opacity: .74; }
  .track-flow-button strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
  .player-artist-avatars { display: flex; align-items: center; flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; background: none; }
  .player-artist-avatars .cover { width: 32px; height: 32px; flex: 0 0 32px; border: 2px solid var(--player-tone, #252527); }
  .player-artist-avatars .cover + .cover { margin-left: -22px; }
}
.share-track-preview { display: flex; align-items: center; gap: 16px; margin: 12px 0 24px; }
.share-track-preview > .cover { width: 64px; height: 64px; flex: 0 0 64px; }
.share-track-preview > div { min-width: 0; }
.share-track-preview h3, .shared-record h3 { overflow-wrap: anywhere; }
.share-track-preview p { color: var(--muted); font-size: 13px; }
.share-invite { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sheet-dialog:has(.share-invite) {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(var(--app-height) - var(--safe-top) - 24px);
  margin: auto;
  border: 1px solid #ffffff18;
  border-radius: 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet-dialog:has(.share-invite) .surface-content { box-sizing: border-box; min-width: 0; }
.sheet-dialog:has(.share-invite) .share-track-preview { min-width: 0; }
.sheet-dialog:has(.share-invite) .share-track-preview .cover { overflow: hidden; }
@media (max-width: 559px) {
  .sheet-dialog:has(.share-invite) { width: calc(100vw - 24px); max-height: calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 24px); }
}
.shared-record { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.shared-record > .cover { width: min(100%, 240px); height: auto; aspect-ratio: 1; }
@media (max-height: 700px) and (orientation: portrait) {
  .mobile-full-player .full-cover-button { width: 100%; margin-bottom: 12px; }
  .mobile-full-player .full-controls { margin: 4px 0 12px; }
  .mobile-full-player .track-flow-button { margin-top: 12px; }
}
@media (min-width: 560px) and (max-height: 560px) and (pointer: coarse) {
  .player-dialog .mobile-full-player { display: grid; grid-template-columns: minmax(112px, .65fr) minmax(0, 1.35fr); gap: 4px 24px; }
  .mobile-full-player .full-cover-button { grid-column: 1; grid-row: 1 / 5; width: min(100%, 210px); margin: 0; }
  .mobile-full-player .full-title { grid-column: 2; grid-row: 1; }
  .mobile-full-player .song-capsule { grid-column: 2; grid-row: 2; }
  .mobile-full-player .full-controls { grid-column: 2; grid-row: 3; margin: 0; }
  .mobile-full-player .full-secondary { grid-column: 2; grid-row: 4; gap: 12px; }
  .mobile-full-player .track-flow-button { grid-column: 1 / -1; grid-row: 5; margin-top: 8px; }
  .mobile-full-player .player-status { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .player-dialog, .mobile-full-player .full-cover-button .cover { transition: none; }
}
/* Sampled damped response measured from IMG_0155 at 30 fps. linear() encodes
   non-linear spring samples, including its overshoot, rather than constant speed. */
@supports (transition-timing-function: linear(0, 1)) {
  @media (prefers-reduced-motion: no-preference) {
    .mobile-full-player .full-cover-button .cover {
      transition: transform 640ms linear(0,.02977,.10685,.21459,.33895,.46857,.59472,.71117,.81381,.9004,.9702,1.0236,1.06182,1.08663,1.1001,1.1044,1.10166,1.09387,1.08278,1.06986,1.05633,1.04312,1.03088,1.02007,1.01092,1.00352,.99784,.99375,.99108,.98961,.9891,.98935,1);
    }
  }
}

/* Music transfer: compact source picker and a two-step handoff. */
.collection-import { margin: 16px 0 24px; }
.taste-import-sheet { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-sizing: border-box; overflow: auto; overscroll-behavior: contain; padding: 28px; border: 1px solid #ffffff20; border-radius: 28px; background: #171719; color: var(--text); font-family: 'Manrope'; }
.taste-import-sheet::backdrop { background: #000b; }
.taste-import-sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.taste-import-sheet header > div { min-width: 0; }
.taste-import-sheet h2 { font: 600 25px/1.16 'Geologica'; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.taste-import-sheet header button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.taste-import-sheet header button:hover { background: #ffffff0a; color: var(--text); }
.taste-import-sheet p { font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.taste-import-sheet form { display: grid; gap: 16px; }
.taste-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.taste-sources legend { padding: 0 0 12px; font-size: 14px; font-weight: 600; }
.taste-source-option { position: relative; min-width: 0; }
.taste-source-option input, .taste-import-sheet input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.taste-source-tile { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; box-sizing: border-box; height: 92px; padding: 12px 2px; border: 1px solid #ffffff15; border-radius: 16px; background: #ffffff03; color: var(--muted); font: 600 12px/1.4 'Manrope'; cursor: pointer; }
.taste-source-tile:hover { background: #ffffff08; color: var(--text); }
.taste-source-option input:checked + .taste-source-tile { border-color: var(--accent); background: #ffdc0010; color: var(--text); }
.taste-source-option input:focus-visible + .taste-source-tile { outline: none; border-color: var(--accent); }
.taste-source-option input:disabled + .taste-source-tile { opacity: .45; cursor: wait; }
.taste-source-mark { display: grid; place-items: center; width: 32px; height: 32px; font: 600 27px/1 'Geologica'; }
.taste-source-mark svg { flex-shrink: 0; }
.taste-option-other { grid-column: 1 / -1; }
.taste-option-other .taste-source-tile { flex-direction: row; justify-content: flex-start; height: 44px; border: 0; background: transparent; padding: 0 8px; gap: 8px; }
.taste-option-other .taste-source-mark { width: 20px; height: 20px; font-size: 18px; }
.taste-option-other input:checked + .taste-source-tile { background: #ffffff08; }
.taste-source-guide { padding: 16px; border-radius: 18px; background: #ffffff05; }
.taste-source-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.taste-source-link .ui-icon { width: 16px; height: 16px; }
.taste-source-link:hover { color: var(--accent); }
.taste-upload { padding-top: 2px; }
.taste-file-label { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin-top: 12px; border: 0; border-radius: 14px; background: var(--accent); color: #17130c; font-size: 14px; font-weight: 600; cursor: pointer; }
.taste-file-label .share-icon { width: 20px; height: 20px; flex-shrink: 0; }
.taste-upload:has(input:disabled) .taste-file-label { opacity: .45; cursor: wait; }
.taste-upload:has(input:focus-visible) .taste-file-label { outline: 2px solid var(--accent); outline-offset: 3px; }
.taste-file-name { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.taste-manual summary { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; cursor: pointer; list-style: none; }
.taste-manual summary::-webkit-details-marker { display: none; }
.taste-manual summary::after { content: '+'; margin-left: auto; font: 400 22px 'Manrope'; }
.taste-manual[open] summary::after { content: '−'; }
.taste-manual label { display: block; margin: 8px 0; font-size: 12px; color: var(--muted); }
.taste-import-sheet textarea { width: 100%; height: 128px; box-sizing: border-box; padding: 14px; border: 1px solid #ffffff20; border-radius: 14px; resize: none; overflow: auto; background: #101012; color: var(--text); font: 400 16px/1.5 'Manrope'; }
.taste-manual .button { margin-top: 10px; width: 100%; }
.taste-import-sheet .button { min-height: 44px; height: auto; white-space: normal; font-family: 'Manrope'; }
.taste-import-sheet :focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.taste-import-sheet .taste-import-status:empty, .taste-import-preview:empty { display: none; }
.taste-import-status { padding: 12px 14px; border-radius: 12px; background: #ffdc0009; color: var(--accent); overflow-wrap: anywhere; }
.taste-import-preview ol { margin: 12px 0; padding: 0; list-style: none; counter-reset: tracks; }
.taste-import-preview li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid #ffffff0c; overflow-wrap: anywhere; counter-increment: tracks; }
.taste-import-preview li::before { content: counter(tracks, decimal-leading-zero); position: absolute; left: 0; top: 15px; color: var(--muted); font-size: 10px; }
.taste-import-preview li strong { font-size: 14px; font-weight: 600; }
.taste-import-preview li span, .taste-import-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.taste-import-preview .button { width: 100%; }
.taste-import-sheet h3 { margin: 0; padding-top: 20px; border-top: 1px solid #ffffff12; font: 600 14px 'Geologica'; }
.taste-import-history > p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.taste-import-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #ffffff12; }
.taste-import-row > span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.taste-import-row > div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.taste-import-row strong { font-weight: 600; }
@media (max-width: 480px) { .taste-import-sheet { padding: 20px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 24px; } .taste-import-sheet h2 { font-size: 24px; } .taste-import-row { flex-wrap: wrap; } }
@media (max-width: 350px) { .taste-import-sheet { padding: 18px; } .taste-import-sheet h2 { font-size: 22px; } .taste-source-tile { height: 82px; font-size: 11px; } .taste-source-guide { padding: 12px; } .taste-import-sheet form { gap: 12px; } }

/* Transfer actions only; service artwork is supplied by each brand. */
.taste-import-sheet header { margin-bottom: 24px; }
.taste-import-sheet h2 { font-size: 24px; }
.taste-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.taste-source-tile { height: 96px; gap: 14px; background: #171719; }
.taste-source-option input:checked + .taste-source-tile { background: #171719; }
.taste-source-mark { width: 100%; height: 32px; }
.taste-source-mark img { display: block; width: 32px; height: 32px; object-fit: contain; }
.taste-mark-vk img { width: min(110px, 100%); height: 32px; }
.taste-source-guide { padding: 0; background: transparent; }
.taste-source-guide:empty { display: none; }
.taste-actions { margin: 0; padding: 0; list-style: none; counter-reset: actions; }
.taste-actions li { display: flex; align-items: center; gap: 12px; min-height: 48px; counter-increment: actions; }
.taste-actions li::before { content: counter(actions); display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid #ffffff26; border-radius: 50%; color: var(--muted); font-size: 11px; }
.taste-actions li > span { padding: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.taste-actions .taste-source-link { flex: 1; min-width: 0; }
.taste-file-label { margin-top: 0; }
.taste-file-name[hidden], .taste-history-wrap[hidden] { display: none; }
.taste-history-wrap { border-top: 1px solid #ffffff12; margin-top: 16px; padding-top: 12px; }
.taste-history-wrap > summary { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); cursor: pointer; list-style: none; }
.taste-history-wrap > summary::-webkit-details-marker { display: none; }
.taste-history-wrap > summary::after { content: '+'; margin-left: auto; }
.taste-history-wrap[open] > summary::after { content: '−'; }
@media (max-width: 350px) { .taste-source-tile { height: 88px; font-size: 12px; } }



/* One selection ring, centred official brand artwork. */
.taste-source-option input:focus-visible { outline: none; }
.taste-source-tile { gap: 0; border-width: 2px; }
.taste-source-mark { height: 40px; }
.taste-source-mark img { width: 40px; height: 40px; }
.taste-mark-vk img { width: min(112px, 100%); height: 40px; }
.taste-option-other .taste-source-tile { justify-content: center; border: 2px solid transparent; }
.taste-option-other input:checked + .taste-source-tile, .taste-option-other input:focus-visible + .taste-source-tile { border-color: var(--accent); }

.taste-option-other .taste-source-mark { display: flex; width: auto; gap: 8px; font: 600 12px 'Manrope'; }

/* Source colour is local to this sheet; product-wide accent stays unchanged. */
.taste-import-sheet { --import-ink: #101012; }
.taste-import-sheet[data-source=yandex] { --accent: #ffdc00; }
.taste-import-sheet[data-source=spotify] { --accent: #1ed760; }
.taste-import-sheet[data-source=vk] { --accent: #0077ff; --import-ink: #fff; }
.taste-import-sheet[data-source=apple] { --accent: #fa2d55; }
.taste-import-sheet .taste-file-label { color: var(--import-ink); }
.taste-link[hidden] { display: none; }
.taste-link > label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.taste-link-entry { display: flex; gap: 8px; }
.taste-link-entry input { flex: 1; min-width: 0; height: 48px; box-sizing: border-box; padding: 12px; border: 1px solid #ffffff24; border-radius: 12px; background: #101012; color: var(--text); font: 400 16px 'Manrope'; }
.taste-link-entry button { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #ffffff24; border-radius: 12px; background: #ffffff06; color: var(--text); cursor: pointer; }
.taste-link-entry button img { width: 28px; height: 28px; object-fit: contain; }
.taste-link-entry button:disabled { opacity: .4; cursor: wait; }

/* Suspend cover motion outside the viewport and while Telegram is in background. */
.track-row:not(.playback-in-view) .track-playing-indicator i,
.playback-motion-hidden .track-row .track-playing-indicator i { animation-play-state: paused; }
.artist-canvas .track-artwork { width: 42px; height: 42px; }
@media (max-width: 359px) { .track-artwork { width: 40px; height: 40px; } }

/* Give the collection title its own line before the primary action on phones. */
.liked-heading h1 { word-break: normal; overflow-wrap: normal; }
.liked-heading > .button { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) {
  .liked-heading { flex-direction: column; align-items: stretch; gap: 16px; }
  .liked-heading > div { width: 100%; }
  .liked-heading h1 { font-size: clamp(20px, 6vw, 30px); line-height: 1.2; }
  .liked-heading > .button { align-self: flex-start; max-width: none; margin-left: 40px; }
}

/* A record continues below its transport; its size does not depend on fitting all controls. */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .player-dialog .surface-content { display: block; padding-bottom: calc(100px + var(--safe-bottom)); }
  .player-dialog .player-heading {
    position: sticky;
    top: 0;
    z-index: 4;
    padding-block: 4px;
    background: var(--player-tone, #252527);
  }
  .player-details { max-width: 440px; margin: 32px auto 0; }
  .player-details section + section { margin-top: 28px; }
  .player-details h3 { font: 700 19px/1.3 'Manrope'; letter-spacing: -.025em; margin: 0 0 16px; }
  .player-details button { color: #fff; }
  .player-artist-card {
    width: 100%; position: relative; min-height: 112px; padding: 0; overflow: hidden;
    display: flex; align-items: center; gap: 18px; text-align: left; background: #ffffff0b; border-radius: 12px;
  }
  .player-artist-card + .player-artist-card { margin-top: 12px; }
  .player-artist-card > .cover { width: 112px; height: 144px; flex: 0 0 112px; border-radius: 0; }
  .player-artist-card > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
  .player-artist-card:not(:has(> .cover)) { padding-inline: 20px; }
  .player-artist-card strong { font: 700 24px/1.2 'Manrope'; overflow-wrap: anywhere; }
  .player-artist-card small { font: 500 12px/1.5 'Manrope'; color: #ffffffb8; }
  .player-artist-card > .ui-icon { margin-left: auto; margin-right: 14px; flex-shrink: 0; }
  .player-related-list { list-style: none; padding: 0; margin: 0; }
  .player-related-list li { display: flex; align-items: center; gap: 4px; }
  .player-related-track, .player-playlist-list > button {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 0; min-height: 64px;
    text-align: left; background: transparent; min-width: 0;
  }
  .player-related-track > .cover, .player-playlist-list > button > .cover { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 5px; }
  .player-related-track > span, .player-playlist-list > button > span { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }
  .player-related-track strong, .player-playlist-list strong { font: 600 14px/1.4 'Manrope'; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .player-related-track small, .player-playlist-list small { font: 500 12px/1.4 'Manrope'; color: #ffffffa8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .player-playlist-list > .text-button { font: 600 14px 'Manrope'; min-height: 48px; }
  .player-playlist-list > button:disabled { opacity: .65; }
  .player-details-status { font: 500 13px/1.5 'Manrope'; color: #ffffffb8; padding-block: 16px; }
  .player-scroll-dock {
    position: fixed; bottom: calc(12px + var(--safe-bottom)); left: max(12px, var(--safe-left)); right: max(12px, var(--safe-right));
    z-index: 5; display: flex; align-items: center; gap: 4px; padding: 6px;
    border: 1px solid #ffffff14; border-radius: 12px;
    background: var(--player-depth, #252527); box-shadow: 0 10px 32px #0005;
  }
  .player-scroll-dock[hidden] { display: none; }
  .player-dock-track { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; color: #fff; background: transparent; }
  .player-dock-track > .cover { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 5px; }
  .player-dock-track > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .player-dock-track strong, .player-dock-track small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .player-dock-track strong { font: 600 13px/1.3 'Manrope'; }
  .player-dock-track small { font: 500 11px/1.3 'Manrope'; color: #ffffffb8; }
  .player-scroll-dock > .icon-button, .player-scroll-dock .play-button { width: 44px; height: 44px; min-width: 44px; color: #fff; background: transparent; box-shadow: none; }
  .player-scroll-dock .playback-symbol { width: 22px; height: 22px; }
  .sheet-dialog[data-surface='track'], .sheet-dialog[data-surface='track-info'] {
    border-radius: 24px 24px 0 0; background: #161618; max-height: calc(var(--app-height) - var(--safe-top) - 32px);
    overflow-y: auto;
  }
  .sheet-dialog[data-surface='track'] .surface-content::before, .sheet-dialog[data-surface='track-info'] .surface-content::before {
    content: ''; display: block; width: 34px; height: 4px; border-radius: 4px; background: #ffffff40; margin: -12px auto 22px;
  }
}
.track-facts { margin: 16px 0 24px; }
.track-facts dt { font: 500 12px/1.5 'Manrope'; color: var(--muted); margin-top: 24px; }
.track-facts dd { margin: 4px 0 0; font: 500 15px/1.5 'Manrope'; }
.track-facts .artist-profile-link { color: var(--text); }
@media (min-width: 560px) and (max-height: 560px) and (pointer: coarse) {
  .player-dialog .mobile-full-player { max-width: 720px; }
  .player-dialog .mobile-full-player .full-cover-button { width: min(100%, 210px); }
}

@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .player-artist-block + .player-artist-block { margin-top: 16px; }
  .player-artist-surface { position: relative; }
  .player-artist-surface .player-artist-card { padding-right: 52px; }
  .player-artist-card.has-photo { display: block; min-height: 244px; padding: 0; }
  .player-artist-card.has-photo > .cover { width: 100%; height: 244px; display: block; }
  .player-artist-card.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 32%, #000b); pointer-events: none; }
  .player-artist-card.has-photo > span { position: absolute; bottom: 0; left: 20px; right: 58px; z-index: 1; }
  .player-artist-card.has-photo > .ui-icon { display: none; }
  .player-artist-follow { position: absolute; bottom: 16px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: #0003; color: white; }
  .player-artist-follow[aria-pressed='true'] { color: #edff38; }
  .player-artist-block > .artist-photo-credit { margin: 4px 0 0; color: #ffffffa8; }
  html[data-player-color-tween='fallback'] .player-dialog {
    background-image: linear-gradient(180deg, #0000, #0005);
    background-color: var(--player-tone, #252527);
    transition: background-color 700ms cubic-bezier(.22,1,.36,1);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-player-color-tween='fallback'] .player-dialog { transition: none; }
}

/* A selected search result acknowledges preparation without moving the list. */
.track-row.preparing-audio .track-artwork { transform: scale(.94); opacity: .62; }
.track-row .track-artwork { transition: transform 240ms cubic-bezier(.22,1,.36,1), opacity 180ms cubic-bezier(.22,1,.36,1); }
.track-row.preparing-audio .track-play-overlay { opacity: 1; transform: scale(.86); }
@media (prefers-reduced-motion: reduce) {
  .track-row .track-artwork { transition: none; }
  .track-row.preparing-audio .track-artwork, .track-row.preparing-audio .track-play-overlay { transform: none; }
}

/* Collection hierarchy: content first, utilities stay secondary. */
.collection-page .section-heading .preference-section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-left: auto;
}
.collection-page .section-heading .text-button {
  font-size: 13px;
  font-weight: 400;
  min-height: 44px;
}
.collection-page .section-heading .text-button .ui-icon {
  width: 18px;
  height: 18px;
}
.collection-page .collection-tracks .row-like:not([aria-pressed='true']),
.collection-page .collection-tracks [data-action='track-menu'] {
  color: #929292;
}
.collection-page .collection-artists .listen-time,
.collection-page .collection-artists .ranking-place {
  font-weight: 400;
  color: var(--collection-muted);
}
@media (max-width: 539px) {
  .collection-page .section-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .collection-page .section-heading h2 {
    flex: 1 0 100%;
  }
  .collection-page .section-heading .preference-section-actions {
    margin-left: 0;
    gap: 4px 16px;
  }
  .collection-page .track-artists {
    font-size: 14px;
  }
}
