/* ========== Home Page ========== */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(108, 92, 231, 0.4));
}

.logo-text {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #2D1B69 0%, #6C5CE7 40%, #A29BFE 70%, #2D1B69 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-topbar-actions {
  display: flex;
  gap: 4px;
}

.notif-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Banner Carousel */
.banner-carousel {
  margin: 8px 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 140px;
  touch-action: pan-y;
}

.banner-slide {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.banner-content p {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.banner-action-btn {
  display: inline-flex;
  padding: 6px 16px;
  background: rgba(255,255,255,0.25);
  border-radius: 16px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.banner-image {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.banner-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px;
  margin-top: -6px;
  position: relative;
  z-index: 2;
}

.quick-action-item {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-action-item:active { transform: scale(0.95); }

.quick-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.quick-action-item .title {
  font-size: 11px;
  font-weight: 600;
}

.quick-action-item .desc {
  font-size: 9px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Daily Recommend */
.daily-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.daily-scroll::-webkit-scrollbar { display: none; }

.daily-card {
  flex-shrink: 0;
  width: 140px;
  cursor: pointer;
}

.daily-cover {
  height: 100px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.daily-cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.daily-play-btn {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.daily-play-btn svg {
  width: 16px;
  height: 16px;
}

.daily-title {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  color: var(--primary);
}

.daily-info {
  padding: 8px 4px 0;
}

.daily-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-artist {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Topic Chips */
.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

#topic-scroll {
  scroll-margin-top: 72px;
  padding: 4px 16px !important;
}

.topic-chip:active { background: var(--bg); }

.topic-name { font-weight: 500; }

.topic-count {
  font-size: 11px;
  color: var(--text-secondary);
}

#topic-detail-section {
  display: none;
}

.community-topic-detail {
  animation: fadeIn 0.3s ease;
}

/* Inspiration */
.inspiration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.inspiration-card {
  padding: 10px 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.inspiration-card:active { transform: scale(0.97); }

.insp-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.insp-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 灵感弹窗头部 + 分类标签 */
.insp-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.insp-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.insp-category-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.insp-cat-tag {
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.insp-cat-tag.active {
  color: var(--primary);
  font-weight: 600;
}

.insp-cat-tag:active {
  opacity: 0.8;
}



.inspiration-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insp-card-full {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.insp-card-full .insp-icon { font-size: 24px; }
.insp-card-full .insp-text { font-size: 13px; color: var(--text); }

/* Work Card */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.work-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.work-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 正在播放指示器 */
.work-card-playing-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: none;
  align-items: flex-end;
  gap: 2px;
  padding: 5px 7px 4px;
  border-radius: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.work-card-playing-badge.active {
  display: flex;
}
.work-card-playing-badge .eq {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 1.5px;
  background: #1DB954;
  animation: eqPulse 0.6s ease-in-out infinite alternate;
}
.work-card-playing-badge .eq:nth-child(2) {
  animation-delay: 0.15s;
  height: 14px;
}
.work-card-playing-badge .eq:nth-child(3) {
  animation-delay: 0.3s;
  height: 10px;
}
@keyframes eqPulse {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.work-card-lyrics {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
  font-family: 'SimHei', '黑体', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  font-size: 16pt;
  letter-spacing: 3px;
  line-height: 1.35;
  text-align: center;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-overflow: ellipsis;
}

.work-card-desc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 50px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
  font-size: 15px;
  font-weight: 700;
  font-family: 'SimHei', '黑体', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  pointer-events: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.work-card-footer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 10px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 100%);
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.work-card-cover-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.work-card-cover-duration {
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

.work-card-info {
  min-width: 0;
}

.work-card-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 4px;
  min-width: 0;
}

.work-card-author-name {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.work-card-author-plays {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
  font-weight: 500;
}

.work-card-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
}

.work-card-meta-hot {
  position: relative;
  min-height: 24px;
  padding-right: 48px;
  overflow: visible;
  flex-wrap: wrap;
}

.work-card-hot-plays {
  position: absolute;
  top: 1px;
  right: 2px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 10px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.work-card-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.work-card-stats svg {
  width: 14px;
  height: 14px;
}

/* ========== Create Page ========== */
/* 二次创作引用原作品卡片 */
.remix-ref-card {
  margin: 0 16px 16px;
  padding: 14px;
  background: rgba(255, 247, 232, 0.5);
  border: 1px solid rgba(240, 223, 191, 0.5);
  border-radius: 14px;
  animation: fadeIn 0.3s ease;
}

.remix-ref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.remix-ref-badge {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.remix-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.16);
  flex-shrink: 0;
}

.remix-mode-switch button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.remix-mode-switch button.active {
  background: #6C5CE7;
  color: #fff;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.18);
}

.remix-ref-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.remix-ref-cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.remix-ref-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.remix-ref-cover-icon {
  font-size: 24px;
  z-index: 1;
}

.remix-ref-info {
  flex: 1;
  min-width: 0;
}

.remix-ref-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.remix-ref-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.remix-ref-tag {
  display: inline-block;
  padding: 1px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.remix-ref-hint {
  font-size: 11px;
  color: var(--text-hint);
}

/* 二创标签（作品卡片左上角） */
.remix-source-panel {
  margin: 0 16px 16px;
  padding: 14px;
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.05);
}

.remix-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.remix-source-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.remix-source-head span {
  display: block;
  margin-top: 2px;
  color: var(--text-light);
  font-size: 11px;
}

.remix-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remix-source-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 10px;
  background: #fff;
}

.remix-source-search svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex: 0 0 auto;
}

.remix-source-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
}

.remix-source-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(108, 92, 231, 0.12);
}

.remix-source-upload:active {
  transform: translateY(1px);
}

.remix-source-upload svg {
  width: 19px;
  height: 19px;
}

.remix-source-status,
.remix-source-empty {
  padding: 9px 2px 0;
  color: var(--text-light);
  font-size: 11px;
}

.remix-source-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.remix-source-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.remix-source-result__cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 42px;
}

.remix-source-result__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remix-source-result__body {
  min-width: 0;
  flex: 1;
}

.remix-source-result__body strong {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remix-source-result__body em {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--text-light);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remix-work-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(108,92,231,0.4);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 详情页/弹窗中的二创标签 */
.remix-work-badge-inline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #00CEC9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 8px;
  border: 1.5px solid rgba(0, 206, 201, 0.4);
  border-radius: 20px;
  margin-right: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

.create-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.create-tabs::-webkit-scrollbar { display: none; }

.create-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.create-tab.active {
  background: linear-gradient(135deg, #4834d4, #2d1b69);
  color: #fff;
  border-color: #6C5CE7;
  box-shadow: 0 2px 16px rgba(108, 92, 231, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ranking-tabs {
  gap: 8px;
  padding: 0;
}

.ranking-tabs .create-tab {
  gap: 4px;
  padding: 5px 11px;
  letter-spacing: 0;
  min-height: 30px;
}

.ranking-tab-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: currentColor;
  background: rgba(108, 92, 231, 0.1);
}

.ranking-tabs .create-tab.active .ranking-tab-icon {
  background: rgba(255, 255, 255, 0.18);
}

.music-task-indicator {
  width: 20px;
  height: 20px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.create-tab:not(.active) .music-task-indicator {
  border-color: rgba(108, 92, 231, 0.35);
  background: rgba(108, 92, 231, 0.08);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.08);
}

.music-task-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00CEC9;
  box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.55);
  animation: musicTaskPulse 1.1s ease-in-out infinite;
}

.music-task-indicator.completed {
  order: -1;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border-color: rgba(230, 57, 70, 0.75);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(215, 38, 61, 0.36);
}

.create-tab:not(.active) .music-task-indicator.completed {
  border-color: rgba(230, 57, 70, 0.68);
  background: rgba(215, 38, 61, 0.08);
  box-shadow: 0 4px 16px rgba(215, 38, 61, 0.3);
}

.music-task-indicator.completed .music-task-indicator-dot {
  background: #FF5A5F;
  box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.58);
  animation: musicCompletedPulse 1s ease-in-out infinite;
}

.music-task-indicator-label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.modal-overlay.music-task-return-overlay {
  align-items: center;
  padding: 20px;
  background: rgba(12, 14, 28, 0.56);
  backdrop-filter: blur(8px);
}

.modal-content.music-task-return-modal-content {
  width: min(388px, calc(100vw - 32px));
  max-width: 388px;
  padding: 0;
  overflow: visible;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(20, 22, 48, 0.28);
  animation: musicTaskReturnIn 0.22s ease;
}

.music-task-return-modal {
  position: relative;
  padding: 26px 22px 20px;
  color: #1f2333;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,255,255,0.94)),
    linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 206, 201, 0.08));
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 18px;
}

.music-task-return-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #6b6f82;
  background: rgba(31, 35, 51, 0.06);
  cursor: pointer;
}

.music-task-return-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

.music-task-return-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: #6C5CE7;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.14), rgba(0, 206, 201, 0.12));
}

.music-task-return-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.music-task-return-eyebrow {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6C5CE7;
}

.music-task-return-body h3 {
  margin: 0 34px 10px 0;
  font-size: 20px;
  line-height: 1.3;
  color: #191c2d;
}

.music-task-return-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #555a6e;
}

.music-task-return-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #4b5063;
  background: rgba(108, 92, 231, 0.08);
}

.music-task-return-note-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #00CEC9;
  box-shadow: 0 0 0 4px rgba(0, 206, 201, 0.14);
}

.music-task-return-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.music-task-return-actions .btn {
  min-width: 0;
  height: 42px;
}

@keyframes musicTaskReturnIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.create-tab.has-completed-task {
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.12);
}

@keyframes musicTaskPulse {
  0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.55); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(0, 206, 201, 0); }
  100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 206, 201, 0); }
}

@keyframes musicResultAlert {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(215, 38, 61, 0.26); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(215, 38, 61, 0.12), 0 8px 20px rgba(215, 38, 61, 0.36); }
}

@keyframes musicCompletedPulse {
  0% { transform: scale(0.78); box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.58); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(255, 90, 95, 0); }
  100% { transform: scale(0.78); box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
}

.tab-item.has-completed-task {
  color: #D7263D;
  animation: navCreateAlert 1s ease-in-out infinite;
}

.tab-item.has-completed-task .tab-icon,
.tab-item.has-completed-task .tab-label {
  color: #D7263D;
}

.tab-item.has-completed-task::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D7263D;
  box-shadow: 0 0 0 0 rgba(215, 38, 61, 0.55);
  animation: navCreateDotPulse 1s ease-in-out infinite;
}

@keyframes navCreateAlert {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes navCreateDotPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(215, 38, 61, 0.55); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(215, 38, 61, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(215, 38, 61, 0); }
}

/* 歌词子选项卡 */
.lyric-sub-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  background: rgba(108, 92, 231, 0.06);
  border-radius: 10px;
  padding: 3px;
}

.lyric-sub-tab {
  flex: 1;
  text-align: center;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  user-select: none;
}

.lyric-sub-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(108, 92, 231, 0.12);
}

.lyric-sub-panel {
  animation: fadeIn 0.2s ease;
}

.textarea-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.textarea-wrapper {
  padding-bottom: 46px;
}

.nickname-color-field {
  position: relative;
}

.nickname-color-field .input {
  padding-right: 52px;
}

.nickname-color-btn {
  position: absolute;
  right: 8px;
  top: 22px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 1px solid rgba(108,92,231,0.16);
  border-radius: 10px;
  background: rgba(108,92,231,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nickname-color-btn.is-disabled {
  background: #eef0f6;
  cursor: not-allowed;
  opacity: 0.68;
}

.nickname-color-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 22px;
  color: #1f2333;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.nickname-color-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--nickname-color, #6C5CE7);
}

.nickname-color-vip {
  position: absolute;
  right: -5px;
  top: -6px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #F53F3F;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 14px;
}

.nickname-color-palette {
  display: none;
  flex: 0 0 100%;
  width: 100%;
  grid-template-columns: repeat(8, minmax(26px, 1fr));
  gap: 7px;
  margin-top: -2px;
  padding: 10px 12px;
  border: 1px solid rgba(108,92,231,0.12);
  border-radius: 12px;
  background: #f7f8fc;
}

.nickname-color-palette.is-open {
  display: grid;
}

.nickname-color-choice {
  aspect-ratio: 1;
  min-width: 0;
  height: auto;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--choice-color);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
  cursor: pointer;
}

.nickname-color-choice.active {
  border-color: #fff;
  outline: 2px solid var(--primary);
}

@media (max-width: 420px) {
  .nickname-color-palette {
    grid-template-columns: repeat(6, minmax(28px, 1fr));
  }
}

.profile-birthday-selects {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
}

.profile-birthday-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-birthday-head .input-label {
  margin-bottom: 0;
}

.profile-zodiac {
  min-height: 18px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-location-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.profile-location-fields.profile-location-gps {
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-location-display {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
}

.profile-location-display.is-empty {
  color: var(--text-light);
}

.profile-location-btn {
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.profile-location-btn:disabled {
  opacity: 0.58;
  cursor: wait;
}

button.is-submit-locked,
.btn.is-submit-locked {
  cursor: wait !important;
  opacity: 0.72 !important;
  pointer-events: none;
}

.submit-lock-spinner {
  width: 13px;
  height: 13px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  animation: submit-lock-spin 0.7s linear infinite;
}

@keyframes submit-lock-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
  .profile-location-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .profile-location-fields.profile-location-gps {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-location-btn {
    grid-column: 1 / -1;
  }
}

.profile-birthday-select,
.profile-edit-select {
  height: 44px;
  min-height: 44px;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    #fff;
  padding-right: 30px;
  text-align: center;
}

.profile-birthday-select:focus,
.profile-edit-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.paste-btn,
.sel-btn {
  height: 30px;
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.paste-btn svg,
.sel-btn svg {
  width: 14px;
  height: 14px;
}

.lyric-result-actions {
  margin-top: 14px;
}

.lyric-result-actions > div {
  align-items: center;
  gap: 8px !important;
}

.lyric-result-actions .paste-btn,
.lyric-result-actions .sel-btn {
  height: 34px;
  min-height: 34px;
  line-height: 1;
  box-sizing: border-box;
}

/* Profile content tabs - unified bar style inside profile header */
#profile-content-tabs {
  gap: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 4px;
  margin: 14px 0 0;
}

#profile-content-tabs .create-tab {
  flex: 1;
  text-align: center;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  padding: 10px 12px;
  font-size: 13px;
}

#profile-content-tabs .create-tab.active {
  background: #fff;
  color: var(--primary);
}

.create-form {
  padding: 0 16px;
}

/* Cover Song Selectable */
.cover-selectable {
  border: 2px solid transparent !important;
  transition: all 0.2s ease;
}

.cover-selectable:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cover-selectable.selected {
  border-color: var(--primary) !important;
  background: rgba(102, 126, 234, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Model Selector */

/* Advanced Params */
.advanced-params {
  display: none;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 8px;
  box-shadow: var(--shadow);
}

.advanced-params.show { display: block; }

.param-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.param-row:last-child { margin-bottom: 0; }

/* Singer Blocks (豆腐块) */
.singer-blocks {
  display: flex;
  gap: 8px;
  flex: 1;
}

.singer-block {
  flex: 1;
  padding: 8px 8px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  line-height: 1.4;
}

.singer-block:active {
  transform: scale(0.96);
}

.singer-block.selected {
  border-color: var(--primary);
  background: rgba(108,92,231,0.06);
  color: var(--primary);
  font-weight: 600;
}

.singer-vp-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.15s;
}
.singer-vp-plus:active { transform: scale(0.85); }

/* Timbre Chips (声纹特征) */
#timbre-row {
  margin-top: 4px;
}

.timbre-chips {
  display: flex;
  flex: 1;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.timbre-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.timbre-chip:hover:not(.active) {
  border-color: #bbb;
  background: #ddd;
  color: #777;
}

.timbre-chip.active:hover {
  background: var(--primary);
  color: #fff;
}

.timbre-chip:not(.active) {
  border-color: #ccc;
  background: #e8e8e8;
  color: #999;
}

.timbre-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.timbre-chip-name {
  font-size: 11.5px;
  font-weight: 600;
}

.timbre-chip-add {
  border: 1.5px dashed var(--primary) !important;
  background: rgba(108,92,231,0.04) !important;
  color: var(--primary) !important;
  width: 32px;
  justify-content: center;
  padding: 6px 0 !important;
}
.timbre-chip-add:hover {
  background: rgba(108,92,231,0.1) !important;
}
.timbre-chip-add:active {
  transform: scale(0.9);
}

.timbre-sep {
  display: none;
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.35);
  margin: 0 1px;
  flex-shrink: 0;
}

.timbre-chip.active .timbre-sep {
  display: block;
}

.timbre-play-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.timbre-play-btn svg {
  width: 9px;
  height: 9px;
  margin-left: 1px;
}

.timbre-play-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
}

.timbre-chip.active .timbre-play-btn {
  display: flex;
}

.timbre-play-btn.playing {
  animation: timbre-pulse 0.6s ease-in-out infinite;
}

@keyframes timbre-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}



/* Duration Stepper */
.duration-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.stepper-btn:active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.stepper-input {
  width: 56px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  cursor: default;
  flex-shrink: 0;
}

.stepper-unit {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 2px;
}

/* Lyrics Editor Wrapper (simplified, no external gutter) */
.lyrics-editor-wrapper {
  position: relative;
}

/* Inline line-selection dots (rendered inside the lyrics area) */
.lyric-inline-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-light);
  cursor: pointer;
  user-select: none;
  margin-right: 3px;
  flex-shrink: 0;
  transition: all 0.15s;
  background: rgba(255,255,255,0.08);
}
.lyric-inline-dot:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.25);
  transform: scale(1.15);
}
.lyric-inline-dot.selected {
  background: var(--primary);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 8px rgba(108, 92, 231, 0.35);
}

/* Each lyric line with dot + text, respects column-count */
.lyric-line {
  display: flex;
  align-items: center;
  break-inside: avoid;
  line-height: 1.8;
  font-size: 13px;
  padding: 2px 0;
}
.lyric-select-mode .lyric-line {
  cursor: pointer;
  border-radius: 6px;
  padding: 1px 1px;
  transition: background 0.12s;
}
.lyric-select-mode .lyric-line:hover {
  background: rgba(255,255,255,0.04);
}

.lyric-select-mode .lyric-line-blank {
  cursor: default;
}

.lyric-select-mode .lyric-line-blank:hover {
  background: transparent;
}

.lyric-text {
  flex: 1;
  min-width: 0;
}

