/* =========================================================
   璃猫点歌簿 · 基础样式
   ========================================================= */

:root {
  --ink: #452631;
  --ink-soft: #6e4a57;
  --muted: #9a737f;
  --faint: #b997a1;
  --rose: #c95278;
  --rose-deep: #923d58;
  --rose-light: #f9dce5;
  --blush: #fff3f6;
  --paper: rgba(255, 250, 246, 0.82);
  --paper-solid: #fffaf6;
  --line: rgba(145, 79, 99, 0.14);
  --line-strong: rgba(145, 79, 99, 0.23);
  --shadow-sm: 0 8px 24px rgba(107, 47, 68, 0.08);
  --shadow-md: 0 24px 65px rgba(107, 47, 68, 0.13);
  --shadow-lg: 0 40px 100px rgba(107, 47, 68, 0.18);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --latin: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bg-image: url("assets/bg-limao.svg");
  --bg-overlay: 0.22;
  --bg-blur: 0px;
  --bg-position: center;
  --accent: #c95278;
  --accent-deep: #8e3b56;
  --accent-soft: #fde7ee;
  --accent-wash: #fff4f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: #f4dce5;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: #fffaf6;
  background: #c5587b;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

kbd,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid rgba(201, 82, 120, 0.75);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  color: #fff;
  background: var(--rose-deep);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Background ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #f4dce5;
}

.site-bg__image {
  position: absolute;
  inset: -24px;
  background-image: var(--bg-image);
  background-position: var(--bg-position);
  background-size: cover;
  filter: blur(var(--bg-blur));
  transform: scale(1.025);
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.site-bg__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 244, 0.18) 0%, rgba(255, 247, 242, 0.06) 42%, rgba(249, 231, 239, 0.3) 100%),
    radial-gradient(115% 85% at 12% 26%, rgba(255, 250, 247, 0.74) 0%, rgba(255, 250, 247, 0.26) 42%, transparent 72%),
    linear-gradient(0deg, rgba(75, 36, 50, calc(var(--bg-overlay) * 0.42)), rgba(75, 36, 50, calc(var(--bg-overlay) * 0.42))),
    linear-gradient(90deg, rgba(75, 36, 50, var(--bg-overlay)) 0%, rgba(75, 36, 50, calc(var(--bg-overlay) * 0.16)) 45%, rgba(75, 36, 50, 0) 72%);
  pointer-events: none;
}

.site-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.98' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.petals {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -8vh;
  width: 12px;
  height: 18px;
  border-radius: 70% 30% 65% 35%;
  background: linear-gradient(140deg, #f9bfd0, #e893ae);
  opacity: 0.46;
  animation: petal-fall var(--fall-duration, 18s) linear var(--fall-delay, 0s) infinite;
  transform: translate3d(0, 0, 0) rotate(var(--fall-rotate, 0deg));
}

.petal::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }
  45% {
    transform: translate3d(42px, 48vh, 0) rotate(180deg);
  }
  100% {
    transform: translate3d(-18px, 110vh, 0) rotate(380deg);
  }
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rose-deep);
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--small {
  gap: 9px;
  font-size: 9px;
  letter-spacing: 0.24em;
}

.eyebrow__line {
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow__note {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--rose);
  background: rgba(255, 250, 247, 0.64);
  border: 1px solid rgba(160, 82, 105, 0.22);
  border-radius: 50%;
  font-size: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fffaf6;
  background: linear-gradient(135deg, #cf5c80, #a94364);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 25px rgba(169, 67, 100, 0.22);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #d7678a, #9a3a5a);
  box-shadow: 0 16px 34px rgba(169, 67, 100, 0.3);
}

.btn--soft {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: rgba(174, 92, 116, 0.14);
}

.btn--soft:hover {
  background: #fbd5e1;
}

.btn--ghost {
  color: var(--ink-soft);
  background: rgba(255, 250, 246, 0.42);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--rose-deep);
  background: rgba(255, 250, 246, 0.85);
  border-color: rgba(183, 88, 116, 0.38);
}

.btn--lg {
  min-height: 52px;
  padding: 14px 25px;
  font-size: 14px;
}

.btn--sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
}

.icon-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 250, 246, 0.46);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  color: var(--rose-deep);
  background: rgba(255, 250, 246, 0.9);
  border-color: rgba(180, 84, 112, 0.3);
  transform: translateY(-1px);
}

.text-button {
  padding: 2px 0;
  color: var(--accent-deep);
  background: none;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.03em;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.text-button:hover {
  opacity: 1;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(137, 73, 92, 0.14), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 248, 243, 0.72);
  box-shadow: 0 12px 36px rgba(96, 44, 62, 0.07);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  width: min(1320px, calc(100% - 64px));
  height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--rose-deep);
  background: rgba(255, 249, 244, 0.62);
  border: 1px solid rgba(154, 78, 101, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.brand__mark svg {
  width: 27px;
  height: 27px;
}

.brand__name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.brand__name small {
  overflow: hidden;
  max-width: 200px;
  color: var(--muted);
  font-family: var(--latin);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 28px;
}

.main-nav > a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.main-nav > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.main-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__search {
  display: flex;
  height: 36px;
  padding: 0 13px;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  background: rgba(255, 250, 246, 0.46);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav__search:hover {
  background: rgba(255, 250, 246, 0.88);
  border-color: rgba(180, 84, 112, 0.3);
}

.nav__search svg {
  width: 15px;
  height: 15px;
}

.nav__search kbd {
  display: inline-grid;
  height: 19px;
  min-width: 39px;
  padding: 0 5px;
  place-items: center;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions__only-mobile {
  display: none;
}

.header-actions__random {
  margin-left: 3px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 64px));
  min-height: min(880px, 100vh);
  margin: 0 auto;
  padding: 166px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 14%;
  left: -6%;
  z-index: -1;
  width: 58%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 250, 247, 0.8) 0%, rgba(255, 248, 245, 0.3) 52%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  min-height: 640px;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 28px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: 12px;
}

.hero__copy > * {
  animation: hero-in 0.9s var(--ease) both;
}

