/* ============ Fonts (self-hosted, Vietnamese subsets) ============ */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dancing-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dancing-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ Tokens & reset ============ */
:root {
  --bg: #fff7fa;
  --bg-soft: #fff0f6;
  --surface: #ffffff;
  --surface-2: #fff6fa;
  --ink: #4a2637;
  --ink-2: #7c5566;
  --ink-3: #a98a97;
  --rose: #ff6f9c;
  --rose-2: #ff8fb1;
  --rose-deep: #e6467c;
  --rose-soft: #ffe0ea;
  --rose-mist: #fff0f5;
  --lilac: #b79af6;
  --lilac-soft: #f0e7ff;
  --gold: #ffcf7a;
  --mint: #8fe3cf;
  --line: rgba(214, 90, 133, .14);
  --line-strong: rgba(214, 90, 133, .24);
  --shadow-sm: 0 6px 18px -10px rgba(167, 55, 98, .35);
  --shadow: 0 22px 55px -30px rgba(167, 55, 98, .45);
  --shadow-lg: 0 40px 90px -50px rgba(167, 55, 98, .55);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --sidebar: 236px;
  --player-h: 88px;
  --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px));
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Baloo 2', 'Nunito', 'Segoe UI', sans-serif;
  --font-script: 'Dancing Script', 'Segoe UI', cursive;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 5% -12%, #ffe3ee 0%, rgba(255, 227, 238, 0) 62%),
    radial-gradient(820px 540px at 102% -4%, #f2e7ff 0%, rgba(242, 231, 255, 0) 58%),
    radial-gradient(720px 560px at 96% 88%, rgba(219, 246, 240, .8) 0%, rgba(219, 246, 240, 0) 62%),
    radial-gradient(680px 520px at 12% 96%, rgba(218, 236, 255, .65) 0%, rgba(218, 236, 255, 0) 60%),
    radial-gradient(760px 540px at 54% 112%, #ffecdf 0%, rgba(255, 236, 223, 0) 60%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image: radial-gradient(rgba(230, 70, 124, .055) 1px, transparent 1px);
  background-size: 24px 24px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--ink);
}

p { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

::selection { background: rgba(255, 111, 156, .25); }

:focus-visible {
  outline: 2.5px solid rgba(230, 70, 124, .55);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.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;
}

/* ============ Animated background scene ============ */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 240px 240px;
  opacity: .58;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  animation: bgGlowDrift 28s ease-in-out infinite;
}
.bg-glow--rose {
  width: min(72vw, 900px);
  aspect-ratio: 1;
  left: -27vw;
  top: -30vh;
  background: radial-gradient(circle, rgba(255, 183, 208, .46), rgba(255, 183, 208, 0) 68%);
}
.bg-glow--lilac {
  width: min(66vw, 820px);
  aspect-ratio: 1;
  right: -25vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(209, 188, 255, .38), rgba(209, 188, 255, 0) 68%);
  animation-duration: 36s;
  animation-delay: -9s;
}
.bg-glow--mint {
  width: min(60vw, 740px);
  aspect-ratio: 1;
  left: 16vw;
  bottom: -36vh;
  background: radial-gradient(circle, rgba(178, 238, 220, .34), rgba(178, 238, 220, 0) 68%);
  animation-duration: 32s;
  animation-delay: -15s;
}

.bg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.bg-ribbon {
  position: absolute;
  left: -2%;
  bottom: 3%;
  width: 104%;
  height: clamp(150px, 27vh, 300px);
  opacity: .85;
}
.bg-ribbon path {
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.bg-ribbon .r1 { stroke: rgba(255, 143, 177, .58); }
.bg-ribbon .r2 { stroke: rgba(183, 154, 246, .46); }
.bg-ribbon .r3 { stroke: rgba(143, 214, 192, .44); }
.bg-ribbon .bg-ribbon-dash {
  stroke: rgba(255, 255, 255, .85);
  stroke-dasharray: 20 210;
  animation: bgDash 26s linear infinite;
}

.bg-cloud {
  position: absolute;
  height: auto;
  opacity: var(--o, .7);
  animation: bgCloudDrift var(--d, 32s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.bg-cloud--a { width: clamp(190px, 24vw, 330px); left: -4%; top: 5%; --o: .82; --d: 34s; }
.bg-cloud--b { width: clamp(150px, 18vw, 250px); right: 3%; top: 16%; --o: .6; --d: 42s; --delay: -11s; animation-direction: reverse; }
.bg-cloud--c { width: clamp(120px, 14vw, 190px); left: 5%; bottom: 17%; --o: .38; --d: 48s; --delay: -21s; }

.bg-bloom {
  position: absolute;
  height: auto;
  opacity: .62;
  transform-origin: 50% 88%;
  animation: bgSway var(--d, 20s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.bg-bloom--bl { width: clamp(240px, 31vw, 440px); left: -5%; bottom: -8%; --rot: -9deg; --d: 19s; }
.bg-bloom--br { width: clamp(210px, 27vw, 390px); right: -6%; bottom: -10%; --rot: 10deg; --d: 23s; --delay: -7s; animation-direction: reverse; }
.bg-bloom--tr { width: clamp(140px, 16vw, 240px); right: 7%; top: -5%; --rot: 158deg; --d: 25s; --delay: -12s; opacity: .5; }

.bg-bfly {
  position: absolute;
  width: var(--s, 42px);
  height: auto;
  opacity: var(--o, .6);
  animation: bgFlit var(--d, 22s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.bg-bfly--a { left: 22%; top: 33%; --s: 44px; --o: .7; --d: 21s; }
.bg-bfly--b { right: 19%; top: 25%; --s: 34px; --o: .6; --d: 27s; --delay: -9s; animation-direction: reverse; }
.bg-bfly--c { left: 52%; bottom: 29%; --s: 27px; --o: .5; --d: 32s; --delay: -17s; }
.bg-bfly-wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: bgWingFlap 1.9s ease-in-out infinite;
}
.bg-bfly--b .bg-bfly-wings { animation-duration: 1.55s; animation-delay: -.4s; }
.bg-bfly--c .bg-bfly-wings { animation-duration: 2.2s; animation-delay: -.9s; }

.bg-note {
  position: absolute;
  left: var(--x, 10%);
  top: var(--y, 50%);
  width: var(--s, 24px);
  height: var(--s, 24px);
  color: rgba(230, 70, 124, .2);
  opacity: 0;
  animation: bgNoteRise var(--d, 20s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.bg-note .ico { width: 100%; height: 100%; stroke-width: 1.5; }
.bg-note--a { --x: 8%; --y: 58%; --s: 25px; --d: 19s; --delay: -2s; --drift: 26px; }
.bg-note--b { --x: 86%; --y: 47%; --s: 31px; --d: 25s; --delay: -11s; --drift: -24px; }
.bg-note--c { --x: 62%; --y: 76%; --s: 20px; --d: 22s; --delay: -17s; --drift: 18px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[disabled] { opacity: .48; box-shadow: none; transform: none; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }

.btn-primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #ff8fb1, #f0508a 70%, #e6467c);
  box-shadow: 0 14px 26px -14px rgba(230, 70, 124, .8);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  animation: sheen 6.5s ease-in-out infinite;
  pointer-events: none;
}
.btn-primary:disabled::after { animation: none; opacity: 0; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -16px rgba(230, 70, 124, .85); }

.btn-soft {
  color: var(--rose-deep);
  background: var(--rose-soft);
}
.btn-soft:hover { background: #ffd2e1; }

.btn-meme {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #b79bff, #8f74f0 58%, #f28fbe);
  box-shadow: 0 14px 26px -14px rgba(124, 92, 214, .8);
}
.btn-meme:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -16px rgba(124, 92, 214, .9); }

.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--rose-deep); border-color: var(--line-strong); background: #fff; }

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ff7b8f, #e94660);
  box-shadow: 0 12px 24px -14px rgba(233, 70, 96, .7);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transition: background .18s, color .18s, transform .18s;
}
.btn-icon:hover { background: rgba(255, 111, 156, .12); color: var(--rose-deep); }
.btn-icon:active { transform: scale(.94); }
.btn-icon .ico { width: 21px; height: 21px; }

.btn-block { width: 100%; }

/* ============ Form fields ============ */
.field { display: block; margin-bottom: 15px; }
.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid #ffdbe6;
  border-radius: var(--radius-sm);
  transition: border-color .18s, box-shadow .18s;
}
.field-control:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 111, 156, .14);
}
.field-control > .ico { color: var(--rose); flex: none; }
.field-control input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 600;
  color: var(--ink);
}
.field-control input::placeholder { color: #c3a7b2; font-weight: 500; }

.pw-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
}
.pw-toggle:hover { color: var(--rose-deep); background: var(--rose-mist); }

.input, .textarea, .select {
  width: 100%;
  border: 1.5px solid #ffdbe6;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--ink);
  outline: 0;
  transition: border-color .18s, box-shadow .18s;
}
.input { height: 48px; }
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 111, 156, .13);
}
.input::placeholder, .textarea::placeholder { color: #c3a7b2; font-weight: 500; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose-deep);
  cursor: pointer;
}

