/* My Zone · local assets, accessible responsive shell */
:root {
  color-scheme: dark;
  --bg: #080d14;
  --surface: #101620;
  --surface-soft: #151b29;
  --border: rgba(175, 178, 215, 0.14);
  --text: #f7f5fd;
  --muted: #a3aac1;
  --accent: #c752ff;
  --accent-deep: #7439ff;
  --gradient: linear-gradient(110deg, #b847f1, #7438ff);
  --sidebar-width: 224px;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 55% 0, rgba(75, 44, 124, 0.15), transparent 50%),
    radial-gradient(ellipse at 0 100%, rgba(61, 42, 110, 0.12), transparent 45%);
  pointer-events: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
fieldset {
  margin: 0;
}
fieldset {
  min-width: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
input,
textarea {
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.9px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #d781ff;
  outline-offset: 4px;
}
::selection {
  background: #a542dd;
  color: white;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent-deep);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: #e8e5f2;
  transition:
    color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.icon-button:hover {
  color: #fff;
  background: rgba(186, 149, 245, 0.1);
}
.icon-button:active {
  transform: scale(0.95);
}
.icon-button[aria-pressed="true"],
.icon-button.is-active {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #c5aedf;
  font-weight: 600;
}
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 13px;
  transition:
    filter 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  text-align: center;
}
.button:hover {
  filter: brightness(1.12);
}
.button:active {
  transform: translateY(1px);
}
.button-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 5px 22px rgba(110, 43, 255, 0.16);
}
.button-secondary {
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.button-outline {
  background: rgba(5, 8, 18, 0.4);
  border: 1px solid #a450e3;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  font-size: 12px;
  color: #bf87fc;
  white-space: nowrap;
}
.text-button:hover {
  color: #e3b7ff;
}
.text-button .icon {
  width: 17px;
  height: 17px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 22px;
  font-weight: 600;
  color: #dab0ff;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  width: 34px;
  flex: none;
}
.brand-mark i {
  width: 4px;
  border-radius: 5px;
  background: linear-gradient(#a354ff, #ec62e8);
  box-shadow: 0 0 15px rgba(166, 55, 255, 0.32);
}
.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) {
  height: 10px;
}
.brand-mark i:nth-child(2) {
  height: 24px;
}
.brand-mark i:nth-child(3) {
  height: 34px;
}
.brand-mark i:nth-child(4) {
  height: 20px;
}
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 31px 19px 25px;
  background: linear-gradient(
    160deg,
    rgba(9, 14, 23, 0.98),
    rgba(6, 12, 18, 0.98)
  );
  border-right: 1px solid rgba(133, 147, 186, 0.08);
  display: flex;
  flex-direction: column;
}
.sidebar > .brand {
  padding-left: 11px;
}
.sidebar-nav {
  display: grid;
  gap: 9px;
  margin-top: 38px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #d9d9e7;
  font-size: 13px;
  line-height: 1.4;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-link .icon {
  width: 25px;
  height: 25px;
}
.nav-link:hover {
  background: rgba(143, 87, 232, 0.09);
}
.nav-link.is-active {
  background: linear-gradient(115deg, #39207a, #29155e);
  border-color: rgba(140, 74, 249, 0.2);
  color: white;
  box-shadow: 0 6px 24px rgba(54, 20, 134, 0.15);
}
.nav-link.is-active .icon {
  color: #bd65ff;
}
.sidebar-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  font-size: 10px;
  color: #777f94;
  padding: 0 8px;
}
.online-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #ae64ed;
  box-shadow: 0 0 8px #aa4be7;
}
.app-content {
  margin-left: var(--sidebar-width);
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
}
.app-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 340px;
  pointer-events: none;
  background:
    linear-gradient(
      0deg,
      var(--bg) 0%,
      rgba(8, 13, 20, 0.25) 65%,
      rgba(8, 13, 20, 0.25)
    ),
    url("../images/landscape.png") center 37% / cover;
  opacity: 0.9;
}
.topbar {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 38px;
  max-width: 1480px;
  margin: auto;
}
.desktop-back {
  margin-right: auto;
}
.search-field {
  height: 42px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  background: rgba(18, 24, 37, 0.82);
  border: 1px solid rgba(157, 162, 199, 0.14);
  border-radius: 12px;
  color: #d8d2ef;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.search-field:focus-within {
  border-color: rgba(191, 94, 255, 0.7);
  background: rgba(19, 24, 40, 0.97);
}
.search-field .icon {
  width: 18px;
  height: 18px;
}
.search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  appearance: none;
}
.search-field input::placeholder {
  color: #a0a2ba;
  opacity: 1;
}
.search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar-button {
  padding: 3px;
  border: 1px solid rgba(204, 115, 252, 0.65);
  border-radius: 50%;
  background: rgba(19, 10, 34, 0.55);
}
.avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url("../images/midnight.png") 50% 45%/200%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.avatar-large {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
}
.mobile-brand,
.mobile-page-back,
.mobile-nav {
  display: none;
}
#main-content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 8px 38px 160px;
  outline: none;
}
.hero-copy {
  padding: 11px 10px 0;
}
.hero .eyebrow {
  margin-bottom: 11px;
}
.hero h1 {
  font-size: 39px;
  line-height: 1.13;
  letter-spacing: -0.7px;
  max-width: 670px;
}
.hero-subtitle {
  font-size: 14px;
  margin-top: 12px;
  color: #c3c6de;
}
.mood-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 26px 0 29px;
}
.chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 14px;
  border: 1px solid rgba(164, 160, 191, 0.1);
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(24, 28, 42, 0.87),
    rgba(15, 21, 31, 0.92)
  );
  color: #ddd8eb;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1.4;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.chip .icon {
  width: 15px;
  height: 15px;
  stroke-width: 1.6;
}
.chip:hover {
  border-color: rgba(195, 114, 255, 0.45);
  background: #292039;
}
.chip.is-active,
.chip.is-selected,
.chip[aria-pressed="true"] {
  background: var(--gradient);
  border-color: #9755fd;
  color: white;
  box-shadow:
    0 0 18px rgba(139, 51, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
}
.mood-chip {
  min-height: 40px;
  padding: 9px 15px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr);
  gap: 24px;
}
.featured-track {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: 21px;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.cover-city {
  background-image: url("../images/midnight.png");
  background-position: center;
  background-size: cover;
}
.featured-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(8, 9, 18, 0.96),
    rgba(8, 9, 18, 0.25) 33%,
    transparent 62%
  );
  pointer-events: none;
}
.featured-meta {
  position: absolute;
  bottom: 23px;
  left: 23px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}