.hero__copy > :nth-child(1) { animation-delay: 0.02s; }
.hero__copy > :nth-child(2) { animation-delay: 0.09s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4) { animation-delay: 0.23s; }
.hero__copy > :nth-child(5) { animation-delay: 0.3s; }
.hero__copy > :nth-child(6) { animation-delay: 0.37s; }

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  position: relative;
  display: flex;
  max-width: 100%;
  margin-top: 22px;
  align-items: flex-start;
  color: #422430;
  font-family: var(--serif);
  font-size: clamp(58px, 7.2vw, 102px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.02;
  text-shadow: 0 2px 22px rgba(255, 250, 245, 0.55);
}

.hero__title > span:first-child {
  overflow-wrap: anywhere;
}

.hero__heart {
  display: inline-block;
  margin-top: 6px;
  margin-left: 8px;
  color: var(--rose);
  font-family: var(--sans);
  font-size: 0.28em;
  font-weight: 400;
  line-height: 1;
  transform: rotate(8deg);
  animation: heart-beat 4s ease-in-out infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: rotate(8deg) scale(1); }
  12% { transform: rotate(8deg) scale(1.12); }
  24% { transform: rotate(8deg) scale(1); }
}

.hero__tagline {
  margin-top: 17px;
  color: #6c4350;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 29px);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.hero__tagline em {
  position: relative;
  color: var(--rose-deep);
  font-style: normal;
  white-space: nowrap;
}

.hero__tagline em::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 1px;
  left: -1px;
  height: 6px;
  background: linear-gradient(90deg, rgba(233, 149, 173, 0.2), rgba(233, 149, 173, 0.52), rgba(233, 149, 173, 0.12));
  border-radius: 50%;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero__intro {
  max-width: 510px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.015em;
  line-height: 2.05;
}

.hero__actions {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stats {
  display: flex;
  margin-top: 48px;
  flex-wrap: wrap;
  gap: 0;
}

.hero__stats > div {
  position: relative;
  min-width: 126px;
  padding: 0 29px;
}

.hero__stats > div:first-child {
  padding-left: 0;
}

.hero__stats > div + div::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(125, 67, 84, 0.23), transparent);
}

.hero__stats dt {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
}