.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.form-error {
  min-height: 0;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #d92a4d;
  display: none;
}
.form-error.is-visible { display: block; }

/* ============ Range sliders ============ */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--rose) 0 var(--p, 0%), rgba(74, 38, 55, .14) var(--p, 0%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose);
  box-shadow: 0 4px 10px rgba(230, 70, 124, .35);
  opacity: var(--thumb-o, 1);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(74, 38, 55, .14);
}
input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--rose);
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose);
}

/* ============ Login ============ */
.login-body { overflow-x: hidden; }

.login-page {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 60px);
}

.login-orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}
.login-orb--one {
  width: 460px;
  height: 460px;
  left: -160px;
  top: -150px;
  background: radial-gradient(circle, rgba(255, 175, 202, .5), rgba(255, 175, 202, 0) 68%);
  animation: orbFloat 16s ease-in-out infinite;
}
.login-orb--two {
  width: 560px;
  height: 560px;
  right: -220px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(196, 169, 255, .34), rgba(196, 169, 255, 0) 66%);
  animation: orbFloat 20s ease-in-out infinite reverse;
}
.login-orb--three {
  width: 440px;
  height: 440px;
  left: -130px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(168, 235, 216, .34), rgba(255, 207, 168, .22) 52%, rgba(255, 207, 168, 0) 70%);
  animation: orbFloat 22s ease-in-out infinite;
}

.login-petals { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.float-heart {
  position: absolute;
  left: var(--x, 10%);
  top: var(--y, 20%);
  width: var(--s, 16px);
  height: var(--s, 16px);
  color: rgba(230, 70, 124, var(--o, .28));
  animation: floatHeart var(--d, 10s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.float-heart .ico { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.float-spark {
  position: absolute;
  left: var(--x, 10%);
  top: var(--y, 20%);
  font-family: var(--font-body);
  font-size: var(--s, 12px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 181, 107, var(--o, .4));
  text-shadow: 0 0 12px rgba(255, 190, 120, .55);
  animation: sparkTwinkle var(--d, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1160px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(24px, 4.5vw, 68px);
  align-items: center;
}

.login-hero {
  display: flex;
  justify-content: center;
  animation: fadeUp .85s var(--ease) both;
}

.art-frame {
  position: relative;
  width: min(100%, 520px);
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 216, 230, .72));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .8) inset;
}
.art-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 31px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}
.art-frame > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 31px;
  animation: artBreathe 10s ease-in-out infinite;
}
.art-frame { animation: chibiBob 6.4s ease-in-out infinite; }
.art-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-radius: 31px;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, .4) 50%, transparent 58%) 280% 0 / 280% 100% no-repeat;
  opacity: 0;
  animation: chibiSheen 7.6s ease-in-out -1.4s infinite;
  pointer-events: none;
}

.chibi-life {
  position: absolute;
  inset: 10px;
  z-index: 1;
  border-radius: 31px;
  pointer-events: none;
}
.chibi-life > span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  line-height: 0;
  pointer-events: none;
}
.cl-glow {
  width: var(--w, 22%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c, rgba(255, 174, 203, .5)), rgba(255, 174, 203, 0) 70%);
  mix-blend-mode: screen;
  filter: blur(2px);
  opacity: .3;
  transform: translate(-50%, -50%);
  animation: glowBeat var(--d, 2.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.cl-note {
  color: rgba(238, 96, 148, .85);
  opacity: 0;
  animation: chibiRise var(--d, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.cl-note .ico {
  width: var(--s, 17px);
  height: var(--s, 17px);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .95)) drop-shadow(0 2px 4px rgba(230, 70, 124, .3));
}
.cl-heart {
  color: rgba(255, 111, 156, .9);
  opacity: 0;
  animation: chibiHeart 6.8s ease-in-out infinite;
  animation-delay: var(--delay, -1.2s);
}
.cl-heart .ico {
  width: var(--s, 13px);
  height: var(--s, 13px);
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.1;
  filter: drop-shadow(0 2px 5px rgba(230, 70, 124, .32));
}
.cl-spark {
  font-family: var(--font-body);
  font-size: var(--s, 13px);
  font-weight: 800;
  line-height: 1;
  color: #ffd58f;
  text-shadow: 0 0 10px rgba(255, 197, 110, .8);
  opacity: 0;
  animation: chibiSpark 3.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px 10px 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 36px -22px rgba(167, 55, 98, .55);
  animation: chipFloat 7.5s ease-in-out infinite;
}
.hero-chip--days { top: 7%; left: -18px; }
.hero-chip--songs { right: -16px; bottom: 9%; animation-delay: -3.2s; }
.chip-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, #ffe3ee, #ffeef6);
  color: var(--rose-deep);
}
.chip-icon .ico { width: 19px; height: 19px; }
.chip-text { display: flex; flex-direction: column; line-height: 1.15; }
.chip-text strong { font-family: var(--font-display); font-size: 19px; color: var(--rose-deep); }
.chip-text em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }

.login-card {
  width: 100%;
  max-width: 468px;
  justify-self: center;
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: var(--radius-xl);
  background: linear-gradient(158deg, rgba(255, 255, 255, .94), rgba(255, 246, 250, .8) 52%, rgba(247, 239, 255, .86));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  animation: fadeUp .85s .08s var(--ease) both;
  transition: border-color .2s, opacity .35s, transform .35s;
}
.login-card.has-error { border-color: rgba(233, 70, 96, .35); }
.login-card.shake { animation: shake .42s var(--ease); }

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #fff0f6, #f8ecff 52%, #fff3e3);
  border: 1px solid rgba(255, 214, 228, .9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.login-kicker .ico { width: 14px; height: 14px; animation: sparkTwinkle 3s ease-in-out infinite; }

.login-name {
  position: relative;
  width: 100%;
  max-width: 366px;
  margin: 4px 0 10px;
}
.name-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: artFloat 9s ease-in-out infinite;
}
.name-fallback {
  display: block;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 58px;
  line-height: 1.1;
  color: var(--rose-deep);
}
.name-art-type {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 77px;
  letter-spacing: -.012em;
}
.name-art-type--rim {
  fill: #ff87ad;
  stroke: #ff87ad;
  stroke-width: 15;
  stroke-linejoin: round;
  paint-order: stroke;
}
.name-art-type--halo {
  fill: #fffdfe;
  stroke: #fffdfe;
  stroke-width: 8.5;
  stroke-linejoin: round;
  paint-order: stroke;
}
.name-art-type--fill { paint-order: stroke; }

.name-art-wash {
  transform-box: fill-box;
  transform-origin: center;
  animation: washDrift 15s ease-in-out infinite;
}
.name-art-flower {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.name-art-flower--left { animation: flowerSway 7.2s ease-in-out infinite; }
.name-art-flower--right {
  transform-origin: 50% 0%;
  animation: flowerSway 8.6s ease-in-out -2.4s infinite reverse;
}
.name-art-sprig {
  transform-box: fill-box;
  transform-origin: 15% 100%;
  animation: flowerSway 6.4s ease-in-out -1.1s infinite;
}
.name-art-swash { animation: swashGlow 5.4s ease-in-out -1.2s infinite; }
.name-art-bfly {
  transform-box: fill-box;
  transform-origin: center;
  animation: bflyFloat 5.2s ease-in-out infinite;
}
.name-art-bfly--two { animation-duration: 6.6s; animation-delay: -2.1s; }
.name-art-wings {
  transform-box: fill-box;
  transform-origin: 50% 26%;
  animation: wingFlap 1.15s ease-in-out infinite;
}
.name-art-bfly--two .name-art-wings { animation-duration: 1.35s; animation-delay: -.42s; }
.name-art-twinkles,
.name-art-little-hearts,
.name-art-dots { animation: decorGlow 4.8s ease-in-out infinite; }
.name-art-little-hearts { animation-delay: -1.7s; }
.name-art-dots { animation-delay: -3.1s; }
.name-art-twinkles > g { animation: twinklePulse 3.6s ease-in-out infinite; }
.name-art-twinkles > g:nth-child(2) { animation-delay: -.9s; }
.name-art-twinkles > g:nth-child(3) { animation-delay: -1.8s; }
.name-art-twinkles > g:nth-child(4) { animation-delay: -.4s; }
.name-art-twinkles > g:nth-child(5) { animation-delay: -2.4s; }
.name-art-twinkles > g:nth-child(6) { animation-delay: -1.2s; }
.name-art-shine { animation: artShine 6.8s ease-in-out infinite; }

.login-sub {
  max-width: 355px;
  margin-bottom: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.login-form { margin: 0; }

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 16px;
}
.login-row-note { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

.login-error {
  display: none;
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #fff0f2;
  border: 1px solid #ffd2d9;
  font-size: 13px;
  font-weight: 700;
  color: #cf2347;
}
.login-error.is-visible { display: block; animation: fadeUp .25s var(--ease); }

.login-btn {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 2px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  overflow: hidden;
}
.login-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-18deg);
  animation: sheen 5s ease-in-out infinite;
}
.login-btn .ico { transition: transform .2s; }
.login-btn:hover .ico { transform: translateX(3px); }