.lyric-result-pill-btn {
  min-height: 30px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lyric-result-pill-btn svg,
.lyric-result-create-music-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.lyric-result-create-music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lyric-line.lyric-line-tight .lyric-text {
  white-space: nowrap;
  word-break: keep-all;
}

/* Lyrics Multi-Column Display (contenteditable div) */
.lyrics-multi-col {
  column-count: 2;
  column-gap: 4px;
  column-rule: 2px dashed var(--border);
  column-fill: balance;
  font-size: 13px !important;
  line-height: 1.8;
  min-height: 200px;
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
  padding-bottom: 0 !important;
}

.lyrics-multi-col.lyrics-inline-dots {
  white-space: pre-wrap;
  padding: 8px 4px !important;
}

.param-val {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.range-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-row {
  display: flex;
  gap: 8px;
}

.mode-row .mode-card {
  flex: 1;
  background: linear-gradient(135deg, rgba(108,92,231,0.03), rgba(72,52,212,0.01));
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 0 0 rgba(108, 92, 231, 0);
}

.mode-row .mode-card:hover {
  border-color: rgba(108,92,231,0.35);
  box-shadow: 0 0 16px rgba(108, 92, 231, 0.08);
}

.mode-row .mode-card.selected {
  border-color: #6C5CE7;
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(72,52,212,0.06));
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.18), 0 0 40px rgba(108, 92, 231, 0.06), inset 0 1px 0 rgba(255,255,255,0.06);
}

.mode-row .mode-card .mode-icon { font-size: 22px; margin-bottom: 4px; transition: transform 0.3s; }
.mode-row .mode-card.selected .mode-icon { transform: scale(1.1); }
.mode-row .mode-card .mode-name { font-size: 13px; font-weight: 600; }
.mode-row .mode-card .mode-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.mode-card {
  background: linear-gradient(135deg, rgba(108,92,231,0.03), rgba(72,52,212,0.01));
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 0 0 rgba(108, 92, 231, 0);
}

.mode-card:hover {
  border-color: rgba(108,92,231,0.35);
  box-shadow: 0 0 16px rgba(108, 92, 231, 0.08);
}

.mode-card.selected {
  border-color: #6C5CE7;
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(72,52,212,0.06));
  box-shadow: 0 0 24px rgba(108, 92, 231, 0.2), 0 0 48px rgba(108, 92, 231, 0.06), inset 0 1px 0 rgba(255,255,255,0.06);
}

.mode-card .mode-icon { font-size: 28px; margin-bottom: 8px; transition: transform 0.3s; }
.mode-card.selected .mode-icon { transform: scale(1.1); }
.mode-card .mode-name { font-size: 14px; font-weight: 600; }
.mode-card .mode-desc { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

/* 创作模式二创标签 */
.mode-remix-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #6C5CE7;
  background: rgba(108,92,231,0.12);
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Model Dropdown */
.model-select {
  position: relative;
}

.model-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(108,92,231,0.04), rgba(72,52,212,0.01)), #fff;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(108, 92, 231, 0);
}

.model-dropdown:hover {
  border-color: rgba(108,92,231,0.4);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.08);
}

.model-dropdown:focus-within,
.model-select.open .model-dropdown {
  border-color: #6C5CE7;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.18), 0 0 40px rgba(108, 92, 231, 0.06);
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(72,52,212,0.03)), #fff;
}

.model-arrow {
  transition: transform 0.2s ease;
}

.model-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #6C5CE7;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.18), 0 0 48px rgba(108, 92, 231, 0.06);
  z-index: 100;
  overflow: hidden;
}

.model-dropdown-item {
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.model-dropdown-item:last-child {
  border-bottom: none;
}

.model-dropdown-item:hover {
  background: rgba(108,92,231,0.06);
}

.model-dropdown-item.active {
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(72,52,212,0.05));
}

.model-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.model-item-meta {
  display: flex;
  gap: 8px;
}

.model-item-tag {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(108,92,231,0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.model-dropdown-item.active .model-item-tag {
  background: rgba(108,92,231,0.12);
  color: var(--primary);
}

/* Model Dropdown Compact (弱化版) */
.model-select-compact {
  flex-shrink: 0;
  position: relative;
}

.model-dropdown-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: auto;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 400;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: none;
}

.model-dropdown-compact:hover {
  border-color: rgba(0,0,0,0.15);
  color: var(--text-primary);
}

.model-dropdown-compact .model-arrow {
  width: 12px;
  height: 12px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.model-dropdown-compact:hover .model-arrow {
  opacity: 0.7;
}

.model-select-compact .model-dropdown-list {
  left: auto;
  right: 0;
  width: 300px;
  min-width: 300px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.style-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* Key Dropdown (调性) */
.key-select {
  position: relative;
  flex: 1;
}

.key-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.key-dropdown:hover {
  border-color: rgba(108,92,231,0.4);
}

.key-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.2s;
}

.key-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(108,92,231,0.18), 0 0 48px rgba(108,92,231,0.06);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
}

.key-dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.key-dropdown-item:last-child {
  border-bottom: none;
}

.key-dropdown-item:hover {
  background: rgba(108,92,231,0.06);
}

.key-dropdown-item.active {
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(108,92,231,0.04));
}

.key-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.key-item-songs {
  font-size: 12px;
  color: var(--text-secondary);
}

.style-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  background: #fff;
  color: #444;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}

.style-chip-icon {
  width: 14px;
  min-width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

.instrument-chip {
  padding-left: 10px;
}

.style-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.style-chip.active,
.style-chip.selected {
  color: #222;
  font-weight: 700;
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
  filter: brightness(1.15) saturate(1.2) !important;
  opacity: 1 !important;
}

/* 多选达到上限后，未选中的按钮变灰 */
/* 歌词结构：选中带边框 */
.structure-chip {
  background: #fff !important;
  color: #666 !important;
}
.structure-chip.selected,
.structure-chip.active {
  background: #fff !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  border-width: 2px;
  filter: none !important;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.15);
}

.style-chips.has-selection .style-chip:not(.selected):not(.active),
#structure-chips.has-selection .structure-chip:not(.selected):not(.active) {
  opacity: 0.38 !important;
  filter: grayscale(0.45) brightness(0.96) !important;
  box-shadow: none !important;
  transform: none !important;
}

.input-label--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lyric-section-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 17px;
}

.lyric-section-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.create-section-label-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 多选(max2)模式下，已选满时未选中的变灰 */
.style-chips.selection-full .style-chip:not(.selected) {
  filter: grayscale(0.65);
  opacity: 0.4;
}

.literary-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.literary-option-row {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) 74px 74px;
  gap: 8px;
  align-items: center;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.literary-option-row--three {
  grid-template-columns: minmax(54px, 1fr) repeat(3, 52px);
}

.literary-option-label {
  min-width: 0;
  padding-left: 15px;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.literary-option-label::before {
  color: var(--primary);
  font-size: 11px;
  line-height: 1;
}

.literary-option-row[data-literary-group="rhymeFoot"] .literary-option-label::before {
  content: "◇";
}

.literary-option-row[data-literary-group="rhymeTone"] .literary-option-label::before {
  content: "≈";
}

.literary-option-row[data-literary-group="hidden"] .literary-option-label::before {
  content: "✦";
}

.literary-option-row[data-literary-group="chorusRhyme"] .literary-option-label::before {
  content: "↔";
}

.literary-option-row[data-literary-group="homophone"] .literary-option-label::before {
  content: "♪";
}

.literary-option {
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s ease;
}

.literary-option.active {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  color: #444;
  box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.08);
}

.literary-option-row.has-selection .literary-option:not(.active) {
  opacity: 0.38;
  filter: grayscale(0.45) brightness(0.96);
  box-shadow: none;
}

.literary-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.literary-switch-row {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.literary-switch {
  width: 34px;
  height: 18px;
  border: 1px solid rgba(108, 92, 231, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 2px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.literary-switch-thumb {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bfc5d6;
  box-shadow: 0 1px 3px rgba(20, 24, 40, 0.16);
  transition: transform 0.18s ease, background 0.18s ease;
}

.literary-switch.active {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.08);
}

.literary-switch.active .literary-switch-thumb {
  transform: translateX(18px);
  background: var(--primary);
}

.cover-upload-list {
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(108, 92, 231, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.cover-upload-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #444;
  font-size: 12px;
}

.cover-upload-list-head span {
  font-weight: 600;
}

.cover-upload-list-head button {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
}

.cover-upload-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.cover-upload-item-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cover-upload-note {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  font-size: 14px;
}

.cover-upload-meta {
  flex: 1;
  min-width: 0;
}

.cover-upload-name {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-upload-size {
  margin-top: 2px;
  color: var(--text-light);
  font-size: 11px;
}

.cover-upload-remove {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #666;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
}

.cover-upload-item audio {
  width: 100%;
  height: 32px;
}

.cover-medley-row {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 2px 0;
}

.cover-medley-title {
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.cover-medley-desc {
  margin-top: 3px;
  color: var(--text-light);
  font-size: 11px;
  line-height: 1.35;
}

.literary-hidden-text-wrap {
  margin-top: 2px;
}

.literary-hidden-text-input {
  height: 38px;
  font-size: 13px;
}

.lyric-scene-input {
  min-height: 54px;
  resize: none;
  line-height: 1.45;
  padding-top: 10px;
  padding-bottom: 10px;
}

.input.input-error {
  border-color: #ff4d4f !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.12);
}

.empty-box-icon {
  width: 48px;
  height: 48px;
  display: block;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 30px;
  text-align: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.upload-area:active { background: var(--bg); }

.upload-area.is-upload-locked {
  cursor: default;
  opacity: 0.68;
  pointer-events: none;
}

.upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-text {
  max-width: 100%;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-hint { font-size: 11px; margin-top: 4px; }

.audio-tool-file-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.audio-tool-file-row__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.audio-tool-file-row__meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-tool-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.1);
  overflow: hidden;
}

.audio-tool-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6C5CE7, #A29BFE);
  transition: width 0.18s ease;
}

.audio-tool-progress-text {
  color: var(--text-light);
  font-size: 11px;
  line-height: 1;
}

.audio-tool-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.audio-tool-modal-head h3 {
  margin-bottom: 6px;
}

.audio-tool-modal-head p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 12px;
}

.audio-tool-recent-toggle {
  height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.06);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.audio-tool-recent-toggle.is-open {
  background: rgba(108, 92, 231, 0.12);
}

.audio-tool-score-link {
  height: 30px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.06);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.audio-tool-score-link:active {
  background: rgba(108, 92, 231, 0.12);
}

.audio-tool-recent-projects {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  box-sizing: border-box;
}

.audio-tool-recent-projects[hidden] {
  display: none;
}

.audio-tool-recent-projects__notice {
  flex: 0 0 auto;
  padding: 9px 10px;
  border: 1px solid rgba(224, 73, 68, 0.22);
  border-radius: 8px;
  background: rgba(224, 73, 68, 0.08);
  color: #c3332f;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.audio-tool-recent-projects__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 9px;
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 8px;
  background: rgba(108, 92, 231, 0.05);
}

.audio-tool-recent-projects__loading,
.audio-tool-recent-projects__empty {
  padding: 10px 4px;
  color: var(--text-light);
  font-size: 12px;
  text-align: center;
}

.audio-tool-recent-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.audio-tool-recent-project__info {
  min-width: 0;
}

.audio-tool-recent-project__info div {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-tool-recent-project__info span {
  display: block;
  margin-top: 2px;
  color: var(--text-light);
  font-size: 10px;
}

.audio-tool-recent-project button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.audio-tool-recent-project button:disabled {
  opacity: 0.45;
  cursor: default;
}

.audio-tool-temp-results {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 12px;
  padding: 9px;
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 8px;
  background: rgba(108, 92, 231, 0.05);
}

.audio-tool-temp-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
}

.audio-tool-temp-results__head strong {
  color: var(--text-light);
  font-size: 10px;
  font-weight: 600;
}

.audio-tool-temp-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.audio-tool-temp-result__info {
  min-width: 0;
}

.audio-tool-temp-result__info div {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-tool-temp-result__info span {
  display: block;
  margin-top: 2px;
  color: var(--text-light);
  font-size: 10px;
}

.audio-tool-temp-result button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Voiceprint */
.voiceprint-status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.voiceprint-item {
  transition: all 0.2s ease;
}

.voiceprint-item:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.voiceprint-item.active {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.voiceprint-item-modal {
  transition: all 0.2s ease;
}

.voiceprint-item-modal:hover {
  transform: translateX(2px);
}

.voiceprint-item-modal.active {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* 声纹工具闪烁提示 */
@keyframes vpFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(0, 206, 201, 0); }
}

.flash-highlight {
  animation: vpFlash 0.8s ease-in-out 3;
  border: 2px solid #00CEC9 !important;
  border-radius: 12px !important;
}

.vp-icon { font-size: 28px; }
.vp-info { flex: 1; }
.vp-title { font-weight: 600; font-size: 14px; }
.vp-desc { font-size: 12px; color: var(--text-secondary); }

.voiceprint-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.voiceprint-action-row .btn {
  width: 100%;
  min-height: 46px;
}

.voiceprint-upload-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.voiceprint-recorder {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: #fff;
}

.vp-recording-icon { font-size: 48px; margin-bottom: 12px; }
.vp-recording-icon.is-recording {
  color: #ff4d4f;
  text-shadow: 0 0 18px rgba(255, 77, 79, 0.72);
  animation: vp-recording-pulse 0.85s ease-in-out infinite;
}
.vp-recording-status { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.vp-recording-time { font-size: 24px; font-weight: 300; font-family: monospace; margin-bottom: 16px; }

@keyframes vp-recording-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.42;
    transform: scale(0.82);
  }
}

#vp-stop-record-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
  box-shadow: none;
}

.vp-waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 40px;
}

.vp-bar {
  width: 3px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: vp-wave 0.8s ease-in-out infinite;
}

.vp-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.vp-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.vp-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.vp-bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.vp-bar:nth-child(5) { height: 15px; animation-delay: 0.4s; }

@keyframes vp-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* ========== 旋律录制面板 ========== */
.melody-recorder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  min-height: 180px;
}

/* 未录制状态 */
.melody-idle { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.melody-big-btn {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #00CEC9, #00b3ae);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,206,201,0.3);
  color: #fff; font-size: 12px; font-weight: 600; gap: 4px;
}
.melody-big-btn:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(0,206,201,0.4); }
.melody-big-btn:active { transform: scale(0.95); }
.melody-mic-icon { width: 28px; height: 28px; }
.melody-mic-icon svg { width: 100%; height: 100%; }
.melody-tip {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
  max-width: 260px;
}
.melody-upload-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-light); cursor: pointer;
  padding: 6px 14px; border: 1px dashed var(--border); border-radius: 20px;
  transition: border-color 0.2s, color 0.2s;
}
.melody-upload-hint:hover { border-color: var(--primary); color: var(--primary); }
.melody-upload-hint svg { width: 14px; height: 14px; }

/* 录制中状态 */
.melody-recording { display: flex; flex-direction: column; align-items: center; gap: 16px; display: none; }
.melody-record-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: #FF6B6B;
}
.melody-record-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #FF6B6B; animation: melody-dot-pulse 0.8s ease-in-out infinite;
}
@keyframes melody-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.melody-timer {
  font-size: 32px; font-weight: 300; font-family: monospace;
  color: var(--text-primary); letter-spacing: 2px;
}

/* 波形 */
.melody-waveform {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 4px; height: 50px;
}
.m-bar {
  width: 4px; border-radius: 2px;
  background: var(--primary);
  animation: m-wave 0.7s ease-in-out infinite;
}
.m-bar:nth-child(1) { height: 18px; animation-delay: 0s; }
.m-bar:nth-child(2) { height: 32px; animation-delay: 0.08s; }
.m-bar:nth-child(3) { height: 24px; animation-delay: 0.16s; }
.m-bar:nth-child(4) { height: 44px; animation-delay: 0.24s; }
.m-bar:nth-child(5) { height: 20px; animation-delay: 0.32s; }
.m-bar:nth-child(6) { height: 36px; animation-delay: 0.40s; }
.m-bar:nth-child(7) { height: 28px; animation-delay: 0.48s; }
.m-bar:nth-child(8) { height: 40px; animation-delay: 0.56s; }
.m-bar:nth-child(9) { height: 16px; animation-delay: 0.64s; }
.m-bar:nth-child(10) { height: 30px; animation-delay: 0.72s; }
@keyframes m-wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* 停止按钮 */
.melody-stop-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border: none; border-radius: 24px;
  background: #FF6B6B; color: #fff; font-size: 14px;
  font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.melody-stop-btn:hover { background: #e55a5a; transform: scale(1.03); }
.melody-stop-btn svg { width: 16px; height: 16px; }

/* 录制完成状态 */
.melody-done { display: flex; flex-direction: column; align-items: center; gap: 14px; display: none; }
.melody-done-icon { font-size: 36px; }
.melody-done-text { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.melody-done-text span { font-family: monospace; color: var(--text-secondary); margin-left: 4px; }
.melody-done-waveform { margin: 4px 0; }
.melody-done-waveform .m-bar { animation: none; opacity: 0.6; }
.melody-done-actions { display: flex; gap: 10px; }
.melody-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); color: var(--text-primary); font-size: 13px;
  cursor: pointer; transition: all 0.2s;
}
.melody-action-btn:hover { border-color: var(--primary); color: var(--primary); }
.melody-action-btn svg { width: 14px; height: 14px; }

/* 已生成音乐状态 */
.melody-generated { display: flex; flex-direction: column; align-items: center; gap: 12px; display: none; }
.melody-gen-icon { font-size: 40px; }
.melody-gen-text {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  max-width: 260px; text-align: center; word-break: break-all;
}
.melody-gen-sub {
  font-size: 13px; color: var(--text-secondary);
}
.melody-gen-actions { display: flex; gap: 10px; margin-top: 4px; }

