[data-theme="nanyin"] {
  --color-base-100: #fff7f2;
  --color-base-200: #f4efe8;
  --color-base-300: #e8dbd0;
  --color-base-content: #241f1f;
  --color-primary: #e24f3d;
  --color-primary-content: #fff;
  --color-secondary: #127475;
  --color-secondary-content: #fff;
  --color-accent: #f3b33d;
  --radius-box: .75rem;
  --radius-field: .5rem;
  --radius-selector: .5rem;
}

[data-theme="nanyin-dark"] {
  --color-base-100: #182033;
  --color-base-200: #101827;
  --color-base-300: #26324a;
  --color-base-content: #f7ecdf;
  --color-primary: #ff8b7a;
  --color-primary-content: #101827;
  --color-secondary: #78d3d1;
  --color-secondary-content: #101827;
  --color-accent: #ffd58d;
  --radius-box: .75rem;
  --radius-field: .5rem;
  --radius-selector: .5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-header {
  justify-content: center;
  min-height: 46px;
  padding-bottom: 6px;
  padding-top: 6px;
  position: relative;
}

.site-logo {
  background: linear-gradient(135deg, #0f4c81 0%, #172554 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #172554;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "PingFang SC", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  -webkit-text-fill-color: transparent;
}

.header-icon-button {
  align-items: center;
  background: #fff7f2;
  border: 1px solid rgba(23, 37, 84, .08);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(23, 37, 84, .08);
  color: #64748b;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
}

.theme-toggle-button {
  right: 58px;
}

.login-icon-button {
  right: 16px;
}

.header-icon-button:active {
  transform: translateY(-50%) scale(.94);
}

.header-icon,
.login-icon {
  font-size: 20px;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.theme-sun-icon {
  display: none;
}

[data-theme="nanyin-dark"] .theme-moon-icon {
  display: none;
}

[data-theme="nanyin-dark"] .theme-sun-icon {
  display: block;
}

.login-message {
  color: #c15b7b;
  font-size: 13px;
  font-weight: 700;
  min-height: 20px;
  padding-top: 8px;
}

.logged-in-copy {
  color: #7f746e;
  font-size: 13px;
  font-weight: 700;
  margin-top: 18px;
}

.logged-in-name {
  color: #172554;
  font-size: 24px;
  font-weight: 900;
  margin-top: 4px;
}

.app-modal-box {
  background: #fff7f2;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(23, 37, 84, .18);
  max-width: min(92vw, 480px);
  padding: 28px 24px 22px;
  position: relative;
}

.app-modal-title {
  color: #241f1f;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
  padding-right: 44px;
}

.modal-close-x {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  font-size: 30px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 12px;
  width: 42px;
}

.modal-close-x:active {
  transform: scale(.94);
}

.app-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.app-form.hidden,
.app-modal-box .hidden {
  display: none;
}

.app-form-field {
  display: grid;
  gap: 8px;
  width: 100%;
}

.app-field-label {
  color: #475569;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.app-input {
  background: #fff;
  border-color: rgba(23, 37, 84, .14);
  border-radius: 14px;
  color: #241f1f;
  font-size: 16px;
  font-weight: 700;
  min-height: 50px;
  width: 100%;
}

.app-input::placeholder {
  color: #9b918b;
  font-weight: 600;
}

.app-input:focus,
.app-input:focus-visible {
  border-color: rgba(30, 58, 138, .38);
  box-shadow: 0 0 0 4px rgba(219, 234, 254, .86);
  outline: 0;
}

.app-input[readonly] {
  background: rgba(244, 239, 232, .72);
  color: #64748b;
}

.app-modal-box select.app-input,
.app-modal-box select.app-input option {
  background: #fff;
  color: #241f1f;
}

.app-textarea {
  line-height: 1.45;
  min-height: 116px;
  padding-top: 14px;
  resize: vertical;
}

.app-modal-actions {
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.app-modal-actions .btn {
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  min-height: 44px;
  padding-left: 18px;
  padding-right: 18px;
}

.app-ghost-btn {
  background: #f4efe8;
  border-color: rgba(23, 37, 84, .08);
  color: #475569;
}

.app-primary-btn {
  background: #e24f3d;
  border-color: #d84534;
  box-shadow: 0 8px 18px rgba(226, 79, 61, .22);
  color: #fff;
}

.app-danger-btn {
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  min-height: 44px;
}

@media (max-width: 520px) {
  .app-modal-box {
    border-radius: 18px;
    max-width: 100vw;
    padding: 24px 18px 18px;
  }

  .app-modal-title {
    font-size: 26px;
  }

  .app-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .edit-debt-actions {
    grid-template-columns: 1fr;
  }

  .edit-debt-save-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-modal-actions .btn {
    width: 100%;
  }
}

.singer-active {
  outline: 3px solid rgba(226, 79, 61, .24);
  border-color: #e24f3d;
}

.search-control {
  display: block;
  position: relative;
  width: 100%;
}

.search-icon {
  left: 14px;
  opacity: .58;
  pointer-events: none;
  position: absolute;
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.search-input {
  padding-left: 42px;
  padding-right: 42px;
  width: 100%;
}

.search-clear {
  align-items: center;
  background: transparent;
  border: 0;
  color: #64748b;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  z-index: 1;
}

.search-clear:active {
  transform: translateY(-50%) scale(.94);
}

.compact-tabs {
  align-items: center;
  background: linear-gradient(135deg, #f4efe8 0%, #efe4da 100%);
  border: 1px solid rgba(147, 81, 59, .12);
  box-shadow: 0 6px 16px rgba(147, 81, 59, .08);
  display: flex;
  padding: 3px;
}

.compact-tabs .tab {
  border-radius: .4rem;
  color: #8a7568;
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
}

.compact-tabs .tab-active {
  background: linear-gradient(135deg, #ead8ca 0%, #f2d8cf 100%);
  color: #754b3e;
  box-shadow: 0 5px 12px rgba(147, 81, 59, .12);
}

#singers,
#songs,
#detailSongs {
  overflow-anchor: none;
}

.home-song-filters {
  display: grid;
  gap: 12px;
}

.home-song-filter-row {
  align-items: end;
  display: grid;
  gap: 12px;
}

.home-song-filter-primary {
  grid-template-columns: minmax(0, 1fr) 40px;
}

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

.home-song-filters .form-control,
.songlist-controls .form-control {
  align-items: stretch;
  display: grid;
  gap: 6px;
  width: 100%;
}

.home-song-filters .label-text,
.songlist-controls .label-text {
  display: block;
  line-height: 1.2;
}

.home-song-filters .select,
.songlist-controls .select {
  height: 40px;
  min-height: 40px;
  width: 100%;
}

.view-toggle-button {
  align-items: center;
  background: #fff7f2;
  border: 1px solid rgba(23, 37, 84, .12);
  border-radius: 12px;
  color: #172554;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  justify-self: end;
  width: 40px;
}

.view-toggle-button:active {
  transform: scale(.96);
}

.view-toggle-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 19px;
}

.tab-count {
  font-size: 12px;
  font-weight: 800;
  margin-left: 4px;
  opacity: .7;
}

#songsView .form-control .label-text,
#singerPageView .form-control .label-text {
  font-size: 12px;
}

.detail-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.singer-profile-card {
  margin-bottom: 16px;
}

.singer-profile-card .card-body {
  padding: 16px;
}

.singer-profile-body {
  display: grid;
  gap: 14px;
  position: relative;
}

.singer-profile-media {
  position: relative;
}

.singer-profile-image {
  height: 360px;
  width: 100%;
}

.profile-audio-player {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 247, 242, .86);
  border: 1px solid rgba(23, 37, 84, .08);
  border-radius: 999px;
  bottom: 12px;
  box-shadow: 0 10px 24px rgba(23, 37, 84, .14);
  color: #172554;
  display: inline-flex;
  gap: 8px;
  max-width: calc(100% - 24px);
  min-height: 42px;
  padding: 6px 12px 6px 7px;
  position: absolute;
  right: 12px;
}

.profile-audio-button {
  align-items: center;
  background: linear-gradient(135deg, rgba(223, 247, 238, .3) 0%, rgba(220, 238, 255, .3) 100%);
  border: 1px solid rgba(23, 37, 84, .08);
  border-radius: 999px;
  color: #172554;
  display: inline-flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.profile-audio-button:disabled {
  cursor: default;
  opacity: .58;
}

.profile-audio-icon {
  fill: currentColor;
  height: 14px;
  width: 14px;
}

.profile-audio-pause {
  display: none;
}

.profile-audio-playing .profile-audio-play {
  display: none;
}

.profile-audio-playing .profile-audio-pause {
  display: block;
}

.profile-audio-title {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.singer-profile-image-empty {
  background: linear-gradient(135deg, #dbeafe 0%, #eadcff 100%);
}

.profile-schedule-text {
  color: #7f746e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 8px;
}

.singer-profile-info {
  min-width: 0;
}

.singer-songlist-section {
  padding-bottom: 20px;
}

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

.songlist-controls:has(.song-add-button.hidden) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.detail-library-toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 40px;
}

.detail-library-search {
  max-width: none;
  width: 100%;
}

.detail-library-search .search-input {
  height: 40px;
  min-height: 40px;
}

.song-add-button {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 44px;
}

.song-empty-state,
.debt-empty-state {
  color: #7f746e;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

@media (max-width: 520px) {
  .home-song-filters {
    gap: 10px;
  }

  .home-song-filter-row {
    gap: 10px;
  }

  .songlist-controls {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .songlist-controls:not(:has(.song-add-button.hidden)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .songlist-controls .song-add-button {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .detail-panel-switches {
    gap: 7px;
  }

  .detail-panel-switch {
    border-radius: 10px;
    min-height: 54px;
    padding: 8px;
  }

  .detail-panel-switch .font-bold {
    font-size: 14px;
    line-height: 1.25;
  }

  .detail-panel-switch .text-sm {
    font-size: 12px;
  }

  .song-add-button {
    min-height: 44px;
    padding-left: 0;
    padding-right: 0;
  }
}

.detail-panel-switches {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.detail-panel-switch {
  align-items: center;
  background: #fff7f2;
  border: 1px solid rgba(23, 37, 84, .08);
  border-radius: .75rem;
  box-shadow: 0 8px 20px rgba(23, 37, 84, .06);
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  min-height: 58px;
  padding: 8px 10px;
  position: relative;
  text-align: left;
}

.panel-copy {
  min-width: 0;
}

.detail-panel-switch .text-sm {
  line-height: 1.15;
}

.detail-panel-switch .font-bold {
  line-height: 1.2;
}

.detail-panel-switch:active {
  transform: scale(.985);
}

.detail-panel-active {
  background: linear-gradient(135deg, rgba(255, 208, 189, .48) 0%, rgba(255, 226, 154, .38) 34%, rgba(242, 197, 255, .42) 68%, rgba(255, 212, 229, .4) 100%);
  border-color: rgba(123, 47, 115, .1);
  box-shadow: 0 10px 22px rgba(168, 77, 148, .07);
  color: #7b2f73;
}

.panel-chevron {
  align-self: center;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(23, 37, 84, .08);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(23, 37, 84, .05);
  fill: none;
  height: 24px;
  justify-self: end;
  opacity: .72;
  padding: 4px;
  position: static;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 24px;
}

.debt-monkey-button {
  align-items: center;
  background: linear-gradient(135deg, rgba(219, 234, 254, .6) 0%, rgba(242, 197, 255, .48) 100%);
  border: 1px solid rgba(23, 37, 84, .06);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(168, 77, 148, .16);
  color: #172554;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.debt-monkey-button:active {
  transform: scale(.95);
}

.debt-card-monkey-button {
  position: static;
}

.debt-card-monkey-button span[aria-hidden="true"] {
  font-size: 17px;
  line-height: 1;
}

.monkey-burst {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  z-index: 9998;
}

.monkey-burst-active {
  display: flex;
}

.monkey-scene {
  height: 220px;
  position: relative;
  width: 300px;
}

.monkey-body {
  animation: monkey-bow 1.7s ease-out both;
  font-size: 98px;
  left: 166px;
  position: absolute;
  top: 58px;
  z-index: 4;
}

.monkey-stick {
  animation: monkey-stick-hit 1.7s ease-out both;
  background: #8a5630;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(138, 86, 48, .18);
  height: 8px;
  left: 116px;
  position: absolute;
  top: 116px;
  transform-origin: right center;
  width: 74px;
  z-index: 3;
}

.wooden-fish {
  animation: wooden-fish-knock 1.7s ease-out both;
  filter: drop-shadow(0 18px 28px rgba(138, 86, 48, .2));
  height: 128px;
  left: 4px;
  object-fit: contain;
  position: absolute;
  top: 82px;
  width: 128px;
  z-index: 2;
}

.debt-chant {
  animation: debt-chant-pop .52s ease-out both;
  background: linear-gradient(135deg, #f2c5ff 0%, #ffd4e5 100%);
  border: 1px solid rgba(123, 47, 115, .14);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(168, 77, 148, .16);
  color: #7b2f73;
  font-size: 32px;
  font-weight: 900;
  left: 86px;
  padding: 8px 18px;
  position: absolute;
  top: 4px;
  z-index: 5;
}

.debt-chant-two {
  animation-delay: .42s;
  left: 56px;
  top: 34px;
}

.debt-chant-three {
  animation-delay: .84s;
  left: 104px;
  top: 64px;
}

.monkey-ripples span {
  animation: monkey-ripple .58s ease-out both;
  border: 3px solid rgba(123, 47, 115, .18);
  border-radius: 999px;
  height: 56px;
  left: 48px;
  position: absolute;
  top: 122px;
  width: 56px;
  z-index: 1;
}

.monkey-ripples span:nth-child(2) {
  animation-delay: .42s;
}

.monkey-ripples span:nth-child(3) {
  animation-delay: .84s;
}

.cry-burst {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
}

.cry-burst-active {
  display: flex;
}

.cry-face {
  animation: cry-face-pop 1.05s ease-out both;
  font-size: 72px;
  position: absolute;
  text-shadow: 0 14px 28px rgba(30, 58, 138, .14);
}

.cry-plus {
  animation: cry-plus-pop 1.05s ease-out both;
  background: linear-gradient(135deg, #dbeafe 0%, #f2c5ff 100%);
  border: 1px solid rgba(123, 47, 115, .14);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(30, 58, 138, .12);
  color: #172554;
  font-size: 28px;
  font-weight: 900;
  padding: 6px 16px;
  position: absolute;
  transform: translate(58px, -54px);
}

.cry-tears span {
  animation: cry-tear-fall .98s ease-out both;
  font-size: 26px;
  position: absolute;
}

.cry-tears span:nth-child(1) { --x: -92px; --y: 88px; animation-delay: .04s; }
.cry-tears span:nth-child(2) { --x: 86px; --y: 96px; animation-delay: .1s; }
.cry-tears span:nth-child(3) { --x: -44px; --y: 126px; animation-delay: .16s; }
.cry-tears span:nth-child(4) { --x: 42px; --y: 132px; animation-delay: .22s; }
.cry-tears span:nth-child(5) { --x: -132px; --y: 64px; animation-delay: .28s; }
.cry-tears span:nth-child(6) { --x: 130px; --y: 70px; animation-delay: .34s; }

.tear-debt-burst {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
}

.tear-debt-burst-active {
  display: flex;
}

.debt-paper-left,
.debt-paper-right {
  align-items: center;
  animation: debt-paper-left 1.02s ease-out both;
  background: linear-gradient(135deg, #fff7f2 0%, #f4efe8 100%);
  border: 2px solid rgba(23, 37, 84, .12);
  box-shadow: 0 18px 34px rgba(23, 37, 84, .16);
  color: #172554;
  display: flex;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "PingFang SC", serif;
  font-size: 64px;
  font-weight: 900;
  height: 146px;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  width: 80px;
}

.debt-paper-left {
  border-radius: 16px 2px 2px 16px;
  clip-path: polygon(0 0, 100% 0, 78% 18%, 96% 34%, 72% 52%, 90% 72%, 74% 100%, 0 100%);
  padding-left: 28px;
}

.debt-paper-right {
  animation-name: debt-paper-right;
  border-radius: 2px 16px 16px 2px;
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 24% 100%, 40% 72%, 20% 52%, 44% 34%, 22% 18%);
  padding-right: 28px;
}

.paper-shreds span {
  animation: paper-shred-fall 1.04s ease-out both;
  background: linear-gradient(135deg, #fff7f2 0%, #ead8ca 100%);
  border: 1px solid rgba(23, 37, 84, .08);
  border-radius: 3px;
  height: var(--h);
  position: absolute;
  width: var(--w);
}

.paper-shreds span:nth-child(1) { --x: -190px; --y: -96px; --r: -42deg; --w: 32px; --h: 20px; animation-delay: .04s; }
.paper-shreds span:nth-child(2) { --x: 184px; --y: -104px; --r: 36deg; --w: 22px; --h: 36px; animation-delay: .08s; }
.paper-shreds span:nth-child(3) { --x: -158px; --y: 116px; --r: 62deg; --w: 38px; --h: 18px; animation-delay: .12s; }
.paper-shreds span:nth-child(4) { --x: 166px; --y: 122px; --r: -58deg; --w: 26px; --h: 34px; animation-delay: .16s; }
.paper-shreds span:nth-child(5) { --x: -74px; --y: 174px; --r: 28deg; --w: 22px; --h: 30px; animation-delay: .2s; }
.paper-shreds span:nth-child(6) { --x: 72px; --y: 184px; --r: -24deg; --w: 32px; --h: 20px; animation-delay: .24s; }
.paper-shreds span:nth-child(7) { --x: -122px; --y: -166px; --r: 76deg; --w: 20px; --h: 32px; animation-delay: .28s; }
.paper-shreds span:nth-child(8) { --x: 126px; --y: -160px; --r: -78deg; --w: 34px; --h: 18px; animation-delay: .32s; }

.heart-burst {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  z-index: 9997;
}

.heart-burst-active {
  display: flex;
}

.heart-burst span {
  animation: heart-float .86s ease-out both;
  color: #c15b7b;
  font-size: 28px;
  font-weight: 900;
  position: absolute;
  text-shadow: 0 6px 16px rgba(193, 91, 123, .18);
}

.heart-burst span:nth-child(1) { --x: -150px; --y: -90px; animation-delay: .02s; }
.heart-burst span:nth-child(2) { --x: 148px; --y: -96px; animation-delay: .07s; }
.heart-burst span:nth-child(3) { --x: -104px; --y: 72px; animation-delay: .11s; }
.heart-burst span:nth-child(4) { --x: 118px; --y: 68px; animation-delay: .04s; }
.heart-burst span:nth-child(5) { --x: -42px; --y: -152px; animation-delay: .13s; }
.heart-burst span:nth-child(6) { --x: 46px; --y: -146px; animation-delay: .17s; }
.heart-burst span:nth-child(7) { --x: -190px; --y: 8px; animation-delay: .2s; }
.heart-burst span:nth-child(8) { --x: 190px; --y: 4px; animation-delay: .22s; }

.star-burst {
  contain: layout paint style;
  display: none;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 9997;
}

.star-burst-active {
  display: block;
}

.star-burst span {
  animation: meteor-fall .92s cubic-bezier(.18, .68, .22, 1) both;
  backface-visibility: hidden;
  color: #facc15;
  font-size: 22px;
  font-weight: 900;
  left: var(--sx);
  position: absolute;
  text-shadow: 0 0 14px rgba(250, 204, 21, .78), 0 0 26px rgba(56, 189, 248, .36);
  top: var(--sy);
  will-change: opacity, transform;
}

.star-burst span::after {
  background: linear-gradient(90deg, rgba(250, 204, 21, .72), rgba(250, 204, 21, 0));
  border-radius: 999px;
  content: "";
  height: 3px;
  position: absolute;
  right: 14px;
  top: 10px;
  transform: rotate(-18deg);
  width: 54px;
}

.star-burst span:nth-child(1) { --sx: 4vw; --sy: 6vh; --tx: 58vw; --ty: 46vh; animation-delay: .02s; }
.star-burst span:nth-child(2) { --sx: 20vw; --sy: -2vh; --tx: 72vw; --ty: 52vh; animation-delay: .08s; }
.star-burst span:nth-child(3) { --sx: 40vw; --sy: 3vh; --tx: 94vw; --ty: 44vh; animation-delay: .14s; }
.star-burst span:nth-child(4) { --sx: 70vw; --sy: -1vh; --tx: 112vw; --ty: 40vh; animation-delay: .2s; }
.star-burst span:nth-child(5) { --sx: 2vw; --sy: 24vh; --tx: 52vw; --ty: 78vh; animation-delay: .18s; }
.star-burst span:nth-child(6) { --sx: 24vw; --sy: 18vh; --tx: 80vw; --ty: 82vh; animation-delay: .24s; }
.star-burst span:nth-child(7) { --sx: 52vw; --sy: 22vh; --tx: 106vw; --ty: 78vh; animation-delay: .3s; }
.star-burst span:nth-child(8) { --sx: 80vw; --sy: 16vh; --tx: 122vw; --ty: 70vh; animation-delay: .36s; }
.star-burst span:nth-child(9) { --sx: 10vw; --sy: 42vh; --tx: 52vw; --ty: 98vh; animation-delay: .34s; }
.star-burst span:nth-child(10) { --sx: 36vw; --sy: 38vh; --tx: 84vw; --ty: 102vh; animation-delay: .4s; }
.star-burst span:nth-child(11) { --sx: 58vw; --sy: 44vh; --tx: 106vw; --ty: 104vh; animation-delay: .46s; }
.star-burst span:nth-child(12) { --sx: 76vw; --sy: 36vh; --tx: 120vw; --ty: 94vh; animation-delay: .5s; }

@keyframes meteor-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(16deg) scale(.72);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--tx) - var(--sx)), calc(var(--ty) - var(--sy)), 0) rotate(16deg) scale(1.08);
  }
}

.detail-panel-content {
  padding-bottom: 20px;
}

.debt-inline-heading {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.debt-inline-heading.hidden {
  display: none;
}

.debt-inline-heading h2 {
  color: #172554;
  font-size: 18px;
  font-weight: 900;
}

.recommend-btn {
  background: #f3efe8;
  border-color: rgba(23, 37, 84, .08);
  color: #475569;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  min-height: 34px;
  padding-left: 14px;
  padding-right: 14px;
}

.recommend-btn:hover {
  background: #ece7df;
  border-color: rgba(23, 37, 84, .14);
}

.action-btn {
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  min-height: 34px;
}

.edit-debt-actions {
  align-items: center;
  justify-content: space-between;
}

.edit-debt-save-actions {
  display: flex;
  gap: 8px;
}

.bomb-burst {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
}

.bomb-burst-active {
  display: flex;
}

.bomb-core {
  animation: bomb-pop .68s ease-out both;
  font-size: 58px;
  position: relative;
  z-index: 4;
}

.bomb-flash {
  animation: bomb-flash .52s ease-out both;
  background: radial-gradient(circle, rgba(255, 255, 255, .98) 0%, rgba(255, 226, 154, .88) 18%, rgba(248, 113, 70, .42) 44%, rgba(244, 63, 94, 0) 72%);
  border-radius: 999px;
  height: 240px;
  position: absolute;
  width: 240px;
}

.bomb-shockwave {
  animation: bomb-shockwave .82s ease-out both;
  border: 4px solid rgba(244, 63, 94, .38);
  border-radius: 999px;
  height: 84px;
  position: absolute;
  width: 84px;
}

.bomb-flames {
  height: 10px;
  position: absolute;
  width: 10px;
  z-index: 3;
}

.bomb-flames span {
  animation: flame-burst .88s ease-out both;
  font-size: 31px;
  left: 50%;
  position: absolute;
  top: 50%;
}

.bomb-flames span:nth-child(1) { --x: -150px; --y: -86px; animation-delay: .03s; }
.bomb-flames span:nth-child(2) { --x: 138px; --y: -104px; animation-delay: .08s; }
.bomb-flames span:nth-child(3) { --x: -168px; --y: 56px; animation-delay: .12s; }
.bomb-flames span:nth-child(4) { --x: 164px; --y: 62px; animation-delay: .05s; }
.bomb-flames span:nth-child(5) { --x: -42px; --y: -162px; animation-delay: .1s; }
.bomb-flames span:nth-child(6) { --x: 34px; --y: 154px; animation-delay: .14s; }
.bomb-flames span:nth-child(7) { --x: -122px; --y: 132px; animation-delay: .18s; }
.bomb-flames span:nth-child(8) { --x: 126px; --y: 124px; animation-delay: .16s; }

.bomb-smoke {
  height: 10px;
  position: absolute;
  width: 10px;
  z-index: 2;
}

.bomb-smoke span {
  animation: smoke-burst 1s ease-out both;
  background: radial-gradient(circle, rgba(59, 49, 43, .5) 0%, rgba(98, 83, 75, .32) 45%, rgba(98, 83, 75, 0) 72%);
  border-radius: 999px;
  height: var(--s);
  left: 50%;
  position: absolute;
  top: 50%;
  width: var(--s);
}

.bomb-smoke span:nth-child(1) { --x: -184px; --y: -52px; --s: 46px; animation-delay: .05s; }
.bomb-smoke span:nth-child(2) { --x: 178px; --y: -66px; --s: 54px; animation-delay: .09s; }
.bomb-smoke span:nth-child(3) { --x: -152px; --y: 104px; --s: 42px; animation-delay: .14s; }
.bomb-smoke span:nth-child(4) { --x: 160px; --y: 94px; --s: 48px; animation-delay: .12s; }
.bomb-smoke span:nth-child(5) { --x: -62px; --y: -178px; --s: 44px; animation-delay: .08s; }
.bomb-smoke span:nth-child(6) { --x: 64px; --y: -166px; --s: 38px; animation-delay: .16s; }
.bomb-smoke span:nth-child(7) { --x: -204px; --y: 18px; --s: 34px; animation-delay: .18s; }
.bomb-smoke span:nth-child(8) { --x: 208px; --y: 26px; --s: 36px; animation-delay: .2s; }
.bomb-smoke span:nth-child(9) { --x: -18px; --y: 178px; --s: 48px; animation-delay: .22s; }
.bomb-smoke span:nth-child(10) { --x: 22px; --y: 198px; --s: 40px; animation-delay: .24s; }

.rainbow-burst {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  z-index: 9998;
}

.rainbow-burst-active {
  display: flex;
}

.rainbow-arc {
  animation: rainbow-appear .96s cubic-bezier(.2, .85, .18, 1) both;
  height: 112px;
  overflow: hidden;
  position: relative;
  width: 240px;
}

.rainbow-arc span {
  border: 11px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  bottom: 0;
  box-sizing: border-box;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.rainbow-arc span:nth-child(1) { color: #f87171; height: 112px; width: 224px; }
.rainbow-arc span:nth-child(2) { color: #fb923c; height: 96px; width: 192px; }
.rainbow-arc span:nth-child(3) { color: #fde047; height: 80px; width: 160px; }
.rainbow-arc span:nth-child(4) { color: #86efac; height: 64px; width: 128px; }
.rainbow-arc span:nth-child(5) { color: #60a5fa; height: 48px; width: 96px; }
.rainbow-arc span:nth-child(6) { color: #a78bfa; height: 32px; width: 64px; }
.rainbow-arc span:nth-child(7) {
  border-width: 10px;
  color: #f0abfc;
  height: 18px;
  width: 36px;
}

.rainbow-sparkles span {
  animation: sparkle-pop .9s ease-out both;
  color: #f59e0b;
  font-size: 24px;
  position: absolute;
}

.rainbow-sparkles span:nth-child(1) { transform: translate(-180px, -96px); }
.rainbow-sparkles span:nth-child(2) { animation-delay: .08s; transform: translate(174px, -108px); }
.rainbow-sparkles span:nth-child(3) { animation-delay: .14s; transform: translate(-146px, 42px); }
.rainbow-sparkles span:nth-child(4) { animation-delay: .2s; transform: translate(152px, 36px); }
.rainbow-sparkles span:nth-child(5) { animation-delay: .05s; transform: translate(-62px, -138px); }
.rainbow-sparkles span:nth-child(6) { animation-delay: .18s; transform: translate(58px, -144px); }
.rainbow-sparkles span:nth-child(7) { animation-delay: .23s; transform: translate(-206px, -8px); }
.rainbow-sparkles span:nth-child(8) { animation-delay: .27s; transform: translate(206px, -4px); }

@keyframes bomb-pop {
  0% { opacity: 0; transform: scale(.2) rotate(-18deg); }
  22% { opacity: 1; transform: scale(1.18) rotate(8deg); }
  46% { opacity: 1; transform: scale(.82) rotate(-6deg); }
  72% { opacity: .95; transform: scale(1.28) rotate(10deg); }
  100% { opacity: 0; transform: scale(1.9) rotate(18deg); }
}

@keyframes bomb-flash {
  0% { opacity: 0; transform: scale(.18); }
  26% { opacity: .95; transform: scale(.78); }
  100% { opacity: 0; transform: scale(1.8); }
}

@keyframes bomb-shockwave {
  0% { opacity: .75; transform: scale(.1); }
  100% { opacity: 0; transform: scale(4.2); }
}

@keyframes flame-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25) rotate(-12deg); }
  18% { opacity: 1; transform: translate(calc(-50% + var(--x) * .32), calc(-50% + var(--y) * .32)) scale(1.24) rotate(8deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.62) rotate(24deg); }
}

@keyframes smoke-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.18); filter: blur(0); }
  24% { opacity: .85; transform: translate(calc(-50% + var(--x) * .35), calc(-50% + var(--y) * .35)) scale(.9); filter: blur(.5px); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.7); filter: blur(4px); }
}

@keyframes rainbow-appear {
  0% { opacity: 0; transform: translateY(18px) scale(.62); }
  18% { opacity: 1; transform: translateY(0) scale(1.05); }
  70% { opacity: 1; transform: translateY(-4px) scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(1.08); }
}

@keyframes sparkle-pop {
  0% { opacity: 0; scale: .2; }
  28% { opacity: 1; scale: 1.15; }
  100% { opacity: 0; scale: .72; }
}

@keyframes monkey-bow {
  0% { opacity: 0; transform: translateY(18px) rotate(0deg) scale(.72); }
  10% { opacity: 1; transform: translateY(0) rotate(-4deg) scale(1.03); }
  18% { transform: translateY(10px) rotate(-12deg) scale(.98); }
  28% { transform: translateY(0) rotate(-2deg) scale(1); }
  42% { transform: translateY(10px) rotate(-12deg) scale(.98); }
  52% { transform: translateY(0) rotate(-2deg) scale(1); }
  66% { transform: translateY(10px) rotate(-12deg) scale(.98); }
  78% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(-12px) rotate(4deg) scale(.92); }
}

@keyframes monkey-stick-hit {
  0% { opacity: 0; transform: rotate(24deg) scaleX(.6); }
  10% { opacity: 1; transform: rotate(24deg) scaleX(1); }
  18% { transform: rotate(-24deg) scaleX(1); }
  28% { transform: rotate(20deg) scaleX(1); }
  42% { transform: rotate(-24deg) scaleX(1); }
  52% { transform: rotate(20deg) scaleX(1); }
  66% { transform: rotate(-24deg) scaleX(1); }
  78% { opacity: 1; transform: rotate(16deg) scaleX(1); }
  100% { opacity: 0; transform: rotate(10deg) scaleX(.8); }
}

@keyframes wooden-fish-knock {
  0% { opacity: 0; transform: scale(.72); }
  10% { opacity: 1; transform: scale(1); }
  18% { transform: scale(1.07) rotate(-3deg); }
  28% { transform: scale(.98) rotate(2deg); }
  42% { transform: scale(1.07) rotate(-3deg); }
  52% { transform: scale(.98) rotate(2deg); }
  66% { transform: scale(1.07) rotate(-3deg); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.88); }
}

@keyframes debt-chant-pop {
  0% { opacity: 0; transform: translateY(24px) scale(.62) rotate(-6deg); }
  28% { opacity: 1; transform: translateY(0) scale(1.08) rotate(2deg); }
  58% { opacity: 1; transform: translateY(-16px) scale(1) rotate(-1deg); }
  100% { opacity: 0; transform: translateY(-44px) scale(.86) rotate(3deg); }
}

@keyframes monkey-ripple {
  0% { opacity: 0; transform: scale(.18); }
  34% { opacity: .72; transform: scale(.8); }
  100% { opacity: 0; transform: scale(2.9); }
}

@keyframes cry-face-pop {
  0% { opacity: 0; transform: translateY(16px) scale(.48) rotate(-8deg); }
  18% { opacity: 1; transform: translateY(0) scale(1.14) rotate(4deg); }
  42% { transform: translateY(4px) scale(.96) rotate(-3deg); }
  72% { opacity: 1; transform: translateY(-4px) scale(1) rotate(2deg); }
  100% { opacity: 0; transform: translateY(-22px) scale(.84) rotate(8deg); }
}

@keyframes cry-plus-pop {
  0% { opacity: 0; transform: translate(34px, -28px) scale(.48) rotate(-8deg); }
  22% { opacity: 1; transform: translate(58px, -54px) scale(1.1) rotate(4deg); }
  70% { opacity: 1; transform: translate(70px, -70px) scale(1); }
  100% { opacity: 0; transform: translate(82px, -96px) scale(.82) rotate(10deg); }
}

@keyframes cry-tear-fall {
  0% { opacity: 0; transform: translate(0, -20px) scale(.28) rotate(-8deg); }
  24% { opacity: 1; transform: translate(calc(var(--x) * .28), calc(var(--y) * .2)) scale(1.08) rotate(4deg); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.72) rotate(18deg); }
}

@keyframes debt-paper-left {
  0% { opacity: 0; transform: translateX(0) scale(.72) rotate(0deg); }
  16% { opacity: 1; transform: translateX(0) scale(1.06) rotate(0deg); }
  32% { transform: translateX(-8px) scale(1) rotate(-3deg); }
  100% { opacity: 0; transform: translate(-126px, 44px) scale(.78) rotate(-34deg); }
}

@keyframes debt-paper-right {
  0% { opacity: 0; transform: translateX(0) scale(.72) rotate(0deg); }
  16% { opacity: 1; transform: translateX(0) scale(1.06) rotate(0deg); }
  32% { transform: translateX(8px) scale(1) rotate(3deg); }
  100% { opacity: 0; transform: translate(126px, 44px) scale(.78) rotate(34deg); }
}

@keyframes paper-shred-fall {
  0% { opacity: 0; transform: translate(0, 0) scale(.32) rotate(0deg); }
  24% { opacity: 1; transform: translate(calc(var(--x) * .22), calc(var(--y) * .18)) scale(1.08) rotate(calc(var(--r) * .36)); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.72) rotate(var(--r)); }
}

@keyframes heart-float {
  0% { opacity: 0; transform: translate(0, 0) scale(.28) rotate(-8deg); }
  20% { opacity: 1; transform: translate(calc(var(--x) * .32), calc(var(--y) * .32)) scale(1.18) rotate(8deg); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.78) rotate(18deg); }
}

.counter-control {
  align-items: center;
  background: rgba(244, 239, 232, .74);
  border: 1px solid rgba(23, 37, 84, .1);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 54px;
  padding: 6px;
}

.app-form .counter-control .btn {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(23, 37, 84, .08);
  border-radius: 12px;
  color: #241f1f;
  font-size: 20px;
  font-weight: 900;
  height: 42px;
  min-height: 42px;
  width: 52px;
}

.counter-value {
  color: #172554;
  font-size: 20px;
  font-weight: 900;
  min-width: 36px;
  text-align: center;
}

.debt-summary {
  align-items: center;
  border: 1px solid rgba(23, 37, 84, .08);
  color: inherit;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.debt-summary-main {
  color: inherit;
  min-width: 0;
  width: 100%;
}

.debt-wand-button,
.info-icon-button {
  align-items: center;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border: 1px solid rgba(30, 58, 138, .12);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(30, 58, 138, .1);
  color: #1e3a8a;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.debt-wand-button:active,
.info-icon-button:active {
  transform: scale(.96);
}

.debt-wand-icon {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.editable-info-card {
  align-items: center;
  border: 1px solid rgba(23, 37, 84, .08);
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.info-icon {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.debt-page-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

#debtPageTitle {
  font-size: 24px;
  line-height: 1.2;
}

.debt-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-empty-list {
  display: grid;
  margin-top: 14px;
}

.debt-list-item {
  overflow: hidden;
}

.debt-list-content {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.request-song-meta.debt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.debt-actions {
  border-top: 1px solid rgba(23, 37, 84, .08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.debt-paid {
  color: #216e79;
  font-weight: 900;
}

.debt-action-btn {
  align-items: center;
  background: rgba(255, 255, 255, .4);
  border: 0;
  color: #475569;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
}

.debt-action-btn + .debt-action-btn {
  border-left: 1px solid rgba(23, 37, 84, .08);
}

.debt-action-btn:active {
  background: rgba(224, 242, 254, .6);
}

.debt-edit-btn {
  color: #475569;
}

.debt-repay-btn {
  color: #172554;
}

.debt-add-btn {
  color: #7b2f73;
}

.singer-card-button {
  border-color: rgba(23, 37, 84, .12);
  display: block;
  padding: 0;
  position: relative;
  box-shadow: 0 12px 28px rgba(23, 37, 84, .14);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.singer-card-button:active {
  transform: scale(.99);
}

.singer-card-static {
  cursor: default;
}

.singer-card-static:active {
  transform: none;
}

.singer-card-row {
  display: block;
  min-height: 150px;
}

.singer-card-image {
  background: linear-gradient(135deg, #dbeafe 0%, #eadcff 100%);
  bottom: 0;
  display: block;
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  width: 132px;
}

.singer-card-content {
  min-width: 0;
  margin-left: 132px;
  padding: 16px;
  padding-right: 100px;
}

.singer-reactions {
  display: flex;
  gap: 6px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.singer-reaction-button {
  align-items: center;
  background: #fff7f2;
  border: 1px solid rgba(23, 37, 84, .08);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(23, 37, 84, .08);
  color: #64748b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  height: 30px;
  justify-content: center;
  min-width: 46px;
  padding: 0 9px;
}

.singer-reaction-button:active {
  transform: scale(.94);
}

.detail-reactions {
  flex: 0 0 auto;
  min-width: 90px;
}

.singer-reactions-detail {
  position: static;
}

.singer-card-meta {
  display: -webkit-box;
  line-height: 1.35;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.singer-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: -2px;
  margin-right: -88px;
  margin-top: 6px;
  max-height: 58px;
  overflow: hidden;
  padding-right: 4px;
}

.singer-name,
#detailTitle {
  background: linear-gradient(135deg, #0f4c81 0%, #172554 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #172554;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "PingFang SC", serif;
  font-weight: 900;
  letter-spacing: 0;
  -webkit-text-fill-color: transparent;
}

.singer-name {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 6px;
  padding-bottom: 2px;
}

#detailTitle {
  font-size: 34px;
  line-height: 1.25;
  padding-bottom: 3px;
}

.tag-chip {
  border: 1px solid rgba(36, 31, 31, .06);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.tag-voice {
  background: linear-gradient(135deg, #dcfbff 0%, #f5f2c8 100%);
  color: #216e79;
  box-shadow: 0 6px 14px rgba(33, 110, 121, .1);
}

.tag-genre {
  background: linear-gradient(135deg, #fff6c2 0%, #ffd7d9 100%);
  color: #8a5630;
  box-shadow: 0 6px 14px rgba(138, 86, 48, .1);
}

.tag-persona {
  background: linear-gradient(135deg, #eee6ff 0%, #dff3ff 100%);
  color: #3f4a86;
  box-shadow: 0 6px 14px rgba(63, 74, 134, .1);
}

.tag-language {
  background: linear-gradient(135deg, #ffe2e9 0%, #dce5ff 100%);
  color: #8d426c;
  box-shadow: 0 6px 14px rgba(216, 79, 99, .1);
}

.tag-ability {
  background: linear-gradient(135deg, #f9e3d2 0%, #ede8fb 100%);
  color: #8a5630;
  box-shadow: 0 6px 14px rgba(138, 86, 48, .1);
}

.tag-artist {
  background: linear-gradient(135deg, #fbdbef 0%, #d2ffde 100%);
  color: #7a3f86;
  box-shadow: 0 6px 14px rgba(122, 63, 134, .1);
}

.tag-note {
  background: linear-gradient(135deg, #eae3db 0%, #dfeeff 100%);
  color: #667085;
  box-shadow: 0 6px 14px rgba(102, 112, 133, .08);
}

.tag-debt {
  background: linear-gradient(135deg, #cdf3ff 0%, #cde5ff 25%, #e7d8f8 50%, #ffcbf1 75%, #ffddaa 100%);
  color: #7b2f73;
  box-shadow: 0 6px 16px rgba(168, 77, 148, .16);
}

.gradient-action-btn {
  background: linear-gradient(135deg, #cdf3ff 0%, #cde5ff 25%, #e7d8f8 50%, #ffcbf1 75%, #ffddaa 100%);
  border-color: rgba(23, 37, 84, .1);
  color: #172554;
}

.request-add-button {
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
  min-height: 44px;
  margin-left: auto;
  margin-right: auto;
  min-width: 44px;
  padding-left: 0;
  padding-right: 0;
  width: 44px;
}

.like-button,
.star-button {
  align-items: center;
  background: linear-gradient(135deg, rgba(219, 234, 254, .6) 0%, rgba(242, 197, 255, .48) 100%);
  border: 1px solid rgba(23, 37, 84, .06);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(168, 77, 148, .16);
  color: #172554;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
}

.star-button {
  background: linear-gradient(135deg, rgba(254, 249, 195, .72) 0%, rgba(255, 237, 213, .56) 55%, rgba(224, 242, 254, .5) 100%);
  box-shadow: 0 6px 16px rgba(217, 119, 6, .14);
  padding: 0 8px;
}

.song-card-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.pin-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(23, 37, 84, .1);
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 34px;
}

.pin-button-active {
  background: transparent;
  border-color: rgba(23, 37, 84, .14);
  color: #64748b;
}

.pin-button:active {
  transform: scale(.96);
}

.pin-button-limit {
  animation: pin-limit-shake .34s ease-out both;
}

.pin-icon {
  font-size: 19px;
  font-variation-settings: "FILL" 0, "wght" 650, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

@keyframes pin-limit-shake {
  0% { transform: translateX(0); }
  22% { transform: translateX(-4px); }
  46% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.like-button:active,
.star-button:active {
  transform: scale(.96);
}

.like-button-pulse .like-icon {
  animation: heart-pulse .52s ease-out both;
}

.star-button-pulse .star-icon {
  animation: star-pop .56s ease-out both;
}

.like-icon {
  fill: #c15b7b;
  height: 16px;
  stroke: none;
  width: 16px;
}

.star-icon {
  color: #f5c542;
  font-size: 16px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

@keyframes heart-pulse {
  0% { transform: scale(1); }
  22% { transform: scale(1.36); }
  46% { transform: scale(.92); }
  72% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes star-pop {
  0% { transform: rotate(0deg) scale(1); }
  28% { transform: rotate(12deg) scale(1.36); }
  56% { transform: rotate(-8deg) scale(.94); }
  100% { transform: rotate(0deg) scale(1); }
}

.song-card-body {
  padding: 10px 12px;
}

.song-card-body h3 {
  font-size: 16px;
  line-height: 1.2;
}

.song-card-body p {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

.song-card-flat {
  background: #fff7f2;
  border: 1px solid rgba(23, 37, 84, .08);
  box-shadow: 0 8px 20px rgba(23, 37, 84, .06);
}

.song-card-grid-compact {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.song-card-compact .song-card-body {
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 9px;
  text-align: center;
}

.song-card-compact .song-card-body h3 {
  font-size: 13px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.song-card-pinned {
  border-color: rgba(123, 47, 115, .1);
  box-shadow: 0 10px 24px rgba(123, 47, 115, .08);
}

.song-card-pinned-1 {
  background: linear-gradient(135deg, #ffe2e9 0%, #dce5ff 100%);
}

.song-card-pinned-2 {
  background: linear-gradient(135deg, #fff6c2 0%, #ffd7d9 100%);
}

.song-card-pinned-3 {
  background: linear-gradient(135deg, #dcfbff 0%, #f5f2c8 100%);
}

.song-card-pinned-4 {
  background: linear-gradient(135deg, #eee6ff 0%, #dff3ff 100%);
}

.song-card-pinned-5 {
  background: linear-gradient(135deg, #f9e3d2 0%, #ede8fb 100%);
}

.song-card-pinned-6 {
  background: linear-gradient(135deg, #fbdbef 0%, #d2ffde 100%);
}

.song-card-pinned-7 {
  background: linear-gradient(135deg, #eae3db 0%, #dfeeff 100%);
}

.request-song-meta {
  color: rgba(36, 31, 31, .66);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.request-song-card .song-card-body {
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.request-song-signer {
  align-items: center;
  border: 1px solid rgba(23, 37, 84, .06);
  border-radius: .75rem 0 0 .75rem;
  color: #7b2f73;
  display: flex;
  flex: 0 0 102px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "PingFang SC", serif;
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.2;
  min-height: 66px;
  overflow: hidden;
  padding: 6px 10px;
  text-align: center;
  word-break: break-all;
}

.debt-song-signer {
  color: #172554;
}

.debt-list-item:has(.debt-actions) .debt-song-signer {
  border-bottom-left-radius: 0;
}

.debt-list-item .font-bold.text-lg {
  font-size: 15px;
  line-height: 1.25;
}

.request-song-card .min-w-0 {
  display: grid;
  flex: 1 1 auto;
  gap: 24px;
  padding: 10px 12px;
}

.request-song-card .song-card-actions {
  padding-right: 12px;
}

.debt-list-item .song-card-actions {
  align-items: center;
  padding-right: 12px;
}

[data-theme="nanyin-dark"] .site-logo,
[data-theme="nanyin-dark"] .singer-name,
[data-theme="nanyin-dark"] #detailTitle {
  background: linear-gradient(135deg, #cdf3ff 0%, #cde5ff 42%, #e7d8f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #cdf3ff;
  -webkit-text-fill-color: transparent;
}

[data-theme="nanyin-dark"] .header-icon-button,
[data-theme="nanyin-dark"] .view-toggle-button,
[data-theme="nanyin-dark"] .app-modal-box,
[data-theme="nanyin-dark"] .detail-panel-switch,
[data-theme="nanyin-dark"] .debt-list-item,
[data-theme="nanyin-dark"] .song-card-flat,
[data-theme="nanyin-dark"] .singer-card-button,
[data-theme="nanyin-dark"] .profile-audio-player {
  background: #182033;
  border-color: rgba(205, 243, 255, .16);
  color: #f7ecdf;
}

[data-theme="nanyin-dark"] .app-input,
[data-theme="nanyin-dark"] .app-modal-box select.app-input,
[data-theme="nanyin-dark"] .app-modal-box select.app-input option,
[data-theme="nanyin-dark"] .counter-control,
[data-theme="nanyin-dark"] .filter-select {
  background: #101827;
  border-color: rgba(205, 243, 255, .18);
  color: #f7ecdf;
}

[data-theme="nanyin-dark"] .app-field-label,
[data-theme="nanyin-dark"] .profile-schedule-text,
[data-theme="nanyin-dark"] .song-card-body p,
[data-theme="nanyin-dark"] .request-song-meta,
[data-theme="nanyin-dark"] .singer-card-meta,
[data-theme="nanyin-dark"] .debt-empty-state,
[data-theme="nanyin-dark"] .song-empty-state {
  color: rgba(247, 236, 223, .72);
}

[data-theme="nanyin-dark"] .app-modal-title,
[data-theme="nanyin-dark"] .song-card-body h3,
[data-theme="nanyin-dark"] .debt-list-item .font-bold {
  color: #f7ecdf;
}

[data-theme="nanyin-dark"] .compact-tabs {
  background: linear-gradient(135deg, #182033 0%, #26324a 100%);
  border-color: rgba(205, 243, 255, .16);
}

[data-theme="nanyin-dark"] .compact-tabs .tab {
  color: rgba(247, 236, 223, .7);
}

[data-theme="nanyin-dark"] .compact-tabs .tab-active {
  background: linear-gradient(135deg, #26324a 0%, #314162 100%);
  color: #cdf3ff;
}

[data-theme="nanyin-dark"] .detail-panel-active {
  background: linear-gradient(135deg, #312e81 0%, #6d28d9 38%, #be185d 100%);
  border-color: rgba(196, 181, 253, .45);
  box-shadow: 0 12px 28px rgba(109, 40, 217, .22);
  color: #f8fafc;
}

[data-theme="nanyin-dark"] .detail-panel-active .text-sm,
[data-theme="nanyin-dark"] .detail-panel-active .font-bold,
[data-theme="nanyin-dark"] .detail-panel-active .panel-chevron {
  color: #f8fafc;
  opacity: 1;
}

[data-theme="nanyin-dark"] .panel-chevron {
  background: rgba(15, 23, 42, .42);
  border-color: rgba(226, 232, 240, .16);
  box-shadow: 0 6px 16px rgba(2, 6, 23, .22);
}

[data-theme="nanyin-dark"] .tag-voice,
[data-theme="nanyin-dark"] .song-card-pinned-3 {
  background: linear-gradient(135deg, #0e7490 0%, #047857 100%);
  color: #f0fdfa;
  box-shadow: 0 10px 24px rgba(14, 116, 144, .22);
}

[data-theme="nanyin-dark"] .tag-genre,
[data-theme="nanyin-dark"] .song-card-pinned-2 {
  background: linear-gradient(135deg, #92400e 0%, #be185d 100%);
  color: #fff7ed;
  box-shadow: 0 10px 24px rgba(190, 24, 93, .2);
}

[data-theme="nanyin-dark"] .tag-persona,
[data-theme="nanyin-dark"] .song-card-pinned-4 {
  background: linear-gradient(135deg, #312e81 0%, #0e7490 100%);
  color: #eef2ff;
  box-shadow: 0 10px 24px rgba(49, 46, 129, .24);
}

[data-theme="nanyin-dark"] .tag-language,
[data-theme="nanyin-dark"] .song-card-pinned-1 {
  background: linear-gradient(135deg, #9d174d 0%, #3730a3 100%);
  color: #fff1f2;
  box-shadow: 0 10px 24px rgba(157, 23, 77, .22);
}

[data-theme="nanyin-dark"] .tag-ability,
[data-theme="nanyin-dark"] .song-card-pinned-5 {
  background: linear-gradient(135deg, #7c2d12 0%, #581c87 100%);
  color: #fffbeb;
  box-shadow: 0 10px 24px rgba(124, 45, 18, .22);
}

[data-theme="nanyin-dark"] .tag-artist,
[data-theme="nanyin-dark"] .song-card-pinned-6 {
  background: linear-gradient(135deg, #86198f 0%, #047857 100%);
  color: #fdf4ff;
  box-shadow: 0 10px 24px rgba(134, 25, 143, .22);
}

[data-theme="nanyin-dark"] .tag-note,
[data-theme="nanyin-dark"] .song-card-pinned-7 {
  background: linear-gradient(135deg, #334155 0%, #1e3a8a 100%);
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(30, 58, 138, .2);
}

[data-theme="nanyin-dark"] .gradient-action-btn,
[data-theme="nanyin-dark"] .tag-debt,
[data-theme="nanyin-dark"] .like-button,
[data-theme="nanyin-dark"] .star-button,
[data-theme="nanyin-dark"] .debt-monkey-button,
[data-theme="nanyin-dark"] .singer-reaction-button {
  background: linear-gradient(135deg, #0e7490 0%, #312e81 32%, #6d28d9 66%, #be185d 100%);
  border-color: rgba(196, 181, 253, .34);
  box-shadow: 0 10px 24px rgba(109, 40, 217, .22);
  color: #f8fafc;
}

[data-theme="nanyin-dark"] .star-icon {
  color: #fde68a;
}

[data-theme="nanyin-dark"] .song-card-pinned,
[data-theme="nanyin-dark"] .request-song-signer {
  border-color: rgba(196, 181, 253, .28);
  color: #f8fafc;
}

[data-theme="nanyin-dark"] .song-card-pinned .song-card-body h3,
[data-theme="nanyin-dark"] .song-card-pinned .song-card-body p,
[data-theme="nanyin-dark"] .song-card-pinned h3,
[data-theme="nanyin-dark"] .song-card-pinned p {
  color: #f8fafc;
}

[data-theme="nanyin-dark"] .debt-action-btn {
  background: rgba(15, 23, 42, .45);
  color: #e0f2fe;
}

[data-theme="nanyin-dark"] .debt-edit-btn,
[data-theme="nanyin-dark"] .debt-add-btn,
[data-theme="nanyin-dark"] .debt-repay-btn,
[data-theme="nanyin-dark"] .debt-paid {
  color: #e0f2fe;
}

[data-theme="nanyin-dark"] .debt-action-btn + .debt-action-btn {
  border-left-color: rgba(205, 243, 255, .14);
}

@media (max-width: 640px) {
  .card-body {
    padding: 16px;
  }

  #songs .card-body {
    align-items: flex-start;
    gap: 10px;
  }

  #songs h3 {
    font-size: 16px;
  }

  .song-card-body {
    padding: 10px 12px;
  }

  .song-card-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  }

  .song-card-compact .song-card-body h3 {
    font-size: 12px;
  }

  .singer-card-image {
    width: 116px;
  }

  .singer-card-row {
    min-height: 154px;
  }

  .singer-card-content {
    margin-left: 116px;
    padding: 14px;
    padding-right: 96px;
  }

  .singer-card-tags {
    gap: 3px;
    margin-right: -84px;
    max-height: 54px;
  }

  .singer-card-tags .tag-chip {
    font-size: 11px;
    padding: 5px 7px;
  }

  #title {
    font-size: 24px;
  }

  #detailTitle {
    font-size: 30px;
  }

  .singer-profile-card .card-body {
    padding: 14px;
  }

  .singer-profile-image {
    height: 264px;
  }

  #singerPageView .card {
    box-shadow: none;
  }

  #singerPageView > .card {
    margin-inline: -4px;
  }

  .bomb-flash {
    height: 168px;
    width: 168px;
  }

  .bomb-shockwave {
    height: 64px;
    width: 64px;
  }

  .bomb-smoke span:nth-child(n+7),
  .rainbow-sparkles span:nth-child(n+7),
  .heart-burst span:nth-child(n+7) {
    display: none;
  }

  .bomb-flames span {
    font-size: 24px;
  }

  .bomb-flames span:nth-child(1) { --x: -112px; --y: -66px; }
  .bomb-flames span:nth-child(2) { --x: 104px; --y: -76px; }
  .bomb-flames span:nth-child(3) { --x: -118px; --y: 44px; }
  .bomb-flames span:nth-child(4) { --x: 116px; --y: 48px; }
  .bomb-flames span:nth-child(5) { --x: -32px; --y: -118px; }
  .bomb-flames span:nth-child(6) { --x: 28px; --y: 112px; }

  .rainbow-arc {
    width: 196px;
  }

  .monkey-scene {
    transform: scale(.86);
  }

  .cry-face {
    font-size: 58px;
  }

  .debt-paper-left,
  .debt-paper-right {
    font-size: 52px;
    height: 120px;
    width: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bomb-burst,
  .rainbow-burst,
  .monkey-burst,
  .cry-burst,
  .tear-debt-burst,
  .heart-burst {
    display: none !important;
  }

  .like-button,
  .singer-reaction-button,
  .debt-action-button,
  .debt-monkey-button {
    transition: none;
  }
}