.login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(214, 90, 133, .22);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.login-foot .ico { width: 17px; height: 17px; color: var(--rose); }

.login-made {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(124, 85, 102, .5);
  white-space: nowrap;
}

.login-body.is-success .login-card { opacity: 0; transform: translateY(-8px) scale(.97); }
.login-body.is-success .login-hero { opacity: 0; transform: scale(.97); transition: .45s var(--ease); }

.login-burst {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}
.burst-heart {
  position: absolute;
  left: 50%;
  top: 46%;
  width: var(--bs, 20px);
  height: var(--bs, 20px);
  color: var(--bc, #ff6f9c);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: burst .95s var(--ease) forwards;
  animation-delay: var(--bd, 0s);
}
.burst-heart .ico { width: 100%; height: 100%; fill: currentColor; stroke: none; }

/* ============ App shell ============ */
.app-petals {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100dvh;
  padding: 26px 18px 118px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: rgba(255, 252, 253, .9);
  border-right: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(140deg, #ff9fbe, #ee5a8c 60%, #d94b86);
  box-shadow: 0 12px 24px -14px rgba(230, 70, 124, .8);
}
.brand-mark .ico { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.brand-name {
  display: block;
  width: 145px;
  max-width: 100%;
  margin-bottom: 2px;
}
.brand-name .name-art { width: 100%; }
.brand-name .name-mark-type { font-size: 62px; }
.brand-name .name-art-type--rim { stroke-width: 11; }
.brand-name .name-art-type--halo { stroke-width: 6.5; }
.brand-name .name-art-shine { animation-name: markShine; animation-duration: 7.4s; }
.brand-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.side-nav { display: flex; flex-direction: column; gap: 5px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  transition: background .18s, color .18s;
}
.nav-item .ico { width: 20px; height: 20px; color: var(--ink-3); transition: color .18s, transform .18s; }
.nav-item:hover { background: rgba(255, 111, 156, .08); color: var(--rose-deep); }
.nav-item:hover .ico { color: var(--rose); transform: translateY(-1px) scale(1.08); }
.nav-item.is-active {
  color: var(--rose-deep);
  background: linear-gradient(135deg, #ffe4ee, #f6eaff);
  box-shadow: 0 10px 20px -18px rgba(230, 70, 124, .7);
}
.nav-item.is-active .ico { color: var(--rose-deep); }
.nav-item--button { width: 100%; cursor: pointer; }

.side-note {
  position: relative;
  margin-top: 4px;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background:
    radial-gradient(120px 90px at 100% 0%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%),
    linear-gradient(140deg, #ffe7f0, #f7ecff);
  border: 1px solid rgba(255, 255, 255, .8);
  overflow: hidden;
}
.side-note-heart {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .8);
  color: var(--rose-deep);
}
.side-note-heart .ico { width: 17px; height: 17px; }
.side-note p {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink-2);
}
.side-note-days {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-deep);
}

.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.main {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 42px) calc(var(--player-h) + 40px);
}

.topbar { display: none; }

.tabbar { display: none; }

.view { animation: viewIn .4s var(--ease) both; }

.boot-splash {
  min-height: 60vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--ink-3);
  font-weight: 700;
}
.boot-heart {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(140deg, #ff9fbe, #ee5a8c);
  animation: pulseHeart 1.6s ease-in-out infinite;
}
.boot-heart .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; }

/* ============ Page header & shared ============ */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.page-kicker .ico { width: 15px; height: 15px; animation: sparkTwinkle 3.4s ease-in-out infinite; }
.page-head h1 { font-size: clamp(27px, 3vw, 34px); }
.page-sub { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.page-actions { display: flex; align-items: center; gap: 10px; }

.panel {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--rose-mist);
  border: 1px solid rgba(255, 214, 228, .8);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--rose-deep);
}
.pill .ico { width: 14px; height: 14px; }

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 44px 20px 50px;
}
.empty-state img {
  width: min(230px, 58vw);
  height: auto;
  margin-bottom: 16px;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(150deg, #fff, #ffe6f0 65%, #f4e8ff);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 48px -34px rgba(167, 55, 98, .55);
  animation: floatY 9s ease-in-out infinite;
}
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { max-width: 380px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.empty-state .btn { margin-top: 18px; }

/* ============ Home ============ */
.hello {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(270px, .88fr);
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(24px, 3.6vw, 44px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(360px 260px at 88% 12%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 70%),
    linear-gradient(118deg, #ffe1ee 0%, #f6e7ff 38%, #e9f1ff 68%, #fff0de 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .78);
}
.hello::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 65%);
  pointer-events: none;
}
.hello-copy { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hello-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .8);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--rose-deep);
}
.hello-kicker .ico { width: 14px; height: 14px; animation: sparkTwinkle 3.2s ease-in-out infinite; }
.hello-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.14;
  max-width: 560px;
}
.hello-title .name-art {
  width: clamp(232px, 82%, 342px);
  margin: 4px 0 2px;
}
.hello-sub {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.hello-stats {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
}
.stat { display: flex; flex-direction: column; line-height: 1.1; }
.stat strong { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--ink); }
.stat span { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.stat--days {
  flex-direction: row;
  align-items: baseline;
  gap: 7px;
  padding: 8px 16px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .85);
}
.stat--days strong { font-size: 34px; color: var(--rose-deep); letter-spacing: -.02em; }
.stat--days span { margin: 0; font-size: 12px; }

.hello-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.hello-art {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hello-art::before {
  content: '';
  position: absolute;
  top: 4px;
  width: min(100%, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 177, .34), rgba(207, 139, 255, .18) 48%, transparent 70%);
  filter: blur(10px);
  animation: haloPulse 7s ease-in-out infinite;
  pointer-events: none;
}
.hello-art-frame {
  position: relative;
  width: min(100%, 330px);
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #ffeaf3 58%, #f1e7ff);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 30px 60px -34px rgba(167, 55, 98, .55);
  animation: chibiBob 6.8s ease-in-out infinite;
}
.hello-art-frame img { display: block; width: 100%; height: auto; border-radius: 23px; }
.hello-art-frame::before {
  content: '';
  position: absolute;
  inset: 7px;
  z-index: 2;
  border-radius: 23px;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, .42) 50%, transparent 58%) 280% 0 / 280% 100% no-repeat;
  opacity: 0;
  animation: chibiSheen 8.2s ease-in-out -3.2s infinite;
  pointer-events: none;
}
.hello-art-frame .chibi-life { inset: 7px; border-radius: 23px; }
.hello-art-frame::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 23px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
  pointer-events: none;
}
.note-bubble {
  position: relative;
  z-index: 3;
  width: min(100%, 320px);
  margin-top: -18px;
  padding: 15px 17px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 36px -24px rgba(167, 55, 98, .55);
  transform: rotate(-1.2deg);
  animation: noteSway 7s ease-in-out infinite;
}
.note-quote { color: rgba(230, 70, 124, .35); margin-bottom: 4px; }
.note-quote .ico { width: 20px; height: 20px; fill: currentColor; stroke: none; animation: heartBeat 3.4s ease-in-out infinite; }
.note-text {
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-2);
  transition: opacity .2s;
}
.note-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--rose-deep);
}
.note-shuffle .ico { width: 13px; height: 13px; }
.note-shuffle:hover { text-decoration: underline; }

.hello-deco {
  position: absolute;
  color: rgba(230, 70, 124, .28);
  pointer-events: none;
  animation: floatHeart 9s ease-in-out infinite;
}
.hello-deco .ico { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.hello-deco--one {
  top: 12%;
  right: 31%;
  width: 22px;
  height: 22px;
  color: rgba(255, 111, 156, .5);
  animation-delay: -2.4s;
}
.hello-deco--two {
  right: 5%;
  bottom: 27%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 183, 94, .8);
  text-shadow: 0 0 10px rgba(255, 183, 94, .6);
  animation: sparkTwinkle 3.2s ease-in-out infinite;
}
.hello-deco--three {
  left: 44%;
  bottom: 9%;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: rgba(196, 140, 255, .7);
  animation: sparkTwinkle 2.7s ease-in-out infinite;
  animation-delay: -1.4s;
}

.shelf { margin-top: 30px; }
.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.shelf-head h2 { font-size: 21px; }
.shelf-head a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--rose-deep);
}
.shelf-head a .ico { width: 14px; height: 14px; }