/* History Card */
.history-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.history-cover {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.history-info { flex: 1; min-width: 0; }

.history-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Generating Animation */
.gen-animation {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}

.gen-bar {
  width: 6px;
  background: #fff;
  border-radius: 3px;
  animation: genBounce 0.6s ease-in-out infinite alternate;
}

.gen-bar:nth-child(1) { height: 25px; }
.gen-bar:nth-child(2) { height: 40px; }
.gen-bar:nth-child(3) { height: 30px; }
.gen-bar:nth-child(4) { height: 50px; }
.gen-bar:nth-child(5) { height: 20px; }

@keyframes genBounce {
  to { transform: scaleY(0.5); }
}

/* ========== Community Page ========== */
/* 分类筛选栏 - 纯文字加粗，无背景框 */
.community-filter-bar {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.community-filter-bar::-webkit-scrollbar { display: none; }

.community-filter-item {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  flex-shrink: 0;
  background: none;
  border: none;
}

.community-filter-item::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-filter-item.active {
  color: var(--text-primary);
  font-weight: 700;
}

.community-filter-item.active::after {
  transform: scaleX(1);
}

.community-filter-item:active {
  color: var(--text-primary);
}

.community-feed { padding: 0 16px; }

.feed-card {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.creator-profile-work-card-header {
  align-items: center;
}

.creator-profile-work-card-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.creator-profile-work-card-title .feed-card-title {
  min-width: 0;
  max-width: 100%;
}

.creator-profile-work-card-title .feed-card-time {
  margin-left: 0;
  text-align: left;
}

.feed-card-user {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  transform: translateX(3px);
}
.feed-card-username {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.feed-card-author-link {
  cursor: pointer;
}

.feed-card-author-link:active {
  opacity: 0.78;
}

.comment-author-link {
  cursor: pointer;
}

.comment-author-link:active {
  opacity: 0.78;
}

.creator-profile-page {
  min-height: 100%;
  background: var(--bg);
}

.creator-profile-page.has-page-bg {
  background-image:
    linear-gradient(180deg, rgba(248, 249, 252, 0.9), rgba(248, 249, 252, 0.96)),
    var(--creator-profile-page-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.creator-profile-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px 1fr 58px;
  align-items: center;
  min-height: 52px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.creator-profile-back {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.creator-profile-back svg {
  width: 22px;
  height: 22px;
}

.creator-profile-title {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.creator-profile-open-switch {
  justify-self: end;
  position: relative;
  width: 54px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  padding: 3px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.18s ease, opacity 0.18s ease;
}

.creator-profile-open-switch strong {
  position: absolute;
  inset: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(15, 23, 42, 0.58);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.creator-profile-open-switch span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.creator-profile-open-switch.active {
  background: var(--primary);
}

.creator-profile-open-switch.active strong {
  justify-content: flex-start;
  color: #fff;
}

.creator-profile-open-switch.active span {
  transform: translateX(30px);
}

.creator-profile-open-switch:disabled {
  opacity: 0.55;
  cursor: wait;
}

.creator-profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 16px 16px;
  padding: 16px 16px 16px 31px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: visible;
}

.creator-profile-hero.has-bg {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.76)),
    var(--creator-profile-bg);
  background-size: cover;
  background-position: center;
}

.creator-profile-hero > * {
  position: relative;
  z-index: 1;
}

.creator-profile-rank-corner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 28px;
  border-radius: 0 14px 0 28px;
  background: linear-gradient(135deg, #ffcf5a, #ff7a45);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  padding-bottom: 2px;
  box-shadow: 0 5px 14px rgba(255, 122, 69, 0.24);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.creator-profile-rank-corner.is-visible {
  display: inline-flex;
}

.creator-profile-avatar {
  flex: 0 0 auto;
  position: relative;
  top: -34px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.16), rgba(0, 184, 148, 0.14));
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 0 0 2px var(--creator-profile-avatar-ring, var(--primary));
}

.creator-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-profile-info {
  flex: 1;
  min-width: 0;
}

.creator-profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transform: translateY(-5px);
}

.creator-profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 900;
  color: var(--text-primary);
}

.creator-profile-name-row .backend-level-badges {
  flex: 0 0 auto;
}

.creator-profile-signature {
  margin-top: 1px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-profile-page.is-owner-edit .creator-profile-signature {
  display: none;
}

.creator-profile-bg-actions {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.creator-profile-bg-btn {
  margin: 0;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.creator-profile-bg-btn:active {
  transform: scale(0.98);
}

.creator-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: calc(100% + 78px);
  margin-left: -78px;
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 10.2px;
  font-weight: 700;
}

.creator-profile-meta .backend-level-badges {
  flex: 0 0 auto;
  cursor: default;
}

.creator-profile-meta > span:not(.backend-level-badges) {
  padding: 3.4px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
}

.creator-profile-section-head {
  display: flex;
  align-items: center;
  padding: 0 16px 10px;
}

.creator-profile-section-title {
  flex: 0 0 auto;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 850;
}

.creator-profile-filters {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.creator-profile-filters::-webkit-scrollbar {
  display: none;
}

.creator-profile-filter {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.creator-profile-filter strong {
  color: var(--text-light);
  font-size: 11px;
  font-weight: 800;
}

.creator-profile-filter.active {
  border-color: rgba(108, 92, 231, 0.18);
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
}

.creator-profile-filter.active strong {
  color: var(--primary);
}

.creator-profile-feed {
  padding-bottom: 20px;
}

.creator-profile-feed-loading {
  padding: 14px 0 18px;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.creator-profile-visibility-btn {
  flex: 0 0 auto;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.creator-profile-visibility-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.creator-profile-visibility-btn span {
  line-height: 1;
}

.creator-profile-visibility-btn.is-hidden {
  color: var(--text-light);
}

.creator-profile-visibility-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.creator-profile-bg-modal {
  width: min(100%, 520px);
}

.creator-profile-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  max-height: 56vh;
  overflow-y: auto;
}

.creator-profile-bg-add,
.creator-profile-bg-option {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
}

.creator-profile-bg-add {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.035);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.creator-profile-bg-add span {
  font-size: 26px;
  line-height: 1;
}

.creator-profile-bg-add strong {
  font-size: 12px;
}

.creator-profile-bg-option {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f4f5f7 center/cover no-repeat;
}

.creator-profile-bg-option.active {
  border-color: var(--primary);
}

.creator-profile-bg-option span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-profile-bg-empty {
  grid-column: 1 / -1;
  padding: 20px 10px;
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
}

.model-dropdown-item.vip-only {
  position: relative;
  padding-right: 52px;
  background-image: linear-gradient(90deg, rgba(79, 195, 247, 0.04), rgba(123, 31, 162, 0.06));
}

.model-item-vip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 7px;
  border: 1px solid #e03131;
  border-radius: 4px;
  background: #e03131;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.draft-swipe-row {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 8px;
}

.draft-swipe-content {
  position: relative;
  z-index: 2;
  margin: 0;
  background: var(--surface);
  touch-action: pan-y;
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.2s ease;
}

.draft-swipe-delete {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 76px;
  border: 0;
  background: #d9363e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.draft-swipe-row[data-swiped="1"] .draft-swipe-delete {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.draft-cd-cover {
  border-radius: 9px;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.draft-cd-case {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.24), rgba(255,255,255,0.04) 32%, rgba(0,0,0,0.28) 100%),
    linear-gradient(135deg, #5d626b 0%, #30343b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.3),
    inset 0 -1px 4px rgba(0,0,0,0.34),
    0 4px 10px rgba(35, 39, 46, 0.22);
}

.draft-cd-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, #555b64 0%, #292d33 100%);
  box-shadow: 1px 0 2px rgba(0,0,0,0.34);
  z-index: 3;
}

.draft-cd-disc {
  position: absolute;
  left: 6px;
  top: 7px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #6C5CE7;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.65),
    inset 0 0 12px rgba(255,255,255,0.18),
    0 1px 5px rgba(0,0,0,0.24);
}

.draft-cd-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 34%, transparent 54%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}

.draft-cd-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 0 0 2px rgba(66, 73, 92, 0.25);
  z-index: 2;
}

.draft-result-tag {
  padding: 2px 9px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.15;
  background: rgba(116, 124, 140, 0.14);
  color: #667085;
}

.draft-status-tag {
  flex-shrink: 0;
  background: rgba(108, 117, 125, 0.1);
  color: #6b7280;
}

.draft-status-tag.is-complete {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.draft-pin-mark {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(255, 184, 0, 0.16);
  color: #b7791f;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.draft-context-menu {
  position: fixed;
  z-index: 3000;
  width: 128px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.draft-context-menu button {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.draft-context-menu button:active,
.draft-context-menu button:hover {
  background: rgba(108, 92, 231, 0.08);
}

.draft-context-menu button.is-danger {
  color: #e03131;
}
.feed-card-username__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-card-username .backend-level-badges {
  flex-shrink: 0;
}
.feed-card-member {
  min-height: 16px;
  margin-top: 0;
  display: flex;
  align-items: center;
}
.feed-card-member:empty { display: none; }
.feed-card-member .backend-level-badges {
  justify-content: flex-start;
  cursor: default;
}
.feed-card-member .member-level-tag,
.rank-title .member-level-tag,
#profile-level-badges .member-level-tag {
  min-width: 57px;
  height: 15px;
  gap: 2px;
  padding: 0 6px;
  border-width: 1px;
  font-size: 8.5px;
  border-radius: 3px;
}
.feed-card-member .member-level-tag__icon,
.rank-title .member-level-tag__icon,
#profile-level-badges .member-level-tag__icon {
  font-size: 8.5px;
  transform: translateY(-0.5px);
}
.feed-card-time {
  flex: 0 0 auto;
  margin-left: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.feed-remix-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.feed-remix-action__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: inherit;
}

.feed-card-cover {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feed-card-cover .play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.feed-card-cover .play-btn svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feed-card-cover .play-btn.loading {
  cursor: wait;
}

.feed-play-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: feed-play-loading-spin 0.7s linear infinite;
}

@keyframes feed-play-loading-spin {
  to { transform: rotate(360deg); }
}

.feed-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.feed-card-body { padding: 12px 16px; }

.feed-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.feed-card-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
}

.feed-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.community-feed .feed-card-tags {
  gap: 4px;
}

.community-feed .feed-card-tags .tag {
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 8.5px;
  line-height: 1.2;
}

.feed-card-actions {
  display: flex;
  align-items: center;
  padding: 0 16px 10px 16px;
  gap: 6px;
}

.feed-action {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.feed-action:active { background: var(--bg); }
.feed-action.liked { color: var(--accent); }
.feed-action.favorited { color: #FFD700; }
.feed-action svg { width: 16px; height: 16px; }

.feed-comment-preview {
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.feed-comment-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
}

.feed-comment-preview__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-top: 6px;
  min-width: 0;
}

.feed-comment-preview__avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: rgba(108,92,231,0.12);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  overflow: hidden;
}

.feed-comment-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-comment-preview__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.feed-comment-preview__user {
  max-width: 72px;
  flex: 0 0 auto;
  color: var(--text-primary);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-comment-preview__text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-comment-preview__heat {
  flex: 0 0 32px;
  width: 32px;
  min-height: 20px;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.1);
  color: #ff7a45;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.feed-comment-preview__heat strong {
  font-size: 10px;
}

.feed-comment-preview__heat.liked {
  background: rgba(255, 77, 109, 0.12);
  color: #ff4d6d;
}

/* 内嵌播放进度条（封面底部） */
.feed-inline-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 3;
}
.feed-inline-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 0 1px 1px 0;
  transition: width 0.3s linear;
}

/* 内嵌播放控制栏 */
.feed-inline-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.feed-inline-time {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.feed-inline-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  transition: transform 0.15s;
}
.feed-inline-btn:active { transform: scale(0.9); }
.feed-inline-btn svg { width: 12px; height: 12px; fill: #fff; }

/* 封面播放按钮播放中状态 */
.feed-card-cover .play-btn.playing {
  animation: feed-play-pulse 1s ease-in-out infinite;
}
@keyframes feed-play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* 卡片内嵌相册轮播 */
.feed-album-slides {
  pointer-events: none;
}
.feed-album-slide {
  will-change: opacity;
}
.feed-album-slide span {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* 卡片内嵌相册指示点 */
.feed-album-dots {
  display: flex;
}

/* 卡片内嵌卡拉OK歌词 */
.feed-karaoke-overlay {
  /* 通过 JS 控制 display:flex */
}

/* 右上角播放状态指示器 */
.feed-playing-badge {
  white-space: nowrap;
}

.feed-karaoke-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
}

.feed-karaoke-line {
  min-height: 32px;
  max-height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  font-family: 'SimHei', '黑体', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: 2px;
  line-height: 1.45;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  color: rgba(255,255,255,0.95);
  word-break: break-word;
}

.feed-karaoke-line--top {
  justify-content: flex-start;
  text-align: left;
}

.feed-karaoke-line--bottom {
  justify-content: flex-end;
  text-align: right;
}
@keyframes feed-eq {
  0% { height: 4px; }
  100% { height: 12px; }
}

/* Topic Scroll */
.topic-scroll::-webkit-scrollbar { display: none; }

/* ========== Tools Page ========== */
.recent-tools {
  display: flex;
  gap: 8px;
}

.recent-tool-item {
  padding: 8px 14px;
  background: #fff;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.tool-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}

.tool-card:active { transform: scale(0.96); }

.tool-card .tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.tool-card .tool-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tool-card .tool-desc { font-size: 11px; color: var(--text-secondary); }

.tool-card .tool-badge {
  margin-top: 10px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

/* ========== Profile Page ========== */
.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  padding: 20px 20px 24px;
  color: #fff;
  position: relative;
}

.profile-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--profile-bg, transparent);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.profile-header > * {
  position: relative;
  z-index: 1;
}

.profile-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-bottom: 8px;
}

.profile-header-action {
  color: #fff;
  background: transparent;
  backdrop-filter: none;
}

.profile-header-action:active {
  background: transparent;
}

.profile-header-action:disabled,
.profile-header-action[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.profile-header-action svg {
  width: 17px;
  height: 17px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-edit {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 50%;
  background: rgba(38, 45, 68, 0.82);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 9px rgba(0,0,0,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.profile-main {
  min-width: 0;
  flex: 1;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar.guest-avatar {
  background: rgba(236, 239, 243, 0.34);
  border-color: rgba(255,255,255,0.42);
  color: #fff;
  box-shadow: 0 5px 14px rgba(45, 52, 65, 0.12);
}

.profile-avatar.guest-avatar img {
  filter: grayscale(1);
  opacity: 0.9;
}

.profile-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-size: 18px;
  font-weight: 700;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.profile-name-button {
  min-width: 0;
  max-width: 132px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.profile-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.profile-name-text {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 8px rgba(255, 255, 255, 0.72);
}

.profile-level-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  line-height: 1;
  cursor: pointer;
}
.profile-login-status {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
}

.profile-login-status.logged-in {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.22);
}

.profile-login-status.guest {
  background: rgba(215,38,61,0.22);
  color: #fff3f4;
  border: 1px solid rgba(255,255,255,0.24);
}

.profile-id { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.profile-bio { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.profile-bio-inline {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 238px;
  margin-top: 0;
  font-weight: 400;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-favorite-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  margin-top: 0;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.profile-favorite-button::before {
  content: "★";
  font-size: 10px;
  color: #FFE08A;
}

.profile-favorite-button strong {
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.settings-modal {
  position: relative;
  padding-top: 2px;
}

.settings-modal-close {
  position: absolute;
  right: -4px;
  top: -2px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.settings-modal-title {
  margin: 0 34px 16px 0;
  font-size: 18px;
  font-weight: 800;
}

.settings-logout-btn {
  margin-top: 20px;
}

.profile-favorite-button.active {
  background: rgba(255,255,255,0.26);
  border-color: rgba(255,255,255,0.46);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.guest-profile-bio {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.guest-quick-login {
  height: 19px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  font-size: 9px;
  line-height: 17px;
  cursor: pointer;
}

.guest-quick-login:active {
  background: rgba(255,255,255,0.2);
}

.login-page-screen {
  position: absolute;
  inset: 0;
  z-index: 250;
  overflow: hidden;
  background: var(--login-page-bg, #f4f5f8);
}

.login-page-modal {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-color: var(--login-page-bg, #f4f5f8);
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.login-page-panel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
  box-sizing: border-box;
}

.login-page-slider {
  overflow: hidden;
  padding: 0;
}

.login-page-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.28s ease;
}

.login-page-slide {
  position: relative;
  width: 50%;
  height: 100%;
  padding: max(var(--login-content-top, 88px), env(safe-area-inset-top, 0px)) var(--login-content-x, 28px) max(34px, env(safe-area-inset-bottom, 0px));
  background: var(--login-mask-color, rgba(255,255,255,0.92));
  box-sizing: border-box;
  overflow-y: auto;
}

.login-page-slide:nth-child(2) {
  padding-top: max(68px, env(safe-area-inset-top, 0px));
}

.login-page-close,
.login-step-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #50545d;
  background: transparent;
  cursor: pointer;
}

.login-page-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 3;
}

.login-page-screen.login-sms-active .login-page-close {
  display: none;
}

.login-step-back {
  position: absolute;
  top: max(18px, env(safe-area-inset-top, 0px));
  left: 16px;
}

.login-page-close svg,
.login-step-back svg {
  width: 22px;
  height: 22px;
}

.login-page-logo {
  width: var(--login-logo-size, 82px);
  height: var(--login-logo-size, 82px);
  object-fit: contain;
  margin-bottom: 6px;
}

.login-page-logo.sms {
  width: var(--login-logo-size, 82px);
  height: var(--login-logo-size, 82px);
  margin-bottom: 6px;
}

.login-page-panel h3 {
  margin: 0;
  color: var(--login-title, var(--text));
  font-size: var(--login-title-size, 24px);
  font-weight: 700;
}

.login-page-subtitle {
  min-height: 40px;
  margin: 12px 0 34px;
  color: var(--login-subtitle, var(--text-secondary));
  font-size: 13px;
  line-height: 1.55;
}

.login-page-subtitle.sms {
  min-height: 0;
  margin-bottom: 18px;
}

.login-page-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.login-page-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--login-input-border, var(--border));
  border-radius: 12px;
  background: var(--login-input-bg, #fff);
  color: var(--text);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.login-page-input:focus {
  border-color: var(--login-primary, var(--primary));
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.login-code-button {
  height: 42px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 12px;
  color: var(--login-primary, var(--primary));
  background: rgba(124, 58, 237, 0.08);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.login-code-button:disabled,
.login-page-primary:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.login-page-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--login-subtitle, var(--text-secondary));
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.login-page-agreement input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.login-page-agreement a {
  color: var(--login-primary, var(--primary));
  text-decoration: none;
  font-weight: 600;
}

.usage-help-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 0 0 8px;
  background: #fff;
}

.usage-help-tab {
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(108, 92, 231, 0.14);
  border-radius: 8px;
  background: rgba(108, 92, 231, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.usage-help-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.usage-help-panel {
  display: none;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.85;
}

.usage-help-panel.active {
  display: block;
}

.usage-help-panel h4 {
  margin: 2px 0 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.usage-help-panel ol {
  margin: 0;
  padding-left: 18px;
}

.usage-help-panel li {
  margin: 0 0 8px;
}

.usage-help-growth-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.usage-help-growth-row {
  display: grid;
  grid-template-columns: minmax(66px, 0.72fr) minmax(96px, 1fr) minmax(116px, 1.32fr);
  border-bottom: 1px solid var(--border);
}

.usage-help-growth-row:last-child {
  border-bottom: 0;
}

.usage-help-growth-row > div {
  min-width: 0;
  padding: 8px 7px;
  border-right: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.usage-help-growth-row > div:last-child {
  border-right: 0;
}

.usage-help-growth-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.usage-help-growth-row strong {
  min-width: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.usage-help-growth-head {
  background: var(--bg);
}

.usage-help-growth-head > div {
  color: var(--text);
  font-weight: 800;
}

.usage-help-growth-badge-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.usage-help-growth-badge-cell .backend-level-badges {
  cursor: default;
}

.usage-help-growth-notes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  color: var(--text-light);
  font-size: 11px;
  line-height: 1.55;
}

.usage-help-member-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.usage-help-member-card {
  min-width: 0;
  padding: 9px 6px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
}

.usage-help-member-card strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.usage-help-member-card span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  opacity: 0.84;
}

.usage-help-member-card--gold {
  background: linear-gradient(135deg, #8B6914, #D4AF37);
}

.usage-help-member-card--diamond {
  background: linear-gradient(135deg, #01579B, #4FC3F7);
}

.usage-help-member-card--supreme {
  background: linear-gradient(135deg, #4A148C, #CE93D8);
}

.usage-help-benefit-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.usage-help-benefit-row {
  display: grid;
  grid-template-columns: minmax(82px, 1.2fr) repeat(3, minmax(54px, 1fr));
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.usage-help-benefit-row:last-child {
  border-bottom: 0;
}

.usage-help-benefit-row > div {
  min-width: 0;
  padding: 7px 6px;
  border-right: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.usage-help-benefit-row > div:first-child {
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.usage-help-benefit-row > div:last-child {
  border-right: 0;
}

.usage-help-benefit-head {
  background: var(--bg);
}

.usage-help-benefit-head > div {
  color: var(--text);
  font-weight: 800;
}

.usage-help-benefit-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.usage-help-benefit-mark--yes {
  background: rgba(7, 193, 96, 0.12);
  color: #07a85a;
}

.usage-help-benefit-mark--no {
  background: rgba(255, 77, 79, 0.10);
  color: #d64545;
}

.login-page-primary,
.login-page-secondary {
  width: 100%;
  height: var(--login-button-height, 44px);
  border: 0;
  border-radius: var(--login-button-radius, 22px);
  font-size: var(--login-button-size, 15px);
  font-weight: 700;
  cursor: pointer;
}

.login-page-primary {
  color: #fff;
  background: var(--login-primary, var(--primary));
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.24);
}

.login-page-primary.login-submit {
  margin-top: 20px;
}

.login-page-secondary {
  margin-top: 12px;
  color: var(--login-secondary-text, var(--primary));
  background: var(--login-secondary-bg, rgba(124, 58, 237, 0.1));
}

.login-page-tips {
  margin: 18px 0 0;
  color: var(--login-tips, var(--text-light));
  font-size: 12px;
  line-height: 1.55;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.profile-stat { text-align: center; cursor: pointer; }
.profile-stat .num { font-size: 18px; font-weight: 700; }
.profile-stat .label { font-size: 11px; opacity: 0.8; }

/* 抖音风格：选项卡在 profile-header 外，白色背景 */
.profile-tabs-wrapper {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.profile-tabs {
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}

#profile-content-tabs {
  margin: 0;
  padding: 8px;
}

.profile-tab {
  flex: 1;
  text-align: center;
  padding: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  user-select: none;
}

.profile-tab.active {
  color: var(--text);
  font-weight: 700;
}

.profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

.profile-tab-count {
  font-size: 11px;
  color: var(--text-light);
  margin-left: 2px;
}

/* 抖音风格作品网格 */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 29px;
  row-gap: 16px;
  padding: 4px 17px;
  overflow: visible;
}
.profile-grid > * {
  min-width: 0;
}

/* ========== CD 盒设计 ========== */
.profile-work-item {
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  overflow: visible;
}

/* CD 封面区域 — 方形唱片套 + 露出黑胶 */
.profile-work-cover {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  border-radius: 4px;
  background: #2a2a35;
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.08);
}

/* 封面缩略图 — 方形满铺 */
.profile-work-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 3px;
}

/* 黑胶唱片 — 右侧露出约25% */
.vinyl-disc {
  position: absolute;
  right: -22.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  z-index: 0;
  background: 
    /* 主高光 — 顶部椭圆强反光 */
    radial-gradient(
      ellipse at 35% 25%,
      rgba(255,255,255,0.22) 0%,
      rgba(255,255,255,0.10) 12%,
      rgba(255,255,255,0.03) 28%,
      transparent 48%
    ),
    /* 点状锐利高光 — 模拟光源亮点 */
    radial-gradient(
      ellipse 25% 20% at 30% 22%,
      rgba(255,255,255,0.18) 0%,
      transparent 100%
    ),
    /* 暗部反光 — 底部环境光 */
    radial-gradient(
      ellipse at 65% 72%,
      rgba(80,80,120,0.15) 0%,
      rgba(40,40,60,0.05) 30%,
      transparent 55%
    ),
    /* 唱片纹路 */
    repeating-radial-gradient(
      circle at 50% 50%,
      #1a1a1a 0px, #181818 0.5px, #242424 1px,
      #1b1b1b 1.5px, #191919 2px, #262626 2.5px,
      #1c1c1c 3px
    ),
    /* 基底深黑 */
    radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0d0d0d 100%);
  box-shadow: 
    -2px 0 10px rgba(0,0,0,0.45),
    inset 0 0 0 0.5px rgba(255,255,255,0.08),
    inset 0 0 50px rgba(255,255,255,0.025);
}

/* ========== CD 盒（单曲作品库专用，仿真实 jewel case） ========== */
.cd-case {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  cursor: pointer;
}
.cd-case-tray {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.05) 18%, transparent 38%, transparent 65%, rgba(0,0,0,0.18) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 0.5px, transparent 0.5px 2px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 0.5px, transparent 0.5px 2.5px),
    linear-gradient(135deg, #1c1c1c 0%, #0e0e0e 45%, #161616 100%);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.65), inset 0 2px 6px rgba(255,255,255,0.08), inset 0 -2px 6px rgba(0,0,0,0.5);
}
/* 左侧卡脊（米白） */
.cd-case-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 13%;
  background: linear-gradient(90deg, #f5f0e6 0%, #ece4d4 70%, #e8dfcd 100%);
  border-right: 0.5px solid rgba(255,255,255,0.8);
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0,0,0,0.5);
}

/* 托盘底封面（CD 盒下面的封面） */
.cd-case-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* 中心黑色卡毂 */
.cd-case-hub {
  position: absolute;
  top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  width: 26%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2a2a2a 0%, #050505 100%);
  z-index: 3;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18), 0 0 6px rgba(0,0,0,0.7);
}
/* CD 光盘 — 表面贴歌曲封面 + 金属高光 */
.cd-disc {
  position: absolute;
  top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  width: 84%; height: 84%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.4),
    inset 0 0 22px rgba(255,255,255,0.06);
}
.cd-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.08) 28%, transparent 48%, transparent 70%, rgba(0,0,0,0.14) 100%);
  pointer-events: none;
}
/* CD 中心孔 */
.cd-disc-hole {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18%; height: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #000, #000);
  border: 5px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.8), 0 0 4px rgba(0,0,0,0.4);
  z-index: 2;
  box-sizing: border-box;
}

/* 黑胶唱片 — 居中（单曲作品库专用） */
.vinyl-disc-center {
  right: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  height: 46%;
  z-index: 2;
  box-shadow:
    0 2px 10px rgba(0,0,0,0.5),
    inset 0 0 0 0.5px rgba(255,255,255,0.15),
    inset 0 0 30px rgba(255,255,255,0.04);
}

/* 黑胶中心的歌曲封面 */
.vinyl-disc-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #2a2a35;
  z-index: 3;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.45),
    0 0 6px rgba(0,0,0,0.45);
}

/* 唱片中心标签（浅色圆） */
.vinyl-disc::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 50%, #b8b8b8 100%);
  box-shadow: 
    0 0 0 1.5px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.4);
}

/* 唱片中心孔 */
.vinyl-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4%;
  height: 4%;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: inset 0 0.5px 1px rgba(255,255,255,0.15);
}

/* cd-disc 废弃 */
.cd-case-gloss { display: none; }

/* 唱片套光泽反射 */
.vinyl-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 3px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.03) 30%,
    transparent 45%,
    transparent 70%,
    rgba(0,0,0,0.05) 85%,
    rgba(0,0,0,0.12) 100%
  );
}

/* 唱片中心孔（移除旧的 cover 伪元素） */
.profile-work-cover::after {
  display: none;
}

/* 底部信息区 */
.profile-work-info {
  padding: 8px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: transparent;
}

.profile-work-info-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
}