.featured-kicker {
  color: #cfb8e7;
  letter-spacing: 1.4px;
  font-size: 9px;
  display: block;
  margin-bottom: 7px;
}
.featured-meta h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
}
.featured-meta p {
  font-size: 15px;
  color: #c6bedf;
  margin-top: 3px;
}
.featured-heart {
  width: 43px;
  height: 43px;
  color: #d68cfa;
}
.featured-heart .icon {
  width: 28px;
  height: 28px;
}
.featured-heart[aria-pressed="true"] .icon {
  fill: rgba(172, 77, 214, 0.12);
}
.featured-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 45%;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(128, 54, 230, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(228, 180, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.featured-play .icon {
  width: 27px;
  height: 27px;
  fill: currentColor;
}
.featured-track:hover .featured-play,
.featured-play:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.queue-panel {
  min-width: 0;
  height: 390px;
  display: flex;
  flex-direction: column;
  padding: 19px 20px 14px;
  border-radius: 21px;
  border: 1px solid var(--border);
  background: linear-gradient(
    145deg,
    rgba(17, 22, 34, 0.94),
    rgba(9, 17, 24, 0.96)
  );
  box-shadow: var(--shadow);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.section-heading h2 {
  font-size: 15px;
}
.queue-list {
  min-height: 0;
  flex: 1;
}
.queue-row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(179, 173, 214, 0.07);
  padding: 6px 0;
  border-radius: 5px;
  transition: background 0.2s;
}
.queue-row:last-child {
  border-bottom: 0;
}
.queue-row:hover,
.queue-row.is-selected {
  background: rgba(185, 101, 254, 0.065);
}
.track-number {
  font-size: 12px;
  color: #e2ddef;
  min-width: 13px;
  text-align: center;
}
.track-select {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  flex: 1;
  padding: 0;
  color: inherit;
}
.cover {
  height: 46px;
  width: 46px;
  flex: none;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(250, 236, 255, 0.06);
}
.cover-sunset {
  background-image:
    linear-gradient(0deg, rgba(227, 106, 128, 0.22), transparent),
    url("../images/midnight.png");
  background-position: 32% 32%;
}
.cover-ocean {
  background-image:
    linear-gradient(0deg, rgba(23, 82, 104, 0.25), rgba(166, 218, 229, 0.2)),
    url("../images/landscape.png");
  background-position: 22% 25%;
  filter: saturate(0.45) hue-rotate(20deg) brightness(1.3);
}
.cover-night {
  background-image:
    linear-gradient(35deg, rgba(194, 36, 111, 0.3), rgba(24, 25, 136, 0.4)),
    url("../images/landscape.png");
  background-position: 70% 50%;
  filter: saturate(1.4);
}
.cover-starlight {
  background-image: url("../images/landscape.png");
  background-position: 30% 20%;
  filter: hue-rotate(18deg) saturate(0.6) brightness(1.5);
}
.cover-dreams {
  background-image:
    linear-gradient(30deg, rgba(252, 174, 53, 0.4), rgba(243, 209, 177, 0.2)),
    url("../images/midnight.png");
  background-position: 70% 50%;
  filter: sepia(0.38) brightness(1.2);
}
.cover-tame {
  background-image:
    radial-gradient(
      ellipse at 35% 35%,
      #cb53c875 0 12%,
      #5839b3a6 14% 24%,
      transparent 30%
    ),
    url("../images/landscape.png");
  filter: hue-rotate(45deg) saturate(1.7);
}
.cover-district {
  background-image: url("../images/midnight.png");
  background-position: 20% 40%;
  filter: sepia(0.8) brightness(1.2) saturate(0.8);
}
.cover-kino {
  background-image: url("../images/midnight.png");
  background-position: 40% 50%;
  filter: grayscale(0.7) sepia(0.6);
}
.cover-space {
  background-image:
    radial-gradient(
      ellipse at 60% 50%,
      #ed38c975,
      #4b218787 25%,
      transparent 65%
    ),
    url("../images/landscape.png");
  filter: saturate(1.7) hue-rotate(20deg);
}
.cover-experience {
  background-image: url("../images/landscape.png");
  background-position: 20% 10%;
  filter: grayscale(0.65) hue-rotate(15deg) brightness(1.25);
}
.track-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}
.track-title {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f4f1fc;
  line-height: 1.35;
}
.track-artist {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.track-duration {
  font-size: 11px;
  color: #a0a4c0;
  margin-left: auto;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.queue-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #79798f;
  font-size: 10px;
  padding-top: 11px;
}
.queue-caption .icon {
  width: 13px;
  height: 13px;
  color: #a070bd;
}
.player {
  position: fixed;
  z-index: 50;
  left: calc(var(--sidebar-width) + 22px);
  right: 22px;
  bottom: 22px;
  max-width: 1400px;
  margin: auto;
  border: 1px solid rgba(162, 155, 200, 0.3);
  border-radius: 20px;
  min-height: 110px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(280px, 2fr) minmax(
      170px,
      1fr
    );
  gap: 24px;
  align-items: center;
  padding: 12px 22px;
  background: linear-gradient(
    130deg,
    rgba(13, 18, 29, 0.97),
    rgba(8, 15, 22, 0.98)
  );
  box-shadow: 0 10px 55px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}
.player-track {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.player-track .cover {
  width: 57px;
  height: 57px;
  border-radius: 7px;
}
.player-favorite {
  width: 30px;
  margin-left: auto;
  color: #b794cc;
}
.player-favorite .icon {
  width: 19px;
  height: 19px;
}
.player-center {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.progress-row {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}
.time-current,
.time-total {
  font-size: 10px;
  color: #c7bddf;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex: none;
}
.range {
  --range-progress: 75%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #ae47ee var(--range-progress),
    #222b3b var(--range-progress)
  );
  cursor: pointer;
  touch-action: pan-y;
}
.range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: white;
}
.range:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}
.range:focus-visible {
  outline: 2px solid #c975ff;
  outline-offset: 6px;
}
.progress-range {
  --range-progress: 35.8%;
  flex: 1;
}
.progress-range::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  background: #d886fa;
  opacity: 0;
}
.progress-range:hover::-webkit-slider-thumb,
.progress-range:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}
.progress-range::-moz-range-thumb {
  background: #d886fa;
  width: 8px;
  height: 8px;
}
.playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.play-button {
  width: 51px;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 28px rgba(144, 50, 252, 0.33);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.play-button:hover {
  transform: scale(1.06);
  box-shadow: 0 0 34px rgba(144, 50, 252, 0.55);
}
.play-button .icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke-width: 1.2;
}
.play-button .icon:first-child {
  margin-left: 3px;
}
.pause-icon {
  display: none;
}
.is-playing .play-button .icon:first-child {
  display: none;
}
.is-playing .play-button .pause-icon {
  display: block;
}
.player-volume {
  display: flex;
  align-items: center;
  gap: 9px;
}
.player-volume .range {
  max-width: 110px;
}
.queue-toggle {
  margin-left: 5px;
}
.page-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 26px;
}
.page-heading h1 {
  font-size: 31px;
  line-height: 1.3;
}
.page-heading .muted {
  margin-top: 5px;
  font-size: 13px;
}
.settings-page {
  max-width: 1050px;
  margin: 0 auto;
}
.settings-card,
.favorites-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(14, 20, 31, 0.97),
    rgba(7, 15, 22, 0.97)
  );
  box-shadow: var(--shadow);
}
.settings-card {
  padding: 25px 30px 30px;
  max-width: 790px;
}
.tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #121927;
  border: 1px solid rgba(168, 151, 202, 0.07);
  border-radius: 11px;
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 10px 13px;
  color: #c6c4db;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s;
}
.tab:hover {
  background: rgba(174, 127, 225, 0.07);
  color: #fff;
}
.tab.is-active {
  color: #fff;
  background: linear-gradient(120deg, #381b7c, #251447);
  box-shadow: 0 3px 14px rgba(92, 33, 165, 0.17);
  position: relative;
}
.settings-tabs .tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #8c35ed, #d957fa);
  box-shadow: 0 0 12px #a839ed;
}
.setting-section {
  border: 0;
  position: relative;
  padding: 0 0 26px;
  margin: 29px 0 0;
  min-width: 0;
}
.setting-section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(175, 168, 210, 0.08);
}
.setting-section legend {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  float: none;
  line-height: 1.2;
  padding: 0;
}
.section-description {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: -4px 0 14px;
}
.section-description p {
  color: #b6b8cd;
  font-size: 12px;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.settings-card .chip {
  min-height: 37px;
  font-size: 12px;
  padding: 8px 14px;
}
.settings-card .chip .icon {
  width: 16px;
  height: 16px;
}
.show-genres {
  display: none;
}
.section-note {
  font-size: 13px;
  margin-bottom: 22px;
  max-width: 550px;
}
.save-settings {
  width: 100%;
  margin-top: 27px;
  min-height: 48px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  margin-top: 20px;
}
.form-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  color: var(--text);
  background: linear-gradient(120deg, #151d2b, #101823);
  border: 1px solid rgba(180, 183, 211, 0.18);
  border-radius: 10px;
  font-size: 13px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  outline: none;
}
.form-input::placeholder {
  color: #8e98b1;
  opacity: 1;
}
.form-input:focus {
  border-color: #af64f2;
  box-shadow: 0 0 0 3px rgba(174, 79, 244, 0.1);
}
.form-input option {
  background: #151d2b;
  color: white;
}
textarea.form-input {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.field-help {
  font-size: 11px;
  color: #8b93ab;
  margin-top: 7px;
}
.provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.provider-option {
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 13px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
}
.provider-option input {
  position: absolute;
  inset: auto;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.provider-option:has(input:checked) {
  border-color: #a04def;
  background: linear-gradient(
    130deg,
    rgba(96, 38, 162, 0.28),
    rgba(37, 25, 71, 0.4)
  );
}
.provider-option:has(input:focus-visible) {
  outline: 2px solid #d781ff;
  outline-offset: 4px;
}
.provider-option > .icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0;
  color: #d17dff;
}
.provider-option:has(input:checked) > .icon {
  opacity: 1;
}
.provider-option strong,
.provider-option small {
  display: block;
}
.provider-option strong {
  font-size: 13px;
  font-weight: 600;
}
.provider-option small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.provider-symbol {
  height: 34px;
  width: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #c986ff;
  background: rgba(158, 79, 216, 0.13);
  font-size: 22px;
  font-weight: 600;
}
.provider-symbol .icon {
  width: 20px;
  height: 20px;
}
.theme-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.theme-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  text-align: left;
}
.theme-choice strong {
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
}
.theme-choice small {
  color: var(--muted);
  font-size: 11px;
}
.theme-choice.is-active {
  border-color: #aa58f1;
  background: rgba(126, 50, 181, 0.1);
}
.theme-swatch {
  height: 105px;
  width: 100%;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #142038, #050b12);
}
.theme-swatch::before {
  content: "";
  position: absolute;
  inset: 15px 15px auto;
  height: 24px;
  background: #472174;
  border-radius: 5px;
}
.theme-swatch::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  top: 51px;
  background: linear-gradient(120deg, #232f43, #111722);
  border-radius: 5px;
}
.swatch-amethyst {
  background: linear-gradient(125deg, #302042, #160a25);
}
.swatch-amethyst::before {
  background: linear-gradient(115deg, #963bbb, #60309b);
}
.swatch-amethyst::after {
  background: linear-gradient(120deg, #3f235c, #271639);
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  position: relative;
  margin-top: 25px;
}
.toggle-row strong,
.toggle-row small {
  display: block;
}
.toggle-row strong {
  font-size: 13px;
}
.toggle-row small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.toggle-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.toggle-switch {
  width: 41px;
  height: 23px;
  background: #303348;
  border-radius: 20px;
  position: relative;
  flex: none;
  transition: background 0.2s;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-row input:checked + .toggle-switch {
  background: var(--accent-deep);
}
.toggle-row input:checked + .toggle-switch::after {
  transform: translateX(18px);
}
.toggle-row input:focus-visible + .toggle-switch {
  outline: 2px solid #d781ff;
  outline-offset: 4px;
}
.track-count {
  margin-left: auto;
  color: #aa91bf;
  font-size: 12px;
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.favorites-card {
  padding: 23px 26px 22px;
}
.favorites-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.favorites-toolbar .search-field {
  flex: 1;
  max-width: 490px;
}
.favorites-play {
  margin-left: auto;
  min-height: 42px;
}
.favorites-play .icon {
  height: 15px;
  width: 15px;
  fill: currentColor;
  stroke-width: 1px;
}
.favorites-table-head {
  display: grid;
  grid-template-columns: 1fr 56px 84px;
  gap: 18px;
  align-items: center;
  padding: 8px 12px 11px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: #8d91a8;
  letter-spacing: 1px;
}
.favorites-table-head .icon {
  width: 15px;
  height: 15px;
  margin: auto;
}
.favorite-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 10px 10px;
  min-height: 74px;
  border-bottom: 1px solid rgba(164, 167, 191, 0.08);
  border-radius: 7px;
  transition: background 0.2s;
}
.favorite-row:last-child {
  border-bottom: 0;
}
.favorite-row:hover,
.favorite-row.is-selected {
  background: rgba(130, 71, 180, 0.08);
}
.favorite-row .cover {
  width: 49px;
  height: 49px;
}
.favorite-row .track-select {
  gap: 17px;
}
.favorite-row .track-title {
  font-size: 14px;
}
.favorite-row .track-artist {
  font-size: 12px;
}
.favorite-row > .track-duration {
  width: 56px;
  text-align: center;
}
.favorite-button,
.track-menu-button {
  height: 34px;
  width: 30px;
}
.favorite-button .icon {
  width: 21px;
  height: 21px;
}
.favorite-button.is-favorite {
  color: #d660f2;
}
.favorite-button.is-favorite .icon {
  fill: currentColor;
  stroke-width: 1px;
}
.track-menu-button {
  color: #c0becf;
}
.track-menu-button .icon {
  width: 19px;
  height: 19px;
}
.empty-state {
  padding: 52px 20px;
  text-align: center;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.empty-state > .icon {
  width: 38px;
  height: 38px;
  color: #b067dd;
  margin-bottom: 5px;
}
.empty-state h2 {
  font-size: 17px;
  color: var(--text);
}
.empty-state p {
  font-size: 13px;
  max-width: 340px;
}
.empty-state .button {
  margin-top: 12px;
}
.track-menu {
  position: fixed;
  z-index: 120;
  min-width: 185px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  background: #151b2a;
  border: 1px solid rgba(166, 137, 203, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-radius: 11px;
}
.track-menu button,
.track-menu a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-align: left;
  font-size: 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.track-menu button:hover,
.track-menu a:hover {
  background: rgba(161, 71, 231, 0.15);
}
.track-menu .icon {
  width: 17px;
  height: 17px;
}
.track-menu [data-action="remove-favorite"] {
  color: #f89fbe;
}
.toast-region {
  position: fixed;
  z-index: 200;
  bottom: 155px;
  left: calc(var(--sidebar-width) + 24px);
  right: 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.toast {
  max-width: 470px;
  padding: 13px 20px;
  border-radius: 12px;
  color: #ede1fa;
  font-size: 13px;
  background: rgba(31, 24, 45, 0.97);
  border: 1px solid rgba(185, 109, 234, 0.34);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  animation: toast-in 0.2s ease-out;
}
.toast.is-error,
.toast[data-type="error"] {
  border-color: #b65c83;
  color: #ffd8e7;
}
.profile-dialog {
  color: var(--text);
  background: linear-gradient(140deg, #171c2b, #0e1420);
  border: 1px solid rgba(182, 127, 231, 0.3);
  width: min(370px, calc(100vw - 32px));
  padding: 40px 30px 30px;
  text-align: center;
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}
.profile-dialog::backdrop {
  background: rgba(3, 5, 12, 0.75);
  backdrop-filter: blur(7px);
}
.profile-dialog h2 {
  font-size: 23px;
}
.profile-dialog .muted {
  font-size: 13px;
  margin: 8px 0 24px;
}
.profile-dialog .button {
  display: flex;
  margin-top: 12px;
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
}
.auth-body {
  min-height: 100dvh;
  padding: 35px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 20% 25%, #25173a, var(--bg) 65%);
}
.auth-layout {
  width: min(1110px, 100%);
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(180, 143, 216, 0.18);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.4);
  background: #090f18;
  outline: none;
}
.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 700px;
  background:
    linear-gradient(
      0deg,
      rgba(5, 11, 16, 0.55),
      rgba(8, 11, 26, 0.07) 50%,
      rgba(7, 12, 23, 0.52)
    ),
    url("../images/landscape.png") center/cover;
  padding: 35px;
}
.auth-brand {
  align-self: flex-start;
  font-size: 20px;
}
.auth-tagline {
  margin: auto 0;
  text-align: center;
  padding: 45px 0;
}
.auth-wave {
  height: 88px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.auth-wave > .brand-mark {
  width: 65px;
  height: 65px;
  gap: 6px;
}
.auth-wave > .brand-mark i {
  width: 6px;
}
.auth-wave > .brand-mark i:nth-child(1),
.auth-wave > .brand-mark i:nth-child(5) {
  height: 17px;
}
.auth-wave > .brand-mark i:nth-child(2) {
  height: 41px;
}
.auth-wave > .brand-mark i:nth-child(3) {
  height: 59px;
}
.auth-wave > .brand-mark i:nth-child(4) {
  height: 34px;
}
.auth-wave > span:last-child {
  display: none;
}
.auth-tagline h1 {
  font-size: 44px;
  letter-spacing: -1px;
  margin: 10px 0 17px;
  text-shadow: 0 2px 24px rgba(108, 49, 167, 0.4);
}
.auth-tagline p {
  font-size: 16px;
  color: #e0dbea;
  line-height: 1.7;
}
.auth-visual-caption {
  font-size: 12px;
  color: #cec2dc;
  margin-bottom: 2px;
}
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 265px;
  max-width: 100%;
  margin: 42px auto 0;
}
.welcome-actions .button {
  min-height: 46px;
}
.auth-layout:has(.auth-form-panel[hidden]) {
  grid-template-columns: 1fr;
  max-width: 560px;
}
.auth-form-panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 54px 60px;
  background:
    radial-gradient(
      ellipse at 100% 0,
      rgba(61, 37, 104, 0.12),
      transparent 65%
    ),
    #091018;
}
.auth-back {
  position: absolute;
  left: 24px;
  top: 22px;
  color: #9492aa;
}
.auth-form-inner {
  width: 100%;
  max-width: 380px;
  margin: auto;
}
.auth-intro .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #af8acd;
  margin-bottom: 12px;
}
.auth-intro h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
}
.auth-intro .muted {
  font-size: 12px;
  margin-top: 8px;
}
.auth-tabs {
  margin: 28px 0 23px;
  border-radius: 22px;
  background: #111925;
}
.auth-tabs .tab {
  min-height: 36px;
  border-radius: 18px;
  font-size: 12px;
  padding: 7px;
}
.auth-tabs .tab.is-active {
  background: var(--gradient);
  box-shadow: 0 0 20px rgba(133, 56, 215, 0.16);
}
.auth-form-inner .form-label {
  font-size: 12px;
  margin-top: 18px;
}
.auth-form-inner .form-input {
  font-size: 12px;
  height: 45px;
}
.password-field {
  position: relative;
}
.password-field .form-input {
  padding-right: 45px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  color: #9c94ae;
}
.password-toggle .icon {
  width: 19px;
  height: 19px;
}
.auth-utility {
  display: flex;
  justify-content: flex-end;
  min-height: 35px;
  align-items: center;
}
.auth-utility .text-button {
  font-size: 11px;
}
.auth-submit {
  width: 100%;
  margin-top: 7px;
  min-height: 46px;
}
.form-message {
  font-size: 12px;
  color: #f4acc7;
  margin-bottom: 10px;
  background: rgba(118, 39, 71, 0.15);
  padding: 10px 12px;
  border: 1px solid rgba(198, 92, 131, 0.2);
  border-radius: 8px;
  line-height: 1.5;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #9998ae;
  margin: 24px 0 17px;
  white-space: nowrap;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #0b131d;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.social-button:hover {
  background: #1a1828;
  border-color: #9565c6;
}
.social-button .icon {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke-width: 1;
}
.social-google span {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  background: conic-gradient(
    #4285f4 0 27%,
    #34a853 27% 43%,
    #fbbc05 43% 60%,
    #ea4335 60% 78%,
    #4285f4 78%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.social-vk span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: white;
  background: #2589e9;
  border-radius: 6px;
  font-size: 16px;
  letter-spacing: -1px;
  font-weight: bold;
}
.auth-bottom {
  text-align: center;
  font-size: 10px;
  color: #626b80;
  margin-top: 27px;
}
html[data-theme="amethyst"] {
  --bg: #110d1b;
  --surface: #1b1529;
  --surface-soft: #251b36;
  --border: rgba(194, 145, 228, 0.17);
  --accent: #de76ff;
  --accent-deep: #913cff;
  --gradient: linear-gradient(110deg, #d14eea, #8d3ef3);
}
html[data-theme="amethyst"] .sidebar {
  background: linear-gradient(160deg, #170f22, #100c1b);
}
html[data-theme="amethyst"] .queue-panel,
html[data-theme="amethyst"] .settings-card,
html[data-theme="amethyst"] .favorites-card {
  background: linear-gradient(140deg, #1b1429f2, #120f1cf7);
}
html[data-theme="amethyst"] .player {
  background: linear-gradient(130deg, #20152df5, #140e20fa);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .topbar {
    padding-left: 48px;
    padding-right: 48px;
  }
  #main-content {
    padding-left: 48px;
    padding-right: 48px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .home-grid {
    gap: 28px;
  }
  .featured-track,
  .queue-panel {
    height: 445px;
  }
  .queue-row {
    min-height: 69px;
  }
  .queue-list .cover {
    width: 52px;
    height: 52px;
  }
  .queue-panel {
    padding: 23px 26px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .track-title {
    font-size: 14px;
  }
  .track-artist {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 190px;
  }
  .sidebar {
    padding: 28px 13px 22px;
  }
  .sidebar > .brand {
    padding-left: 7px;
    font-size: 20px;
    gap: 9px;
  }
  .nav-link {
    padding: 12px;
    gap: 12px;
    font-size: 12px;
  }
  .sidebar-footer {
    font-size: 9px;
    padding-left: 3px;
  }
  .topbar {
    padding: 0 27px;
    height: 82px;
    gap: 18px;
  }
  #main-content {
    padding-left: 27px;
    padding-right: 27px;
  }
  .hero-copy {
    padding-left: 4px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .mood-list {
    gap: 7px;
    margin-top: 22px;
  }
  .mood-chip {
    font-size: 10px;
    padding: 8px 11px;
    min-height: 36px;
  }
  .home-grid {
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) minmax(265px, 1fr);
  }
  .featured-track,
  .queue-panel {
    height: 360px;
  }
  .queue-panel {
    padding: 17px 16px 12px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .refresh-button {
    font-size: 10px;
  }
  .queue-row {
    gap: 9px;
    min-height: 55px;
  }
  .queue-row .cover {
    width: 41px;
    height: 41px;
  }
  .queue-row .track-select {
    gap: 10px;
  }
  .queue-row .track-title {
    font-size: 12px;
  }
  .queue-row .track-artist {
    font-size: 10px;
  }
  .queue-caption {
    font-size: 9px;
  }
  .featured-meta {
    bottom: 20px;
    left: 20px;
    right: 17px;
  }
  .featured-meta h2 {
    font-size: 23px;
  }
  .player {
    left: calc(var(--sidebar-width) + 17px);
    right: 17px;
    bottom: 17px;
    gap: 15px;
    padding: 12px 17px;
    grid-template-columns: minmax(150px, 1fr) minmax(230px, 1.8fr) minmax(
        135px,
        0.8fr
      );
  }
  .player-favorite {
    display: none;
  }
  .player-track .cover {
    width: 48px;
    height: 48px;
  }
  .player-track .track-title {
    font-size: 12px;
  }
  .player-track .track-artist {
    font-size: 10px;
  }
  .player-volume {
    gap: 5px;
  }
  .player-volume .range {
    max-width: 90px;
  }
  .player-volume .icon-button {
    width: 30px;
  }
  .playback-controls {
    gap: 14px;
  }
  .player-volume .queue-toggle {
    margin-left: 2px;
  }
  .settings-card {
    padding: 22px 25px;
  }
  .settings-tabs .tab {
    padding: 10px;
    font-size: 11px;
  }
  .auth-form-panel {
    padding-left: 42px;
    padding-right: 42px;
  }
}
@media (min-width: 681px) and (max-width: 980px) {
  :root {
    --sidebar-width: 82px;
  }
  .sidebar {
    padding: 28px 10px;
    align-items: center;
  }
  .sidebar > .brand {
    padding-left: 0;
  }
  .sidebar > .brand > span:last-child,
  .nav-link > span,
  .sidebar-footer {
    display: none;
  }
  .sidebar-nav {
    width: 100%;
    margin-top: 33px;
    gap: 12px;
  }
  .nav-link {
    padding: 14px;
    justify-content: center;
    min-height: 54px;
  }
  .nav-link .icon {
    width: 24px;
    height: 24px;
  }
  .brand-mark {
    width: 34px;
  }
  .topbar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .topbar-actions {
    gap: 10px;
  }
  #main-content {
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero h1 {
    font-size: 33px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .mood-list {
    gap: 7px;
  }
  .mood-chip {
    padding: 8px 12px;
    font-size: 10px;
  }
  .home-grid {
    gap: 17px;
    grid-template-columns: minmax(0, 1fr) minmax(255px, 1fr);
  }
  .featured-track,
  .queue-panel {
    height: 344px;
  }
  .featured-meta h2 {
    font-size: 21px;
  }
  .featured-kicker {
    font-size: 8px;
  }
  .featured-meta p {
    font-size: 13px;
  }
  .featured-meta {
    left: 17px;
    bottom: 17px;
    right: 12px;
  }
  .featured-heart .icon {
    width: 23px;
    height: 23px;
  }
  .queue-panel {
    padding: 17px 14px 10px;
  }
  .queue-row {
    min-height: 51px;
  }
  .player {
    grid-template-columns: minmax(135px, 1fr) minmax(220px, 1.7fr) minmax(
        110px,
        0.7fr
      );
    gap: 12px;
    min-height: 100px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .player-track {
    gap: 9px;
  }
  .player-track .cover {
    width: 42px;
    height: 42px;
  }
  .player-track .track-title {
    font-size: 11px;
  }
  .player-track .track-artist {
    font-size: 10px;
  }
  .player-volume .range {
    max-width: 65px;
  }
  .player-volume .queue-toggle {
    width: 27px;
  }
  .player-volume .icon-button {
    width: 27px;
  }
  .player-volume .icon {
    width: 19px;
    height: 19px;
  }
  .playback-controls {
    gap: 10px;
  }
  .playback-controls .icon-button {
    width: 32px;
    height: 34px;
  }
  .play-button {
    width: 44px;
    height: 44px;
  }
  .progress-row {
    gap: 8px;
  }
  .time-current,
  .time-total {
    font-size: 9px;
  }
  .settings-card {
    padding: 20px;
  }
  .settings-card .chip {
    font-size: 11px;
    padding: 7px 12px;
  }
  .page-heading {
    margin-top: 12px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .favorites-card {
    padding: 20px;
  }
  .favorite-row {
    gap: 12px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .favorite-row .track-title {
    font-size: 13px;
  }
  .auth-body {
    padding: 24px;
  }
  .auth-layout {
    grid-template-columns: 0.9fr 1fr;
    min-height: 660px;
  }
  .auth-visual {
    min-height: 660px;
    padding: 26px;
  }
  .auth-form-panel {
    padding: 50px 28px;
  }
  .auth-tagline h1 {
    font-size: 36px;
  }
  .auth-tagline p {
    font-size: 13px;
  }
  .auth-intro h1 {
    font-size: 25px;
  }
  .auth-visual-caption {
    font-size: 10px;
  }
}
@media (max-width: 680px) {
  :root {
    --sidebar-width: 0px;
    --radius: 14px;
  }
  html {
    scroll-padding-bottom: 100px;
  }
  body {
    font-size: 12px;
    background: #070e15;
  }
  h1 {
    font-size: 25px;
  }
  .sidebar {
    display: none;
  }
  .app-content {
    margin-left: 0;
    min-height: 100dvh;
  }
  .app-content::before {
    height: 300px;
    background-position: center 20%;
    opacity: 0.42;
  }
  .topbar {
    height: 70px;
    gap: 12px;
    padding: 12px 20px;
  }
  .desktop-back,
  .notification-button {
    display: none;
  }
  .mobile-brand {
    display: inline-flex;
    font-size: 16px;
    gap: 8px;
  }
  .mobile-brand .brand-mark {
    width: 24px;
    height: 26px;
    gap: 3px;
  }
  .mobile-brand .brand-mark i {
    width: 3px;
  }
  .mobile-brand .brand-mark i:nth-child(1),
  .mobile-brand .brand-mark i:nth-child(5) {
    height: 7px;
  }
  .mobile-brand .brand-mark i:nth-child(2) {
    height: 17px;
  }
  .mobile-brand .brand-mark i:nth-child(3) {
    height: 25px;
  }
  .mobile-brand .brand-mark i:nth-child(4) {
    height: 14px;
  }
  .topbar-actions {
    gap: 9px;
    margin-left: auto;
  }
  .topbar-search-button {
    display: inline-flex;
    height: 31px;
    width: 31px;
  }
  .topbar-search-button .icon {
    width: 20px;
    height: 20px;
  }
  .avatar-button {
    padding: 2px;
  }
  .avatar {
    height: 28px;
    width: 28px;
  }
  #main-content {
    padding: 3px 20px 92px;
  }
  .hero-copy {
    padding: 0 1px;
  }
  .hero .eyebrow {
    display: none;
  }
  .hero h1 {
    font-size: 24px;
    line-height: 1.17;
    letter-spacing: -0.3px;
  }
  .hero-subtitle {
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.5;
  }
  .mood-list {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    margin: 16px -20px 18px;
    padding: 0 20px 6px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .mood-list::-webkit-scrollbar {
    display: none;
  }
  .mood-chip {
    flex: none;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 10px;
    scroll-snap-align: center;
  }
  .mood-chip .icon {
    width: 13px;
    height: 13px;
  }
  .home-grid {
    display: block;
  }
  .featured-track {
    height: auto;
    aspect-ratio: 1.18;
    border-radius: 14px;
    background-position: center;
    box-shadow: 0 10px 30px #0003;
  }
  .featured-track::after {
    background: linear-gradient(
      0deg,
      rgba(6, 10, 18, 0.97),
      rgba(6, 10, 18, 0.06) 47%,
      transparent 75%
    );
  }
  .featured-meta {
    bottom: 16px;
    left: 15px;
    right: 12px;
    align-items: center;
  }
  .featured-kicker {
    display: none;
  }
  .featured-meta h2 {
    font-size: 20px;
    letter-spacing: -0.4px;
  }
  .featured-meta p {
    font-size: 12px;
    margin-top: 2px;
  }
  .featured-heart {
    width: 34px;
    height: 34px;
  }
  .featured-heart .icon {
    width: 24px;
    height: 24px;
  }
  .featured-play {
    display: none;
  }
  .queue-panel {
    display: none;
  }
  .queue-panel.is-mobile-open {
    display: flex;
    position: fixed;
    z-index: 65;
    inset: 66px 14px calc(76px + env(safe-area-inset-bottom));
    height: auto;
    padding: 23px 18px 18px;
    background: linear-gradient(145deg, #111827, #080f17);
    border-color: rgba(165, 130, 202, 0.3);
    box-shadow:
      0 0 0 100vmax #030710c4,
      0 10px 50px #0006;
    border-radius: 16px;
  }
  .queue-panel.is-mobile-open .section-heading {
    margin-bottom: 15px;
  }
  .queue-panel.is-mobile-open .section-heading h2 {
    font-size: 16px;
  }
  .queue-panel.is-mobile-open .refresh-button {
    font-size: 11px;
  }
  .queue-panel.is-mobile-open .queue-list {
    flex: 1;
    overflow-y: auto;
  }
  .queue-panel.is-mobile-open .queue-row {
    min-height: 71px;
    padding: 10px 0;
    gap: 12px;
  }
  .queue-panel.is-mobile-open .cover {
    height: 44px;
    width: 44px;
  }
  .queue-panel.is-mobile-open .track-title {
    font-size: 13px;
  }
  .queue-panel.is-mobile-open .track-artist {
    font-size: 11px;
  }
  .queue-panel.is-mobile-open .queue-caption {
    margin-top: auto;
    padding-top: 25px;
  }
  .player {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: -79px 20px 90px;
    max-width: none;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    border-radius: 0;
    gap: 15px;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 30;
  }
  .player-track {
    display: none;
  }
  .player-center {
    width: 100%;
    gap: 13px;
  }
  .progress-row {
    position: relative;
    gap: 0;
    height: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .progress-range {
    position: absolute;
    top: 2px;
    left: 1px;
    width: calc(100% - 2px);
    height: 4px;
  }
  .time-current,
  .time-total {
    position: absolute;
    top: 14px;
    font-size: 10px;
    line-height: 1.2;
    color: #b7aacd;
  }
  .time-current {
    left: 1px;
  }
  .time-total {
    right: 1px;
  }
  .progress-range::-webkit-slider-thumb {
    opacity: 1;
    width: 6px;
    height: 6px;
    background: #c863f5;
  }
  .progress-range::-moz-range-thumb {
    width: 6px;
    height: 6px;
    background: #c863f5;
  }
  .playback-controls {
    justify-content: space-between;
    gap: 15px;
    padding: 0 5px;
  }
  .playback-controls .icon-button {
    width: 36px;
    height: 36px;
  }
  .playback-controls .icon {
    width: 23px;
    height: 23px;
  }
  .play-button {
    width: 59px;
    height: 59px;
    box-shadow: 0 0 30px rgba(143, 47, 235, 0.36);
  }
  .play-button .icon {
    width: 29px;
    height: 29px;
  }
  .player-volume {
    width: 100%;
    gap: 10px;
    position: relative;
    padding: 1px 3px 0;
  }
  .player-volume .icon-button {
    width: 30px;
    height: 28px;
  }
  .player-volume .icon {
    width: 19px;
    height: 19px;
  }
  .player-volume .range {
    max-width: 160px;
    height: 4px;
  }
  .player-volume .range::-webkit-slider-thumb {
    width: 8px;
    height: 8px;
  }
  .player-volume .range::-moz-range-thumb {
    width: 8px;
    height: 8px;
  }
  .queue-toggle {
    margin-left: auto !important;
    color: #bd87e4;
  }
  .mobile-nav {
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    min-height: 70px;
    border-top: 1px solid rgba(140, 141, 170, 0.13);
    background: rgba(7, 14, 21, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: 0 -8px 25px rgba(4, 8, 15, 0.23);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 80px;
    color: #aeb0c7;
    min-height: 43px;
    font-size: 10px;
  }
  .mobile-nav .icon {
    height: 22px;
    width: 22px;
  }
  .mobile-nav a.is-active {
    color: #ba56f5;
  }
  .mobile-nav a.is-active .icon {
    filter: drop-shadow(0 0 7px rgba(172, 53, 255, 0.35));
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
    margin: 15px 0 23px;
  }
  .page-heading h1 {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.4px;
  }
  .page-heading .muted {
    font-size: 11px;
    margin-top: 5px;
    line-height: 1.5;
  }
  .mobile-page-back {
    display: flex;
    width: 25px;
    height: 29px;
    margin-left: -4px;
  }
  .mobile-page-back .icon {
    width: 21px;
    height: 21px;
  }
  .settings-page,
  .favorites-page {
    max-width: none;
  }
  .settings-card,
  .favorites-card {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  .settings-tabs {
    gap: 2px;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 9px;
  }
  .settings-tabs::-webkit-scrollbar {
    display: none;
  }
  .settings-tabs .tab {
    font-size: 10px;
    padding: 8px 7px;
    min-height: 34px;
    flex: 1;
  }
  .settings-tabs .tab {
    flex: none;
    min-width: 77px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .settings-tabs .tab[data-tab="music"] {
    display: flex;
    min-width: 108px;
  }
  .settings-tabs .tab.is-active {
    background: linear-gradient(130deg, #6025b5, #2e1764);
  }
  .settings-tabs .tab.is-active::after {
    bottom: -3px;
    left: 8%;
    right: 8%;
  }
  .setting-section {
    margin-top: 24px;
    padding-bottom: 22px;
  }
  .setting-section legend {
    font-size: 13px;
    margin-bottom: 13px;
  }
  .section-description {
    margin: -3px 0 13px;
    gap: 8px;
  }
  .section-description p {
    font-size: 10px;
    max-width: 240px;
  }
  .section-description p span {
    display: none;
  }
  .section-description .text-button {
    font-size: 10px;
  }
  .chip-list {
    gap: 8px;
  }
  .settings-card .chip {
    padding: 7px 11px;
    min-height: 33px;
    font-size: 10px;
    gap: 5px;
  }
  .settings-card .chip .icon {
    width: 13px;
    height: 13px;
  }
  .genre-list:not(.is-expanded) .chip:nth-child(n + 7) {
    display: none;
  }
  .show-genres {
    display: inline-flex;
    margin-top: 12px;
    font-size: 10px;
  }
  .language-list {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    margin-right: -20px;
    padding-right: 20px;
    scrollbar-width: none;
  }
  .language-list::-webkit-scrollbar {
    display: none;
  }
  .language-list .chip {
    padding: 7px 10px;
    flex: none;
    font-size: 9px;
  }
  .settings-moods .chip {
    font-size: 9px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .save-settings {
    margin-top: 20px;
    font-size: 12px;
    min-height: 45px;
  }
  .section-note {
    font-size: 11px;
    line-height: 1.6;
  }
  .form-label {
    font-size: 12px;
  }
  .form-input {
    font-size: 12px;
    min-height: 43px;
    padding: 11px 12px;
  }
  .provider-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .provider-option {
    padding: 13px;
  }
  .provider-option strong {
    font-size: 12px;
  }
  .provider-option small {
    font-size: 10px;
  }
  .theme-choices {
    gap: 12px;
  }
  .theme-choice {
    padding: 10px;
  }
  .theme-swatch {
    height: 90px;
  }
  .theme-choice strong {
    font-size: 12px;
  }
  .theme-choice small {
    font-size: 10px;
  }
  .toggle-row strong {
    font-size: 12px;
  }
  .toggle-row small {
    font-size: 10px;
  }
  .track-count {
    display: none;
  }
  .favorites-toolbar {
    margin-bottom: 13px;
    gap: 10px;
  }
  .favorites-toolbar .search-field {
    height: 40px;
    font-size: 11px;
    max-width: none;
  }
  .favorites-toolbar .search-field input {
    font-size: 11px;
  }
  .favorites-play {
    height: 39px;
    min-height: 39px;
    width: 40px;
    padding: 10px;
    flex: none;
    border-radius: 10px;
  }
  .favorites-play span {
    display: none;
  }
  .favorites-play .icon {
    height: 17px;
    width: 17px;
  }
  .favorites-table-head {
    display: none;
  }
  .favorite-row {
    min-height: 70px;
    padding: 10px 0;
    gap: 8px;
    border-radius: 0;
  }
  .favorite-row .cover {
    height: 46px;
    width: 46px;
    border-radius: 5px;
  }
  .favorite-row .track-select {
    gap: 11px;
  }
  .favorite-row .track-title {
    font-size: 12px;
  }
  .favorite-row .track-artist {
    font-size: 10px;
  }
  .favorite-row > .track-duration {
    display: none;
  }
  .favorite-button {
    height: 32px;
    width: 28px;
  }
  .favorite-button .icon {
    width: 20px;
    height: 20px;
  }
  .track-menu-button {
    height: 32px;
    width: 22px;
  }
  .track-menu-button .icon {
    height: 18px;
    width: 18px;
  }
  .favorites-list {
    margin-top: 4px;
  }
  .empty-state {
    padding: 42px 15px;
  }
  .empty-state h2 {
    font-size: 16px;
  }
  .empty-state p {
    font-size: 12px;
  }
  body:has(#page-settings:not([hidden])) .topbar,
  body:has(:is(#page-favorites, #page-search):not([hidden])) .topbar {
    height: 15px;
    padding: 0;
    visibility: hidden;
  }
  body:has(#page-settings:not([hidden])) .player,
  body:has(:is(#page-favorites, #page-search):not([hidden])) .player {
    display: none;
  }
  .toast-region {
    bottom: calc(85px + env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
  }
  .toast {
    font-size: 12px;
    padding: 12px 15px;
    max-width: 100%;
  }
  .profile-dialog {
    padding: 37px 25px 25px;
  }
  .auth-body {
    display: block;
    padding: 0;
    background: #070e15;
  }
  .auth-layout {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-visual {
    display: none;
  }
  .auth-form-panel {
    flex: 1;
    padding: 91px 27px 36px;
    min-height: 100dvh;
    align-items: center;
    background:
      linear-gradient(
        0deg,
        #071015 0%,
        rgba(5, 12, 20, 0.94) 45%,
        rgba(5, 12, 22, 0.75) 70%,
        rgba(5, 10, 23, 0.6)
      ),
      url("../images/landscape.png") center top/auto 100%;
  }
  .auth-back {
    top: calc(21px + env(safe-area-inset-top));
    left: 18px;
  }
  .auth-form-inner {
    max-width: 370px;
  }
  .auth-intro .eyebrow {
    display: none;
  }
  .auth-intro h1 {
    font-size: 29px;
    line-height: 1.2;
  }
  .auth-intro .muted {
    font-size: 11px;
    margin-top: 8px;
  }
  .auth-tabs {
    margin: 22px 0 24px;
  }
  .auth-tabs .tab {
    font-size: 11px;
    min-height: 34px;
  }
  .auth-form-inner .form-label {
    font-size: 12px;
    margin-top: 19px;
  }
  .auth-form-inner .form-input {
    height: 46px;
    font-size: 12px;
    background: rgba(20, 28, 39, 0.9);
  }
  .auth-utility {
    min-height: 35px;
  }
  .auth-submit {
    min-height: 45px;
  }
  .auth-divider {
    margin-top: 24px;
  }
  .auth-bottom {
    margin-top: 28px;
  }
  .auth-layout:has(.auth-form-panel[hidden]) {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
  }
  .auth-layout:has(.auth-form-panel[hidden]) .auth-visual {
    display: flex;
    min-height: 100dvh;
    padding: 30px 28px calc(34px + env(safe-area-inset-bottom));
    background:
      linear-gradient(
        0deg,
        rgba(4, 11, 17, 0.15),
        transparent 45%,
        rgba(4, 9, 18, 0.3)
      ),
      url("../images/landscape.png") center/cover;
  }
  .auth-layout:has(.auth-form-panel[hidden]) .auth-brand {
    visibility: hidden;
  }
  .auth-tagline {
    padding: 28px 0 0;
    margin: auto 0;
    width: 100%;
    transform: translateY(12px);
  }
  .auth-tagline h1 {
    font-size: 42px;
    margin: 16px 0 19px;
  }
  .auth-tagline p {
    font-size: 14px;
    line-height: 1.7;
  }
  .auth-wave {
    height: 78px;
  }
  .welcome-actions {
    width: 100%;
    max-width: 330px;
    margin-top: 60px;
    gap: 14px;
  }
  .welcome-actions .button {
    min-height: 46px;
    font-size: 12px;
    border-radius: 13px;
  }
  .auth-visual-caption {
    display: none;
  }
}
@media (max-width: 370px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  #main-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero-subtitle {
    font-size: 10px;
  }
  .mood-list {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .featured-meta h2 {
    font-size: 18px;
  }
  .player {
    margin-left: 16px;
    margin-right: 16px;
  }
  .settings-card .chip {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 9px;
  }
  .settings-tabs .tab {
    font-size: 9px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .language-list {
    gap: 5px;
    margin-right: -16px;
    padding-right: 16px;
  }
  .language-list .chip {
    font-size: 8px;
    padding-left: 9px;
    padding-right: 9px;
  }
  .settings-moods .chip {
    font-size: 8px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .favorite-row .track-title {
    font-size: 11px;
  }
  .favorite-row .track-select {
    gap: 9px;
  }
  .favorite-row .cover {
    height: 42px;
    width: 42px;
  }
  .favorite-row {
    gap: 6px;
    min-height: 65px;
  }
  .auth-form-panel {
    padding-left: 23px;
    padding-right: 23px;
  }
  .auth-intro h1 {
    font-size: 26px;
  }
  .auth-tagline h1 {
    font-size: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
html[data-reduced-motion="true"] {
  scroll-behavior: auto;
}
html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after {
  animation: none !important;
  transition: none !important;
}
/* State details shared with the presentation controller. */
.range {
  background: linear-gradient(
    to right,
    #ae47ee var(--range-fill, var(--range-progress)),
    #222b3b var(--range-fill, var(--range-progress))
  );
}
.cover-less {
  background-image:
    radial-gradient(
      ellipse at 35% 35%,
      #cb53c875 0 12%,
      #5839b3a6 14% 24%,
      transparent 30%
    ),
    url("../images/landscape.png");
  background-position: center;
  filter: hue-rotate(45deg) saturate(1.7);
}
.refresh-button.is-refreshing .icon {
  animation: refresh-turn 0.55s ease-in-out;
}
.featured-heart.is-favorite {
  color: #dd8cf7;
}
.player-favorite.is-favorite .icon {
  fill: currentColor;
  stroke-width: 1;
}
.track-select:hover .track-title {
  color: #e4b6ff;
}
@keyframes refresh-turn {
  to {
    transform: rotate(360deg);
  }
}

/* Auth main must not inherit app-content spacing. */
#main-content.auth-layout {
  padding: 0;
  max-width: 1070px;
}
#main-content.auth-layout:has(.auth-form-panel[hidden]) {
  max-width: 560px;
}
@media (max-width: 680px) {
  #main-content.auth-layout,
  #main-content.auth-layout:has(.auth-form-panel[hidden]) {
    max-width: none;
  }
}

/* Live search and account states. */
button:disabled {
  cursor: default;
  opacity: 0.5;
}
.session-status {
  color: var(--text-muted, #b3bbce);
  margin: 0 0 20px;
  font-size: 13px;
}
.search-results .favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 55px 42px 135px;
  gap: 12px;
}
.search-results .track-extra {
  color: #8e9bb3;
  font-size: 10px;
  margin-top: 2px;
}
.search-results .add-music-button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 11px;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
#session-status a {
  white-space: nowrap;
}
@media (max-width: 680px) {
  .search-results .favorite-row {
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
    padding: 12px 0;
  }
  .search-results .favorite-row > .track-duration {
    display: none;
  }
  .search-results .add-music-button {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 30px;
  }
  .search-results .track-extra {
    font-size: 9px;
  }
  .session-status {
    font-size: 12px;
    line-height: 1.8;
  }
}

.track-cover {
  background: linear-gradient(145deg, #342050, #18243b);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.track-cover > .icon {
  color: #bc82ef;
  width: 24px;
  height: 24px;
}
.track-cover > img {
  position: absolute;
  inset: 0;
}

/* Real audio state is driven by HTMLAudioElement events. */
.playback-status {
  margin: 0;
  min-height: 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.playback-status:empty {
  display: none;
}
.player.is-loading .play-button {
  animation: playback-pulse 1s ease-in-out infinite alternate;
}
.playback-controls [aria-pressed="true"] {
  color: #d985ff;
}
.queue-row .track-duration {
  white-space: nowrap;
  font-size: 11px;
}
@keyframes playback-pulse {
  to {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .player.is-loading .play-button {
    animation: none;
  }
}
@media (max-width: 680px) {
  .favorites-toolbar {
    flex-wrap: wrap;
  }
  .favorites-toolbar .search-field {
    flex-basis: 100%;
  }
  .favorites-play {
    margin-left: 0;
  }
  body.has-track:has(:is(#page-favorites, #page-search):not([hidden]))
    #main-content,
  body.has-track:has(#page-settings:not([hidden])) #main-content {
    padding-bottom: 255px;
  }
  body.has-track:has(:is(#page-favorites, #page-search):not([hidden])) .player,
  body.has-track:has(#page-settings:not([hidden])) .player {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(9, 14, 24, 0.97);
    gap: 8px;
    backdrop-filter: blur(12px);
  }
  body.has-track:has(:is(#page-favorites, #page-search):not([hidden]))
    .player-track,
  body.has-track:has(#page-settings:not([hidden])) .player-track {
    display: flex;
    width: 100%;
  }
  body.has-track:has(:is(#page-favorites, #page-search):not([hidden]))
    .player-volume,
  body.has-track:has(#page-settings:not([hidden])) .player-volume {
    display: none;
  }
  body.has-track:has(:is(#page-favorites, #page-search):not([hidden]))
    .player-center,
  body.has-track:has(#page-settings:not([hidden])) .player-center {
    gap: 5px;
  }
}

/* Dedicated search page and the current track across all lists. */
.topbar-spacer {
  flex: 1;
}
.music-search-field {
  width: 100%;
  max-width: 760px;
  height: 48px;
}
.music-search-field input {
  min-width: 0;
  font-size: 14px;
}
.music-search-field kbd {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
}
.search-library #search-status {
  margin: 16px 0 12px;
  font-size: 13px;
}
.search-library #search-more {
  display: flex;
  margin: 22px auto 0;
}
.favorite-row.is-current,
.queue-row.is-current {
  background: linear-gradient(
    90deg,
    rgba(173, 67, 238, 0.2),
    rgba(103, 50, 170, 0.08)
  );
  box-shadow: inset 3px 0 0 var(--accent);
}
.favorite-row.is-current .track-title,
.queue-row.is-current .track-title {
  color: #e3afff;
}
.track-state {
  font-size: 10px;
  font-weight: 600;
  color: #d591ff;
  line-height: 1.5;
  margin-top: 2px;
}
.track-playing-mark {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(11, 8, 24, 0.65);
}
.is-playing > .track-select .track-playing-mark {
  display: flex;
}
.track-playing-mark i {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #e1a2ff;
  transform-origin: bottom;
  animation: playing-bar 0.8s ease-in-out infinite alternate;
}
.track-playing-mark i:nth-child(2) {
  animation-delay: -0.35s;
}
.track-playing-mark i:nth-child(3) {
  animation-delay: -0.6s;
}
@keyframes playing-bar {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .track-playing-mark i {
    animation: none;
  }
  .track-playing-mark i:nth-child(2) {
    height: 12px;
  }
}
@media (max-width: 680px) {
  .music-search-field {
    height: 44px;
    max-width: none;
  }
  .music-search-field input {
    font-size: 12px;
  }
  .music-search-field kbd {
    display: none;
  }
  .search-library #search-status {
    font-size: 12px;
  }
  .favorite-row.is-current,
  .queue-row.is-current {
    border-radius: 7px;
    box-shadow: inset 2px 0 0 var(--accent);
  }
  .favorite-row.is-current .track-select {
    padding-left: 6px;
  }
  .mobile-nav a {
    width: auto;
    flex: 1;
    min-width: 0;
  }
}

/* Live recommendation controls and write-only provider credentials. */
.llm-status {
  min-height: 18px;
  margin: 14px 0 6px;
  font-size: 12px;
  line-height: 1.5;
}
.llm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 12px;
}
.token-help {
  margin: 12px 0;
  padding: 12px 14px;
  background: rgba(116, 91, 181, 0.09);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.token-help summary {
  color: var(--text);
  cursor: pointer;
}
.token-help ol {
  padding-left: 20px;
  margin-top: 10px;
}
.token-help a {
  color: #c785ff;
}
.token-help code {
  font-size: 11px;
}
.token-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--muted);
}
[data-account-settings]:disabled {
  opacity: 0.65;
}
@media (max-width: 600px) {
  .llm-actions {
    font-size: 11px;
    gap: 8px 14px;
  }
  .token-help {
    padding: 10px;
  }
}

.queue-retry {
  font-size: 11px;
  white-space: nowrap;
}
.queue-error {
  color: #e7a0b9;
  font-size: 10px;
}

/* Source selection and discreet provenance share the track renderer. */
.search-sources {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-sources .chip {
  min-height: 34px;
}
.track-copy .track-extra {
  color: #8e9bb3;
  font-size: 10px;
  line-height: 1.4;
  margin-top: 2px;
}
.track-source {
  color: #929bad;
  font-size: 10px;
  font-weight: 400;
}

.search-pagination {
  position: relative;
}
.search-next-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
.search-sentinel {
  height: 1px;
}


/* Yandex discovery collections use the same content width and shared player. */
.yandex-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.yandex-browse-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 14px; }
.yandex-browse-heading h2 { flex: 1; min-width: 160px; font-size: 24px; }
.yandex-section { margin: 26px 0; }
.yandex-section h2 { font-size: 20px; margin-bottom: 16px; }
.yandex-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 18px; }
.yandex-card { min-width: 0; text-align: left; padding: 12px; color: var(--text); background: rgba(17,24,37,.75); border: 1px solid var(--border); border-radius: 16px; cursor: pointer; }
.yandex-card:hover { border-color: var(--accent); background: rgba(71,32,102,.25); }
.yandex-card-cover { aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #292346, #581b72); color: #eee; font-size: 48px; margin-bottom: 12px; }
.yandex-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.yandex-card strong, .yandex-card span { display: block; overflow-wrap: anywhere; }
.yandex-card strong { font-size: 14px; line-height: 1.4; }
.yandex-card span { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
#yandex-browse-more { margin-top: 20px; }
@media (max-width: 680px) {
  .yandex-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .yandex-card { padding: 9px; }
  .yandex-tabs { gap: 6px; margin-bottom: 20px; }
  .yandex-tabs .chip { padding: 8px 10px; font-size: 11px; }
  .yandex-browse-heading h2 { font-size: 20px; }
  body:has(#page-yandex:not([hidden])) .topbar { display: none; }
  body.has-track:has(#page-yandex:not([hidden])) #main-content { padding-bottom: 190px; }
}