/* ============ Meme ============ */
.stat--meme strong { color: #7c5ce0; }

.meme-spotlight {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(240px 170px at 3% 0%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 70%),
    linear-gradient(118deg, #efe4ff, #ffe6f2 54%, #fff4e4);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.meme-spotlight::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .65);
  pointer-events: none;
}
.meme-spotlight-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 19px;
  color: #7352d6;
  background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 14px 26px -18px rgba(123, 90, 224, .85);
}
.meme-spotlight-ico .ico { width: 29px; height: 29px; }
.meme-spark {
  position: absolute;
  font-style: normal;
  font-weight: 800;
  color: #b78df2;
  animation: sparkTwinkle 3.4s ease-in-out infinite;
}
.meme-spark--a { top: -2px; right: 3px; font-size: 13px; }
.meme-spark--b { bottom: 1px; left: 2px; font-size: 10px; animation-delay: -1.6s; }
.meme-spotlight-copy { flex: 1 1 240px; min-width: 0; }
.meme-spotlight-copy h2 { font-size: 19px; margin-bottom: 4px; }
.meme-spotlight-copy p { max-width: 540px; font-size: 12.5px; font-weight: 600; line-height: 1.55; color: var(--ink-3); }
.meme-spotlight-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.meme-spotlight-pills span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .92);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-2);
}
.meme-spotlight-pills strong { font-family: var(--font-display); font-size: 17px; color: #7352d6; }

.meme-tease {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(118deg, #f0e6ff, #ffe7f2 56%, #fff3e4);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.meme-tease::before {
  content: '';
  position: absolute;
  right: 22%;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.meme-tease-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(140deg, #b79bff, #8f74f0);
  box-shadow: 0 16px 28px -18px rgba(124, 92, 214, .95);
}
.meme-tease-art .ico { width: 30px; height: 30px; }
.meme-tease-art i {
  position: absolute;
  top: -5px;
  right: -2px;
  font-style: normal;
  font-size: 13px;
  color: #efa7c9;
  animation: sparkTwinkle 3.1s ease-in-out infinite;
}
.meme-tease-copy { flex: 1 1 220px; min-width: 0; }
.meme-tease-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8465d9;
}
.meme-tease-copy h2 { font-size: 20px; margin-bottom: 4px; }
.meme-tease-copy p { font-size: 12.5px; font-weight: 600; line-height: 1.55; color: var(--ink-3); }
.meme-tease-btn { flex: none; }

.add-panel--meme .segmented { background: rgba(245, 239, 255, .9); border-color: rgba(228, 216, 255, .95); }
.add-panel--meme .seg.is-active {
  color: #7352d6;
  box-shadow: 0 8px 18px -12px rgba(115, 82, 214, .55);
}
.add-panel--meme .dropzone {
  border-color: #d9c8ff;
  background: linear-gradient(180deg, rgba(250, 247, 255, .86), rgba(255, 241, 248, .62));
}
.add-panel--meme .dropzone:hover, .add-panel--meme .dropzone.is-drag {
  border-color: #a98cf5;
  background: linear-gradient(180deg, #faf7ff, #ffeaf3);
}
.add-panel--meme .dropzone-icon { color: #7352d6; }

/* ============ Library ============ */
.lib-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  transition: background .18s, color .18s, border-color .18s;
}
.chip:hover { border-color: var(--line-strong); background: #fff; }
.chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #ff8fb1, #ef5b8c);
  color: #fff;
  box-shadow: 0 10px 20px -14px rgba(230, 70, 124, .85);
}
.chip-count {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(74, 38, 55, .07);
  font-size: 10.5px;
  text-align: center;
}
.chip.is-active .chip-count { background: rgba(255, 255, 255, .25); }

.lib-tools { display: flex; align-items: center; gap: 9px; min-width: 0; }
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(300px, 42vw);
  min-width: 0;
  height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  transition: border-color .18s, box-shadow .18s;
}
.search-box:focus-within { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 111, 156, .12); }
.search-box .ico { width: 17px; height: 17px; color: var(--rose); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.search-box input::placeholder { color: var(--ink-3); font-weight: 600; }

.select {
  height: 42px;
  width: auto;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  background-color: rgba(255, 255, 255, .86);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a98a97' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  cursor: pointer;
}

.lib-summary { margin-bottom: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.lib-summary strong { color: var(--rose-deep); }

.grid-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 16px;
}

.track-card {
  position: relative;
  min-width: 0;
  padding: 9px 9px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .87);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.grid-tracks .track-card { animation: cardIn .5s var(--ease) backwards; }
.grid-tracks .track-card:nth-child(2) { animation-delay: .04s; }
.grid-tracks .track-card:nth-child(3) { animation-delay: .08s; }
.grid-tracks .track-card:nth-child(4) { animation-delay: .12s; }
.grid-tracks .track-card:nth-child(5) { animation-delay: .16s; }
.grid-tracks .track-card:nth-child(6) { animation-delay: .2s; }
.grid-tracks .track-card:nth-child(7) { animation-delay: .24s; }
.grid-tracks .track-card:nth-child(8) { animation-delay: .28s; }
.track-card:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: var(--shadow); }
.track-card.is-playing { box-shadow: 0 0 0 2px rgba(255, 111, 156, .55), var(--shadow); }

.track-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--rose-soft);
}
.track-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.track-card:hover .track-img { transform: scale(1.045); }

.cover-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .6), transparent 46%),
    linear-gradient(135deg, hsl(var(--h, 335) 92% 88%), hsl(calc(var(--h, 335) + 46) 86% 80%));
}
.cover-fallback::before {
  content: '';
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 245, 249, .8) 0 14%, transparent 15%),
    repeating-radial-gradient(circle, rgba(74, 38, 55, .2) 0 2px, transparent 2px 9px);
  opacity: .6;
}
.cover-fallback .ico {
  position: absolute;
  width: 32%;
  height: 32%;
  color: rgba(255, 255, 255, .92);
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 6px 12px rgba(167, 55, 98, .25));
}
.cover-fallback--sm::before { width: 62%; }
.cover-fallback--sm .ico { width: 38%; height: 38%; }