.profile-work-time {
  font-size: 9px;
  color: #888;
  flex-shrink: 0;
}

.profile-work-heat {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 9px;
  color: rgba(255,180,50,0.95);
  font-weight: 600;
  z-index: 4;
}

.profile-work-title {
  font-size: 10px;
  font-weight: 700;
  color: #2d2d35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  letter-spacing: 0.3px;
}
/* 单曲作品库标题放大一号 */
.cd-single-item .profile-work-title {
  font-size: 12px;
}

/* 个人作品库右上角旋转CD单曲标识 */
.profile-work-cover {
  position: relative;
}
.cd-single-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #000;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.4), inset 0 0 0 4px #000, inset 0 0 0 5px rgba(255,255,255,0.25);
  z-index: 6;
  animation: cd-badge-spin 4s linear infinite;
  pointer-events: none;
}
@keyframes cd-badge-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}



.profile-work-item.lyrics-thumb {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: transparent;
  box-shadow: none;
  border-radius: 4px;
}

.lyrics-thumb-preview {
  aspect-ratio: 1 / 1;
  background: #F5F0D7;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.cd-single-work-subtitle {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-light);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyrics-thumb-preview::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 100% 100%, rgba(0,0,0,0.16), rgba(0,0,0,0) 62%);
  pointer-events: none;
}

.lyrics-thumb-preview::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(214,196,146,0) 0 49%, #E8DDBB 50%, #FFF8DC 78%, #D8C58F 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  box-shadow: -2px -2px 5px rgba(93,78,55,0.12);
  pointer-events: none;
}

.profile-work-cover .work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  display: flex;
  align-items: flex-end;
  gap: 6px;
  z-index: 4;
}

.profile-work-cover .work-overlay-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-work-cover .work-overlay-stat {
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.profile-work-cover .work-play-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  z-index: 4;
}

/* ========== Push Works Grid (3列网格) ========== */
.push-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 2px;
}

.push-work-item {
  aspect-ratio: 1 / 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

.push-work-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.push-work-item .work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.push-work-item .work-overlay-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.push-work-item .work-play-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 勾选覆盖层 */
.push-check-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
}
.push-check-overlay .push-check-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s;
}
.push-check-overlay.checked {
  border-color: var(--primary);
  background: var(--primary);
}
.push-check-overlay.checked .push-check-dot {
  background: #fff;
}

.profile-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 13px;
}

.profile-score-section {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.profile-score-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.profile-score-section__head strong {
  color: var(--text-light);
  font-size: 10px;
  font-weight: 600;
}

.profile-score-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-score-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.05);
  cursor: pointer;
}

.profile-score-card__main {
  min-width: 0;
}

.profile-score-card__title {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-score-card__meta {
  margin-top: 2px;
  color: var(--text-light);
  font-size: 10px;
}

.profile-score-card__files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-score-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(108, 92, 231, 0.16);
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.profile-score-file.is-disabled {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.7);
}

.profile-score-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-score-card__actions button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.profile-work-capacity {
  padding: 14px 12px 4px;
  color: var(--text-light);
  font-size: 12px;
  text-align: center;
}

.profile-work-capacity.is-warning {
  color: #f59e0b;
  font-weight: 700;
}

.profile-work-capacity.is-full {
  color: #ef4444;
  font-weight: 800;
}

.profile-login-panel {
  padding: 26px 16px 0;
}

.profile-login-required {
  width: 100%;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.56));
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

.profile-view-all {
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ========== 相册页面（独立样式）========== */

/* 相册网格 */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0;
}

.settings-album-modal {
  position: relative;
  padding: 4px 0 0;
}

.settings-album-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.settings-album-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 800;
}

.settings-album-close {
  position: static;
  flex: 0 0 auto;
}

.settings-album-subtitle {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

.settings-album-grid {
  max-height: min(62vh, 520px);
  overflow-y: auto;
  border-radius: 12px;
  background: #f7f7fb;
}

/* 上传入口 - 深色加号方块 */
.album-photo-add {
  aspect-ratio: 1 / 1;
  background: rgba(15, 15, 25, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.album-photo-add:hover {
  border-color: rgba(108, 92, 231, 0.45);
  background: rgba(20, 20, 35, 0.92);
  box-shadow: 0 0 24px rgba(108, 92, 231, 0.18);
}

.album-photo-add-icon {
  font-size: 34px;
  font-weight: 200;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.album-photo-add:hover .album-photo-add-icon {
  background: linear-gradient(135deg, #A29BFE, #00CEC9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.1);
}

/* 上传图片文字 */
.album-photo-add-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 1;
  transition: color 0.3s;
}

.album-photo-add:hover .album-photo-add-label {
  color: rgba(255,255,255,0.8);
}

/* 照片项 */
.album-photo-item {
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background-color: #e8e8ef;
  background-size: cover;
  background-position: center;
}

/* 照片底部覆盖层 */
.album-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  display: flex;
  align-items: flex-end;
}

.album-photo-title {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* 分类标签 */
.album-photo-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 12px);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(6px);
}

.album-photo-detail-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.album-photo-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.album-photo-detail-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
}

.album-photo-detail-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
}

.album-photo-detail-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 10px;
  min-height: 28px;
}

.album-photo-page-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  cursor: pointer;
}

.album-photo-page-btn:disabled {
  color: var(--text-light);
  cursor: default;
  opacity: 0.45;
}

.album-photo-page-count {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
}

/* 添加照片选项卡片 */
.album-photo-item .album-photo-overlay {
  display: none;
}

.photo-add-option:hover {
  transform: translateY(-2px);
  border-color: var(--primary) !important;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
}

/* Backend membership level badges */
.backend-level-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  vertical-align: middle;
  cursor: pointer;
}

.backend-growth-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 62px;
  height: 14px;
  box-sizing: border-box;
  padding: 0 2px;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.backend-growth-badge--free {
  color: #737b88;
  background-color: #fafafa;
  border-color: #e6e8eb;
}

.backend-growth-badge--one {
  color: #FFA500;
  background-color: #fff7e8;
  border-color: #FFA500;
}

.backend-growth-badge--two {
  color: #8B4513;
  background-color: #f8f1eb;
  border-color: #8B4513;
}

.backend-growth-badge--three {
  color: #FF0000;
  background-color: #fff0f0;
  border-color: #FF0000;
}

.backend-growth-badge--four {
  color: #00FFFF;
  background-color: #edffff;
  border-color: #00FFFF;
}

.backend-growth-badge--five {
  color: #00FF00;
  background-color: #f0fff0;
  border-color: #00FF00;
}

.member-level-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 82px;
  height: 22px;
  box-sizing: border-box;
  padding: 0 8px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.member-level-tag__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.remix-choice-modal {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 18px !important;
  background: #12131f !important;
  box-shadow: 0 22px 70px rgba(18, 19, 31, 0.36) !important;
}

.remix-choice-dialog {
  color: #fff;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 201, 102, 0.26), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(115, 103, 240, 0.28), transparent 34%),
    linear-gradient(145deg, #151726 0%, #242238 100%);
}

.remix-choice-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 16px;
}

.remix-choice-cover {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.16);
}

.remix-choice-copy {
  min-width: 0;
  flex: 1;
}

.remix-choice-kicker {
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  font-weight: 800;
  margin-bottom: 4px;
}

.remix-choice-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remix-choice-copy p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remix-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.remix-choice-card {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas:
    "icon title"
    "icon desc";
  column-gap: 12px;
  background: rgba(255,255,255,0.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.remix-choice-card:active {
  transform: scale(0.985);
}

.remix-choice-card-lyrics {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.22), rgba(255,255,255,0.07));
}

.remix-choice-card-arrange {
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.2), rgba(162, 155, 254, 0.12));
}

.remix-choice-card:hover {
  border-color: rgba(255,255,255,0.34);
  background-color: rgba(255,255,255,0.12);
}

.remix-choice-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  font-size: 21px;
}

.remix-choice-card strong {
  grid-area: title;
  font-size: 15px;
  line-height: 1.25;
}

.remix-choice-card em {
  grid-area: desc;
  margin-top: 5px;
  color: rgba(255,255,255,0.64);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.remix-choice-cancel {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  cursor: pointer;
}

.member-level-tag--gold {
  color: #b45309;
  background-color: #fef3c7;
  border-color: #fbbf24;
}

.member-level-tag--diamond {
  color: #2563eb;
  background-color: #dbeafe;
  border-color: #93c5fd;
}

.member-level-tag--supreme {
  color: #7c3aed;
  background-color: #f3e8ff;
  border-color: #d8b4fe;
}

.member-level-tag--shine::after {
  content: '';
  position: absolute;
  top: -45%;
  left: -85%;
  width: 42%;
  height: 190%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.18) 30%, rgba(255,255,255,0.82) 50%, rgba(255,255,255,0.18) 70%, transparent 100%);
  transform: skewX(-18deg);
  animation: backendMemberLevelShine 2.8s ease-in-out infinite;
}

.backend-paid-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 62px;
  height: 18px;
  box-sizing: border-box;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.backend-paid-badge__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  width: 12px;
  height: 100%;
  font-size: 9px;
  line-height: 1;
  transform: translateY(-1px);
}

.backend-paid-badge--gold {
  color: #b45309;
  background-color: #fef3c7;
  border-color: #fbbf24;
}

.backend-paid-badge--diamond {
  color: #2563eb;
  background-color: #dbeafe;
  border-color: #93c5fd;
}

.backend-paid-badge--supreme {
  color: #7c3aed;
  background-color: #f3e8ff;
  border-color: #d8b4fe;
}

.backend-paid-badge::after {
  content: '';
  position: absolute;
  top: -45%;
  left: -85%;
  width: 42%;
  height: 190%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.18) 30%, rgba(255,255,255,0.82) 50%, rgba(255,255,255,0.18) 70%, transparent 100%);
  transform: skewX(-18deg);
  animation: backendMemberLevelShine 2.8s ease-in-out infinite;
}