.hero__stats dt strong {
  font-family: var(--latin);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero__stats dt span {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero__stats dd {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.hero__art {
  position: relative;
  display: flex;
  min-height: 610px;
  overflow: clip;
  align-items: center;
  justify-content: center;
  animation: art-in 1.1s var(--ease) 0.18s both;
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__art-halo {
  position: absolute;
  top: 2%;
  right: -4%;
  width: 84%;
  height: 82%;
  background: radial-gradient(circle at center, rgba(255, 247, 245, 0.92) 0%, rgba(255, 238, 243, 0.5) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
  transform: rotate(-12deg);
}

.hero__art-img {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  height: auto;
  filter: drop-shadow(0 32px 48px rgba(84, 38, 55, 0.16));
}

.hero__sticker {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 11px 17px;
  background: rgba(255, 250, 245, 0.8);
  border: 1px solid rgba(143, 76, 97, 0.17);
  border-radius: 13px;
  box-shadow: 0 13px 34px rgba(105, 46, 66, 0.11);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero__sticker span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.hero__sticker strong {
  margin-top: 2px;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero__sticker--top {
  top: 16%;
  right: 2%;
  transform: rotate(4deg);
}

.hero__sticker--bottom {
  bottom: 13%;
  left: 1%;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  transform: rotate(-3deg);
}

.hero__sticker--bottom > span:last-child {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.mini-wave {
  display: flex;
  height: 15px;
  align-items: center;
  gap: 2px;
}

.mini-wave i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--rose);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.mini-wave i:nth-child(1) { height: 35%; animation-delay: 0s; }
.mini-wave i:nth-child(2) { height: 80%; animation-delay: 0.18s; }
.mini-wave i:nth-child(3) { height: 52%; animation-delay: 0.36s; }
.mini-wave i:nth-child(4) { height: 96%; animation-delay: 0.54s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(100, 56, 71, 0.55);
  transform: translateX(-50%);
}

.hero__scroll span {
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.24em;
}

.hero__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(123, 67, 85, 0.18);
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--rose);
  animation: scroll-line 2.6s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* ---------- Library layout ---------- */

.library {
  position: relative;
  z-index: 2;
  padding: 10px 0 118px;
}

.library::before {
  content: "";
  position: absolute;
  top: -80px;
  right: 0;
  left: 0;
  height: 360px;
  background: linear-gradient(180deg, transparent, rgba(255, 249, 245, 0.18) 40%, transparent);
  pointer-events: none;
}

.library__inner {
  position: relative;
  display: grid;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  align-items: start;
  grid-template-columns: 294px minmax(0, 1fr);
  gap: 27px;
}

/* ---------- Playlist rail ---------- */

.rail {
  position: sticky;
  top: 104px;
  padding: 25px 21px 20px;
  background: rgba(255, 250, 246, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
}

.rail__head {
  display: flex;
  padding: 3px 4px 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.rail__head h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.rail__count {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--rose-deep);
  border: 1px solid rgba(173, 90, 115, 0.25);
  border-radius: 50%;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.playlist-card {
  position: relative;
  display: grid;
  width: 100%;
  padding: 10px 11px;
  align-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 17px;
  text-align: left;
  grid-template-columns: 47px minmax(0, 1fr) auto;
  gap: 11px;
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s var(--ease), box-shadow 0.28s ease;
}

.playlist-card:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(169, 90, 112, 0.13);
  transform: translateX(2px);
}

.playlist-card__cover {
  position: relative;
  display: grid;
  width: 47px;
  height: 47px;
  overflow: hidden;
  place-items: center;
  color: #fff9f5;
  background: linear-gradient(145deg, var(--card-a, #d16b8b), var(--card-b, #9b3f5d));
  border-radius: 13px;
  box-shadow: 0 6px 15px rgba(110, 48, 69, 0.16);
}

.playlist-card__cover::before,
.playlist-card__cover::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.playlist-card__cover::before {
  width: 34px;
  height: 34px;
}

.playlist-card__cover::after {
  width: 23px;
  height: 23px;
}

.playlist-card__icon {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
}

.playlist-card__no {
  position: absolute;
  top: 4px;
  right: 5px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.playlist-card__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.playlist-card__text small {
  color: var(--muted);
  font-family: var(--latin);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.playlist-card__text strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-card__text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-card__count {
  padding: 2px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-family: var(--latin);
  font-size: 9px;
  line-height: 1.7;
}

.playlist-card.is-active {
  color: #fffaf6;
  background: linear-gradient(135deg, var(--card-a, #cf5d81), var(--card-b, #9c3f5d));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 30px rgba(143, 55, 83, 0.23);
}

.playlist-card.is-active:hover {
  transform: translateX(0);
}

.playlist-card.is-active .playlist-card__cover {
  background: rgba(255, 250, 246, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.playlist-card.is-active .playlist-card__text small,
.playlist-card.is-active .playlist-card__text span {
  color: rgba(255, 250, 246, 0.68);
}

.playlist-card.is-active .playlist-card__count {
  color: #fff9f5;
  background: rgba(255, 255, 255, 0.16);
}

.playlist-card__arrow {
  display: none;
}

.rail__tip {
  display: flex;
  margin-top: 17px;
  padding: 15px 14px;
  gap: 11px;
  background: rgba(255, 248, 243, 0.56);
  border: 1px dashed rgba(154, 82, 104, 0.22);
  border-radius: 16px;
}

.rail__tip-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--rose-deep);
  background: var(--rose-light);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
}

.rail__tip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.rail__tip p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.rail__manage {
  display: flex;
  width: 100%;
  margin-top: 12px;
  padding: 11px 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--rose-deep);
  background: transparent;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}

.rail__manage span {
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.rail__manage:hover {
  background: rgba(255, 255, 255, 0.55);
}

/* ---------- Playlist panel ---------- */

.panel {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 250, 246, 0.83);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(24px) saturate(1.06);
  backdrop-filter: blur(24px) saturate(1.06);
}

.panel__hero {
  position: relative;
  display: grid;
  padding: 31px 32px 29px;
  align-items: center;
  background:
    radial-gradient(100% 130% at 0% 0%, var(--accent-wash) 0%, transparent 62%),
    linear-gradient(125deg, var(--accent-soft) 0%, rgba(255, 249, 244, 0.72) 54%, rgba(255, 248, 245, 0.25) 100%);
  border-bottom: 1px solid rgba(146, 80, 99, 0.1);
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 24px;
}

.panel__hero::after {
  content: "PLAYLIST";
  position: absolute;
  top: 19px;
  right: 27px;
  color: var(--accent-deep);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.28em;
  opacity: 0.25;
}

.panel__cover {
  position: relative;
  display: grid;
  width: 130px;
  height: 130px;
  overflow: hidden;
  place-items: center;
  color: #fffaf7;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 26px;
  box-shadow: 0 18px 32px rgba(122, 49, 73, 0.2);
}

.panel__cover::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.panel__cover-ring {
  position: absolute;
  width: 65px;
  height: 65px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
}

.panel__cover-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: rgba(255, 250, 247, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.panel__cover-icon {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(75, 30, 46, 0.25);
}

.panel__cover-no {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.panel__meta {
  min-width: 0;
}

.panel__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-deep);
  font-family: var(--latin);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.tiny-dot {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

.panel__meta h2 {
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.panel__desc {
  max-width: 520px;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.panel__chips {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 9px;
  align-items: center;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(169, 88, 111, 0.13);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.035em;
}

.chip--outline {
  background: transparent;
}

.chip--plain {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  padding-left: 3px;
}

.panel__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.panel__actions .btn {
  justify-content: flex-start;
}

.panel__body {
  padding: 24px 31px 34px;
}

/* ---------- Toolbar ---------- */

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.searchbox {
  display: flex;
  width: 270px;
  height: 42px;
  flex: 0 1 290px;
  padding: 0 14px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.searchbox:focus-within {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(190, 92, 120, 0.4);
  box-shadow: 0 0 0 4px rgba(201, 82, 120, 0.07);
}

.searchbox svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.searchbox input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.searchbox input::placeholder {
  color: #b3959e;
}

.searchbox input::-webkit-search-cancel-button {
  display: none;
}

.searchbox__clear {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: rgba(157, 85, 106, 0.09);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.group-filter {
  display: flex;
  min-width: 0;
  flex: 1 1 280px;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-chip {
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.5);
}

.filter-chip.is-active {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(171, 91, 114, 0.19);
  box-shadow: 0 4px 12px rgba(120, 57, 77, 0.05);
}

.filter-chip span {
  margin-left: 3px;
  color: var(--faint);
  font-family: var(--latin);
  font-size: 8px;
}

.view-toggle {
  display: flex;
  height: 36px;
  flex: 0 0 auto;
  padding: 3px;
  align-items: center;
  gap: 1px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.view-toggle button {
  display: grid;
  width: 29px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: var(--faint);
  background: transparent;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.view-toggle button svg {
  width: 15px;
  height: 15px;
}

.view-toggle button:hover {
  color: var(--accent-deep);
}

.view-toggle button.is-active {
  color: var(--accent-deep);
  background: #fffaf6;
  box-shadow: 0 3px 9px rgba(109, 50, 69, 0.1);
}

.results-line {
  display: flex;
  min-height: 34px;
  margin-top: 9px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.results-line span {
  color: var(--accent-deep);
  font-family: var(--latin);
  font-size: 11px;
  font-style: italic;
}

/* ---------- Song groups / rows ---------- */

.song-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.song-group {
  position: relative;
}

.song-group + .song-group {
  padding-top: 24px;
  border-top: 1px solid rgba(143, 80, 99, 0.1);
}

.song-group__head {
  display: flex;
  margin-bottom: 9px;
  align-items: center;
  gap: 12px;
}

.song-group__marker {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 9px;
  font-family: var(--latin);
  font-size: 9px;
  font-weight: 600;
}

.song-group__title {
  min-width: 0;
}

.song-group__title h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

.song-group__title h3 small {
  color: var(--accent-deep);
  font-family: var(--latin);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.song-group__title p {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.song-group__count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.song-group__count strong {
  color: var(--accent-deep);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px 8px;
}

.song {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  align-items: center;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  gap: 7px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.song::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 38px;
  height: 1px;
  background: rgba(151, 86, 104, 0.08);
  transition: opacity 0.2s ease;
}

.song:hover,
.song:focus-visible {
  z-index: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(185, 98, 124, 0.14);
  box-shadow: 0 8px 20px rgba(112, 48, 69, 0.06);
  transform: translateX(2px);
}

.song:hover::before,
.song:focus-visible::before {
  opacity: 0;
}

.song__num {
  color: var(--faint);
  font-family: var(--latin);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.02em;
  text-align: right;
  transition: color 0.2s ease;
}

.song:hover .song__num {
  color: var(--accent);
}

.song__main {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.song__title {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  letter-spacing: 0.025em;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song__artist {
  overflow: hidden;
  max-width: 86px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song__pick {
  display: inline-flex;
  height: 22px;
  padding: 0 7px;
  align-items: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(3px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
  white-space: nowrap;
}

.song:hover .song__pick,
.song:focus-visible .song__pick {
  opacity: 1;
  transform: translateX(0);
}

.song mark {
  padding: 0 1px;
  color: var(--accent-deep);
  background: rgba(244, 184, 202, 0.43);
  border-radius: 2px;
}

.song.is-flash {
  color: var(--ink);
  background: linear-gradient(100deg, rgba(253, 220, 231, 0.94), rgba(255, 250, 246, 0.9));
  border-color: rgba(200, 92, 122, 0.32);
  box-shadow: 0 0 0 4px rgba(201, 82, 120, 0.08);
  animation: flash-song 2.4s var(--ease);
}

@keyframes flash-song {
  0% { background: rgba(247, 182, 201, 0.95); transform: scale(1.012); }
  32% { background: rgba(253, 220, 231, 0.94); transform: scale(1); }
  100% { background: rgba(255, 250, 246, 0.82); }
}

.song-list.is-grid .song-grid {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
}

.song-list.is-grid .song {
  display: flex;
  min-height: 104px;
  padding: 17px 15px 13px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(164, 91, 111, 0.1);
  border-radius: 14px;
}

.song-list.is-grid .song::before {
  display: none;
}

.song-list.is-grid .song::after {
  content: "♫";
  position: absolute;
  top: 12px;
  right: 13px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 16px;
  opacity: 0.32;
}

.song-list.is-grid .song:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-2px);
}

.song-list.is-grid .song__num {
  order: 3;
  margin-top: auto;
  padding-top: 5px;
  color: var(--faint);
  font-size: 8px;
  text-align: left;
}

.song-list.is-grid .song__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.song-list.is-grid .song__title {
  overflow: visible;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.55;
  white-space: normal;
}

.song-list.is-grid .song__artist {
  max-width: 100%;
  font-size: 9px;
}

.song-list.is-grid .song__pick {
  position: absolute;
  right: 11px;
  bottom: 10px;
  opacity: 0;
}

.song-list.is-grid .song:hover .song__pick {
  opacity: 1;
}

.song-list.is-grid .song.is-flash {
  background: rgba(253, 220, 231, 0.94);
}

.empty {
  display: flex;
  padding: 73px 20px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.empty__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--rose-deep);
  background: var(--accent-soft);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
}

.empty h3 {
  margin-top: 17px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
}

.empty p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.empty .btn {
  margin-top: 18px;
}

/* ---------- About ---------- */

.about {
  position: relative;
  z-index: 2;
  padding: 0 0 100px;
}

.about__inner {
  position: relative;
  display: grid;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 66px 58px;
  overflow: hidden;
  color: #fff8f1;
  background:
    radial-gradient(80% 100% at 96% 0%, rgba(223, 135, 158, 0.22), transparent 55%),
    linear-gradient(125deg, #4b2936 0%, #60313f 54%, #713a4a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 36px;
  box-shadow: 0 36px 80px rgba(67, 27, 40, 0.23);
  grid-template-columns: 0.78fr 1.22fr;
  gap: 70px;
}

.about__inner::before {
  content: "♫";
  position: absolute;
  right: 38px;
  bottom: -74px;
  color: rgba(255, 243, 236, 0.05);
  font-family: var(--serif);
  font-size: 310px;
  line-height: 1;
  pointer-events: none;
}

.about__inner::after {
  content: "";
  position: absolute;
  top: -160px;
  left: 36%;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 245, 236, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.about .eyebrow {
  color: #efb6c5;
}

.about__head h2 {
  margin-top: 19px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.about__head h2 em {
  color: #f2c3ce;
  font-style: normal;
}

.about__body {
  position: relative;
  z-index: 1;
}

.about__quote {
  color: #ffe9e2;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 27px);
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.about__text {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 246, 240, 0.63);
  font-size: 12.5px;
  line-height: 2;
}

.about__cards {
  display: grid;
  margin-top: 35px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about__cards article {
  padding: 17px 16px 18px;
  background: rgba(255, 250, 245, 0.055);
  border: 1px solid rgba(255, 245, 238, 0.1);
  border-radius: 16px;
}

.about__cards span {
  color: #e7a6b8;
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.about__cards h3 {
  margin-top: 9px;
  color: #fff3eb;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about__cards p {
  margin-top: 6px;
  color: rgba(255, 246, 240, 0.52);
  font-size: 9.5px;
  line-height: 1.8;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 0 62px;
}

.site-footer__inner {
  display: flex;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 27px 4px 0;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(132, 72, 89, 0.14);
}

.brand--footer {
  opacity: 0.9;
}

.brand--footer .brand__mark {
  width: 31px;
  height: 31px;
  color: var(--rose-deep);
  background: transparent;
  box-shadow: none;
  font-family: var(--serif);
  font-size: 12px;
}

.brand--footer .brand__name strong {
  font-size: 15px;
}

.site-footer__inner > p {
  margin-right: auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--faint);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.site-footer__meta button {
  padding: 0 0 2px;
  color: var(--muted);
  background: none;
  border-bottom: 1px solid rgba(133, 73, 90, 0.22);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.site-footer__meta button:hover {
  color: var(--rose-deep);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #fff9f5;
  background: rgba(110, 52, 71, 0.83);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(73, 31, 46, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), background 0.2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.back-top svg {
  width: 18px;
  height: 18px;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--rose-deep);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 120;
  display: flex;
  max-width: min(440px, calc(100vw - 36px));
  padding: 13px 18px;
  align-items: center;
  gap: 10px;
  color: #fff9f4;
  background: rgba(69, 36, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 17px 40px rgba(64, 29, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

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

.toast__icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  color: #8e3b56;
  background: #f5c5d4;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 10px;
}

.toast__text {
  overflow: hidden;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast__action {
  flex: 0 0 auto;
  padding: 2px 0;
  color: #f3bdcb;
  background: none;
  border-bottom: 1px solid rgba(243, 189, 203, 0.45);
  font-size: 10px;
}

/* ---------- Modals ---------- */

.modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 24px;
  overflow: auto;
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(50, 25, 35, 0.48);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.modal__surface {
  width: min(620px, 100%);
  margin: 7vh auto;
  padding: 30px 32px 28px;
  background: #fffaf5;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 27px;
  box-shadow: 0 40px 100px rgba(44, 17, 27, 0.32);
  animation: modal-in 0.36s var(--ease) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__surface--manager {
  width: min(930px, 100%);
  margin: 4vh auto;
  padding-bottom: 0;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.modal__head h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.modal__head .icon-btn {
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.modal__head--row {
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.modal__desc {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.searchbox--large {
  width: 100%;
  height: 50px;
  flex-basis: auto;
  margin-top: 23px;
  padding: 0 16px;
  background: #fff;
  border-radius: 14px;
}

.searchbox--large input {
  font-size: 13px;
}

.searchbox--large kbd {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: var(--faint);
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 8px;
}

.search__hint {
  margin-top: 10px;
  color: var(--faint);
  font-size: 9.5px;
}

.search-results {
  display: flex;
  max-height: min(46vh, 400px);
  margin-top: 15px;
  overflow: auto;
  flex-direction: column;
  gap: 3px;
}

.search-result {
  display: grid;
  width: 100%;
  padding: 10px 11px;
  align-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: left;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.search-result:hover {
  background: #fff4f7;
  border-color: rgba(185, 98, 124, 0.12);
}

.search-result__playlist {
  padding: 2px 7px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 4px;
  font-size: 8px;
  white-space: nowrap;
}

.search-result__title {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__title mark {
  color: var(--rose-deep);
  background: #fbd8e3;
  border-radius: 2px;
}

.search-result__artist {
  color: var(--faint);
  font-size: 9px;
}

.search-result__arrow {
  color: var(--faint);
  font-size: 12px;
}

.search-empty {
  display: flex;
  padding: 34px 12px;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.search-empty__note {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.search-suggestions button {
  padding: 5px 11px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(170, 91, 113, 0.14);
  border-radius: 999px;
  font-size: 10px;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.search-suggestions button:hover {
  background: #fbd4e0;
  transform: translateY(-1px);
}

/* ---------- Manager ---------- */

.manager__tabs {
  display: flex;
  margin-top: 18px;
  padding: 4px;
  gap: 3px;
  background: rgba(248, 234, 238, 0.72);
  border-radius: 12px;
}

.manager__tabs button {
  flex: 1;
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 9px;
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.manager__tabs button:hover {
  color: var(--accent-deep);
}

.manager__tabs button.is-active {
  color: var(--accent-deep);
  background: #fffaf5;
  box-shadow: 0 4px 12px rgba(104, 47, 66, 0.08);
  font-weight: 600;
}

.manager__panels {
  min-height: 386px;
  padding: 22px 0 4px;
}

.manager__panel {
  animation: panel-in 0.28s var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.field-grid {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.field > span b {
  margin-left: 3px;
  color: var(--rose);
  font-size: 8px;
  font-weight: 500;
}

.field > span i {
  margin-left: 3px;
  color: var(--faint);
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select,
.mini-select select,
.url-field input {
  width: 100%;
  height: 41px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 11.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.mini-select select:focus,
.url-field input:focus {
  border-color: rgba(190, 92, 120, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 82, 120, 0.07);
}

.field input::placeholder,
.url-field input::placeholder {
  color: #c0a5ad;
}

.field select,
.mini-select select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%239a737f' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.add-song-form__submit {
  grid-column: 2;
  justify-self: start;
}

.form-note {
  margin-top: 10px;
  color: var(--faint);
  font-size: 9px;
}

.manager__divider {
  display: flex;
  margin: 22px 0 14px;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.manager__divider::before,
.manager__divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.manage-list-head {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.mini-select select {
  width: auto;
  height: 31px;
  padding: 0 27px 0 9px;
  font-size: 10px;
  background-position: right 9px center;
}

.manage-count {
  color: var(--faint);
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.manage-song-list {
  display: grid;
  max-height: 235px;
  padding-right: 4px;
  overflow: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}

.manage-song {
  display: flex;
  min-width: 0;
  padding: 7px 8px;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.46);
  border-radius: 7px;
}

.manage-song__title {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-song__artist {
  margin-left: auto;
  color: var(--faint);
  font-size: 8px;
  white-space: nowrap;
}

.manage-song__delete {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: var(--faint);
  background: transparent;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.manage-song__delete:hover {
  color: #b33a53;
  background: #fde2e7;
}

/* Background editor */

.bg-editor {
  display: grid;
  align-items: start;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 27px;
}

.bg-preview {
  position: relative;
  min-height: 360px;
  padding: 26px;
  overflow: hidden;
  color: #4d2a36;
  background-color: #f5dce4;
  background-image: var(--preview-image, url("assets/bg-default.svg"));
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.bg-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.2), rgba(73, 38, 51, var(--preview-overlay, 0.22)));
}

.bg-preview__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 4px 9px;
  color: #7e3f53;
  background: rgba(255, 250, 246, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.bg-preview__copy {
  position: absolute;
  right: 26px;
  bottom: 35px;
  left: 26px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  color: #fff8f2;
  gap: 6px;
  text-shadow: 0 2px 16px rgba(65, 27, 40, 0.28);
}

.bg-preview__copy small {
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.22em;
  opacity: 0.65;
}

.bg-preview__copy strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.55;
}

.bg-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bg-controls h3,
.data-intro h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.05em;
}

.bg-controls .modal__desc {
  margin-top: 4px;
}

.upload-zone {
  display: flex;
  min-height: 70px;
  padding: 12px 14px;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px dashed rgba(168, 91, 113, 0.32);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  background: #fff4f7;
  border-color: rgba(186, 85, 116, 0.55);
}

.upload-zone__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--rose-deep);
  background: var(--rose-light);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 300;
}

.upload-zone > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-zone strong {
  color: var(--ink-soft);
  font-size: 10.5px;
}

.upload-zone small {
  color: var(--faint);
  font-size: 8.5px;
}

.url-field {
  display: flex;
  gap: 7px;
}

.url-field input {
  flex: 1;
  min-width: 0;
  height: 37px;
  font-size: 10.5px;
}

.range-fields {
  display: grid;
  gap: 12px;
}

.range-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.range-field > span {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 9px;
}

.range-field output {
  color: var(--faint);
  font-family: var(--latin);
  font-size: 9px;
}

.range-field input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 6px 0;
  appearance: none;
  background: linear-gradient(90deg, #dc8da5, #f4d6de);
  border-radius: 999px;
  outline: 0;
}

.range-field input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  appearance: none;
  background: #fffaf6;
  border: 2px solid #c95e80;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(104, 44, 64, 0.18);
  cursor: grab;
}

.bg-controls__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.note {
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.7;
}

.note code {
  padding: 1px 3px;
  color: var(--rose-deep);
  background: rgba(249, 230, 236, 0.72);
  border-radius: 3px;
  font-size: 8px;
}

/* Data panel */

.data-intro {
  max-width: 640px;
}

.data-intro .modal__desc {
  margin-top: 7px;
}

.data-cards {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.data-card {
  display: flex;
  min-height: 174px;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.data-card__icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 8px;
  font-family: var(--latin);
  font-size: 13px;
}

.data-card h4 {
  margin-top: 11px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.data-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.75;
}

.data-card .btn {
  margin-top: auto;
}

.data-card--warning {
  background: rgba(255, 245, 240, 0.52);
}

.file-button {
  cursor: pointer;
}

.data-note {
  display: flex;
  margin-top: 16px;
  padding: 14px 16px;
  align-items: center;
  gap: 18px;
  background: rgba(249, 233, 237, 0.5);
  border: 1px dashed rgba(163, 88, 108, 0.22);
  border-radius: 13px;
}

.data-note > div {
  flex: 1;
}

.data-note h4 {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
}

.data-note p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.8px;
  line-height: 1.75;
}

.data-note code {
  padding: 1px 3px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  font-size: 8px;
}

.manager__foot {
  display: flex;
  margin: 18px -32px 0;
  padding: 15px 32px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(250, 238, 241, 0.52);
  border-top: 1px solid var(--line);
  border-radius: 0 0 27px 27px;
}

.manager__foot > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 9px;
}

.status-dot {
  display: block;
  width: 5px;
  height: 5px;
  background: #9fbd8a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(159, 189, 138, 0.16);
}

/* ---------- Themes ---------- */

.theme-rose {
  --card-a: #d26588;
  --card-b: #9f3d5d;
}

.theme-lilac {
  --card-a: #a583c5;
  --card-b: #6e4c93;
}

.theme-peach {
  --card-a: #d98a77;
  --card-b: #a4544f;
}

.theme-mist {
  --card-a: #8fa9ba;
  --card-b: #4e6c7e;
}

.theme-jade {
  --card-a: #8ba99b;
  --card-b: #4f7260;
}

.theme-gold {
  --card-a: #c6a46e;
  --card-b: #87673d;
}

.panel[data-theme="rose"] {
  --accent: #c95278;
  --accent-deep: #8e3b56;
  --accent-soft: #fde7ee;
  --accent-wash: #fff4f7;
}

.panel[data-theme="lilac"] {
  --accent: #9a78ba;
  --accent-deep: #654985;
  --accent-soft: #eee5f8;
  --accent-wash: #f7f2fb;
}

.panel[data-theme="peach"] {
  --accent: #cf7b68;
  --accent-deep: #8d4c45;
  --accent-soft: #f9e5dd;
  --accent-wash: #fdf5f1;
}

.panel[data-theme="mist"] {
  --accent: #7d9bb0;
  --accent-deep: #4f6d80;
  --accent-soft: #e9f1f5;
  --accent-wash: #f4f9fb;
}

.panel[data-theme="jade"] {
  --accent: #7b9f8b;
  --accent-deep: #4d6e5b;
  --accent-soft: #e7f1ea;
  --accent-wash: #f4faf6;
}

.panel[data-theme="gold"] {
  --accent: #b28a54;
  --accent-deep: #7a5a31;
  --accent-soft: #f8eedc;
  --accent-wash: #fcf8f0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  }

  .hero__stats > div {
    min-width: 112px;
    padding: 0 21px;
  }

  .panel__hero {
    padding: 26px 26px 24px;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 19px;
  }

  .panel__cover {
    width: 112px;
    height: 112px;
    border-radius: 22px;
  }

  .panel__cover-icon {
    font-size: 38px;
  }

  .panel__cover-ring {
    width: 57px;
    height: 57px;
  }

  .panel__cover::before {
    width: 80px;
    height: 80px;
  }

  .panel__body {
    padding: 21px 25px 30px;
  }

  .song-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .song__pick {
    display: none;
  }

  .song {
    grid-template-columns: 22px minmax(0, 1fr);
  }
}

@media (max-width: 1020px) {
  .hero {
    padding-top: 140px;
  }

  .hero__inner {
    min-height: 570px;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    gap: 10px;
  }

  .hero__art {
    min-height: 480px;
  }

  .hero__sticker--top {
    right: -1%;
  }

  .hero__sticker--bottom {
    left: -1%;
  }

  .library__inner {
    grid-template-columns: 262px minmax(0, 1fr);
    gap: 20px;
  }

  .rail {
    padding: 21px 16px 17px;
  }

  .playlist-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .playlist-card__cover {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .playlist-card__text strong {
    font-size: 15px;
  }

  .song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    padding-top: 1px;
  }

  .panel__actions .btn {
    flex: 0 0 auto;
    justify-content: center;
  }

  .about__inner {
    gap: 40px;
    padding: 52px 45px 50px;
    grid-template-columns: 0.85fr 1.15fr;
  }

  .about__cards {
    grid-template-columns: 1fr;
  }

  .about__cards article {
    display: grid;
    padding: 12px 13px;
    grid-template-columns: auto 1fr;
    column-gap: 11px;
  }

  .about__cards span {
    grid-row: 1 / 3;
    align-self: start;
    padding-top: 2px;
  }

  .about__cards h3 {
    margin-top: 0;
  }

  .bg-editor {
    grid-template-columns: 0.84fr 1.16fr;
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .site-header__inner,
  .hero,
  .library__inner,
  .about__inner,
  .site-footer__inner {
    width: min(100% - 32px, 680px);
  }

  .site-header__inner {
    height: 68px;
    gap: 12px;
  }

  .brand__mark {
    width: 35px;
    height: 35px;
  }

  .brand__name strong {
    font-size: 17px;
  }

  .brand__name small {
    font-size: 6px;
  }

  .main-nav {
    display: none;
  }

  .header-actions__only-mobile {
    display: grid;
  }

  .header-actions__random span {
    display: none;
  }

  .header-actions__random {
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .header-actions__random svg {
    width: 17px;
    height: 17px;
  }

  .hero {
    min-height: 0;
    padding: 122px 0 66px;
  }

  .hero__inner {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 7px;
  }

  .hero__copy {
    width: 100%;
    padding-top: 0;
  }

  .hero__title {
    margin-top: 19px;
    font-size: clamp(54px, 13vw, 78px);
  }

  .hero__tagline {
    margin-top: 13px;
    font-size: clamp(20px, 4.5vw, 26px);
  }

  .hero__intro {
    margin-top: 17px;
    font-size: 12.5px;
    line-height: 1.95;
  }

  .hero__actions {
    margin-top: 26px;
  }

  .hero__stats {
    margin-top: 32px;
  }

  .hero__art {
    width: min(100%, 470px);
    min-height: 0;
    margin: 8px auto -28px;
  }

  .hero__sticker--top {
    top: 18%;
    right: 0;
  }

  .hero__sticker--bottom {
    bottom: 11%;
    left: 0;
  }

  .hero__scroll {
    display: none;
  }

  .library {
    padding: 6px 0 82px;
  }

  .library__inner {
    display: flex;
    flex-direction: column;
    gap: 17px;
  }

  .rail {
    position: static;
    width: 100%;
    padding: 18px 16px 13px;
    border-radius: 22px;
  }

  .rail__head {
    padding: 2px 2px 12px;
    align-items: center;
  }

  .rail__head h2 {
    margin-top: 3px;
    font-size: 21px;
  }

  .rail__head .eyebrow {
    display: none;
  }

  .rail__count {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }

  .playlist-list {
    overflow-x: auto;
    flex-direction: row;
    scrollbar-width: none;
    gap: 6px;
  }

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

  .playlist-card {
    width: 185px;
    flex: 0 0 185px;
    grid-template-columns: 35px minmax(0, 1fr);
    padding: 8px;
    gap: 8px;
  }

  .playlist-card__cover {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .playlist-card__icon {
    font-size: 15px;
  }

  .playlist-card__cover::before {
    width: 25px;
    height: 25px;
  }

  .playlist-card__cover::after {
    width: 16px;
    height: 16px;
  }

  .playlist-card__text strong {
    font-size: 13.5px;
  }

  .playlist-card__text span {
    font-size: 8.5px;
  }

  .playlist-card__count {
    display: none;
  }

  .rail__tip {
    display: none;
  }

  .rail__manage {
    width: auto;
    margin: 9px 2px 0;
    padding: 7px 2px;
    justify-content: flex-start;
    font-size: 10px;
  }

  .panel {
    width: 100%;
    border-radius: 23px;
  }

  .panel__hero {
    padding: 21px 19px 18px;
    grid-template-columns: 91px minmax(0, 1fr);
    gap: 15px;
  }

  .panel__cover {
    width: 91px;
    height: 91px;
    border-radius: 19px;
  }

  .panel__cover-icon {
    font-size: 31px;
  }

  .panel__cover-ring {
    width: 47px;
    height: 47px;
  }

  .panel__cover::before {
    width: 64px;
    height: 64px;
  }

  .panel__meta h2 {
    font-size: 29px;
  }

  .panel__desc {
    margin-top: 4px;
    font-size: 10.5px;
    line-height: 1.7;
  }

  .panel__chips {
    margin-top: 9px;
  }

  .panel__actions {
    grid-column: 1 / -1;
    padding-top: 4px;
  }

  .panel__hero::after {
    display: none;
  }

  .panel__body {
    padding: 17px 17px 25px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .searchbox {
    width: auto;
    flex-basis: auto;
    height: 39px;
  }

  .group-filter {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    order: 3;
    padding-bottom: 2px;
  }

  .group-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .view-toggle {
    height: 39px;
  }

  .view-toggle button {
    height: 31px;
  }

  .results-line {
    margin-top: 7px;
  }

  .song-list {
    gap: 21px;
  }

  .song-grid {
    gap: 2px 6px;
  }

  .song {
    padding: 7px 6px;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 5px;
  }

  .song::before {
    left: 31px;
  }

  .song__title {
    font-size: 12px;
  }

  .song-list.is-grid .song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    padding-bottom: 68px;
  }

  .about__inner {
    display: flex;
    padding: 36px 25px 30px;
    flex-direction: column;
    gap: 25px;
    border-radius: 26px;
  }

  .about__head h2 {
    margin-top: 13px;
    font-size: 33px;
  }

  .about__quote {
    font-size: 19px;
  }

  .about__text {
    font-size: 11.5px;
  }

  .about__cards {
    grid-template-columns: 1fr;
  }

  .about__cards article {
    display: block;
    padding: 14px 15px;
  }

  .about__cards span {
    padding-top: 0;
  }

  .about__cards h3 {
    margin-top: 5px;
  }

  .site-footer {
    padding-bottom: 40px;
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 11px 15px;
  }

  .site-footer__inner > p {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 11px;
  }

  .site-footer__meta {
    grid-row: 1;
    grid-column: 2;
    gap: 10px;
  }

  .site-footer__meta > span {
    display: none;
  }

  .back-top {
    right: 16px;
    bottom: 18px;
    width: 38px;
    height: 38px;
  }

  .toast {
    bottom: 19px;
  }

  .modal {
    padding: 12px;
  }

  .modal__surface {
    margin: 4vh auto;
    padding: 24px 19px 20px;
    border-radius: 22px;
  }

  .modal__surface--manager {
    margin: 2vh auto;
  }

  .modal__head h2 {
    font-size: 23px;
  }

  .manager__tabs {
    margin-top: 14px;
  }

  .manager__tabs button {
    padding: 9px 5px;
    font-size: 10px;
  }

  .manager__panels {
    min-height: 0;
    padding-top: 17px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field--wide,
  .add-song-form__submit {
    grid-column: 1;
  }

  .add-song-form__submit {
    width: 100%;
    justify-self: stretch;
  }

  .manage-song-list {
    max-height: 190px;
    grid-template-columns: 1fr;
  }

  .bg-editor {
    grid-template-columns: 1fr;
  }

  .bg-preview {
    min-height: 210px;
  }

  .bg-preview__copy strong {
    font-size: 20px;
  }

  .data-cards {
    grid-template-columns: 1fr;
  }

  .data-card {
    min-height: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 11px;
  }

  .data-card__icon {
    grid-row: 1 / 3;
  }

  .data-card h4 {
    margin-top: 0;
  }

  .data-card p {
    grid-column: 2;
  }

  .data-card .btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }

  .data-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .manager__foot {
    margin: 16px -19px 0;
    padding: 13px 19px;
    border-radius: 0 0 22px 22px;
  }

  .manager__foot > span {
    font-size: 8.5px;
  }
}

@media (max-width: 480px) {
  .site-header__inner,
  .hero,
  .library__inner,
  .about__inner,
  .site-footer__inner {
    width: calc(100% - 24px);
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__name strong {
    font-size: 16px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .icon-btn {
    width: 35px;
    height: 35px;
  }

  .header-actions__random {
    width: 35px;
    min-height: 35px;
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 50px;
  }

  .eyebrow {
    gap: 8px;
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }

  .eyebrow__line {
    width: 22px;
  }

  .hero__title {
    margin-top: 16px;
    font-size: clamp(47px, 14.2vw, 63px);
    letter-spacing: 0.02em;
  }

  .hero__tagline {
    font-size: 19px;
    letter-spacing: 0.03em;
  }

  .hero__intro {
    font-size: 11.5px;
  }

  .hero__actions {
    gap: 8px;
  }

  .btn--lg {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 12px;
  }

  .hero__stats {
    margin-top: 26px;
    gap: 0;
  }

  .hero__stats > div {
    min-width: 0;
    flex: 1;
    padding: 0 11px;
  }

  .hero__stats > div:first-child {
    padding-left: 0;
  }

  .hero__stats dt strong {
    font-size: 23px;
  }

  .hero__stats dt span {
    font-size: 9px;
  }

  .hero__stats dd {
    display: none;
  }

  .hero__art {
    width: calc(100% + 18px);
    margin: 2px -9px -18px;
  }

  .hero__sticker {
    padding: 8px 11px;
    border-radius: 10px;
  }

  .hero__sticker strong {
    font-size: 12px;
  }

  .hero__sticker--top {
    display: none;
  }

  .hero__sticker--bottom {
    padding: 7px 10px;
  }

  .hero__sticker--bottom > span:last-child {
    font-size: 8px;
  }

  .panel__hero {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 17px 15px 15px;
    gap: 12px;
  }

  .panel__cover {
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .panel__cover-icon {
    font-size: 26px;
  }

  .panel__cover::before {
    width: 55px;
    height: 55px;
  }

  .panel__cover-ring {
    width: 40px;
    height: 40px;
  }

  .panel__cover-ring::after {
    width: 18px;
    height: 18px;
  }

  .panel__eyebrow {
    font-size: 7px;
    letter-spacing: 0.1em;
    gap: 6px;
  }

  .panel__meta h2 {
    margin-top: 4px;
    font-size: 25px;
  }

  .panel__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .panel__chips {
    gap: 4px;
  }

  .chip {
    min-height: 21px;
    padding: 2px 7px;
    font-size: 8px;
  }

  .chip--plain {
    display: none;
  }

  .panel__body {
    padding: 14px 12px 21px;
  }

  .panel__actions .btn {
    flex: 1;
    padding: 8px 9px;
    font-size: 10.5px;
  }

  .searchbox {
    padding: 0 11px;
  }

  .searchbox input {
    font-size: 10.5px;
  }

  .song-group__head {
    gap: 8px;
  }

  .song-group__marker {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    font-size: 8px;
  }

  .song-group__title h3 {
    font-size: 15px;
    gap: 5px;
  }

  .song-group__title p {
    font-size: 8px;
  }

  .song-group__count {
    font-size: 8px;
  }

  .song-group__count strong {
    font-size: 10px;
  }

  .song {
    min-height: 39px;
    padding: 6px 3px;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 3px;
  }

  .song::before {
    left: 23px;
  }

  .song__num {
    font-size: 7px;
  }

  .song__title {
    font-size: 11.5px;
    letter-spacing: 0;
  }

  .song__artist {
    display: none;
  }

  .song-list.is-grid .song-grid {
    grid-template-columns: 1fr;
  }

  .song-list.is-grid .song {
    min-height: 73px;
    padding: 12px 12px 9px;
  }

  .song-list.is-grid .song__title {
    font-size: 14px;
  }

  .about__inner {
    padding: 30px 20px 26px;
  }

  .about__head h2 {
    font-size: 28px;
  }

  .about__quote {
    font-size: 17px;
  }

  .about__text {
    font-size: 10.5px;
  }

  .site-footer__inner {
    align-items: start;
  }

  .site-footer__inner > p {
    font-size: 10px;
  }

  .brand--footer .brand__name strong {
    font-size: 13px;
  }

  .data-note {
    padding: 12px;
  }

  .manager__foot > span {
    max-width: 150px;
  }

  .toast {
    max-width: calc(100vw - 24px);
    padding: 10px 13px;
  }

  .toast__text {
    font-size: 10.5px;
  }

  .search-result {
    padding: 9px 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .search-result__artist {
    display: none;
  }

  .search-result__playlist {
    padding: 2px 6px;
    font-size: 7.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .petal {
    display: none;
  }
}

/* Firefox scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(153, 83, 104, 0.35) transparent;
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(153, 83, 104, 0.3);
  border-radius: 99px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}