.track-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.track-badge--youtube { background: rgba(255, 240, 242, .94); color: #c62839; }
.track-badge--tiktok { background: rgba(34, 29, 34, .82); color: #fff; }
.track-badge--audio { background: rgba(255, 238, 245, .94); color: var(--rose-deep); }
.track-badge--video { background: rgba(243, 236, 255, .94); color: #7a55c9; }
.track-badge--meme { background: rgba(244, 236, 255, .95); color: #7352d6; }

.track-fav {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  color: var(--ink-3);
  box-shadow: 0 6px 14px -8px rgba(74, 38, 55, .4);
  transition: transform .18s, color .18s, background .18s;
}
.track-fav .ico { width: 17px; height: 17px; }
.track-fav:hover { transform: scale(1.08); color: var(--rose-deep); }
.track-fav.is-active { color: #fff; background: linear-gradient(135deg, #ff8fb1, #ef5b8c); }
.track-fav.is-active .ico { fill: currentColor; animation: heartBeat 2.6s ease-in-out infinite; }

.track-play {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9ab9, #ef5b8c);
  color: #fff;
  box-shadow: 0 12px 22px -10px rgba(230, 70, 124, .8);
  transition: transform .18s, filter .18s;
}
.track-play:hover { transform: scale(1.07); filter: brightness(1.04); }
.track-play:active { transform: scale(.95); }
.track-play .ico { width: 20px; height: 20px; margin-left: 2px; }
.track-card.is-playing .track-play { animation: playPulse 2.4s ease-in-out infinite; }
.track-card.is-playing .track-play .ico { margin-left: 0; }

.track-card .eq { display: none; }
.track-card.is-playing .eq { display: flex; }
.eq {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
}
.eq span {
  width: 2.5px;
  border-radius: 99px;
  background: var(--rose-deep);
  animation: eqBar .9s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 6px; animation-delay: -.2s; }
.eq span:nth-child(2) { height: 12px; animation-delay: -.5s; }
.eq span:nth-child(3) { height: 8px; animation-delay: -.8s; }
.eq span:nth-child(4) { height: 14px; animation-delay: -.35s; }

.track-body { position: relative; padding: 10px 26px 0 4px; min-width: 0; }
.track-title {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-title:hover { color: var(--rose-deep); }
.track-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.track-sub span { overflow: hidden; text-overflow: ellipsis; }
.track-sub .dot { flex: none; opacity: .6; }
.track-more {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
}
.track-more:hover { background: var(--rose-mist); color: var(--rose-deep); }
.track-more .ico { width: 17px; height: 17px; }

.lib-more { display: flex; justify-content: center; margin-top: 22px; }

/* ============ Popover menu ============ */
.popmenu {
  position: fixed;
  z-index: 150;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: popIn .16s var(--ease);
}
.popmenu button, .popmenu a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: left;
}
.popmenu button:hover, .popmenu a:hover { background: var(--rose-mist); color: var(--rose-deep); }
.popmenu .ico { width: 16px; height: 16px; }
.popmenu .is-danger { color: #d92a4d; }
.popmenu .is-danger:hover { background: #fff0f2; color: #c41f40; }
.popmenu-sep { height: 1px; margin: 4px 6px; background: var(--line); }

/* ============ Add / Edit ============ */
.add-panel { max-width: 940px; }

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 240, 245, .85);
  border: 1px solid rgba(255, 224, 234, .9);
}
.seg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg .ico { width: 16px; height: 16px; }
.seg.is-active {
  background: #fff;
  color: var(--rose-deep);
  box-shadow: 0 8px 18px -12px rgba(167, 55, 98, .45);
}

.tab-panel { animation: fadeUp .3s var(--ease); }

.dropzone {
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(30px, 5vw, 52px) 22px;
  border: 2px dashed #ffc9da;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 247, 250, .8), rgba(255, 240, 246, .6));
  transition: border-color .2s, background .2s, transform .2s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--rose);
  background: linear-gradient(180deg, #fff6fa, #ffeaf2);
}
.dropzone.is-drag { transform: scale(1.005); }
.dropzone-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 22px;
  color: var(--rose-deep);
  background: #fff;
  box-shadow: 0 14px 26px -18px rgba(167, 55, 98, .5);
}
.dropzone-icon .ico { width: 28px; height: 28px; }
.dropzone h3 { font-size: 19px; margin-bottom: 5px; }
.dropzone p { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.dropzone .btn { margin-top: 16px; pointer-events: none; }
.dropzone input[type="file"] { display: none; }

.upload-list { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.up-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.up-row.is-error { border-color: #ffc8d2; background: #fff8f9; }
.up-cover {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--rose-mist);
}
.up-cover img, .up-cover .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.up-main { min-width: 0; }
.up-title {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  padding: 2px 0;
  border-bottom: 1px dashed transparent;
}
.up-title:focus { border-bottom-color: var(--rose); }
.up-artist {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  padding: 1px 0;
}
.up-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.up-status { color: var(--ink-3); }
.up-status.is-done { color: #2f9e78; }
.up-status.is-error { color: #d92a4d; }
.up-progress {
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 111, 156, .15);
  overflow: hidden;
}
.up-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb3ca, #f0508a);
  transition: width .15s linear;
}
.up-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
}
.up-remove:hover { background: #fff0f2; color: #d92a4d; }
.up-remove .ico { width: 16px; height: 16px; }

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.upload-count { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.upload-actions .btn { min-width: 180px; }

.tip-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-3);
}
.tip-line .ico { width: 15px; height: 15px; margin-top: 2px; color: var(--rose); flex: none; }

.link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.link-form .field-control { height: 50px; }
.link-form .btn { height: 50px; }

.link-preview {
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  animation: fadeUp .3s var(--ease);
}
.link-preview-inner { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 14px; align-items: center; }
.link-cover {
  width: 128px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rose-mist);
}
.link-cover img, .link-cover .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.link-preview h3 { font-size: 16px; margin-bottom: 5px; }
.link-preview .link-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 8px; }
.link-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 8px; }
.link-fields .input { height: 40px; font-size: 13px; }
.link-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--surface-2);
  border-top: 1px dashed var(--line);
}
.link-note { font-size: 11px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.link-note .ico { width: 13px; height: 13px; color: var(--rose); }

.loading-dot {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.loading-dot span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  animation: dotPulse 1s ease-in-out infinite;
}
.loading-dot span:nth-child(2) { animation-delay: .15s; }
.loading-dot span:nth-child(3) { animation-delay: .3s; }

.edit-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.cover-picker {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--rose-mist);
  box-shadow: var(--shadow-sm);
}
.cover-picker img, .cover-picker .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.cover-picker-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(180deg, transparent 55%, rgba(74, 38, 55, .6));
  opacity: 0;
  transition: opacity .2s;
}
.cover-picker:hover .cover-picker-overlay { opacity: 1; }
.cover-picker-overlay .ico { width: 18px; height: 18px; }
.cover-picker input[type="file"] { display: none; }
.edit-fields .input { margin-bottom: 12px; }
.edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.edit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.edit-actions-right { display: flex; gap: 8px; }

/* ============ Settings ============ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.settings-card { padding: 24px; }
.settings-card--wide { grid-column: 1 / -1; }
.settings-card h2 { font-size: 19px; margin-bottom: 4px; }
.settings-card .hint { margin-bottom: 16px; }
.settings-card .field { margin-bottom: 6px; }
.settings-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.info-list { display: flex; flex-direction: column; gap: 9px; }
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--ink-3); font-weight: 700; }
.info-row strong { font-weight: 800; color: var(--ink); text-align: right; word-break: break-word; }

.note-editor { display: flex; flex-direction: column; gap: 8px; }
.note-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; align-items: start; }
.note-row .textarea { min-height: 62px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.note-remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
}
.note-remove:hover { background: #fff0f2; color: #d92a4d; }
.note-remove .ico { width: 16px; height: 16px; }

.danger-card {
  background: linear-gradient(160deg, #fff7f9, #fff1f4);
  border-color: #ffdbe3;
}
.danger-card h2 { color: #c92a4c; }

/* ============ Player ============ */
.player {
  position: fixed;
  left: var(--sidebar);
  right: 0;
  bottom: 0;
  z-index: 45;
  height: var(--player-h);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 20px;
  background: rgba(255, 251, 253, .95);
  border-top: 1px solid var(--line);
  box-shadow: 0 -20px 50px -42px rgba(167, 55, 98, .5);
}
.player.is-empty { opacity: .78; }
.player-seek {
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  width: 100%;
  height: 16px;
  --thumb-o: 0;
}
.player-seek:hover, .player-seek:focus-visible { --thumb-o: 1; }
.player-seek::-webkit-slider-runnable-track { height: 3px; }
.player-seek::-webkit-slider-thumb { margin-top: -5.5px; width: 13px; height: 13px; }
.player-seek::-moz-range-track, .player-seek::-moz-range-progress { height: 3px; }

.player-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.player-cover {
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rose-mist);
  box-shadow: var(--shadow-sm);
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-cover .cover-fallback { width: 100%; height: 100%; }
.player-cover .cover-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #ffe3ee, #f4e7ff);
  color: var(--rose-deep);
}
.player-cover .cover-ph .ico { width: 22px; height: 22px; }
.player-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.player-title {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-title:hover { color: var(--rose-deep); }
.player-artist {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-fav { width: 34px; height: 34px; }
.player-fav .ico { width: 17px; height: 17px; }
.player-fav.is-active { color: var(--rose-deep); }
.player-fav.is-active .ico { fill: currentColor; }
.player-del { flex: none; width: 34px; height: 34px; }
.player-del .ico { width: 16px; height: 16px; }
.player-del:hover, .player-del:focus-visible { color: #fff; background: linear-gradient(135deg, #ff8fb1, #ef5b8c); }
.player-del:active { transform: scale(.94); }

.player-center { display: flex; align-items: center; justify-content: center; gap: 4px; }
.player-center .btn-icon { width: 36px; height: 36px; }
.player-center .btn-icon .ico { width: 18px; height: 18px; }
.player-center .btn-icon.is-on { color: var(--rose-deep); background: var(--rose-mist); }
.player-center .btn-icon.is-on::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose-deep);
}
.player-center .btn-icon { position: relative; }
.player-play, .np-play {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 5px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #ff8fb1, #ee5a8c 65%, #e6467c);
  box-shadow: 0 14px 26px -14px rgba(230, 70, 124, .9);
  transition: transform .18s, filter .18s;
}
.player-play:hover, .np-play:hover { transform: scale(1.05); filter: brightness(1.03); }
.player-play:active, .np-play:active { transform: scale(.95); }
.player-play .ico, .np-play .ico { width: 21px; height: 21px; margin-left: 2px; }
.player-play.is-playing .ico, .np-play.is-playing .ico { margin-left: 0; }
.player.is-playing .player-cover { animation: coverBob 3.2s ease-in-out infinite; }
.player.is-playing .player-play,
.np.is-playing .np-play { animation: playPulse 2.4s ease-in-out infinite; }
.player.is-playing .player-cover .cover-ph .ico { animation: discSpin 8s linear infinite; }
.np.is-playing .np-cover { animation: coverBob 4.6s ease-in-out infinite; }
.np.is-playing .np-cover-ph .ico { animation: discSpin 9s linear infinite; }

.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.player-time { font-size: 11px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.volume-wrap { display: flex; align-items: center; gap: 2px; }
.volume-wrap input[type="range"] { width: 74px; height: 16px; --thumb-o: 0; }
.volume-wrap input[type="range"]:hover { --thumb-o: 1; }
.volume-wrap .btn-icon { width: 32px; height: 32px; }
.volume-wrap .btn-icon .ico { width: 17px; height: 17px; }

/* ============ Now playing ============ */
.np {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform .45s var(--ease), visibility .45s;
  background: linear-gradient(160deg, #fff5fa 0%, #f7edff 55%, #fff3e8 100%);
  overflow: hidden;
}
.np.is-open { visibility: visible; transform: translateY(0); }
.np-backdrop { position: absolute; inset: -10%; z-index: 0; overflow: hidden; opacity: .34; }
.np-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(54px) saturate(1.15);
  transform: scale(1.18);
}
.np-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 245, 250, .55), rgba(247, 237, 255, .62) 55%, rgba(255, 243, 232, .6));
}
.np-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(16px, 2.6vw, 26px) clamp(16px, 4vw, 44px) calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.np-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-bottom: 6px;
}
.np-head .btn-icon { width: 42px; height: 42px; background: rgba(255, 255, 255, .55); }
.np-head .btn-icon:hover { background: rgba(255, 255, 255, .85); }
.np-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.np-del:hover, .np-del:focus-visible { color: #fff; background: linear-gradient(135deg, #ff8fb1, #ef5b8c); }
.np-kicker {
  text-align: center;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.np-fav.is-active { color: var(--rose-deep); }
.np-fav.is-active .ico { fill: currentColor; }

.np-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 12px 0 8px;
}

.np-art {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  border-radius: 30px;
  overflow: hidden;
  background: var(--rose-mist);
  box-shadow: 0 40px 80px -40px rgba(120, 40, 80, .55);
  flex: none;
}
.np-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-cover-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .62), transparent 48%),
    linear-gradient(140deg, #ffd9e6, #ecdcff 60%, #ffe6d3);
  color: var(--rose-deep);
}
.np-cover-ph .ico { width: 26%; height: 26%; opacity: .8; }
.np-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #160b11;
  object-fit: contain;
  display: none;
}
.np-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  display: none;
}
.np.is-video .np-video { display: block; }
.np.is-video .np-cover, .np.is-video .np-cover-ph { display: none; }
.np.is-link .np-embed { display: block; }
.np.is-link .np-cover, .np.is-link .np-cover-ph { display: none; }
.np.is-link .np-art { background: #000; }
.np.is-tiktok .np-art { width: min(100%, 330px); aspect-ratio: 9 / 16; height: min(58vh, 560px); }
.np.is-youtube .np-art { width: min(100%, 760px); aspect-ratio: 16 / 9; height: auto; }
.np.is-video .np-art { width: min(100%, 760px); aspect-ratio: 16 / 9; height: auto; }

.np-meta { text-align: center; max-width: 620px; padding: 0 8px; }
.np-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.np-meta h2 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; }
.np-meta p { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); }