.backend-level-badges.compact .backend-growth-badge {
  width: auto;
  min-width: 62px;
  height: 14px;
  padding: 0 2px;
  font-size: 8px;
}

.backend-level-badges.compact .member-level-tag {
  min-width: 56px;
  height: 16px;
  padding: 0 5px;
  border-width: 1px;
  font-size: 8px;
}

.backend-level-badges.compact .member-level-tag__icon {
  font-size: 9px;
}

.backend-level-badges.compact .backend-paid-badge {
  min-width: 56px;
  height: 16px;
  font-size: 8px;
}

.membership-card-level-badges {
  min-height: 24px;
  margin: 9px 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.membership-card-level-badges .backend-level-badges {
  cursor: default;
}

.membership-showcase-emblem {
  --member-ring: rgba(203, 213, 225, 0.38);
  --member-glow: rgba(203, 213, 225, 0.24);
  --member-disc: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 34%, #94a3b8 68%, #64748b 100%);
  --member-symbol: linear-gradient(110deg, #334155 10%, #f8fafc 42%, #475569 70%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 6px;
  border: 3px solid var(--member-ring);
  border-radius: 50%;
  background: color-mix(in srgb, var(--member-ring) 20%, transparent);
  box-shadow: 0 0 20px var(--member-glow);
}

.membership-showcase-emblem--gold {
  --member-ring: rgba(255, 213, 79, 0.55);
  --member-glow: rgba(255, 193, 7, 0.44);
  --member-disc: linear-gradient(145deg, #fff59d 0%, #ffd700 34%, #d4af37 68%, #ffec8b 100%);
  --member-symbol: linear-gradient(110deg, #8b6914 8%, #fff9c4 38%, #ffd700 58%, #7a5200 88%);
}

.membership-showcase-emblem--diamond {
  --member-ring: rgba(79, 195, 247, 0.58);
  --member-glow: rgba(41, 182, 246, 0.48);
  --member-disc: linear-gradient(145deg, #b3e5fc 0%, #4fc3f7 34%, #0277bd 68%, #81d4fa 100%);
  --member-symbol: linear-gradient(110deg, #01579b 8%, #ffffff 38%, #4fc3f7 58%, #003c6c 88%);
}

.membership-showcase-emblem--supreme {
  --member-ring: rgba(206, 147, 216, 0.62);
  --member-glow: rgba(186, 104, 200, 0.5);
  --member-disc: linear-gradient(145deg, #e1bee7 0%, #ba68c8 34%, #7b1fa2 68%, #ce93d8 100%);
  --member-symbol: linear-gradient(110deg, #4a148c 8%, #ffffff 38%, #ce93d8 58%, #3a005f 88%);
}

.membership-showcase-emblem__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--member-disc);
  box-shadow: inset 0 2px 7px rgba(255,255,255,0.72), inset 0 -3px 7px rgba(0,0,0,0.2);
}

.membership-showcase-emblem__inner::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -20%;
  left: -70%;
  width: 34%;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.82), transparent);
  transform: skewX(-18deg);
  animation: membershipEmblemSheen 3s ease-in-out infinite;
}

.membership-showcase-emblem__symbol {
  position: relative;
  z-index: 2;
  color: #334155;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.membership-showcase-emblem:not(.membership-showcase-emblem--free) .membership-showcase-emblem__symbol {
  color: transparent;
  background: var(--member-symbol);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: membershipGloss 2.8s ease-in-out infinite;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.5));
}

.membership-showcase-emblem__symbol.is-paid-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: initial !important;
  background: none !important;
  animation: membershipIconGloss 2.8s ease-in-out infinite !important;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.98)) drop-shadow(0 0 8px rgba(255,255,255,0.72)) drop-shadow(0 2px 3px rgba(0,0,0,0.24));
  font-family: inherit;
  font-size: 26px;
  transform: translateY(-1px);
}

.membership-showcase-emblem__symbol.is-paid-icon.membership-showcase-emblem__symbol--supreme {
  transform: translateY(-2px);
}

.membership-showcase-name {
  margin-bottom: 4px;
  color: #d5d9e2;
  font-size: 22px;
  font-weight: 800;
}

.membership-showcase-name--gold,
.membership-showcase-name--diamond,
.membership-showcase-name--supreme {
  color: transparent;
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: membershipGloss 2.8s ease-in-out infinite;
}

.membership-showcase-name--gold { background-image: linear-gradient(110deg, #b8860b 5%, #ffd700 34%, #fff9c4 50%, #d4af37 68%, #8b6914 95%); }
.membership-showcase-name--diamond { background-image: linear-gradient(110deg, #0277bd 5%, #4fc3f7 34%, #e1f5fe 50%, #29b6f6 68%, #01579b 95%); }
.membership-showcase-name--supreme { background-image: linear-gradient(110deg, #7b1fa2 5%, #ce93d8 34%, #f3e5f5 50%, #ba68c8 68%, #4a148c 95%); }

.membership-wallet-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.membership-wallet-user {
  flex: 1;
  min-width: 0;
}

.membership-wallet-user-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.membership-wallet-user-name {
  min-width: 0;
  max-width: 128px;
  color: #111 !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-wallet-user-main .backend-level-badges {
  flex: 0 0 auto;
  cursor: default;
}

.membership-wallet-user-id {
  margin-top: 7px;
  color: var(--text-light);
  font-size: 11px;
  line-height: 1.35;
}

.membership-wallet-recharge-btn {
  margin-top: 8px;
  min-height: 28px;
  border: 1px solid rgba(255, 186, 0, 0.42);
  border-radius: 999px;
  background: rgba(255, 186, 0, 0.12);
  color: #c47a00;
  padding: 0 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.membership-wallet-assets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.membership-wallet-asset {
  min-width: 44px;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid rgba(108, 92, 231, 0.14);
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.06);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.membership-wallet-asset strong {
  font-size: 13px;
  font-weight: 900;
}

.membership-wallet-asset--coin {
  border-color: rgba(255, 186, 0, 0.3);
  background: rgba(255, 186, 0, 0.1);
  color: #c47a00;
}

.membership-wallet-asset__icon {
  font-size: 13px;
  line-height: 1;
}

.membership-coupon-flip {
  height: 238px;
  margin-bottom: 16px;
  perspective: 1200px;
}

.membership-coupon-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 0.72, 0.2, 1);
}

.membership-coupon-flip.is-flipped .membership-coupon-flip__inner {
  transform: rotateY(180deg);
}

.membership-coupon-flip__face {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255,186,0,0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 24px rgba(30, 17, 57, 0.16);
}

.membership-coupon-flip__front {
  padding: 18px 16px 16px;
  text-align: center;
}

.membership-coin-coupon-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.coin-balance-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 199, 77, 0.42);
  border-radius: 14px;
  padding: 0 9px;
  background: rgba(255, 186, 0, 0.16);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  font-size: 12px;
  line-height: 1;
}

.coin-balance-chip__icon { font-size: 13px; }
.coin-balance-chip__value { font-size: 13px; font-weight: 900; }

.membership-coupon-flip__back {
  padding: 18px 20px 16px;
  transform: rotateY(180deg);
}

.membership-coupon-redeem {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.membership-coupon-redeem__body {
  min-height: 174px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.membership-coupon-redeem__title {
  color: #e1bee7;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.membership-coupon-redeem__title-icon {
  font-size: 18px;
  line-height: 1;
}

.membership-coupon-redeem__subtitle {
  margin: 3px 0 13px;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
  text-align: center;
}

.membership-coupon-redeem__input-row {
  display: flex;
  gap: 8px;
}

.membership-coupon-redeem__input-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  box-sizing: border-box;
  border: 1px solid rgba(216,213,255,0.35);
  border-radius: 9px;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0 11px;
  font-size: 13px;
  text-transform: uppercase;
}

.membership-coupon-redeem__input-row input::placeholder { color: rgba(255,255,255,0.45); }

.membership-coupon-redeem__input-row button,
.membership-coupon-redeem__back {
  border: 1px solid rgba(216,213,255,0.35);
  border-radius: 9px;
  background: rgba(162,155,254,0.12);
  color: #d8d5ff;
  cursor: pointer;
}

.membership-coupon-redeem__input-row button { padding: 0 12px; }

.membership-coupon-redeem__submit {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #8e63d4, #b467d1);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.membership-coupon-redeem__tip {
  min-height: 16px;
  margin-top: 5px;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  text-align: center;
}

.membership-coupon-redeem__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.membership-coupon-redeem__back svg {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .membership-coupon-flip__inner { transition-duration: 0.01ms; }
}

@keyframes membershipGloss {
  0%, 38% { background-position: 100% 0; }
  72%, 100% { background-position: 0 0; }
}

@keyframes membershipEmblemSheen {
  0%, 42% { left: -70%; opacity: 0; }
  50% { opacity: 0.9; }
  72%, 100% { left: 140%; opacity: 0; }
}

@keyframes membershipIconGloss {
  0%, 38%, 100% {
    filter: brightness(1) drop-shadow(0 0 3px rgba(255,255,255,0.9)) drop-shadow(0 0 7px rgba(255,255,255,0.62)) drop-shadow(0 2px 3px rgba(0,0,0,0.24));
  }
  56% {
    filter: brightness(1.28) drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px rgba(255,255,255,0.95)) drop-shadow(0 2px 3px rgba(0,0,0,0.18));
  }
}

.recharge-member-emblem__inner {
  position: relative;
  overflow: hidden;
}

.recharge-member-emblem__inner::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -20%;
  left: -70%;
  width: 34%;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.82), transparent);
  transform: skewX(-18deg);
  animation: membershipEmblemSheen 3s ease-in-out infinite;
}

.recharge-member-emblem__icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  animation: membershipIconGloss 2.8s ease-in-out infinite;
  transform: translateY(-1px);
}

.recharge-member-emblem__icon--large {
  font-size: 34px;
}

.recharge-member-emblem__icon--supreme {
  transform: translateY(-2px);
}

.recharge-coin-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 10px;
}

.recharge-coin-balance {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 700;
}

.recharge-coin-balance__icon {
  font-size: 15px;
  line-height: 1;
}

.recharge-coin-balance strong {
  color: #ffd166;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.recharge-coin-balance small {
  margin-left: 2px;
  color: rgba(255,255,255,0.58);
  font-size: 10px;
  font-weight: 700;
}

.recharge-coin-toggle {
  appearance: none;
  height: 28px;
  padding: 0 13px;
  border: 1px solid rgba(255,209,102,0.38);
  border-radius: 999px;
  background: rgba(255,209,102,0.12);
  color: #ffd166;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 28px;
  white-space: nowrap;
}

.recharge-member-help-btn {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 17px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.recharge-member-help-btn:active {
  background: rgba(255,255,255,0.16);
}

.recharge-coin-pay-btn {
  margin-top: 8px;
  border: 1px solid rgba(255,209,102,0.46);
  background: rgba(255,209,102,0.13);
  color: #ffd166;
  font-weight: 850;
}

.recharge-coin-pay-btn:hover {
  border-color: rgba(255,209,102,0.72);
  background: rgba(255,209,102,0.18);
}

.recharge-coin-pay-btn--insufficient {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.66);
}

.recharge-fuel-flip {
  min-height: 124px;
  perspective: 900px;
}

.recharge-fuel-flip__inner {
  position: relative;
  min-height: 124px;
  transform-style: preserve-3d;
  transition: transform .42s ease;
}

.recharge-fuel-flip.is-coin-mode .recharge-fuel-flip__inner {
  transform: rotateY(180deg);
}

.recharge-fuel-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.recharge-fuel-flip__back {
  transform: rotateY(180deg);
}

.recharge-fuel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
}

.recharge-fuel-card {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 104px;
  padding: 24px 7px 12px;
  border: 1.5px solid color-mix(in srgb, var(--fuel-accent) 78%, #fff);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.16), transparent 44%),
    linear-gradient(90deg, rgba(255,255,255,0.10), transparent 18%, transparent 82%, rgba(0,0,0,0.18)),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 48%, rgba(0,0,0,0.26)),
    linear-gradient(135deg, rgba(25,25,45,0.98), rgba(36,35,58,0.98));
  box-shadow:
    inset 0 12px 18px rgba(255,255,255,0.05),
    inset 0 -10px 18px rgba(0,0,0,0.22),
    0 12px 26px rgba(0,0,0,0.20);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow: visible;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.recharge-fuel-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 14px;
  right: 14px;
  height: 18px;
  border: 1.5px solid color-mix(in srgb, var(--fuel-accent) 68%, #fff);
  border-bottom: 0;
  border-radius: 16px 16px 6px 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.recharge-fuel-card::after {
  content: none;
}

.recharge-fuel-card:hover {
  transform: translateY(-2px);
  border-color: var(--fuel-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 14px 30px rgba(0,0,0,0.28);
}

.recharge-fuel-card__title {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.95);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
}

.recharge-fuel-card__price {
  color: var(--fuel-accent);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.recharge-fuel-card__price small {
  margin-left: 1px;
  font-size: 10px;
  font-weight: 800;
  color: color-mix(in srgb, var(--fuel-accent) 72%, #fff);
}

.recharge-fuel-card__validity {
  color: rgba(255,255,255,0.58);
  font-size: 10px;
  line-height: 1;
}

.recharge-coin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
}

.recharge-coin-card {
  appearance: none;
  min-width: 0;
  min-height: 118px;
  padding: 12px 7px 12px;
  border: 1.5px solid rgba(255,209,102,0.58);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,209,102,0.22), transparent 45%),
    linear-gradient(135deg, rgba(28,28,48,0.98), rgba(46,39,56,0.98));
  box-shadow:
    inset 0 12px 18px rgba(255,255,255,0.05),
    inset 0 -10px 18px rgba(0,0,0,0.22),
    0 12px 26px rgba(0,0,0,0.20);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.recharge-coin-stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 29px;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.24));
  transform-origin: center bottom;
}

.recharge-coin-stack-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.recharge-coin-stack-icon--sm { transform: scale(0.9); }
.recharge-coin-stack-icon--md { transform: scale(1); }
.recharge-coin-stack-icon--lg { transform: scale(1.08); }
.recharge-coin-stack-icon--xl { transform: scale(1.15); }

.recharge-coin-card:hover {
  transform: translateY(-2px);
  border-color: #ffd166;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 14px 30px rgba(0,0,0,0.28);
}

.recharge-coin-card__amount {
  color: #ffd166;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

.recharge-coin-card__amount small {
  margin-left: 2px;
  color: rgba(255,255,255,0.70);
  font-size: 10px;
  font-weight: 800;
}

.recharge-coin-card__price {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 800;
}

.recharge-coin-payment-card {
  margin-bottom: 16px;
  padding: 20px 14px;
  border: 1.5px solid rgba(255,209,102,0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,209,102,0.22), transparent 48%),
    rgba(255,255,255,0.05);
  text-align: center;
}

.recharge-coin-payment-card__icon {
  margin-bottom: 8px;
  line-height: 1;
}

.recharge-coin-payment-card__icon .recharge-coin-stack-icon {
  width: 54px;
  height: 44px;
  transform: none;
}

.recharge-coin-payment-card__title {
  margin-bottom: 4px;
  color: #ffd166;
  font-size: 20px;
  font-weight: 900;
}

.recharge-coin-payment-card__price {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.recharge-coin-payment-card__rate {
  margin-top: 6px;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 700;
}

@keyframes backendMemberLevelShine {
  0%, 45% { left: -85%; }
  72%, 100% { left: 135%; }
}

/* VIP Card */
.vip-card {
  margin: 12px 16px;
  background: linear-gradient(135deg, #2d1b69, #6C5CE7);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #fff;
}

.vip-card-left { display: flex; align-items: center; gap: 12px; }
.vip-icon { font-size: 28px; }
.vip-title { font-size: 14px; font-weight: 600; }
.vip-desc { font-size: 11px; opacity: 0.8; margin-top: 2px; }
.vip-arrow { font-size: 20px; opacity: 0.7; }

/* 钱包 & 会员 名称旁小标签 */
.wm-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  padding: 3px 11px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  border: 1px solid transparent;
}

.wm-inline::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 26%, rgba(255,255,255,0.02) 54%, rgba(255,255,255,0.14) 100%);
  pointer-events: none;
  z-index: -1;
}

.wm-inline:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

.wm-inline.free {
  background: linear-gradient(180deg, #eef2f6 0%, #dbe3ea 30%, #b7c2cd 62%, #edf2f7 100%);
  color: #55606d;
  border-color: rgba(233,239,244,0.95);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 4px 12px rgba(77,89,105,0.18);
}

.wm-inline.free:active {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 2px 8px rgba(77,89,105,0.14);
}

.wm-inline.guest {
  background: linear-gradient(135deg, #ff6b6b 0%, #e84393 100%);
  color: #fff;
  border: 1px solid rgba(255,214,214,0.48);
  box-shadow: 0 3px 10px rgba(232,67,147,0.22);
  font-weight: 700;
}

.wm-inline.guest:active {
  background: linear-gradient(135deg, #ff5252 0%, #d63384 100%);
}

.wm-inline.gold {
  background: linear-gradient(180deg, #fff5bf 0%, #ffd84d 24%, #f2bf00 56%, #ffdf66 78%, #b8860b 100%);
  color: #4f3600;
  border-color: rgba(255,240,173,0.95);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 5px 14px rgba(212,175,55,0.28);
}

.wm-inline.diamond {
  background: linear-gradient(180deg, #eef9ff 0%, #9fddff 22%, #4fc3f7 55%, #88ddff 78%, #0d73c7 100%);
  color: #0f3b68;
  border-color: rgba(207,241,255,0.95);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 5px 14px rgba(79,195,247,0.28);
}

.wm-inline.supreme {
  background: linear-gradient(180deg, #f7ecff 0%, #dca7f2 22%, #b65cff 55%, #d8a1ff 78%, #6d1fb1 100%);
  color: #2f0d52;
  border-color: rgba(241,220,255,0.95);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 5px 14px rgba(182,92,255,0.28);
}

.wm-inline-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
  display: block;
}

.wm-inline-symbol {
  line-height: 1;
}

/* Device Scroll */
.device-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.device-scroll::-webkit-scrollbar { display: none; }

.device-mini-card {
  flex-shrink: 0;
  width: 80px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.device-mini-card.online { border: 2px solid var(--accent3); }
.device-mini-card.offline { opacity: 0.6; }
.device-mini-card.add { border: 2px dashed var(--border); }

.device-mini-icon { font-size: 24px; margin-bottom: 4px; }
.device-mini-name { font-size: 11px; font-weight: 500; }
.device-mini-status { font-size: 10px; margin-top: 2px; }

/* Menu Section Title */
.menu-section-title {
  padding: 16px 16px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Menu List */
.menu-list {
  background: #fff;
  border-radius: var(--radius);
  margin: 0 16px 12px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg); }

.menu-item .menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.menu-item .menu-info { flex: 1; }
.menu-item .menu-name { font-size: 14px; font-weight: 500; }
.menu-item .menu-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.menu-item .menu-arrow { color: var(--text-light); }
.menu-item .menu-arrow svg { width: 18px; height: 18px; }

/* ========== Device Detail ========== */
.device-detail-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  cursor: default;
}

.device-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.device-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}

.device-detail-info { flex: 1; cursor: pointer; min-width: 0; }
.device-detail-name { font-size: 15px; font-weight: 600; }
.device-detail-model { font-size: 11px; color: var(--text-secondary); }
.device-detail-status { font-size: 12px; color: var(--accent3); margin-top: 2px; }
.device-detail-status.offline { color: var(--text-light); }

.device-detail-actions { display: flex; gap: 8px; }

/* Device Info Grid */
.device-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.device-info-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.device-info-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.device-info-value {
  font-size: 14px;
  font-weight: 600;
}

/* ========== Package Card ========== */
.package-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.package-card.recommended {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,92,231,0.03), rgba(108,92,231,0.01));
}

.package-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.package-name { font-size: 16px; font-weight: 700; }

.package-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.package-price .unit { font-size: 13px; font-weight: 500; }

.package-features {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.package-feature {
  padding: 3px 10px;
  background: var(--bg);
  border-radius: 10px;
}

/* Balance Display */
.balance-display {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg), #fff);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.balance-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.balance-amount { font-size: 36px; font-weight: 800; color: var(--primary); }

.coin-balance-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -2px 0 12px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 178, 46, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 213, 74, 0.2), rgba(255, 255, 255, 0.94) 52%, rgba(255, 119, 53, 0.08));
  box-shadow: 0 8px 22px rgba(170, 107, 0, 0.08);
}

.coin-balance-card__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd54a, #ff8a2b);
  box-shadow: inset 0 -2px 5px rgba(130, 76, 0, 0.18);
  font-size: 17px;
}

.coin-balance-card__body { flex: 1; min-width: 0; }
.coin-balance-card__label { font-size: 12px; color: var(--text-secondary); line-height: 1.25; }
.coin-balance-card__value { margin-top: 2px; font-size: 24px; font-weight: 900; color: #cf6a00; line-height: 1; }
.coin-balance-card__value span { margin-left: 4px; font-size: 12px; font-weight: 800; color: rgba(207, 106, 0, 0.7); }
.coin-balance-card__desc { margin-top: 4px; font-size: 11px; color: var(--text-light); line-height: 1.35; }

/* Proxy Pay */
.proxy-link {
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  word-break: break-all;
  color: var(--primary);
  font-family: monospace;
  margin-bottom: 4px;
}

/* ========== Work Detail ========== */
.work-detail-cover {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.work-detail-info { padding: 20px 16px; }

.work-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.work-detail-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.work-detail-artist { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }

.work-detail-meta-row {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.lyrics-panel {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.lyrics-line { transition: color 0.3s; }
.lyrics-line.active { color: var(--primary); font-weight: 600; }

/* ========== Virtual Piano ========== */
.piano-landscape-active {
  overflow: hidden;
  touch-action: none;
}

.modal-overlay.piano-landscape-overlay {
  align-items: stretch;
  justify-content: center;
  background: rgba(14, 14, 24, 0.72);
  padding: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
}

.modal-content.piano-landscape-content {
  width: 100vw;
  width: 100dvw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
  box-sizing: border-box;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  overflow: hidden;
  animation: none;
}

.piano-modal {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.piano-modal-header,
.piano-bottom-bar,
.piano-control-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.piano-modal-header {
  justify-content: space-between;
}

.piano-title-wrap h3 {
  margin: 0 0 2px;
  font-size: 18px;
}

.piano-status {
  min-height: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.piano-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.piano-select {
  width: 94px;
  min-height: 36px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
}

.piano-link-btn,
.piano-close-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.piano-link-btn:disabled {
  color: var(--text-light);
  cursor: default;
}

.piano-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 22px;
  line-height: 30px;
}

.piano-control-strip {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex-wrap: nowrap;
  overflow: hidden;
}

.piano-note-strip .piano-control-strip {
  flex: 1 1 auto;
  min-height: 34px;
}

.piano-control-strip label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}

.piano-control-strip input[type="range"] {
  width: clamp(78px, 10vw, 138px);
  accent-color: var(--primary);
}

.piano-octave-control input[type="range"] {
  width: clamp(92px, 12vw, 154px);
}

.piano-octave-value {
  min-width: 30px;
  text-align: center;
  color: var(--primary);
  font-weight: 900;
}

.piano-full {
  background: linear-gradient(180deg, #1a1a2e, #2d2d44);
  border-radius: var(--radius);
  padding: 6px 12px 12px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.piano-note-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.piano-record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.piano-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  flex: 1;
  min-height: 0;
}

.piano-keys {
  display: flex;
  height: 100%;
  min-height: 0;
  position: relative;
  gap: 3px;
  width: max-content;
  min-width: 100%;
}

.piano-white {
  flex: 0 0 clamp(68px, 4.8vw, 86px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: background 0.12s, transform 0.12s;
  min-width: clamp(68px, 4.8vw, 86px);
  position: relative;
  overflow: visible;
}

.piano-white > span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 2px;
  line-height: 1;
  white-space: nowrap;
}

.piano-white:active,
.piano-white.active {
  background: #E8ECF1;
  box-shadow: inset 0 8px 18px rgba(31, 34, 51, 0.10);
}

.piano-black {
  width: clamp(38px, 2.7vw, 48px);
  height: min(58%, calc(100% - 70px));
  background: #333;
  border-radius: 0 0 5px 5px;
  cursor: pointer;
  position: absolute;
  left: calc(100% - clamp(22px, 1.55vw, 28px));
  top: 0;
  z-index: 10;
  transition: background 0.12s, transform 0.12s;
}

.piano-black:active,
.piano-black.active {
  background: #555;
  transform: translateY(2px);
}

.piano-bottom-bar {
  flex: 0 0 auto;
}

.piano-main-btn,
.piano-random-btn,
.piano-rerecord-btn,
.piano-create-btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
}

.piano-main-btn {
  min-height: 34px;
  padding: 7px 18px;
  flex: 0 0 auto;
  white-space: nowrap;
  border: none;
  background: linear-gradient(135deg, #ff4d6d, #d7263d);
  color: #fff;
  box-shadow: 0 5px 16px rgba(215, 38, 61, 0.3);
}

.piano-random-btn {
  min-height: 34px;
  padding: 7px 14px;
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.piano-random-btn.is-disabled,
.piano-random-btn:disabled {
  opacity: 0.48;
  cursor: default;
}

.piano-rerecord-btn {
  flex: 0.8;
  color: #fff;
}

.piano-create-btn {
  flex: 1.4;
}

.piano-main-btn.recording {
  color: #fff;
  background: linear-gradient(135deg, #ff375f, #c41230);
  box-shadow: 0 0 0 6px rgba(215, 38, 61, 0.12), 0 6px 18px rgba(215, 38, 61, 0.36);
}

.piano-main-btn.playing {
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: none;
}

.piano-rerecord-btn.is-disabled,
.piano-create-btn.is-disabled {
  opacity: 0.45;
  cursor: pointer;
  box-shadow: none;
}

.piano-floating-actions {
  position: absolute;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 16px));
  transform: translate(-50%, 120%);
  width: min(520px, calc(100% - 36px));
  z-index: 30;
  padding: 8px;
  border-radius: 999px;
  background: rgba(20, 20, 36, 0.78);
  box-shadow: 0 16px 34px rgba(0,0,0,0.26);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.piano-floating-actions.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.tools-section-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.instrument-modal .piano-select {
  width: 112px;
}

.instrument-modal {
  width: 100%;
  height: 100%;
  min-height: 0;
  color: #fff;
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--instrument-tone) 32%, transparent), transparent 38%),
    linear-gradient(145deg, #191827, #25273a);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.instrument-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.instrument-title-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  background: color-mix(in srgb, var(--instrument-tone) 22%, rgba(255,255,255,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.instrument-title-copy {
  flex: 1;
  min-width: 0;
}

.instrument-header-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.instrument-title-copy h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0;
}

.instrument-status {
  min-height: 16px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.35;
}

.instrument-close-btn {
  flex-shrink: 0;
}

.instrument-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -4px;
  margin-bottom: 8px;
}

.instrument-chord-quick {
  border-color: color-mix(in srgb, var(--instrument-tone) 76%, rgba(255,255,255,0.22));
  color: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--instrument-tone) 28%, transparent);
}

.instrument-select-label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.instrument-select-label--header {
  margin-right: 8px;
  background: #1f2234;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 12px rgba(0,0,0,0.12);
}

.instrument-modal .instrument-select {
  width: 116px;
  min-height: 28px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background-color: #151829;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: calc(100% - 10px) 50%;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}

.instrument-modal .instrument-select--sm {
  width: 88px;
}

.instrument-modal .instrument-select--xs {
  width: 64px;
}

.instrument-select-label--compact {
  flex: 0 0 auto;
  padding: 0 6px 0 10px;
}

.instrument-modal .instrument-select:focus {
  border-color: color-mix(in srgb, var(--instrument-tone) 72%, rgba(255,255,255,0.36));
  background-color: #151829;
  color: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--instrument-tone) 30%, transparent);
}

.instrument-modal .instrument-select option {
  background: #151829;
  color: #fff;
}

.instrument-mode {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.instrument-mode.active,
.instrument-mode:active {
  background: var(--instrument-tone);
  border-color: transparent;
  color: #fff;
}

.instrument-slider {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
}

.instrument-slider input {
  width: 92px;
  accent-color: var(--instrument-tone);
}

.instrument-full {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 12px 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1a1a2e, #2d2d44);
  position: relative;
  overflow: hidden;
}

.instrument-note-strip {
  flex: 0 0 auto;
}

.instrument-control-strip {
  flex: 1 1 auto;
  min-height: 34px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.instrument-control-strip::-webkit-scrollbar {
  display: none;
}

.instrument-control-strip .instrument-slider {
  min-height: 34px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
}

.instrument-control-strip .instrument-slider input[type="range"] {
  accent-color: var(--instrument-tone);
}

.instrument-control-strip .instrument-mode {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
}

.instrument-control-strip .instrument-mode.active,
.instrument-control-strip .instrument-mode:active {
  background: var(--instrument-tone);
  color: #fff;
}

.instrument-slider--singing {
  flex: 0 0 auto;
}

.instrument-slider--singing input {
  width: 74px;
}

.instrument-slider--singing span {
  min-width: 24px;
  color: #fff;
  font-weight: 900;
}

.instrument-top-strip {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.instrument-controls-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.instrument-record-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 4px;
  min-height: 32px;
}

.instrument-record-actions--drums {
  justify-content: space-between;
}

.instrument-record-actions--singing {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.instrument-record-left,
.instrument-record-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.instrument-record-main {
  justify-content: flex-end;
  margin-left: auto;
}

.instrument-record-left--drums {
  flex: 1 1 240px;
}

.instrument-slider--drum {
  width: min(260px, 100%);
  justify-content: space-between;
}

.instrument-slider--drum input {
  flex: 1 1 auto;
  min-width: 110px;
}

.instrument-main-btn,
.instrument-random-btn,
.instrument-rerecord-btn,
.instrument-create-btn {
  min-height: 34px;
  padding: 7px 14px;
  white-space: nowrap;
}

.instrument-create-btn {
  flex: 0 0 auto;
}

.instrument-floating-actions .instrument-rerecord-btn {
  min-height: 48px;
  flex: 0.8;
}

.instrument-floating-actions .instrument-create-btn {
  min-height: 48px;
  flex: 1.4;
}

.instrument-modal .instrument-floating-actions {
  background: rgba(20, 20, 36, 0.78);
  box-shadow: 0 16px 34px rgba(0,0,0,0.26);
  backdrop-filter: blur(12px);
  padding: 8px;
}

.instrument-control-row {
  margin-bottom: 0;
}

.instrument-pad-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
  padding: 6px 2px 74px;
  overflow-y: auto;
}

.instrument-panel {
  display: none;
  flex: 1;
  min-height: 0;
}

.instrument-panel.active {
  display: flex;
  flex-direction: column;
}

.instrument-pad-grid--drums {
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  padding-bottom: 74px;
}

.instrument-pad {
  min-height: 88px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.09);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 20px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.instrument-pad strong {
  font-size: clamp(18px, 3.8vw, 28px);
  line-height: 1;
  letter-spacing: 0;
}

.instrument-pad span {
  min-height: 14px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.58);
}

.instrument-pad:active,
.instrument-pad.active {
  transform: translateY(2px) scale(0.985);
  background: rgba(255,255,255,0.19);
  border-color: rgba(255,255,255,0.34);
}

.instrument-pad--electronic_drums:nth-child(1),
.instrument-pad--electronic_drums:nth-child(2) {
  background: rgba(255, 107, 107, 0.18);
}

.instrument-pad--string_instrument {
  background: rgba(0, 184, 148, 0.16);
}

.instrument-pad--singing_instrument {
  background: rgba(253, 121, 168, 0.16);
}

.instrument-pad--wind_instrument {
  background: rgba(77, 150, 255, 0.17);
}

.instrument-sequencer {
  --drum-step-size: clamp(24px, 6.6vw, 34px);
  flex: 0 0 auto;
  width: min(100%, 430px);
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(5, auto);
  gap: 8px;
  align-self: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  overflow: visible;
}

.instrument-seq-row {
  display: grid;
  grid-template-columns: minmax(42px, 54px) repeat(8, var(--drum-step-size));
  align-items: center;
  gap: clamp(4px, 1.2vw, 7px);
  min-width: 0;
  min-height: var(--drum-step-size);
}

.instrument-seq-label {
  font-size: 12px;
  color: rgba(255,255,255,0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.instrument-step {
  width: var(--drum-step-size);
  height: var(--drum-step-size);
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  justify-self: center;
  align-self: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  touch-action: manipulation;
}

.instrument-step.active {
  background: var(--instrument-tone);
  border-color: transparent;
}

.instrument-step.playing {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

.instrument-action-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.instrument-inline-note {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 800;
}

.instrument-action-row .btn {
  flex: 1;
}

.string-board {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-bottom: 74px;
}

.string-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
}

.string-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.76);
}

.string-line-wrap {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.string-line {
  position: relative;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.string-line span,
.strum-strings span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.86), transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--instrument-tone) 45%, transparent);
}

.string-line.active span {
  animation: stringVibrate 0.14s linear 2;
}

.string-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  pointer-events: none;
}

.string-zone {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
}

.string-zone span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 7px;
  background: rgba(8,10,18,0.30);
}

.string-zone.active,
.string-zone:active {
  border-color: color-mix(in srgb, var(--instrument-tone) 65%, #fff);
  background: color-mix(in srgb, var(--instrument-tone) 28%, rgba(255,255,255,0.08));
}

.chord-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.chord-card {
  min-height: 92px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.chord-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1;
}

.chord-card span {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 800;
}

.chord-card.active,
.chord-card:active {
  transform: translateY(2px);
  background: color-mix(in srgb, var(--instrument-tone) 34%, rgba(255,255,255,0.08));
}

.singing-guitar-board {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(6, minmax(48px, 1fr));
  gap: clamp(8px, 2.2vh, 15px);
  padding: 10px 8px 76px;
  overflow: auto;
  touch-action: none;
}

.singing-guitar-board--bass {
  grid-template-rows: repeat(4, minmax(58px, 1fr));
}

.singing-guitar-board--guzheng {
  grid-template-rows: repeat(8, minmax(34px, 1fr));
  gap: clamp(5px, 1.2vh, 9px);
}

.singing-guitar-board--guzheng .singing-string-row {
  min-height: 34px;
}

.singing-guitar-board--guzheng .singing-string-track,
.singing-guitar-board--guzheng .singing-string-zone {
  min-height: 34px;
}

.singing-guitar-board--guzheng .singing-string-zones {
  grid-template-columns: repeat(5, minmax(56px, 1fr));
}

.singing-guitar-board.active {
  animation: guitarBoardPulse 0.2s ease;
}

.singing-board-neck {
  position: absolute;
  inset: 12px 10px 78px 78px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
  opacity: 0.34;
}

.singing-board-neck span {
  border-left: 1px solid rgba(255,255,255,0.32);
}

.singing-string-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.singing-string-label {
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.singing-string-track {
  position: relative;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.singing-string-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.24), rgba(255,255,255,0.92), rgba(255,255,255,0.2));
  box-shadow: 0 0 10px color-mix(in srgb, var(--instrument-tone) 45%, transparent);
}

.singing-string-row:nth-child(6n + 2) .singing-string-line,
.singing-string-row:nth-child(6n + 3) .singing-string-line {
  height: 1px;
}

.singing-string-row:nth-child(6n + 6) .singing-string-line,
.singing-string-row:nth-child(6n + 7) .singing-string-line {
  height: 3px;
}

.singing-string-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(46px, 1fr));
  gap: 5px;
}

.singing-guitar-board--bass .singing-string-zones {
  grid-template-columns: repeat(6, minmax(52px, 1fr));
}

.singing-string-zone {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.10));
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  touch-action: none;
}

.singing-string-zone span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(0,0,0,0.26);
  font-size: 10px;
  font-weight: 800;
}

.singing-string-zone.active,
.singing-string-zone:active {
  border-color: color-mix(in srgb, var(--instrument-tone) 70%, #fff);
  background: color-mix(in srgb, var(--instrument-tone) 30%, rgba(255,255,255,0.08));
}

.strum-stage {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  touch-action: none;
}

.strum-hint {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  text-align: center;
}

.strum-strings {
  display: grid;
  gap: 10px;
  padding: 8px 0;
}

.wind-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.wind-note-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 0;
}

.wind-note {
  min-height: 78px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  touch-action: none;
}

.wind-note.active,
.wind-note:active {
  background: color-mix(in srgb, var(--instrument-tone) 38%, rgba(255,255,255,0.08));
  box-shadow: inset 0 0 24px rgba(255,255,255,0.18);
}

@keyframes stringVibrate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

@keyframes guitarBoardPulse {
  0% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0); }
  50% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--instrument-tone) 70%, rgba(255,255,255,0.2)); }
  100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0); }
}