.np-seek-wrap { width: min(100%, 520px); }
.np-seek { width: 100%; height: 20px; }
.np-times {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.np-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.np-controls .btn-icon { width: 44px; height: 44px; }
.np-controls .btn-icon.is-on { color: var(--rose-deep); background: rgba(255, 255, 255, .7); }
.np-side { width: 46px; height: 46px; }
.np-play { width: 64px; height: 64px; margin: 0 8px; }
.np-play .ico { width: 25px; height: 25px; }

.np-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.np-actions .btn { background: rgba(255, 255, 255, .75); }
.np.is-link .np-seek-wrap, .np.is-link .np-controls { display: none; }
.np.is-link .np-content { gap: 16px; }
.np.is-link .np-actions { margin-top: 2px; }

/* ============ Toasts & modal ============ */
.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  width: min(92vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 13px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #59c9a5;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-2);
  pointer-events: auto;
  animation: toastIn .25s var(--ease);
}
.toast--error { border-left-color: #ee4d6b; }
.toast--info { border-left-color: #9b7fe8; }
.toast-ico {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e9f9f3;
  color: #2f9e78;
}
.toast--error .toast-ico { background: #fff0f2; color: #d92a4d; }
.toast--info .toast-ico { background: #f3edff; color: #7a55c9; }
.toast-ico .ico { width: 15px; height: 15px; }
.toast-text { flex: 1; min-width: 0; }
.toast-x {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
}
.toast-x:hover { background: var(--rose-mist); color: var(--ink); }
.toast-x .ico { width: 14px; height: 14px; }

.modal-root:empty { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(74, 38, 55, .32);
  animation: fadeIn .2s ease;
}
.modal {
  width: min(100%, 420px);
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modalIn .28s var(--ease);
}
.modal-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: var(--rose-deep);
  background: linear-gradient(140deg, #ffe3ee, #f4e8ff);
}
.modal-icon .ico { width: 24px; height: 24px; }
.modal h3 { font-size: 20px; margin-bottom: 7px; }
.modal p { font-size: 13.5px; font-weight: 600; color: var(--ink-3); line-height: 1.55; }
.modal-actions { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.modal-actions .btn { min-width: 110px; }
.modal-actions .btn-ghost { background: var(--surface-2); }

/* ============ Calendar events ============ */
.event-btn {
  position: absolute;
  top: clamp(14px, 2.2vw, 22px);
  right: clamp(14px, 2.2vw, 22px);
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .72);
  color: var(--rose-deep);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), background .18s ease, box-shadow .18s ease;
}
.event-btn .ico { width: 20px; height: 20px; }
.event-btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(167, 55, 98, .6); }
.event-btn:active { transform: scale(.94); }
.event-btn:focus-visible { outline: 3px solid rgba(255, 111, 156, .35); outline-offset: 2px; }
.event-btn-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--rose-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.event-btn-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--lilac);
}

.event-ribbon-slot { margin-top: 13px; max-width: 100%; }
.event-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 13px 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .62);
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), background .18s ease, border-color .18s ease;
}
.event-ribbon:hover { background: #fff; border-color: var(--line-strong); transform: translateY(-1px); }
.event-ribbon:active { transform: scale(.98); }
.event-ribbon:focus-visible { outline: 3px solid rgba(255, 111, 156, .3); outline-offset: 2px; }
.event-ribbon > .ico:first-child { flex: none; width: 16px; height: 16px; color: var(--rose-deep); }
.event-ribbon > .ico:last-child { flex: none; width: 14px; height: 14px; color: var(--ink-3); }
.event-ribbon-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-ribbon-extra {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 10px;
  font-weight: 800;
}
.event-ribbon.is-soon {
  background: linear-gradient(135deg, #fff, #ffe7f1);
  border-color: rgba(230, 70, 124, .26);
  color: var(--rose-deep);
  animation: ribbonGlow 3.6s ease-in-out infinite;
}
.event-ribbon.is-soon > .ico:first-child { animation: sparkTwinkle 2.8s ease-in-out infinite; }
.event-ribbon--empty { color: var(--ink-3); }
.event-ribbon--empty > .ico:first-child { color: var(--lilac); }

.event-overlay { z-index: 215; padding: 16px; }
.event-modal {
  width: min(100%, 540px);
  max-height: min(88vh, 780px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  text-align: left;
}
.event-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(132deg, #fff8fb, #f7efff);
}
.event-head-ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(140deg, #ffe3ee, #f4e8ff);
  color: var(--rose-deep);
}
.event-head-ico .ico { width: 21px; height: 21px; }
.event-head-copy { flex: 1; min-width: 0; }
.event-head-copy h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.event-head-copy p { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.event-close {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  transition: background .16s ease, color .16s ease;
}
.event-close:hover { background: #fff; color: var(--ink); }
.event-close .ico { width: 17px; height: 17px; }

.event-body { flex: 1 1 auto; min-height: 0; padding: 13px 16px 4px; overflow-y: auto; overscroll-behavior: contain; }

.event-list { list-style: none; margin: 0 0 13px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.event-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: var(--surface-2);
}
.event-item.is-editing { border-color: var(--rose-2); background: #fff; }
.event-item--monthly { background: linear-gradient(120deg, #fff5fa, #f7f1ff); }
.event-item--monthly .event-date { border-color: rgba(183, 154, 246, .35); }
.event-item--monthly .event-date strong { color: #8d6ce0; }
.event-monthly-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--lilac); }
.event-monthly-mark .ico { width: 16px; height: 16px; }
.event-date {
  width: 44px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 10px -8px rgba(167, 55, 98, .5);
  line-height: 1;
}
.event-date strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--rose-deep); }
.event-date span { margin-top: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.event-info { min-width: 0; display: flex; flex-direction: column; }
.event-info strong { font-size: 13.5px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-info span { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.event-when {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.event-when.is-hot { border-color: transparent; background: var(--rose-soft); color: var(--rose-deep); }
.event-actions { display: flex; gap: 2px; }
.event-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  transition: background .16s ease, color .16s ease;
}
.event-actions button:hover { background: #fff; color: var(--rose-deep); }
.event-actions .ico { width: 15px; height: 15px; }
.event-actions.is-confirm { gap: 5px; }
.event-actions.is-confirm button { width: auto; height: 28px; padding: 0 8px; font-size: 11px; font-weight: 800; }
.event-actions .event-del-ok { background: var(--rose-deep); color: #fff; }
.event-actions .event-del-ok:hover { background: #d33a6f; color: #fff; }
.event-actions .event-del-no { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }

.event-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 16px 18px; text-align: center; }
.event-empty-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(140deg, #ffe9f2, #f3eaff);
  color: var(--lilac);
}
.event-empty-ico .ico { width: 22px; height: 22px; }
.event-empty p { max-width: 300px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

.event-form { margin-top: 4px; padding-top: 13px; border-top: 1px dashed var(--line); }
.event-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.event-form-head strong { font-family: var(--font-display); font-size: 15px; }
.event-edit-cancel {
  padding: 4px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rose-deep);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
}
.event-edit-cancel:hover { background: var(--rose-mist); }
.event-field { margin-bottom: 10px; }
.event-form-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; }
.event-form-row .field { margin-bottom: 4px; }
.event-form-row .select { width: 100%; height: 44px; }
.event-form .form-error { margin: 2px 0 0; }
.event-form-actions { margin-top: 9px; }
.event-form-actions .btn { width: 100%; height: 44px; }

.event-suggest { margin: 13px 0 9px; }
.event-suggest-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.event-suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.event-chip {
  padding: 5px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.event-chip:hover { border-style: solid; border-color: var(--rose-2); background: var(--rose-mist); color: var(--rose-deep); }

.event-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fffafc;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}
.event-foot .ico { flex: none; width: 14px; height: 14px; color: var(--lilac); }
.event-foot span { min-width: 0; }

@keyframes ribbonGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 70, 124, 0); }
  50% { box-shadow: 0 0 0 5px rgba(230, 70, 124, .08); }
}

@media (max-width: 560px) {
  .event-overlay { padding: 10px; }
  .event-modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 22px; }
  .event-head { padding: 13px 14px 12px; gap: 10px; }
  .event-head-ico { width: 38px; height: 38px; border-radius: 12px; }
  .event-head-ico .ico { width: 18px; height: 18px; }
  .event-head-copy h3 { font-size: 16.5px; }
  .event-head-copy p { font-size: 10.5px; }
  .event-body { padding: 11px 11px 2px; }
  .event-item { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; padding: 7px 8px; }
  .event-date { grid-row: 1 / span 2; width: 42px; height: 44px; }
  .event-when { grid-column: 2; grid-row: 2; justify-self: start; padding: 1px 7px; font-size: 10px; }
  .event-actions { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .event-monthly-mark { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .event-body .field-label { font-size: 10.5px; }
  .event-ribbon { gap: 7px; padding: 7px 11px 7px 10px; font-size: 12px; }
  .event-ribbon-extra { display: none; }
  .event-foot { padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px)); font-size: 10.5px; }
  .event-btn { width: 38px; height: 38px; border-radius: 12px; }
}

@media (max-width: 380px) {
  .event-suggest-chips { gap: 5px; }
  .event-chip { padding: 4px 8px; font-size: 10.5px; }
}

/* ============ Animations ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes artBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes chibiBob {
  0%, 100% { transform: translateY(0) rotate(-.45deg); }
  50% { transform: translateY(-6px) rotate(.45deg); }
}
@keyframes chibiSheen {
  0%, 30% { background-position: 140% 0; opacity: 0; }
  38% { opacity: .72; }
  64% { background-position: -40% 0; opacity: .72; }
  72%, 100% { background-position: -40% 0; opacity: 0; }
}
@keyframes glowBeat {
  0%, 100% { opacity: .22; transform: translate(-50%, -50%) scale(.82); }
  42% { opacity: .85; transform: translate(-50%, -50%) scale(1.1); }
  58% { opacity: .45; transform: translate(-50%, -50%) scale(.96); }
}
@keyframes chibiRise {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) rotate(-10deg) scale(.6); }
  18% { opacity: .9; }
  68% { opacity: .8; }
  100% { opacity: 0; transform: translate3d(var(--drift, 8px), -52px, 0) rotate(12deg) scale(1.02); }
}
@keyframes chibiHeart {
  0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(.5) rotate(-6deg); }
  22% { opacity: .95; }
  72% { opacity: .7; }
  100% { opacity: 0; transform: translate3d(var(--drift, -8px), -42px, 0) scale(1.06) rotate(8deg); }
}
@keyframes chibiSpark {
  0%, 100% { opacity: 0; transform: scale(.35) rotate(0deg); }
  45% { opacity: 1; transform: scale(1.12) rotate(24deg); }
  60% { opacity: .6; transform: scale(.9) rotate(34deg); }
}
.music-playing .hello-art-frame { animation-duration: 3.4s; }
.music-playing .hello-art-frame .cl-glow { animation-duration: 1.15s; }
.music-playing .hello-art-frame .cl-note { animation-duration: 4.6s; }
.music-playing .bg-bloom--bl { animation-duration: 11s; }
.music-playing .bg-bloom--br { animation-duration: 13s; }
.music-playing .bg-bfly { animation-duration: 13s; }
.music-playing .bg-note { animation-duration: 12s; }
.music-playing .bg-ribbon .bg-ribbon-dash { animation-duration: 13s; }
@keyframes floatHeart {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(6px, -20px, 0) rotate(9deg); }
}
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes orbFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(24px, 18px, 0); } }
@keyframes sheen { 0%, 55% { left: -60%; } 80%, 100% { left: 125%; } }
@keyframes pulseHeart { 0%, 100% { transform: scale(1); box-shadow: 0 14px 30px -18px rgba(230, 70, 124, .8); } 50% { transform: scale(1.08); box-shadow: 0 20px 36px -16px rgba(230, 70, 124, .9); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0deg); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -160px))) scale(var(--bs2, 1.2)) rotate(var(--br, 30deg)); }
}
@keyframes eqBar { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
@keyframes dotPulse { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes artFloat {
  0%, 100% { transform: translateY(0) rotate(-.35deg); }
  50% { transform: translateY(-4px) rotate(.35deg); }
}
@keyframes washDrift {
  0%, 100% { opacity: .8; transform: scale(1) translateX(0); }
  50% { opacity: 1; transform: scale(1.05) translateX(7px); }
}
@keyframes flowerSway {
  0%, 100% { transform: rotate(-2.6deg); }
  50% { transform: rotate(2.6deg); }
}
@keyframes swashGlow {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes bflyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3.5deg); }
}
@keyframes wingFlap {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(.52); }
}
@keyframes twinklePulse {
  0%, 100% { opacity: .22; }
  50% { opacity: 1; }
}
@keyframes decorGlow {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
@keyframes artShine {
  0%, 16% { transform: translateX(0); opacity: 0; }
  24% { opacity: .95; }
  62% { transform: translateX(560px); opacity: .95; }
  70%, 100% { transform: translateX(560px); opacity: 0; }
}
@keyframes markShine {
  0%, 16% { transform: translateX(0); opacity: 0; }
  24% { opacity: .9; }
  62% { transform: translateX(330px); opacity: .9; }
  70%, 100% { transform: translateX(330px); opacity: 0; }
}
@keyframes sparkTwinkle {
  0%, 100% { opacity: .18; transform: scale(.62) rotate(0deg); }
  45% { opacity: 1; transform: scale(1.14) rotate(20deg); }
  62% { opacity: .7; transform: scale(.94) rotate(30deg); }
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.16); }
  28% { transform: scale(1); }
  42% { transform: scale(1.09); }
  56% { transform: scale(1); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 14px 26px -14px rgba(230, 70, 124, .9), 0 0 0 0 rgba(255, 111, 156, .28); }
  50% { box-shadow: 0 16px 30px -14px rgba(230, 70, 124, .95), 0 0 0 8px rgba(255, 111, 156, 0); }
}
@keyframes coverBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.02); }
}
@keyframes discSpin { to { transform: rotate(360deg); } }
@keyframes noteSway {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(-.4deg) translateY(-3px); }
}
@keyframes haloPulse {
  0%, 100% { opacity: .55; transform: scale(.96); }
  50% { opacity: .9; transform: scale(1.04); }
}
@keyframes bgGlowDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(42px, -28px, 0) scale(1.06); }
}
@keyframes bgCloudDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(28px, -14px, 0); }
}
@keyframes bgSway {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translate3d(0, 0, 0); }
  50% { transform: rotate(calc(var(--rot, 0deg) + 2.6deg)) translate3d(0, -10px, 0); }
}
@keyframes bgFlit {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  28% { transform: translate3d(18px, -26px, 0) rotate(7deg); }
  58% { transform: translate3d(-8px, -44px, 0) rotate(-6deg); }
  78% { transform: translate3d(-22px, -16px, 0) rotate(4deg); }
}
@keyframes bgWingFlap {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(.58); }
}
@keyframes bgNoteRise {
  0% { opacity: 0; transform: translate3d(0, 14px, 0) rotate(-10deg) scale(.9); }
  14% { opacity: 1; }
  78% { opacity: .62; }
  100% { opacity: 0; transform: translate3d(var(--drift, 18px), -190px, 0) rotate(14deg) scale(1.05); }
}
@keyframes bgDash {
  to { stroke-dashoffset: -460; }
}

/* ============ Responsive ============ */
@media (max-width: 1120px) {
  :root { --sidebar: 212px; }
  .grid-tracks { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); }
  .hero-chip--days { left: -6px; }
  .hero-chip--songs { right: -4px; }
}

@media (max-width: 980px) {
  :root { --sidebar: 0px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .main { padding: 14px clamp(14px, 3vw, 24px) calc(var(--player-h) + var(--tabbar-h) + 26px); }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 2px 18px;
  }
  .brand--mobile .brand-name { width: 128px; }
  .brand--mobile .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
  .topbar-actions { display: flex; align-items: center; gap: 6px; }
  .days-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--line);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--rose-deep);
  }
  .days-pill .ico { width: 13px; height: 13px; }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    height: var(--tabbar-h);
    padding: 6px 8px env(safe-area-inset-bottom, 0px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 251, 253, .97);
    border-top: 1px solid var(--line);
  }
  .tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    color: var(--ink-3);
    transition: color .18s, background .18s;
  }
  .tab-item .ico { width: 21px; height: 21px; }
  .tab-item.is-active { color: var(--rose-deep); background: rgba(255, 111, 156, .1); }
  .tab-item--add .ico {
    width: 32px;
    height: 32px;
    margin-top: -10px;
    padding: 7px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #ff9ab9, #ef5b8c);
    box-shadow: 0 10px 18px -10px rgba(230, 70, 124, .8);
  }
  .tab-item--add span { margin-top: -1px; }

  .player {
    left: 0;
    right: 0;
    bottom: var(--tabbar-h);
    height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 12px;
  }
  .player-cover { width: 46px; height: 46px; border-radius: 12px; }
  .player-center { gap: 2px; }
  .player-center .btn-icon { display: none; }
  .player-play { width: 44px; height: 44px; margin: 0 2px; }
  .player-play .ico { width: 20px; height: 20px; }
  .player-center #btnNext { display: inline-grid; width: 34px; height: 34px; }
  .player-right, .player-fav { display: none; }
  .player-del { width: 30px; height: 30px; }
  .player-del .ico { width: 15px; height: 15px; }
  .player-title { font-size: 13px; }
  .player-artist { font-size: 11px; }

  .np-panel { padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .np-backdrop { opacity: .22; }
  .np-backdrop img { filter: none; transform: scale(1.05); }
  .np-art { width: min(100%, 300px); }
  .np.is-tiktok .np-art { width: min(100%, 300px); height: min(52vh, 480px); }
  .np.is-youtube .np-art, .np.is-video .np-art { width: 100%; }
  .np-content { gap: 14px; padding-top: 6px; }
  .np-meta h2 { font-size: 21px; }

  .hello { grid-template-columns: 1fr; padding: 26px 22px; }
  .hello-copy { order: 1; }
  .hello-art { order: 2; margin-top: 4px; }
  .hello-art-frame { width: min(100%, 300px); }
  .note-bubble { transform: none; }
  .hello-deco--two, .hello-deco--three { display: none; }
  .hello-deco--one { top: 17%; right: 7%; }
  .hello-stats { gap: 10px 18px; margin-top: 20px; }
  .hello-actions { margin-top: 20px; }

  .settings-grid { grid-template-columns: 1fr; }
  .settings-card--wide { grid-column: auto; }
  .edit-grid { grid-template-columns: 180px minmax(0, 1fr); }
  .page-head { align-items: flex-start; }
}