@media (max-width: 720px) and (orientation: landscape) {
  .instrument-pad-grid {
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    gap: 8px;
  }

  .instrument-pad {
    min-height: 74px;
  }

  .instrument-modal {
    padding: 12px;
  }

  .chord-card,
  .wind-note {
    min-height: 66px;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  .modal-content.piano-landscape-content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    height: 100dvw;
    max-width: none;
    max-height: none;
    border-radius: 0;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
  }
}

@media (max-width: 640px) {
  .piano-control-strip input[type="range"] {
    width: 64px;
  }

  .piano-octave-control input[type="range"] {
    width: 78px;
  }

  .piano-white {
    flex-basis: 70px;
    min-width: 70px;
  }

  .piano-black {
    width: 39px;
  }

  .piano-control-strip {
    gap: 6px;
  }

  .piano-control-strip label {
    gap: 5px;
    font-size: 11px;
  }

  .piano-main-btn {
    padding: 7px 12px;
  }

  .instrument-pad-grid {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 8px;
  }

  .instrument-pad {
    min-height: 70px;
  }

  .string-row {
    grid-template-columns: 72px 1fr;
  }

  .chord-grid,
  .wind-note-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instrument-seq-row {
    grid-template-columns: 54px repeat(8, minmax(18px, 1fr));
    gap: 4px;
  }
}

.audio-tool-fields {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.audio-tool-fields label {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

.audio-tool-format-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audio-tool-vip-badge {
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe8a3, #ffbf3c);
  color: #6d3b00;
  font-size: 10px;
  font-weight: 900;
  line-height: 18px;
  box-shadow: 0 3px 10px rgba(255, 191, 60, 0.24);
}

.audio-tool-fields input,
.audio-tool-fields select {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--text-primary);
  font: inherit;
}

.audio-tool-fields input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.audio-tool-output-options {
  display: grid;
  gap: 10px;
}

.audio-tool-output-options__label {
  color: var(--text-secondary);
  font-size: 12px;
}

.audio-tool-fields .audio-tool-output-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
}

.audio-tool-fields .audio-tool-output-option input {
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.audio-analysis-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.audio-analysis-result > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.audio-analysis-result span {
  color: var(--text-secondary);
  font-size: 11px;
}

.audio-analysis-result strong {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 13px;
}

.audio-analysis-result .audio-analysis-sections {
  grid-column: 1 / -1;
}

.audio-tool-result-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.audio-tool-result-title {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.yiqi-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(108, 92, 231, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.09), rgba(255, 255, 255, 0.92));
}

.yiqi-audio-player__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C5CE7, #A66CFF);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(108, 92, 231, 0.24);
}

.yiqi-audio-player__play-icon {
  transform: translateX(1px);
}

.yiqi-audio-player.is-playing .yiqi-audio-player__play-icon {
  transform: none;
  font-size: 13px;
  font-weight: 700;
}

.yiqi-audio-player__body {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.yiqi-audio-player__time {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 12px;
}

.yiqi-audio-player__range {
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.yiqi-audio-player__range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6C5CE7 var(--progress, 0%), rgba(108, 92, 231, 0.16) var(--progress, 0%));
}

.yiqi-audio-player__range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  appearance: none;
  border-radius: 50%;
  background: #6C5CE7;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.32);
}

.yiqi-audio-player__range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.16);
}

.yiqi-audio-player__range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: #6C5CE7;
}

.yiqi-audio-player__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #6C5CE7;
}

.audio-tool-result-video {
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
}

.audio-tool-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.audio-tool-result-actions--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audio-tool-result-actions .btn {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  white-space: nowrap;
}

.audio-tool-result-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.audio-tool-result-footer .btn {
  margin-top: 0 !important;
}

.audio-tool-return-btn {
  background: linear-gradient(135deg, #9B8CFF, #B39DFF) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(155, 140, 255, 0.22) !important;
}

.audio-tool-return-btn:hover {
  filter: brightness(1.02);
}

/* ========== Ranking ========== */
.ranking-modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 16px;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
}

.ranking-modal-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.rank-num {
  width: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
}

.rank-num.top1 { color: #FFD700; font-size: 22px; }
.rank-num.top2 { color: #C0C0C0; font-size: 22px; }
.rank-num.top3 { color: #CD7F32; font-size: 22px; }

.rank-cover {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.rank-name-link {
  min-width: 0;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.rank-profile-link:active,
.rank-name-link:active {
  opacity: 0.82;
}

.rank-info {
  flex: 1;
  min-width: 0;
}
.rank-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
.rank-title__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-title .backend-level-badges {
  flex-shrink: 0;
  cursor: default;
}
.rank-artist {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}

.rank-artist .backend-level-badges {
  flex-shrink: 0;
  cursor: default;
}

.rank-plays {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

@supports (content-visibility: auto) {
  .feed-card,
  .album-photo-item,
  .rank-item,
  .history-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 260px;
  }

  .album-photo-item {
    contain-intrinsic-size: 1px 120px;
  }

  .rank-item {
    contain-intrinsic-size: 1px 70px;
  }

  .history-card {
    contain-intrinsic-size: 1px 68px;
  }
}

/* ========== Topic Grid ========== */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.topic-card-item {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}

.topic-card-item:active { transform: scale(0.96); }
.topic-card-icon { font-size: 28px; margin-bottom: 8px; }
.topic-card-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.topic-card-count { font-size: 11px; color: var(--text-secondary); }

/* ========== Notification ========== */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.notif-item.unread { background: rgba(108,92,231,0.02); margin: 0 -20px; padding: 14px 20px; }

.notif-body { flex: 1; }
.notif-title { font-size: 13px; line-height: 1.5; }
.notif-title b { font-weight: 600; }
.notif-time { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ========== Card Library ========== */
.card-library-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.card-library-cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}

.card-library-info { flex: 1; }
.card-library-name { font-size: 14px; font-weight: 600; }
.card-library-desc { font-size: 11px; color: var(--text-secondary); margin: 2px 0; }
.card-library-meta { font-size: 11px; color: var(--text-light); }

.card-detail-header { text-align: center; }

.card-song-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

/* ========== Cloud Drive ========== */
.cloud-storage-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cloud-storage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
}

/* ========== 弹唱卡管理 ========== */
.singcard-tabs {
  display: flex;
  background: rgba(108,92,231,0.06);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 14px;
  gap: 3px;
}

.singcard-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.singcard-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.singcard-tab-count {
  font-size: 11px;
  color: var(--text-light);
  margin-left: 3px;
}

.singcard-tab.active .singcard-tab-count {
  color: var(--primary);
}

.singcard-list {
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.singcard-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.singcard-card.inactive {
  border-left: 3px solid var(--accent2);
}

.singcard-card.active {
  border-left: 3px solid var(--accent3);
}

.singcard-code {
  font-family: monospace;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
  word-break: break-all;
}

.singcard-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* ========== Scan Frame ========== */
.qr-scan-modal {
  text-align: center;
  padding: 4px 0 0;
}

.qr-scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qr-scan-header h3 {
  margin: 0;
  font-size: 17px;
}

.qr-scan-header-spacer,
.qr-scan-back {
  width: 54px;
  flex-shrink: 0;
}

.qr-scan-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
}

.qr-scan-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.qr-scan-view {
  position: relative;
  width: min(74vw, 280px);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.qr-scan-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-scan-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  background: #111827;
}

.qr-scan-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,0.44), rgba(0,0,0,0.44)) top/100% 15% no-repeat,
    linear-gradient(rgba(0,0,0,0.44), rgba(0,0,0,0.44)) bottom/100% 15% no-repeat,
    linear-gradient(rgba(0,0,0,0.44), rgba(0,0,0,0.44)) left/15% 100% no-repeat,
    linear-gradient(rgba(0,0,0,0.44), rgba(0,0,0,0.44)) right/15% 100% no-repeat;
}

.qr-scan-frame {
  width: 70%;
  height: 70%;
  margin: 0;
}

.qr-scan-frame .scan-frame-inner {
  background: rgba(255,255,255,0.02);
}

.qr-scan-status {
  min-height: 20px;
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.qr-scan-manual {
  display: grid;
  gap: 8px;
}

.scan-frame {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(108,92,231,0.03);
  border-radius: 12px;
  overflow: hidden;
}

.scan-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--primary);
  border-style: solid;
  z-index: 2;
}

.scan-corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 3px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 3px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 3px; }
.scan-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 3px 0; }

.scan-line {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--primary), transparent);
  box-shadow: 0 0 8px rgba(108,92,231,0.6);
  animation: scan-move 1.8s ease-in-out infinite;
  z-index: 1;
}

@keyframes scan-move {
  0% { top: 4px; }
  50% { top: calc(100% - 6px); }
  100% { top: 4px; }
}

.scan-frame-inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(108,92,231,0.05) 0%, transparent 70%);
  z-index: 0;
  animation: scan-glow 2s ease-in-out infinite;
}

@keyframes scan-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.scan-success .scan-line {
  animation: none;
  background: var(--accent3);
  box-shadow: 0 0 12px rgba(107,203,119,0.8);
  top: 50%;
}

.scan-success .scan-corner {
  border-color: var(--accent3);
}

.scan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: scan-dot-bounce 0.8s ease-in-out infinite;
}

.scan-dot:nth-child(2) { animation-delay: 0.15s; }
.scan-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes scan-dot-bounce {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ========== License (kept for backward compat) ========== */
.license-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.license-code {
  font-family: monospace;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.license-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* ========== Share Grid ========== */
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.share-item {
  text-align: center;
  cursor: pointer;
  padding: 8px;
}

.share-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 6px;
}

.share-label { font-size: 11px; color: var(--text-secondary); }

.play-tags-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 -24px 16px;
  padding: 0 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.play-tags-scroll::-webkit-scrollbar {
  display: none;
}

.play-tag-pill {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.play-title-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.play-title-main {
  min-width: 0;
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.play-title-artist {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 400;
}

.play-delivery-icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-delivery-icon-btn svg {
  width: 21px;
  height: 21px;
}

/* ========== Comment Section ========== */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.comment-body { flex: 1; min-width: 0; }
.comment-user { font-size: 13px; font-weight: 600; }
.comment-text { font-size: 13px; color: var(--text); margin-top: 4px; }
.comment-time { font-size: 11px; color: var(--text-secondary); }
.comment-user-vip {
  display: inline-flex;
  align-items: center;
  height: 15px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff5b5b, #ff9b4a);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  vertical-align: 1px;
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.1);
  color: #ff7a45;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.comment-like-btn:active { transform: scale(0.96); }
.comment-like-btn strong { font-size: 11px; }
.comment-like-btn.liked {
  background: rgba(255, 77, 109, 0.12);
  color: #ff4d6d;
}
.comment-like-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.comment-like-icon {
  width: 11px;
  text-align: center;
  line-height: 1;
}

.comment-input-bar {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
}

.comment-input-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: var(--bg);
}

/* ========== Empty State ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state .empty-text { font-size: 14px; }

.inspiration-empty-state {
  flex-direction: row;
  gap: 8px;
  padding: 28px 20px;
}

.inspiration-empty-state .empty-icon {
  margin-bottom: 0;
  font-size: 24px;
}

/* ========== Search ========== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg);
  border-radius: 24px;
  margin: 0 16px 12px;
  border: 1px solid #000;
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text);
}

.search-bar input::placeholder { color: var(--text-light); }

.community-search-block {
  position: relative;
  margin: 0 16px 12px;
}

.community-search-block .search-bar {
  margin: 0;
}

.community-search-bar {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.community-search-bar:focus-within {
  border-color: rgba(108, 92, 231, 0.45);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.12);
}

.community-search-clear {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.community-search-hot-panel {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease, margin-top 0.18s ease;
}

.community-search-hot-panel.expanded {
  max-height: 100px;
  margin-top: 8px;
  opacity: 1;
  transform: translateY(0);
}

.community-search-hot-title {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.community-search-hot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 100px;
  overflow: hidden;
}

.community-search-hot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.community-search-hot-chip:active {
  color: var(--primary);
  border-color: rgba(108, 92, 231, 0.35);
  background: var(--primary-light);
}

.community-search-hot-empty {
  color: var(--text-light);
  font-size: 12px;
}

/* ========== MV Preview ========== */
.mv-preview {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.mv-preview video { width: 100%; height: 100%; object-fit: cover; }

/* ========== Unbind Countdown ========== */
.unbind-countdown-circle {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unbind-countdown-num {
  position: absolute;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ========== Divider ========== */
.divider {
  height: 8px;
  background: var(--bg);
  margin: 12px 0;
}

/* ========== Result Fade In ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Music Result Cover Controls ========== */
#music-result {
  --music-result-primary: var(--primary);
  --music-result-primary-light: var(--primary-light);
  --music-result-primary-rgb: 108, 92, 231;
  --music-result-accent: #00CEC9;
  --music-result-shadow: rgba(108, 92, 231, 0.22);
}

#music-result.music-result-theme-purple {
  --music-result-primary: #123A63;
  --music-result-primary-light: #2F5E8A;
  --music-result-primary-rgb: 18, 58, 99;
  --music-result-accent: #5C8FB8;
  --music-result-shadow: rgba(18, 58, 99, 0.24);
}

#music-result.music-result-theme-wine {
  --music-result-primary: #9F2241;
  --music-result-primary-light: #D45A72;
  --music-result-primary-rgb: 159, 34, 65;
  --music-result-accent: #E7A33E;
  --music-result-shadow: rgba(159, 34, 65, 0.24);
}

.music-result-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

#music-result-cover-wrap {
  transition: box-shadow 0.3s;
}

#music-result-cover-wrap:hover {
  box-shadow: 0 6px 24px var(--music-result-shadow);
}

#music-result-cover-img {
  transition: opacity 0.3s ease;
}

#music-result-cover-wrap:hover #music-result-cover-img {
  opacity: 0.85;
}

.music-result-cover-refresh-hint {
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 3;
  pointer-events: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  line-height: 1.4;
  backdrop-filter: blur(4px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
}

.music-result-cover-refresh-hint.is-hidden {
  opacity: 0;
  transform: translateY(-4px);
}

.music-result-cover-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.16);
  color: rgba(71, 85, 105, 0.78);
  font-size: 11px;
  font-weight: 500;
  opacity: 0.5;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.music-result-cover-upload-btn:active {
  background: rgba(148, 163, 184, 0.24);
}

/* 封面上传 loading 预览 */
.music-result-cover-uploading {
  opacity: 0.5;
  filter: blur(2px);
}

/* 封面闪烁动画（刷新时） */
@keyframes coverRefresh {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 1; }
}

.music-result-cover-refreshing {
  animation: coverRefresh 0.5s ease-out;
}

/* ========== 会员推广广告位（profile页作品宫格上方） ========== */
.music-result-param-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  margin: -4px 0 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.music-result-param-chips::-webkit-scrollbar {
  display: none;
}

.music-result-param-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  max-width: 160px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(var(--music-result-primary-rgb), 0.08);
  border: 1px solid rgba(var(--music-result-primary-rgb), 0.14);
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 1.15;
}

.music-result-param-chip strong {
  flex: 0 0 auto;
  color: var(--music-result-primary);
  font-weight: 700;
}

.music-result-param-chip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.music-result-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.music-result-work-tag,
.music-result-work-topic,
.music-result-add-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(var(--music-result-primary-rgb), 0.2);
  border-radius: 999px;
  background: rgba(var(--music-result-primary-rgb), 0.07);
  color: var(--music-result-primary);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}

.music-result-work-tag {
  transition: background 0.15s, transform 0.15s;
}

.music-result-work-topic {
  border-color: rgba(var(--music-result-primary-rgb), 0.42);
  background: var(--music-result-primary);
  color: #fff;
  font-weight: 700;
  transition: transform 0.15s;
}

.music-result-work-tag:active,
.music-result-work-topic:active,
.music-result-add-tag:active {
  transform: scale(0.96);
}

.music-result-add-tag {
  background: #fff;
  border-style: dashed;
  color: #596170;
}

.music-result-tag-topic-modal h3 {
  margin: 0 0 16px;
  color: #7557d9;
  background: linear-gradient(100deg, #e94f79 0%, #7657d9 48%, #008f8c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.music-result-modal-label {
  display: block;
  margin: 14px 0 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.music-result-modal-help {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.music-result-modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.music-result-modal-label-row .music-result-modal-label {
  margin: 0;
}

.music-result-modal-label-row span {
  color: var(--text-tertiary, #9298a3);
  font-size: 11px;
  white-space: nowrap;
}

.music-result-topic-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.music-result-topic-mode-tab {
  position: relative;
  padding: 0 0 7px;
  border: 0;
  background: transparent;
  color: var(--text-tertiary, #9298a3);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.music-result-topic-mode-tab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e94f79, #7657d9, #008f8c);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.music-result-topic-mode-tab.active {
  color: var(--text-primary);
}

.music-result-topic-mode-tab.active::after {
  width: 100%;
}

.music-result-topic-flip {
  position: relative;
  height: 182px;
  margin-top: 8px;
  perspective: 900px;
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-result-topic-mode[data-mode="create"] .music-result-topic-flip {
  height: 92px;
}

.music-result-topic-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-result-topic-mode[data-mode="create"] .music-result-topic-flip-inner {
  transform: rotateX(180deg);
}

.music-result-topic-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
}

.music-result-topic-face-select,
.music-result-topic-mode[data-mode="create"] .music-result-topic-face-create {
  pointer-events: auto;
}

.music-result-topic-mode[data-mode="create"] .music-result-topic-face-select {
  pointer-events: none;
}

.music-result-topic-options {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  max-height: none;
  min-height: 0;
  margin-top: 0;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  background: #f8f9fb;
  scrollbar-width: none;
}

.music-result-topic-create {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  background: #f8f9fb;
  transform: rotateX(180deg);
}

.music-result-topic-create .input {
  min-height: 44px;
  background: #fff;
}

.music-result-topic-options::-webkit-scrollbar {
  display: none;
}

.music-result-topic-option {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d9dce3;
  border-radius: 15px;
  background: #fff;
  color: #4f5663;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.music-result-topic-option.selected {
  border-color: var(--music-result-primary);
  background: rgba(var(--music-result-primary-rgb), 0.1);
  color: var(--music-result-primary);
  font-weight: 700;
}

.music-result-topic-empty {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 22px;
  color: var(--text-secondary);
  font-size: 12px;
}

.music-result-topic-create-help {
  margin-top: 6px;
}

.music-result-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .music-result-topic-flip,
  .music-result-topic-flip-inner {
    transition-duration: 0.01ms;
  }
}

#music-result-lrc {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#music-result-lrc::-webkit-scrollbar {
  display: none;
}

#music-result-lrc .lrc-line {
  display: block;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.music-result-variant-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  margin: -24px -20px 18px;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid rgba(var(--music-result-primary-rgb), 0.12);
  border-radius: 16px 16px 0 0;
}

.music-result-variant-tabs::-webkit-scrollbar {
  display: none;
}

.music-result-variant-tab {
  flex: 0 0 50%;
  min-width: 50%;
  height: 46px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.music-result-variant-tab.active {
  color: var(--music-result-primary);
  background: rgba(var(--music-result-primary-rgb), 0.12);
}

.music-result-variant-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--music-result-primary), var(--music-result-accent));
}

.music-result-variant-cd {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 0 8px rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.music-result-variant-cd::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.45), rgba(255,255,255,0.08) 35%, transparent 58%, rgba(0,0,0,0.16));
}

.music-result-variant-cd-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.8);
  z-index: 1;
}

.music-result-variant-tab.active .music-result-variant-cd {
  animation: musicVariantCdSpin 2.6s linear infinite;
}

.music-result-options {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.music-result-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8A8F98;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.music-result-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.music-result-option-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #C5CAD3;
  background: #F3F4F6;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 auto;
}

.music-result-option input:checked + .music-result-option-dot {
  border-color: #A8AFBA;
  background: #A8AFBA;
}

.music-result-option input:checked + .music-result-option-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

#music-result .btn-primary,
#music-result .music-result-primary-action {
  background: var(--music-result-primary) !important;
  border-color: var(--music-result-primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px var(--music-result-shadow);
}

#music-result .btn-outline {
  border-color: rgba(var(--music-result-primary-rgb), 0.28);
  color: var(--music-result-primary);
  background: rgba(var(--music-result-primary-rgb), 0.04);
}

#music-result .music-result-draft-action {
  background: rgba(var(--music-result-primary-rgb), 0.08);
  border-color: rgba(var(--music-result-primary-rgb), 0.24);
  color: var(--music-result-primary);
}

.music-result-secondary-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#music-result .music-result-secondary-btn {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 13px;
}

@keyframes musicVariantCdSpin {
  to {
    transform: rotate(360deg);
  }
}

.membership-ad-banner {
  margin: 8px 2px 4px;
  padding: 0;
  background: linear-gradient(135deg, #1a0533 0%, #2d1b69 30%, #6C5CE7 60%, #a29bfe 100%);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.membership-ad-banner:active {
  transform: scale(0.98);
  box-shadow: 0 4px 20px rgba(108,92,231,0.4);
}

.membership-ad-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.membership-ad-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.membership-ad-icon {
  font-size: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: crownBounce 2s ease-in-out infinite;
  margin-top: -5px;
}
@keyframes crownBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes glassSweep {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.membership-ad-text {
  flex: 1;
  min-width: 0;
}

.membership-ad-title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #FFD93D 0%, #FFF7CC 25%, #FFE066 50%, #FFD93D 75%, #FFF7CC 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 0;
  letter-spacing: 2px;
  text-align: center;
  animation: glassSweep 2.5s linear infinite;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.membership-ad-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.membership-ad-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

/* ========== 会员促销页 ========== */
.membership-page {
  padding: 0;
}

.membership-header {
  text-align: center;
  padding: 0px 16px 8px;
}

.membership-crown {
  font-size: 48px;
  margin-bottom: 0;
  animation: crownBounce 2s ease-in-out infinite;
}

.membership-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #6C5CE7, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.membership-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 价格卡片 */
.membership-price-cards {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.membership-plan-card {
  flex: 1;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  position: relative;
  border: 2px solid var(--border);
  transition: transform 0.2s;
}
.membership-plan-card.free {
  background: var(--bg);
}
.membership-plan-card.pro {
  background: linear-gradient(180deg, rgba(108,92,231,0.08), rgba(108,92,231,0.02));
  border-color: #6C5CE7;
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 10px;
  white-space: nowrap;
  background: #E0E0E0;
  color: #666;
}
.plan-badge.pro-badge {
  background: linear-gradient(135deg, #FFD93D, #FFA502);
  color: #fff;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 2px;
  color: var(--text);
}

.plan-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}
.free .plan-price {
  color: var(--text-secondary);
  font-size: 18px;
}

.plan-period {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
}

.plan-desc {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* 升级按钮 */
.membership-upgrade-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #FFD93D, #FFA502);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 4px 12px rgba(255,165,2,0.4);
  transition: all 0.2s;
}
.membership-upgrade-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(255,165,2,0.3);
}
.membership-upgrade-btn.large {
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
}

/* 权益对比表 */
.membership-compare {
  padding: 0 16px 16px;
}

.membership-max-notice {
  margin: 0 16px 16px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 169, 2, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 217, 61, 0.18), rgba(108, 92, 231, 0.06));
  text-align: center;
}

.membership-max-title {
  font-size: 18px;
  font-weight: 800;
  color: #7A4D00;
  margin-bottom: 8px;
}

.membership-max-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.membership-max-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.membership-max-benefits span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #6C5CE7;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(108, 92, 231, 0.12);
}

.compare-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.compare-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-header {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bg);
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background 0.15s;
}
.compare-row:last-child {
  border-bottom: none;
}

.compare-cell {
  min-height: 36px;
  padding: 7px 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.feature-col {
  min-width: 0;
  font-weight: 600;
  color: var(--text);
  border-right: 1px solid var(--border);
}

.plan-col {
  justify-content: center;
  text-align: center;
  min-width: 0;
}

.compare-cell:nth-child(2) {
  border-right: 1px solid var(--border);
}

.free-col {
  color: var(--text-secondary);
}

.pro-col {
  font-weight: 600;
}

.compare-cell.highlight {
  color: #6C5CE7;
}

.compare-cell.bad {
  color: #ccc;
}

.payment-success-modal {
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, #f8fffc 0%, #ffffff 58%, #f4f7ff 100%) !important;
  border: 1px solid rgba(15, 181, 105, 0.2);
  box-shadow: 0 22px 70px rgba(5, 72, 48, 0.3);
}

.payment-success-dialog {
  position: relative;
  padding: 8px 2px 2px;
  text-align: center;
  color: #17212b;
}

.modal-content.play-visual-modal {
  max-height: min(86vh, 760px);
  padding: 0;
  color: #f7f7fa;
  background: #18181d !important;
  overscroll-behavior: contain;
}

.play-visual-settings {
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
}

.play-visual-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin: -18px -18px 14px;
  padding: 14px 18px 10px;
  background: rgba(24, 24, 29, 0.96);
  backdrop-filter: blur(12px);
}

.play-visual-header strong {
  font-size: 17px;
}

.play-visual-reset {
  border: 0;
  padding: 6px 0;
  color: #a9a6ff;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.play-visual-preview {
  min-height: 112px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(145deg, #29243b, #121217);
}

.play-visual-preview > div {
  min-height: 28px;
  overflow: hidden;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.play-vocal-toggle {
  width: 42px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.86);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.play-vocal-toggle.is-backing {
  color: #fff;
}

.play-loop-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  color: rgba(255,255,255,0.7);
}

.play-loop-toggle svg {
  width: 22px;
  height: 22px;
}

.play-loop-toggle.is-backing,
.play-loop-toggle.is-once {
  color: rgba(255,255,255,0.7);
}

.play-visual-section-title {
  margin-top: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a9a6ff;
  font-size: 13px;
  font-weight: 700;
}

.play-visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.play-visual-row > label,
.play-visual-row > span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.86);
}

.play-visual-row-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.play-visual-row select {
  min-width: 86px;
  height: 34px;
  padding: 0 24px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #fff;
  background: #29292f;
  font-size: 12px;
}

.play-visual-range-row input[type="range"] {
  flex: 1 1 auto;
  min-width: 80px;
  height: 4px;
  accent-color: #8b83ff;
}

.play-visual-range-row output {
  flex: 0 0 42px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.play-visual-segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.play-visual-segments button {
  min-width: 76px;
  height: 32px;
  border: 0;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.play-visual-segments button.active {
  color: #fff;
  background: #6c5ce7;
}

.play-visual-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 224px;
}

.play-visual-row--sung-color {
  flex-wrap: nowrap;
}

.play-visual-row--sung-color > span,
.play-visual-row--sung-color .play-visual-swatches {
  white-space: nowrap;
}

.play-visual-row--sung-color .play-visual-swatches {
  flex-wrap: nowrap;
  gap: 6px;
  max-width: none;
}

.play-visual-row--sung-color .play-visual-swatch {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.play-visual-swatch {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--swatch);
  cursor: pointer;
}

.play-visual-swatch.active {
  border-color: #18181d;
  outline: 2px solid #a9a6ff;
  box-shadow: 0 0 9px rgba(169, 166, 255, 0.55);
}

.karaoke-lines-stage {
  overflow: hidden;
  contain: layout paint;
  align-items: stretch;
}

.play-karaoke-line {
  min-height: 34px;
  max-height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.play-karaoke-line--top {
  justify-content: flex-start;
}

.play-karaoke-line--bottom {
  justify-content: flex-end;
}

.play-karaoke-line--third {
  justify-content: center;
}

.karaoke-flow-line {
  position: relative;
  color: transparent !important;
  text-shadow: none !important;
  background-image: none;
  background-clip: initial;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.karaoke-line-stack {
  position: relative;
  display: inline-block;
  max-width: 100%;
  white-space: inherit;
  vertical-align: top;
}

.karaoke-line-shadow,
.karaoke-line-rest,
.karaoke-line-sung {
  white-space: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  font: inherit;
}

.karaoke-line-shadow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--play-lyric-shadow, none);
  pointer-events: none;
}

.karaoke-line-rest {
  position: relative;
  z-index: 2;
  color: var(--karaoke-rest);
  -webkit-text-fill-color: var(--karaoke-rest);
  text-shadow: none;
}

.karaoke-line-sung {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 100%;
  overflow: hidden;
  color: var(--karaoke-sung);
  -webkit-text-fill-color: var(--karaoke-sung);
  text-shadow: none;
  pointer-events: none;
  white-space: nowrap;
  will-change: -webkit-mask-image, mask-image;
  -webkit-mask-image: linear-gradient(90deg,
    #000 0%,
    #000 var(--karaoke-lead),
    rgba(0, 0, 0, 0.7) var(--karaoke-progress),
    transparent var(--karaoke-tail),
    transparent 100%);
  mask-image: linear-gradient(90deg,
    #000 0%,
    #000 var(--karaoke-lead),
    rgba(0, 0, 0, 0.7) var(--karaoke-progress),
    transparent var(--karaoke-tail),
    transparent 100%);
}

.karaoke-flow-empty .karaoke-line-sung {
  opacity: 0;
}

.karaoke-flow-complete .karaoke-line-sung {
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}

.karaoke-line-ghost {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  transform-origin: center;
  animation: karaoke-line-exit 440ms cubic-bezier(.4, 0, .2, 1) forwards;
}

.karaoke-line-enter-current {
  transform-origin: center;
  animation: karaoke-line-enter-current 520ms cubic-bezier(.16, 1, .3, 1) both;
}

.karaoke-line-enter-next {
  transform-origin: center;
  animation: karaoke-line-enter-next 560ms cubic-bezier(.16, 1, .3, 1) both;
}

.karaoke-line-enter-third {
  transform-origin: center;
  animation: karaoke-line-enter-third 600ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes karaoke-line-exit {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateY(-24px) scale(.92); filter: blur(2px); }
}

@keyframes karaoke-line-enter-current {
  from { opacity: .35; transform: translateY(18px) scale(.78); filter: blur(1.5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes karaoke-line-enter-next {
  from { opacity: .18; transform: translateY(17px); filter: blur(1px); }
  to { opacity: .78; transform: translateY(0); filter: blur(0); }
}

@keyframes karaoke-line-enter-third {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: .58; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .karaoke-line-ghost,
  .karaoke-line-enter-current,
  .karaoke-line-enter-next,
  .karaoke-line-enter-third {
    animation-duration: 1ms;
  }
}

@media (max-width: 360px) {
  .play-visual-settings {
    padding-right: 14px;
    padding-left: 14px;
  }

  .play-visual-header {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .play-visual-row-controls {
    gap: 5px;
  }

  .play-visual-row select {
    min-width: 78px;
  }

  .play-visual-swatches {
    max-width: 196px;
    gap: 7px;
  }

  .play-visual-row--sung-color .play-visual-swatches {
    gap: 4px;
    max-width: none;
  }

  .play-visual-row--sung-color .play-visual-swatch {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .play-visual-swatch {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

.payment-success-visual {
  position: relative;
  width: 112px;
  height: 96px;
  margin: 0 auto 4px;
}

.payment-success-check {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 72px;
  height: 72px;
  transform: translateX(-50%) scale(0);
  border-radius: 50%;
  background: linear-gradient(145deg, #18c77a, #079f5f);
  box-shadow: 0 12px 28px rgba(7, 159, 95, 0.3), inset 0 1px 0 rgba(255,255,255,0.45);
  animation: paymentCheckPop 0.55s cubic-bezier(.2,1.5,.45,1) forwards;
}

.payment-success-check::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(24, 199, 122, 0.22);
  border-radius: 50%;
  animation: paymentSuccessRing 1.6s ease-out 0.35s infinite;
}

.payment-success-check span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27px;
  height: 15px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0);
  transform-origin: center;
  animation: paymentCheckDraw 0.32s ease-out 0.42s forwards;
}

.payment-confetti {
  position: absolute;
  width: 7px;
  height: 14px;
  opacity: 0;
  border-radius: 2px;
  animation: paymentConfetti 0.8s ease-out 0.2s forwards;
}

.payment-confetti.c1 { left: 7px; top: 22px; background:#ffb703; transform:rotate(-28deg); }
.payment-confetti.c2 { left: 24px; top: 3px; background:#6c5ce7; transform:rotate(18deg); }
.payment-confetti.c3 { right: 22px; top: 2px; background:#ff6b6b; transform:rotate(-18deg); }
.payment-confetti.c4 { right: 4px; top: 28px; background:#00b8a9; transform:rotate(30deg); }
.payment-confetti.c5 { left: 15px; top: 65px; background:#4dabf7; transform:rotate(42deg); }
.payment-confetti.c6 { right: 12px; top: 66px; background:#f06595; transform:rotate(-38deg); }

.payment-success-dialog h3 {
  margin: 0;
  color: #102a20;
  font-size: 23px;
  font-weight: 900;
}

.payment-success-subtitle {
  margin: 7px 0 18px;
  color: #66736d;
  font-size: 13px;
}

.payment-success-rewards {
  border-top: 1px solid #e6eee9;
  border-bottom: 1px solid #e6eee9;
  padding: 4px 0;
}

.payment-success-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 4px;
  color: #53605a;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  animation: paymentRewardIn 0.35s ease-out calc(0.46s + var(--reward-index) * 0.08s) forwards;
}

.payment-success-reward + .payment-success-reward {
  border-top: 1px dashed #edf1ef;
}

.payment-success-reward strong {
  color: #0a9c5d;
  font-size: 16px;
  font-weight: 900;
}

.payment-success-creative strong { color: #6c5ce7; }
.payment-success-growth strong { color: #e19500; }

.payment-success-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 0 16px;
  color: #8a9690;
  font-size: 10px;
}

.payment-success-meta span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-success-action {
  min-height: 44px;
  border: 0;
  background: linear-gradient(135deg, #08b86a, #12ca78) !important;
  box-shadow: 0 10px 24px rgba(8, 184, 106, 0.25);
}

@keyframes paymentCheckPop {
  0% { transform: translateX(-50%) scale(0); }
  70% { transform: translateX(-50%) scale(1.08); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes paymentCheckDraw {
  to { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
}

@keyframes paymentSuccessRing {
  0% { transform: scale(0.86); opacity: 0.7; }
  80%, 100% { transform: scale(1.18); opacity: 0; }
}

@keyframes paymentConfetti {
  0% { opacity: 0; transform: translateY(12px) scale(0.5) rotate(0); }
  45% { opacity: 1; }
  100% { opacity: 0.8; transform: translateY(-8px) scale(1) rotate(95deg); }
}

@keyframes paymentRewardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* 底部 CTA */
.membership-footer {
  padding: 0 16px 16px;
  text-align: center;
}

.membership-guarantee {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 10px;
}

.music-submit-loading {
  opacity: 0.9;
  cursor: wait;
  pointer-events: none;
}

.music-submit-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: -2px;
  animation: musicSubmitSpin 0.75s linear infinite;
}

@keyframes musicSubmitSpin {
  to {
    transform: rotate(360deg);
  }
}

.music-submit-progress {
  margin: -8px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.06);
}

.music-submit-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.music-submit-progress-track {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(108, 92, 231, 0.14);
}

.music-submit-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c5ce7, #00cec9);
  transition: width 0.35s ease;
}

.music-submit-progress-detail {
  margin-top: 7px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-result-save-actions {
  display: flex;
  align-items: stretch;
}

.music-result-publish-combo {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--music-result-primary);
  box-shadow: 0 8px 20px var(--music-result-shadow);
}

.music-result-publish-main {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.music-result-publish-picker {
  position: relative;
  width: 124px;
  flex: 0 0 124px;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
}

.music-result-publish-main:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.music-result-publish-main.is-loading {
  cursor: wait;
}

.music-result-publish-select {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 34px 0 14px;
  text-align: left;
  text-align-last: left;
  outline: none;
  cursor: pointer;
}

.music-result-publish-select:disabled {
  cursor: wait;
  opacity: 0.75;
}

.music-result-publish-select option {
  color: #333;
}

.draft-swipe-content .history-title {
  display: flex;
  align-items: center;
  overflow: visible;
}

.draft-title-name {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
}

.draft-title-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-unread-dot {
  position: absolute;
  top: -5px;
  right: -9px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #e03131;
  box-sizing: content-box;
}
.create-draft-badge {
  position: relative;
}

.create-draft-badge.is-active {
  box-shadow: inset 0 0 0 1px rgba(109, 82, 224, 0.34);
  color: var(--primary);
}

.music-result-draft-action:disabled {
  cursor: default;
  opacity: 0.5;
  filter: grayscale(0.25);
}

.create-draft-badge.has-unread {
  box-shadow: 0 0 0 2px rgba(224, 49, 49, 0.14);
}

.draft-hot-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e03131;
  box-sizing: content-box;
  animation: draft-hot-pulse 1.2s ease-in-out infinite;
}

.history-card.ai-result-draft {
  border-color: rgba(116, 124, 140, 0.18);
  background: rgba(246, 247, 250, 0.74);
}

@keyframes draft-hot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(224, 49, 49, 0); }
}