@media (max-width: 720px) {
  .login-shell { grid-template-columns: 1fr; max-width: 540px; gap: 0; }
  .login-hero { display: block; margin-bottom: -42px; padding: 0 8px; }
  .art-frame { width: min(100%, 330px); margin: 0 auto; padding: 8px; border-radius: 32px; }
  .art-frame > img { border-radius: 25px; }
  .hero-chip { display: none; }
  .login-card {
    margin: 0 6px;
    padding: 26px 22px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: none;
  }
  .login-made { display: none; }

  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-actions { justify-content: flex-start; }
  .lib-toolbar { align-items: stretch; }
  .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .lib-tools { width: 100%; }
  .search-box { flex: 1; width: auto; }
  .select { flex: none; }

  .grid-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .track-card { padding: 7px 7px 10px; border-radius: 20px; }
  .track-cover { border-radius: 15px; }
  .track-play { width: 40px; height: 40px; right: 7px; bottom: 7px; }
  .track-play .ico { width: 18px; height: 18px; }
  .track-badge { top: 7px; left: 7px; font-size: 8.5px; padding: 3px 7px; }
  .track-fav { top: 5px; right: 5px; width: 31px; height: 31px; }
  .track-body { padding: 8px 20px 0 2px; }
  .track-title { font-size: 13.5px; }
  .track-sub { font-size: 10.5px; }
  .track-more { width: 24px; height: 24px; right: -2px; bottom: -2px; }

  .segmented { display: flex; width: 100%; }
  .seg { flex: 1; justify-content: center; padding: 7px 10px; font-size: 12.5px; }
  .link-form { grid-template-columns: 1fr; }
  .link-form .btn { height: 46px; }
  .link-preview-inner { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .link-cover { width: 96px; }
  .link-fields { grid-template-columns: 1fr; }
  .link-preview-foot { padding: 11px 12px; }
  .edit-grid { grid-template-columns: 1fr; }
  .cover-picker { max-width: 220px; }
  .edit-actions { align-items: stretch; }
  .edit-actions-right { width: 100%; }
  .edit-actions-right .btn { flex: 1; }
  .settings-row { grid-template-columns: 1fr; }

  .hello-title { font-size: 26px; }
  .hello-sub { font-size: 13.5px; }
  .stat--days { padding: 7px 13px 9px; }
  .stat--days strong { font-size: 29px; }
  .shelf-head h2 { font-size: 19px; }

  .meme-spotlight { padding: 16px 18px; gap: 14px; }
  .meme-spotlight-pills { width: 100%; }
  .meme-tease { padding: 18px 20px; gap: 14px; }
  .meme-tease-btn { width: 100%; }

  .bg-pattern { opacity: .44; }
  .bg-glow--rose { width: 132vw; left: -62vw; }
  .bg-glow--lilac { width: 122vw; right: -60vw; }
  .bg-bloom--bl { width: 200px; left: -58px; bottom: -54px; }
  .bg-bloom--br { width: 176px; right: -50px; bottom: -46px; }
  .bg-bloom--tr { width: 124px; right: -18px; top: -28px; opacity: .42; }
  .bg-cloud--c, .bg-bfly--c { display: none; }
  .bg-ribbon { bottom: 7%; height: 150px; opacity: .7; }

  .np.is-tiktok .np-art { height: min(48vh, 430px); }
  .np-seek-wrap { width: 100%; }
  .np-controls { gap: 4px; }
  .np-controls .btn-icon { width: 40px; height: 40px; }
  .np-play { width: 60px; height: 60px; }
  .np-content { justify-content: flex-start; padding-top: 10px; }
  .np-art { width: min(100%, 270px); }
}

@media (max-width: 560px) {
  .login-page { padding: 12px; }
  .art-frame { width: min(100%, 260px); }
  .login-card { padding: 18px 16px; margin: 0 2px; }
  .login-name { max-width: 100%; margin: 2px 0 8px; }
  .login-sub { font-size: 13.5px; margin-bottom: 14px; }
  .login-kicker { font-size: 10px; }
  .login-row-note { display: none; }
  .login-foot { font-size: 11.5px; }
  .chips { overflow: visible; flex-wrap: wrap; }

  .main { padding-left: 12px; padding-right: 12px; }
  .hello { padding: 22px 18px; border-radius: 28px; }
  .hello-art-frame { width: min(100%, 260px); }
  .note-bubble { width: min(100%, 290px); padding: 13px 14px 10px; }
  .hello-actions .btn { flex: 1; }
  .page-head h1 { font-size: 26px; }
  .panel { padding: 18px; border-radius: 24px; }
  .dropzone { padding: 28px 16px; }
  .upload-actions .btn { width: 100%; }
  .up-row { grid-template-columns: 48px minmax(0, 1fr) 28px; gap: 9px; padding: 8px; }
  .up-cover { width: 48px; height: 48px; }
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .np-backdrop { display: none; }
  .np { background: linear-gradient(165deg, #fff6fa, #f8edff 60%, #fff2e7); }
}

@media (max-width: 380px) {
  .grid-tracks { gap: 10px; }
  .track-title { font-size: 12.5px; }
  .hello-title { font-size: 23px; }
  .player-cover { width: 42px; height: 42px; }
  .player-play { width: 40px; height: 40px; }
  .tab-item { font-size: 9.5px; }
  .tab-item .ico { width: 20px; height: 20px; }
  .tab-item--add .ico { width: 31px; height: 31px; }
  .meme-spotlight-ico { width: 50px; height: 50px; }
  .meme-tease-art { width: 50px; height: 50px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .float-heart, .login-orb, .hello-art-frame, .art-frame, .art-frame > img,
  .empty-state img, .note-bubble, .float-spark,
  .hello-deco, .player.is-playing .player-cover, .np.is-playing .np-cover,
  .name-art, .name-art-wash, .name-art-flower, .name-art-sprig, .name-art-swash,
  .name-art-bfly, .name-art-wings, .name-art-twinkles, .name-art-little-hearts,
  .name-art-dots, .name-art-shine { animation: none !important; }
  .art-frame::before, .hello-art-frame::before { animation: none !important; opacity: 0 !important; }
  .chibi-life > span { animation: none !important; opacity: 0 !important; }
  .bg-glow, .bg-cloud, .bg-bloom, .bg-bfly, .bg-bfly-wings,
  .bg-ribbon-dash { animation: none !important; }
  .bg-note { animation: none !important; opacity: 0 !important; }
}
